4 Answers, 1 is accepted
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!
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
I have detected issue's reason that my bat file must saves as ANSI format insteads of Unicode as current.