Hi,
I am trying to get Ranorex to output the result of a test (pass or fail) along with a variable that will be a number (e.g. 49) to a simple text file, each on a separate line.
I think Ranorex is a great tool but I'm quite new to it so any help would be appreciated.
Thanks!!
Output test result (pass/fail) and a number to text file
-
- Posts: 8
- Joined: Wed Jul 03, 2013 11:21 am
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Output test result (pass/fail) and a number to text file
Hello,
I am not exactly sure what you want to do, but if you want to get the status of a test case you can use the following code snippet.
http://msdn.microsoft.com/en-us/library/6ka1wd3w.aspx
Regards,
Bernhard
I am not exactly sure what you want to do, but if you want to get the status of a test case you can use the following code snippet.
Ranorex.Core.Testing.TestCase.Current.StatusIn order to write your variable into a text file I would recommend to use the "System.IO" namespace of the .NET Framework. Please take a look at the link below.
http://msdn.microsoft.com/en-us/library/6ka1wd3w.aspx
Regards,
Bernhard