Hi there
I'm trying a Ranorex Console Application, and from command line launch I'd like to pass in the name of the contained recording to run.
Within the program.ca file's main method - the names comes in as a String type (and as such it does not have a Start method).
I'm thinking that I need to cast the passed in name "recording1" to a Ranorex Recording type so that if has a start() method. A code snippet sure would be helpful as I'm not getting too far with code assist.
Thanks
Brent
Ranorex Console Application - pass in name of recording
-
- Certified Professional
- Posts: 23
- Joined: Wed Jun 25, 2014 11:59 am
Re: Ranorex Console Application - pass in name of recording
Hi,
1. You can use the following command line parameters
3. You can write pure C# code, instead of recording and incorporate nUnit as described here http://www.ranorex.com/blog/using-nunit ... -execution
1. You can use the following command line parameters
2. You can use the Ranorex Test Suite Runner, mark V on the cases you wish to run, compile and than run the EXE. It will only run the test cases marked with Vtestcase|tc:<name or guid of test case>
Runs this test case only.
testsuite|ts:<path to test suite file>
Runs the test cases defined by the test suite (rxtst) file.
3. You can write pure C# code, instead of recording and incorporate nUnit as described here http://www.ranorex.com/blog/using-nunit ... -execution
-
- Certified Professional
- Posts: 23
- Joined: Wed Jun 25, 2014 11:59 am
Re: Ranorex Console Application - pass in name of recording
Hi
The project Ranorex Console Applciation does not have a test suite within it (no *.rxtst) to run.
Just wondering if there is a means to cast string to type Ranorex recording (or something similar).
Thanks
The project Ranorex Console Applciation does not have a test suite within it (no *.rxtst) to run.
Just wondering if there is a means to cast string to type Ranorex recording (or something similar).
Thanks
Re: Ranorex Console Application - pass in name of recording
So, my question would be why did you create a .NET Console Application solution instead of creating a Ranorex Test Suite solution when you are trying to run tests? I'm not sure I understand the logic.
If you are going to run tests then you should be using Ranorex's built-in test solutions. A console application is not designed for running Ranorex tests.
If you are going to run tests then you should be using Ranorex's built-in test solutions. A console application is not designed for running Ranorex tests.
Shortcuts usually aren't...
Re: Ranorex Console Application - pass in name of recording
If you could share the code, i will understand better.brentmclauclan wrote:Hi
The project Ranorex Console Applciation does not have a test suite within it (no *.rxtst) to run.
Just wondering if there is a means to cast string to type Ranorex recording (or something similar).
Thanks
I really think it's something simple, but can't tell without the code