I just recently upgraded from Ranorex 3.3.3 to Ranorex 4.0.2. Our code is organized into 5 projects that are part of the same solution file. We do not use test suites to run tests. We do not have any recordings (all tests and methods are written as code)
When I run a "test" (basically a method, such as Navigation.ClickEachLink();), the report file (.rxlog) is being generated as I would expect, but if the test hits an exception and fails, screenshots are not being generated as part of the report file. When the same test is run under Ranorex 3.3.3, screenshots are included in the .rxlog and placed in the same directory as the .rxlog.
I'm also noticing that there are no .rxlog.data files being generated. I see from the release notes this is one of the big changes that is part of Ranorex 4.x. Will the .rxlog.data files be generated only if I'm running a test suite?
Here's how we're setting up the .rxlog:
Report.Setup(ReportLevel.Info, reportName, false);
Report.Start();
Report.Log(ReportLevel.Info, testName);
f.Run(TestTestByGroup.Rows, project, env, browser, fgtid, "", debug);
Report.End();
Since I'm getting the .rxlog file, obviously reporting is working.
What do I need to do to get screenshots on failures captured again?
Ranorex 4.0.2 screenshots not captured on errors
Re: Ranorex 4.0.2 screenshots not captured on errors
I encountered the same issue (probably) XmlLogger.LogData produces no output
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Ranorex 4.0.2 screenshots not captured on errors
Hi,
Regards,
Peter
Ranorex Team
This is a bug in this version with the old 2.x Report. We will fix this bug in the next version.let wrote:What do I need to do to get screenshots on failures captured again?
Regards,
Peter
Ranorex Team
Re: Ranorex 4.0.2 screenshots not captured on errors
i don't see any screen captured using report.screenshot() on 4.01
Thanks,
Thanks,
Tipu
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact: