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

Hudson Builder (or another build engine)

1 Answer 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aron
Top achievements
Rank 2
Aron asked on 27 May 2011, 10:44 PM
Hello,

We use  Hudson ver. 1.366 to CI Builds

Could someone please tell me the steps to take their Web UI Tests and integrate them into something like this. Or a similar product.
So each time they build the run the Web UI Tests

Thanks

1 Answer, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 28 May 2011, 02:50 PM
Hi Aron,
     there's definitely more than one way to do it. As far as I can remember the Hudson CI server has the ability to invoke CMD commands on a given machine. The Test Studio installation contains the ArtOfTest.Runner.exe. The runner is an application which will allow you to run tests from CMD. By default on Windows 7 64 bit the ArtOfTest.Runner.exe is here:
C:\Program Files (x86)\Telerik\Test Studio 2011.1\Bin\ArtOfTest.Runner.exe

For convenience you should add it as an Environmental variable as seen here:
http://blogs.telerik.com/christophereyhorn/posts/10-07-01/a_look_under_the_hood_at_webui_test_studio_s_execution_engine_part_1_of_2.aspx
Once you do that you'll be able to call the runner from CMD easily. Check out the different parameters that the runner can accept like list and test. You can see all the parameters by typing ArtOfTest.Runner.exe /? in CMD.
Let's say you have a test called MyTest and its location is c:\.

You can run that test from CMD with the following command:
ArtOfTestRunner.exe test="c:\MyTest.tstest"

You can create a batch file which invokes this command and you can have Hudson run this batch file once a build finishes.
This is once simple approach to integrating Test Studio tests with Hudson CI server.

All the best,
Stoich
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
General Discussions
Asked by
Aron
Top achievements
Rank 2
Answers by
Stoich
Telerik team
Share this question
or