This is a migrated thread and some comments may be shown as answers.

Not able to navigate to the application while running the Test List in Batch file

1 Answer 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vishal
Top achievements
Rank 1
Vishal asked on 04 Sep 2013, 10:52 AM
I have created a batch file for running a Test List. The Batch file executes and opens the Internet explorer but not able to navigate to the URL. It just moves to the next script in the list.

Batch File Code:

:BEGIN

cd/
cd "C:\Program Files (x86)\Telerik\Test Studio\Bin"
ArtOfTest.Runner.exe list="D:\Telerik Demo\TestLists\b. Add User, Create Library and folder.aiilist"

:END

1 Answer, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 09 Sep 2013, 11:04 AM
Hello Vishal,

Could you please first confirm that you are able to execute the following command without using the bat file:

ArtOfTest.Runner.exe list="D:\Telerik Demo\TestLists\b. Add User, Create Library and folder.aiilist"

If that fails executing I'll blame the name of the test list you are using.
After you verify you are able to execute your test list with the artoftest.runner.exe in the cmd you can add the Path to Environment Variables as shown in this article. This way you will eliminate the need of navigation to in your bat file:

cd "C:\Program Files (x86)\Telerik\Test Studio\Bin"

When this is done your next step will be to create your bat file containing the following command:

call ArtOfTest.Runner.exe list="D:\Telerik Demo\TestLists\b. Add User, Create Library and folder.aiilist"
 
Hope this helps.

Regards,
Ivaylo
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Vishal
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Share this question
or