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

How to run bat file with ArtOfTest.Runner.exe

4 Answers 143 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.
Totti
Top achievements
Rank 1
Totti asked on 17 Nov 2010, 08:01 AM
I cannot create bat file to run successfully  with ArtOfTest.Runner.exe as ArtOfTest.Runner.exe aii="C\test.aii" in the bat file ?
Do you have idea ?

4 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 17 Nov 2010, 10:05 PM
Hello Totti,

  your batch file is correct but it will only work after you set ArtOfTest.Runner.exe as an environmental variable.

 This blog describes how it's done: http://blogs.telerik.com/blogs/posts/10-07-01/a_look_under_the_hood_at_webui_test_studio_s_execution_engine_part_1_of_2.aspx

Setting the variable is a bit tricky - I never manage to do it right the first time so keep trying until you get it right.

After you're done open a CMD and write ArtOfTest.Runner.exe and press enter - doesn't matter what folder you're in. If CMD tells you it doesn't recognize the command it means you didn't set the environmental variable correctly. 

After you successfully run ArtOfTest.Runner.exe from CMD try running your bat file - it should work just fine now. If it doesn't try running it from CMD to see what error it returns.

Keep in mind that the path to the test you're trying to run must also be correct:
This is misspelled --> aii="C\test.aii" . It should be aii="c:\test.aii" 
My guess is you only misspelled this in the post but do make sure the path is correct. 

Try to get it to work and let me know if you're still having trouble with this or if you have any other questions! 
 

Regards,
Stoich
the Telerik team
See What’s New in WebUI Test Studio’s Q3 Release – Friday, November 19th, 2010 at 11am EST – Register Today!
0
Totti
Top achievements
Rank 1
answered on 18 Nov 2010, 07:32 AM
Thank for your answer.
The attached file is my bat file. I have setted environmental variable, but I cannot run test case from bat file whereas I run successfully manualy this one in command line.
0
Stoich
Telerik team
answered on 18 Nov 2010, 04:20 PM
Hello Totti,
 
    I'm sorry to hear you're still having trouble with this. I couldn't find any reason why this bat file wouldn't work especially since you state that you managed to run the command successfully from CMD. 

Could you please run the Bat file from CMD and post a screenshot of what happens. Maybe that will gives us some clue as to why the Bat file won't work. Thanks!

Sincerely yours,
Stoich
the Telerik team
See What’s New in WebUI Test Studio’s Q3 Release – Friday, November 19th, 2010 at 11am EST – Register Today!
0
Totti
Top achievements
Rank 1
answered on 20 Nov 2010, 04:29 AM
Thank for your helping,
I have detected issue's reason that my bat file must saves as ANSI format insteads of Unicode  as current.  
Tags
General Discussions
Asked by
Totti
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Totti
Top achievements
Rank 1
Share this question
or