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

ALM plugin can't parse JUnit report with trailing spaces

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Blocker Blocker
    • None
    • hpe-application-automation-tools-plugin 6.8

      Hello,
      It seems  like its necessary to trim the trailing spaces at the end of the testcases names, otherwise in the second run of a report it would be considred a new testcase.
      Making the ALM server dening it for duplicate testcase.

      N.B : The spaces are correctly removed in the POST request sent to the server.

       

      Fix pull request: https://github.com/jenkinsci/hpe-application-automation-tools-plugin/pull/390

       

      Pipeline logs :
      Session created.
      INFO: Checking test folder...
      INFO: Checking testset folder...
      INFO: Uploading ALM Entities...
      Failed to create Entity:tests:owner=wichoumsubtype-id=EXTERNAL-TESTtesting-framework=JUnittesting-tool=AnyTestingToolname=sample_Create JDDs aléatoire pondéré ut-package-name=ut-method-name=Create JDDs aléatoire pondéré parent-id=1172ut-class-name=sample
      ERR: There's exception while uploading C:\Users\wichoum\Downloads\hpe-application-automation-tools-plugin-micro-focus-application-automation-tools-plugin-6.8\work\jobs\Upload Test Results HPI\builds\11\archive\test_results\NOM-CTRL-INFOCARTE-003_PCAC_NETMJ_v2_junit_report.xml. com.microfocus.application.automation.tools.results.service.ExternalEntityUploadException: Failed to create Entity:tests:owner=wichoumsubtype-id=EXTERNAL-TESTtesting-framework=JUnittesting-tool=AnyTestingToolname=sample_Create JDDs aléatoire pondéré ut-package-name=ut-method-name=Create JDDs aléatoire pondéré parent-id=1172ut-class-name=sample
      INFO: 'Upload test result to ALM' Completed.

            faziom Michael Fazio
            medreda med
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: