Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-15943

NumberFormatException when Publish Selenium Report with HTMLTestRunner 0.8.2 / Selenium

    Details

    • Similar Issues:

      Description

      I'm running into a NumberFormatException when attempting to Publish Selenium Report with an HTMLTestRunner generated report. Tests are kicked off by Jenkins, all succeed, and the output file is generated to a directory in the Jenkins workspace that the user has permission to. I specified the full path to the directory and did not point to the HTML output file. I have attached the output file that Jenkins tries to parse.

      ...
      Publishing Selenium report...
      Copying the reports.
      parsing resultFile regression_test_output.html
      Unable to parse regression_test_output.html: java.lang.NumberFormatException: null

        Attachments

          Activity

          Hide
          francisdb francisdb added a comment -

          looks similar to JENKINS-11292
          Do you have a stacktrace?

          Show
          francisdb francisdb added a comment - looks similar to JENKINS-11292 Do you have a stacktrace?
          Hide
          teraincognita Aaron Briel added a comment - - edited

          Above is the full console output. Searching the drives, I didn't find a copied version of regression_test_output.html which suggests that the "Copying the reports" step did not succeed. Note that I run my tests as a specific user using a sudo command: sudo -u username /directory/run_tests.py I guessed that jenkins selenium report attempts to execute the copy command as this same user, so I changed the same user to be owner of the project workspace directory. This resulted in the same error and I'm still not seeing a copied report.

          Show
          teraincognita Aaron Briel added a comment - - edited Above is the full console output. Searching the drives, I didn't find a copied version of regression_test_output.html which suggests that the "Copying the reports" step did not succeed. Note that I run my tests as a specific user using a sudo command: sudo -u username /directory/run_tests.py I guessed that jenkins selenium report attempts to execute the copy command as this same user, so I changed the same user to be owner of the project workspace directory. This resulted in the same error and I'm still not seeing a copied report.
          Hide
          teraincognita Aaron Briel added a comment -

          HTMLTestRunner produces an output file that is incompatible with SeleniumHtmlReport - specifically the parser in TestResult.java. I decided to go with junitxml, allowing me to keep my existing test framework. This produced xml files that could be published my the Jenkins 'publish junit test result' option.

          Show
          teraincognita Aaron Briel added a comment - HTMLTestRunner produces an output file that is incompatible with SeleniumHtmlReport - specifically the parser in TestResult.java. I decided to go with junitxml, allowing me to keep my existing test framework. This produced xml files that could be published my the Jenkins 'publish junit test result' option.

            People

            • Assignee:
              darkrift Richard Lavoie
              Reporter:
              teraincognita Aaron Briel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: