Skip to content

Commit 2bfba53

Browse files
Merge pull request hpsa#277 from itayka/octane-dev-latest
defect #2009030- mbt steps data missing from final report
2 parents 0c1b50e + 2fd0c05 commit 2bfba53

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/com/microfocus/application/automation/tools/octane/tests/junit/JUnitXmlIterator.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,9 @@ private void handleJUnitTest(XMLEvent event) throws XMLStreamException, IOExcept
270270

271271
if (testReportCreated) {
272272
final String basePath = ((List<String>) additionalContext).get(0);
273-
uftResultFilePath = Paths.get(basePath, "archive", "UFTReport", cleanedTestName, "run_results.xml").toFile().getCanonicalPath();
274-
externalURL = jenkinsRootUrl + "job/" + jobName + "/" + buildId + "/artifact/UFTReport/" +
275-
(StringUtils.isNotEmpty(this.nodeName) ? nodeName +"/" : "") +
276-
cleanedTestName + "/Result/run_results.html";
273+
String nodeNameSubFolder = StringUtils.isNotEmpty(this.nodeName) ? nodeName +"/" : "";
274+
uftResultFilePath = Paths.get(basePath, "archive", "UFTReport", nodeNameSubFolder, cleanedTestName, "/Result/run_results.xml").toFile().getCanonicalPath();
275+
externalURL = jenkinsRootUrl + "job/" + jobName + "/" + buildId + "/artifact/UFTReport/" + nodeNameSubFolder + cleanedTestName + "/Result/run_results.html";
277276
} else {
278277
//if UFT didn't created test results page - add reference to Jenkins test results page
279278
externalURL = jenkinsRootUrl + "job/" + jobName + "/" + buildId + "/testReport/" + myPackageName + "/" + jenkinsTestClassFormat(myClassName) + "/" + jenkinsTestNameFormat(myTestName) + "/";

0 commit comments

Comments
 (0)