Log.SaveResultsAs() does not appear to be saving results
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
def StoreJUnit():
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.
- Labels:
-
Script Tests
-
Test Results
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
.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.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alex,
.SaveResultAs() is returning false.
However, I was able to solve this on the Jenkins side using:
commandLineArguments: "/ExportSummary:${WORKSPACE}\\junit_results.xml"
So I'm all good. I suppose I'm still curious why .SaveResultAs() isn't working, but It's not crucial.
