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

2 posts, 0 answers
  1. Vishal
    Vishal avatar
    5 posts
    Member since:
    Jun 2013

    Posted 04 Sep 2013 Link to this post

    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
  2. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 09 Sep 2013 Link to this post

    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
Back to Top