Log.SaveResultsAs() does not appear to be saving results
I'm relatively new to TestComplete and am trying to export a JUnit summary after my test suite completes. The test suite executes automatically on a remote node so I cannot save the results manually. I have tried adding the following script test to perform the task:
sPath = "C:\\<some path>\\test_summary.xml"
# Store JUnit test results in the project directory
Log.SaveResultsAs(sPath, lsJUnit, False, lesFull)
I can create .txt files in my test so I know it is executing but have been unable to produce the desired JUnit summary.
Solved! Go to Solution.
.SaveResultsAs() returns True on success and False otherwise.
What does it return in your case?
/Alex [Community Champion]
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
.SaveResultAs() is returning false.
However, I was able to solve this on the Jenkins side using:
So I'm all good. I suppose I'm still curious why .SaveResultAs() isn't working, but It's not crucial.