"Open report after execution" does not work

Bug reports.
bkruse
Posts: 39
Joined: Tue Jul 20, 2010 12:19 pm

"Open report after execution" does not work

Post by bkruse » Tue Dec 18, 2012 4:42 pm

Hi,

after upgrading to Ranorex 4, the "Open report after execution" is not working anymore.
Previously, the report popped up in Ranorex Studio once the run was complete.

Now it does not. Tools > Options > Tools > Ranorex Report Viewer > Open report after execution is checked.
I also disabled it, hit Ok and re-enabled it, to no success.

Due to SVN, the Option "Automatically copy/move report files to the project reports directory" is disabled.
Directly after upgrading (and migrating the Ranorex Projects) the SVN had an error (on "Commit"), but that cleared after I manually commited the changes to SVN via Tortoise/Windows Explorer.

In the output folder, the *.rxlog file is written.
We use a custom Stylesheet and logFileName is just a string:

Code: Select all

			// set a custom stylesheet for the default XML report  
			XmlLogger.SetReportStylesheetFile("Modules\\CustomStylesheet.xsl");
			
			// append to an existing file with the same name
			Report.Setup(ReportLevel.Debug, logFileName, true);
Any ideas?

best regards,
Björn

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

Re: "Open report after execution" does not work

Post by Support Team » Wed Dec 19, 2012 3:11 pm

Hello,

We have changed custom reports in Ranorex 4.0.
Could you please verify if you get a warning message as shown in our User Guide?

Regards,
Markus (T)

bkruse
Posts: 39
Joined: Tue Jul 20, 2010 12:19 pm

Re: "Open report after execution" does not work

Post by bkruse » Wed Dec 19, 2012 3:32 pm

Hi,

just checked, there are 0 Errors, 0 Warnings, 0 Messages (even after a Solution > Clean Solution followed by Solution > Build Solution).

Can I manually open this Resolve Dialog?

regards, Björn

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

Re: "Open report after execution" does not work

Post by Support Team » Thu Dec 20, 2012 11:26 am

Hello,

It is not possible to get this dialog without the warning.
Please update to our current version 4.0.1 (Download) and let me know if it fixes your issue.

Regards,
Markus (T)

bkruse
Posts: 39
Joined: Tue Jul 20, 2010 12:19 pm

Re: "Open report after execution" does not work

Post by bkruse » Thu Dec 20, 2012 7:37 pm

Nope, still the same as described above, didn't notice any change.
Project/Solution originates in Ranorex 2.3, was converted with Ranorex 3 and now to 4.
Does that matter?

regards, Björn

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

Re: "Open report after execution" does not work

Post by Support Team » Fri Dec 21, 2012 4:25 pm

Hi,

Do you have considered the points mentioned on the following link?
Working with 2.X Projects in 3.X Test Suites
Did it work with 3.X?
Is the report generated after the test finished, I mean can see a rxlog file in the output directory of your project?

Regards,
Markus

bkruse
Posts: 39
Joined: Tue Jul 20, 2010 12:19 pm

Re: "Open report after execution" does not work

Post by bkruse » Fri Dec 21, 2012 5:03 pm

Hi,

yes.
Yes.
Yes.
(It was working for months in Ranorex 3, just after installing 4 (and 4.01) it does not work anymore.)
The rxlog file is generated correctly in the output (bin/Debug) folder. Sure I can open it from there.

Strange:
- a brand new project in R4, with the same custom logging, does open the standard Ranorex Report (not the custom one. Both are generated in bin/Debug)
- my old project, even when I comment out the custom loggin, does NOT open the Ranorex Report

Maybe I should post my little project?

Thanks for the keep-up,
Björn

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

Re: "Open report after execution" does not work

Post by Support Team » Fri Dec 21, 2012 5:30 pm

Hi,

Okay that's weird!
Yes please, you could post it here or you could also send it to [email protected].

Regards,
Markus

WorkTech
Posts: 15
Joined: Tue Jan 08, 2013 5:55 pm

Re: "Open report after execution" does not work

Post by WorkTech » Fri Jan 11, 2013 6:50 pm

Markus,
This is the exact issue we are having here at WorkTech.
After running the 4.01 upgrade, when we run a test, and the report should open at the completion of the test.
As suggested in previous posst we have checked the IE settings and have reinstalled the application with NO CHANGES.
This is really putting our testing behind.
I have even created a new test case in my new install and still no change.
I'm considering reinstalling 3.3.1

Larry

bkruse
Posts: 39
Joined: Tue Jul 20, 2010 12:19 pm

Re: "Open report after execution" does not work

Post by bkruse » Fri Jan 11, 2013 7:03 pm

Hi,

a workaround for us is to use both, Report.Setup(...) and TestReport.Setup(...)

That way both (Ranroex 2 style and Ranorex 4 style) reports are generated to bin/Debug and the Ranorex 4 report is opened after execution.

Code: Select all

Report.Setup(ReportLevel.Debug, logFileName, true);
TestReport.Setup(ReportLevel.Debug, logFileName.Replace(".rxlog", "_new.rxlog"), true);
maybe that helps,
Björn

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

Re: "Open report after execution" does not work

Post by Support Team » Thu Jan 24, 2013 6:31 pm

Hi,

This will be fixed with the next Ranorex version.
The 2.X report will be opened automatically after test execution.

Regards,
Markus

sauer-peters
Posts: 19
Joined: Wed Mar 14, 2012 9:20 am

Re: "Open report after execution" does not work

Post by sauer-peters » Thu Feb 14, 2013 11:25 am

Hi Ranorex Team,
I just updated to Ranorex 4.0.2 from 3.3.4 and I'm facing the same issue as descibred above.
The report does not open automatically after running a test in RnxStudio. The report is created and I can open it manualy from the defined output directory (which is not bin/debug but a relative path defined in projects settings like ../../../runtime-uitest).

In the last post (Jan 24) you anounced that this will be fixed in the next version which was released Jan 30.
I also found this in the 4.0.2 release notes "Fixed Ranorex 2.X style reports not being opened automatically after automation has finished".

But it seems that this problem is still there in version 4.0.2.21666.

Regards,
Sebastian

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

Re: "Open report after execution" does not work

Post by Support Team » Mon Feb 18, 2013 12:52 pm

Hi,

It should be fixed with 4.0.2 and I also checked if it works and in my case on may machine it works as expected, the old report was automatically opened after the execution.
In order to reproduce the issue could you send us a small sample solution where we can see the described behavior?

Thanks,
Markus

Jens
Posts: 1
Joined: Mon Mar 11, 2013 12:41 pm

Re: "Open report after execution" does not work

Post by Jens » Mon Mar 11, 2013 12:45 pm

Hi,

Unfortunately this problem still exists.
We are currently evaluating Ranorex 4.0.2.21666.
Thus all tests and reports have been created in 4.0.2.
Are there any news how to fix this issue?

Thanks,
Jens

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

Re: "Open report after execution" does not work

Post by Support Team » Tue Mar 12, 2013 2:40 pm

Hello,

It should work with Ranorex 4.0.2. Could you please check if the setting 'Open report after execution' is checked in 'Options/Ranorex Report Viewer'?

Do you use the old Ranorex 2.x Style?
Do you use Report.Setup() somewhere in your test?

Is it possible to send us a small sample application that shows this behavior?
Thank you in advance.

Regards,
Markus (T)