Ask a Question

Log.SaveResultsAs() does not appear to be saving results

SOLVED
mbeauchemin
New Contributor

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.

2 REPLIES 2
AlexKaras
Community Hero

Hi,

 

.SaveResultsAs() returns True on success and False otherwise.

What does it return in your case?

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

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.

 

cancel
Showing results for 
Search instead for 
Did you mean: