krenevla
11 years agoContributor
Specify output folder for log via test runner
Hi,
I have recently encountered this problem.
I would like SOAPUI command line runner to put the report into specific folder, as I need to run several instances of the command line runner at a time so putting report in a standard place is not an option as multiple processes would be writing into same files.
I am using this command:
This executes the test suite specified after –s and puts the report into folder specified after –f. So far so good.
But when the whole suite execution finishes, the report file (xml) contains only one test case, not the whole test suite (this specific test suite contains 5 test cases).
How can I make the command line runner store all test cases reports?
I have recently encountered this problem.
I would like SOAPUI command line runner to put the report into specific folder, as I need to run several instances of the command line runner at a time so putting report in a standard place is not an option as multiple processes would be writing into same files.
I am using this command:
SETTINGS_FILE = './soapui-settings.xml'
PROJECT_FILE = './WMS.xml'
SUITE_NAME = '[F] WEB SERVICE TESTS'
runner = com.eviware.soapui.tools.SoapUITestCaseRunner.new
runner.runFromCommandLine([PROJECT_FILE, "-s#{SUITE_NAME}", "-f#{'output_directory}", "-t#{SETTINGS_FILE}", '-M', '-r'])
This executes the test suite specified after –s and puts the report into folder specified after –f. So far so good.
But when the whole suite execution finishes, the report file (xml) contains only one test case, not the whole test suite (this specific test suite contains 5 test cases).
How can I make the command line runner store all test cases reports?