Correct me, if i wrong, but I see following behavior in Ranorex 2.3.5.10317:
I start my automation script, let it work for sometime, and then press stop button in Ranorex Studio.
Problem is, that all LOG entries are lost at this point and i can't see, what was going on.
LOG entries getting lost, when i stop script
Re: LOG entries getting lost, when i stop script
It could be that the log was not closed properly because you manually stopped the script.
Check the location of that the log file is supposed to exist and see if the file is there with a .tmp extension on it. If so, remove the .tmp extension so that the .xml or .rxlog extension is there. You should be good to go in this cause if indeed it is the issue.
Check the location of that the log file is supposed to exist and see if the file is there with a .tmp extension on it. If so, remove the .tmp extension so that the .xml or .rxlog extension is there. You should be good to go in this cause if indeed it is the issue.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
Re: LOG entries getting lost, when i stop script
Nope, can't see anything in "Reports" folder of my project. That 's where i see all LOG files and screenshots stored.
Re: LOG entries getting lost, when i stop script
Hmmm, I don't use Ranorex Studio but I assume it works the same way as in Visual Studio...
Did you or anyone happen to change where the log is getting saved to? Do you use the Report.Setup method?
Ummm, shots in dark here: rights issue? Are you working on a different machine than before where it worked previously? Hard drive space issue? Not sure how Ranorex reporting supports the cases above, I would assume it would throw an exception but I am not positive of that.
Maybe use the Report.Setup method and purposely change where the report is getting saved. I have my own method that sets the LogFile variable to a Time/Date/ScriptName stamp so I never can run into a case that an existing logfile may be overwritten.
Hope you can figure it out, but I've never seen where a log file just disappears...
Did you or anyone happen to change where the log is getting saved to? Do you use the Report.Setup method?
Code: Select all
Report.Setup(ReportLevel.Debug, LogFile, true);
Maybe use the Report.Setup method and purposely change where the report is getting saved. I have my own method that sets the LogFile variable to a Time/Date/ScriptName stamp so I never can run into a case that an existing logfile may be overwritten.
Hope you can figure it out, but I've never seen where a log file just disappears...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: LOG entries getting lost, when i stop script
Have you every experienced a different behavior with another Ranorex version before?slavikf wrote:Correct me, if i wrong, but I see following behavior in Ranorex 2.3.5.10317:
It is indeed true that the report will not be shown when you press the "Stop Process" button in Ranorex Studio (not the "Stop" button in a recording which does show the report). The reason is that you kill the executed automation process and the process has no time to finish renaming the temporary report file to its final name.slavikf wrote:I start my automation script, let it work for sometime, and then press stop button in Ranorex Studio.
Problem is, that all LOG entries are lost at this point and i can't see, what was going on.
So, what you can do is navigate to the place where your report file is stored (usually the same directory the executable is located in, e.g. the output folder when using Ranorex Studio) and you should find the temporary report file (*.tmp file extension) there. Just rename the "tmp" file extension to "rxlog" and you should be able to view the report.
Regards,
Alex
Ranorex Team
Re: LOG entries getting lost, when i stop script
No, i didn't work with any previous versions.Support Team wrote:Have you every experienced a different behavior with another Ranorex version before?
Hm, that can be good candidate for feature request: Ranorex should save/recover LOG file, when "Stop Process" button pressed.Support Team wrote:It is indeed true that the report will not be shown when you press the "Stop Process" button in Ranorex Studio (not the "Stop" button in a recording which does show the report). The reason is that you kill the executed automation process and the process has no time to finish renaming the temporary report file to its final name.
No, i didn't use Report.Setup method.Ciege wrote:Do you use the Report.Setup method? Hard drive space issue? Not sure how Ranorex reporting supports the cases above, I would assume it would throw an exception but I am not positive of that.
Hope you can figure it out, but I've never seen where a log file just disappears...
No, it's not Hard disk space issue.
Yep, found it in DEBUG folder of my project. Thank you.Support Team wrote:So, what you can do is navigate to the place where your report file is stored (usually the same directory the executable is located in, e.g. the output folder when using Ranorex Studio) and you should find the temporary report file (*.tmp file extension) there. Just rename the "tmp" file extension to "rxlog" and you should be able to view the report.
Would be nice, if Ranorex would do it for me.