How to run bat file with ArtOfTest.Runner.exe

5 posts, 0 answers
  1. Totti
    Totti avatar
    10 posts
    Member since:
    Sep 2010

    Posted 17 Nov 2010 Link to this post

    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 ?
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 17 Nov 2010 Link to this post

    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!
  3. Totti
    Totti avatar
    10 posts
    Member since:
    Sep 2010

    Posted 18 Nov 2010 Link to this post

    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.
  4. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 18 Nov 2010 Link to this post

    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!
  5. Totti
    Totti avatar
    10 posts
    Member since:
    Sep 2010

    Posted 19 Nov 2010 Link to this post

    Thank for your helping,
    I have detected issue's reason that my bat file must saves as ANSI format insteads of Unicode  as current.  
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!