I am and trying to access the failure message (reason) as to why a particular test case failed (which appears in the report within the module section) and am running into limitations and wondered if anyone here has been successful with it.
Basically, I have a test suite with 3 test cases. There is a teardown method that emails us whenever that test case fails. This works perfectly. However I am limited to just the TestCaseNode.Current.Status and cant seem to find where to access the actual message which appears in the Module status such as:
00:00.229 Error Module
Failed to run application 'yourapp'.
The system cannot find the file specified
Show/Hide Stacktrace
at Ranorex.Host.RunApplication(String fileName, String arguments, String workingDirectory, Boolean maximized) at RanorexTeest.Recording2.Ranorex.Core.Testing.ITestModule.Run() in c:\Users\Administrator\Documents\Ranorex\RanorexStudio Projects\RanorexTeest\RanorexTest\Recording2.cs:line 83 at Ranorex.Core.Testing.TestModuleLeaf.RunInternal(DataContext parentDataContext)
Any workaround or solution is greatly appreciated
Retrieval of test case failure (not after suite finishes)
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Retrieval of test case failure (not after suite finishes)
Hi mxdotnet,
Unfortunately it is not possible out of the box to access these messages during the test execution, but I'd suggest attaching the report itself to the email. For this purpose, you could use our Ranorex to PDF converter.
Hope that would be a suitable workaround for you.
Regards,
Markus (S)
Unfortunately it is not possible out of the box to access these messages during the test execution, but I'd suggest attaching the report itself to the email. For this purpose, you could use our Ranorex to PDF converter.
Hope that would be a suitable workaround for you.
Regards,
Markus (S)