TestComplete/TestExecute does not create Junit report xml file
I am trying to execute my TestComplete tests from command line as in https://support.smartbear.com/testcomplete/docs/testing-with/log/working-with/exporting/index.html and was able to successfully run the tests. Post the execution I could not see any junit xml file being created, could anyone help with this please
I have used /ExportSummary:junit.xml option as suggested, yet I could not see that being created. Also,it's the same situation when running the tests with the IDE and TestComplete Jenkins Plugin https://support.smartbear.com/testcomplete/docs/working-with/integration/jenkins/viewing-test-result...
Solved! Go to Solution.
In your case, TC tries to save your junit.xml by TestComplete.exe path.
You have to set a full path to junit.xml as a parameter. /ExportSummary:"C:\Temp\junit.xml"
Thanks for the reply @Bobik
I have tried both the ways
/ExportSummary:junit.xml and /ExportSummary:"c:\users\pv\tcresults\junit.xml"
yet I could not find the the file anywhere in the C: directory
Any other suggestions please
@Bobik I am using TC 14.0.0307 version, so I believe /ExportSummary option does not work with it !
and the command I was using :
"C:\Program Files (x86)\SmartBear\TestExecute 14\x64\Bin\TestExecute.exe" "C:\<path to suite>\RPM2_TestAutomation.pjs" /run /SilentMode /project:<project> /ExportLog:"C:\users\pv\tcresults\tclog.mht" /ExportLog:"C:\users\pv\tcresults\tclog.html" /ErrorLog:"C:\users\pv\tcresults\error.txt" /ExportSummary:"C:\users\pv\tcresults\report.xml"
Is there any other way we could generate junit result file with the above version ?
Considering my scenario of generating Junit xml to publish test results on Jenkins (not using TestComplete support plugin for Jenkins, as I had some issue with Jnaexception) I have figured it out by using /ExportLogToXMLAlso along with using /ExportLog to generate html and mht files. With that the TestComplete xUnit plugin helped in publishing the test results taking the .mht file as input and other supporting files that were generated