Report Data

Ask general questions here.
skhanpara
Posts: 101
Joined: Wed Apr 23, 2014 3:55 pm

Report Data

Post by skhanpara » Mon May 26, 2014 2:40 pm

Hi Everyone


Where is report data saved in ranorex in ranorex?
Can i retrieve the all test value after the test excution?

Thank You
Sunny Khanpara

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Report Data

Post by Support Team » Tue May 27, 2014 12:50 pm

Hi skhanpara,

Usually the report data file is saved in the debug folder of your Ranorex solution after building it.

Code: Select all

../Solution/bin/Debug
I'm afraid that I do not understand your second question correctly. May I ask you to rephrase it?
What is meant by “All test value”?

Regards,
Robert

skhanpara
Posts: 101
Joined: Wed Apr 23, 2014 3:55 pm

Re: Report Data

Post by skhanpara » Tue May 27, 2014 5:04 pm

i wan to save all the data displayed on Report to Excel sheet
I have the code ready but i have to manually type the contain of the report at each step

When are the data of the report saved(Time, Level,Category, Message).
Id yes, How can i call those values.


Thank you

skhanpara
Posts: 101
Joined: Wed Apr 23, 2014 3:55 pm

Re: Report Data

Post by skhanpara » Thu May 29, 2014 4:38 pm

when we record any event it is saved using Report.log(time, level, cat, message)
can we call any of the parameter in between of testing?

if yes how

Thank you

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Report Data

Post by Support Team » Fri May 30, 2014 1:55 pm

Hello skhanpara,

Ranorex itself doesn’t provide the functionality to save report data to an Excel sheet. You will need to implement a wrapper or a similar mechanism/method in order to save the data to the Excel sheet.

The data is saved per default to the report every 30 seconds. Please use the “Auto Save Interval” within the TestSuite properties in order to change the interval.
AutoSaveInterval.png
May I ask you to explain the scenario which requires access to the report information during runtime?

Regards,
Robert
You do not have the required permissions to view the files attached to this post.

skhanpara
Posts: 101
Joined: Wed Apr 23, 2014 3:55 pm

Re: Report Data

Post by skhanpara » Fri May 30, 2014 2:37 pm

Thanks for the reply

I want to fetch the data at the end for export it to my excel sheet
i know how to export it to my excel sheet. I have written a code which is working
but i am doing it manually by adding single test case every single step

Is there anyway i can call them all at once at the end to upload it all at once?


Thank you

skhanpara
Posts: 101
Joined: Wed Apr 23, 2014 3:55 pm

Re: Report Data

Post by skhanpara » Fri May 30, 2014 7:46 pm

what i basically want to do

I want to transfer the data in excel file after all the execution is finished i.e last step is to transfer data to excel sheet.
That why i want to fetch data at once is there any special method to do it?

thank you

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Report Data

Post by Support Team » Wed Jun 04, 2014 4:03 pm

Hello skhanpara,

You can either use the log data method from the IReportLogger in order to log the messages to Excel using your own writing mechanism. The topic "How to implement a custom Report Logger" can be found several times within our forum. Or you can iterate over the so-called “Activity Stack” as partly explained here at the end of your test in order to retrieve the logged data.

Please note that we do not recommend using undocumented API and do not guarantee for any side effects. Additionally, we preserve the right to change internal methods at any time.

Regards,
Robert

skhanpara
Posts: 101
Joined: Wed Apr 23, 2014 3:55 pm

Re: Report Data

Post by skhanpara » Thu Jun 12, 2014 3:50 pm

Thanks
It really helped