How to run test cases seperately from an exe fıle ?

Ask general questions here.
rastek
Posts: 157
Joined: Wed Aug 06, 2014 12:00 pm

How to run test cases seperately from an exe fıle ?

Post by rastek » Wed Aug 06, 2014 12:04 pm

Hi,

I am new to Ranorex and I hope there are some experienced ranorex users out there to help me.

I run compiled exe files when running tests. When I start the exe file from the console it runs every test case in order, but I want to run specific cases only.

I created different test cases under a project in a solution and compiled into an exe file and tried this

myexe.exe -tc mycase

but it gies the error

....[Failure][TestSuite]: Could not find a test case with name or ID '.

I tried to write the case name in single and double quotes but did not work.

I dont know why it can not find my test cases ? any help ?

Thanks,

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: How to run test cases seperately from an exe fıle ?

Post by krstcs » Wed Aug 06, 2014 1:21 pm

Please have a look at the user guide, it has a lot of information that you will find helpful: http://www.ranorex.com/support/user-guide-20.html, specifically Lesson 4, under the section titled "Running Tests without Ranorex Studio".

The command-line switches are in the form "/<switch>" in most Windows programs, including Ranorex.

In your case, you want the switch "/testcase|tc:<name or guid of test case>".
Shortcuts usually aren't...