Page 1 of 1

How to split a Report in single Testcases

Posted: Thu Jul 24, 2014 6:58 pm
by *Florian*
After each testcase i save a report. If i apply more testcases, the first report contains the infomation of the first testcase, the second contains the information of the fist and the second testcase, the third one contains the first, the second and the third testcase and so on.... My request is: Is it possible to save reports, that only contain one testcase and do not contain all previous testcases from that testrun (first only first, second only second, third only third and so on...) ?


Any help is appreciated,
Florian

Re: How to split a Report in single Testcases

Posted: Fri Jul 25, 2014 3:51 pm
by krstcs
Why not just run each test case independently? You can setup test run configurations for each one and run them via command-line. If you name the report file well, you shouldn't have any problems with over-writing.

Re: How to split a Report in single Testcases

Posted: Tue Jul 29, 2014 11:23 am
by *Florian*
Thank you for your reply, but it's not the solution i'm looking for. I would prefer, that one testrun contains several testcases and the report will be split in several reports. That each report contains only one testcase.

Re: How to split a Report in single Testcases

Posted: Thu Jul 31, 2014 3:58 pm
by Support Team
Hi Florian,

Unfortunately this is not possible easily and without using our official documented API.
I would also suggest the workaround as described by krstcs.

Regards,
Bernhard

Re: How to split a Report in single Testcases

Posted: Fri Aug 01, 2014 2:24 pm
by JSH_QA
We use MS Test for this purpose. Each test case is an individual MS Test method. In TestInitialize we call the Ranorex method Report.Setup , then in TestCleanup we call Report.End and Report.Zip , with the test name being used to name the generated report file.

This allows us to have multiple test cases run (whether from Visual Studio, Microsoft Test Manager, or from our automated build), with each test case having its own report file, which we can be easily accessed (from Visual Studio or Microsoft Test Manager).

Regards,

John H.