Page 1 of 1

command line creates no screenshots on error

Posted: Tue Feb 28, 2012 4:54 pm
by mats
If the Ranorex Test ist started with command line for every module, no screenshots are created if a failure occured.
Start with /testsuite works as expected.

This problem occurs with Ranorex 3.1.x and 3.2.1. With 3.2.x additional the verification won't work (hint: in the VIP example are no verifications).

Example bat: (has to be in the same folder as VIPTestSuite.exe)

Code: Select all

set TestToolPath=VIPTestSuite.exe
REM %TestToolPath% /testsuite /reportfile:log1.rxlog
%TestToolPath% /module:StartSystemUnderTest /reportfile:log2.rxlog
%TestToolPath% /module:AddVIP /reportfile:log3.rxlog
%TestToolPath% /module:IterateTable /reportfile:log4.rxlog
To force a failure I killed VipApplication.exe

Workaround: If the TestSuite contains a testcase for each module, screenshots are created as expected
-> is this really the only solution?

Re: command line creates no screenshots on error

Posted: Thu Mar 01, 2012 4:41 pm
by Support Team
Hi,

when starting a single module another kind of reporting will be triggered as starting a test case, test suite or run configuration.
If you'd like to have screen shots within your reporting you can manually add screen shots by using the Report.Screenshot method or start a test case holding the module.

Regards,
Tobias
Ranorex Team

Re: command line creates no screenshots on error

Posted: Tue Mar 06, 2012 1:38 pm
by Support Team
I have added this as a feature request for version 3.3 :D

Michael
Ranorex Team