Hi,
is it possible to buffer / save a report during the test execution?
Thanks!
Save report during runtime
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Save report during runtime
UgaAga,
In general Ranorex saves a temporary report file every 30 seconds during the runtime.
You can find the report file in the output folder of your test suite. If you want to see the report just copy the file and remove the "_tmp" string from the extension. You can also change the auto save interval in the Test Suite settings dialog. Regards,
Bernhard
In general Ranorex saves a temporary report file every 30 seconds during the runtime.
You can find the report file in the output folder of your test suite. If you want to see the report just copy the file and remove the "_tmp" string from the extension. You can also change the auto save interval in the Test Suite settings dialog. Regards,
Bernhard
You do not have the required permissions to view the files attached to this post.
Re: Save report during runtime
Hi,
thanks for your answer.
Is it possible to save the report by command for example in a code module?
Best regards
thanks for your answer.
Is it possible to save the report by command for example in a code module?
Best regards
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Save report during runtime
Hello UgaAga,
Yes, you can use following line of code in order to save the report during runtime.
Regards,
Robert
Yes, you can use following line of code in order to save the report during runtime.
Code: Select all
Ranorex.Core.Reporting.TestReport.SaveReport();
Robert
Re: Save report during runtime
Robert, could you verify something for us:
I believe that if you use the /rf switch on the command line, the name used in that switch will be used for all reports generated, so if you use the save method that you noted, and then restart logging without changing the report name in your code (add an index "1", "2", etc. to it, for example) then the new log will over-write the saved one.
I think this is the same for the default name, but not sure since I use Jenkins to specify report names on the fly.
Is that correct?
Just wanted to make sure we all understood the side-effects.
Thanks!
I believe that if you use the /rf switch on the command line, the name used in that switch will be used for all reports generated, so if you use the save method that you noted, and then restart logging without changing the report name in your code (add an index "1", "2", etc. to it, for example) then the new log will over-write the saved one.
I think this is the same for the default name, but not sure since I use Jenkins to specify report names on the fly.
Is that correct?
Just wanted to make sure we all understood the side-effects.
Thanks!
Shortcuts usually aren't...
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Save report during runtime
Hello krstcs,
I’m afraid that I’m not exactly sure what is meant by “restart logging”. That aside, it’s true that the specified name within the /rf-parameter is used for all reports generated within the test run. Therefore, only one report file is created, but no information gets lost.
Regards,
Robert
I’m afraid that I’m not exactly sure what is meant by “restart logging”. That aside, it’s true that the specified name within the /rf-parameter is used for all reports generated within the test run. Therefore, only one report file is created, but no information gets lost.
Regards,
Robert