Passing configuration information

Ask general questions here.
prasoon.jmit
Posts: 13
Joined: Mon Dec 09, 2019 1:37 pm

Passing configuration information

Post by prasoon.jmit » Wed Apr 01, 2020 10:31 am

Hi,

In my project i have two test suites

1. FirstTestSuite.rxtst

It has two configuration - FirstRun and SecondRun

2. SecondTestSuite.rxtst

It has also two Configuration - SanityRun and NormalRun

My requirement is

Scenario 1
From the command line i have to trigger FirstTestSuite.rxtsxt(Config- FirstRun) and then SecondTestSuite.rxtst(Config-NormalRun) in one shot.

Scenario 2
From the command line i have to trigger FirstTestSuite.rxtsxt(Config- SecondRun) and then SecondTestSuite.rxtst(Config-SanityRun) in one shot.

Please suggest how to achieve that.

Thanks,
Prasoon

User avatar
Stub
Posts: 384
Joined: Fri Jul 15, 2016 1:35 pm

Re: Passing configuration information

Post by Stub » Wed Apr 01, 2020 1:54 pm

We use MSBuild to run the tests EXE multiple times with different parameters each time. Maybe you can use different run sequence files, but I've no idea if they work with the command-line interface.

User avatar
N612
Posts: 135
Joined: Mon Jul 11, 2016 4:01 pm

Re: Passing configuration information

Post by N612 » Wed Apr 01, 2020 3:16 pm

prasoon.jmit wrote:
Wed Apr 01, 2020 10:31 am
Scenario 1
From the command line i have to trigger FirstTestSuite.rxtsxt(Config- FirstRun) and then SecondTestSuite.rxtst(Config-NormalRun) in one shot.

Scenario 2
From the command line i have to trigger FirstTestSuite.rxtsxt(Config- SecondRun) and then SecondTestSuite.rxtst(Config-SanityRun) in one shot.
Can you elaborate by "in one shot"? Generally, only one run config is used per execution, meaning you would have to execute twice to run both run configs. You can easily utilize a batch file to kick off both sequentially with different run configs (example below).
CLI: https://www.ranorex.com/help/latest/ran ... -execution

Code: Select all

MyTest.exe /ts:FirstTestSuite.rxtsxt /rc:FirstRun
MyTest.exe /ts:FirstTestSuite.rxtsxt /rc:NormalRun