TeamCity Test Execution

TeamCity installation

There are no specifics in installation of the TeamCity server. To be able to execute automated tests that include Windows and Browser interactions it is necessary to run build agent from command line.

Run the build agent

The build agent have to be started in a console mode. To complete that follow these steps:

1.  Locate the build agent's bin folder. The default is C:\TeamCity\buildAgent\bin.

2.  Open a command prompt window.

3.  Change to the bin folder you just located.

4.  Enter 'agent start'.

Configure TeamCity project

1.  Create new project

Create new project

2.  Create new build configuration:

Create new build config

3.  Add new command line build step

New build step

For "Build script content" enter: "PATH_TO_TEST_STUDIO_BIN_DIR\ArtOfTest.Runner.exe" test="C:\Users\deyan\Desktop\TestStudio\WebTest.tstest" out="C:\Users\deyan\Desktop\TestStudioResults" junitstep

Path to Test Studio runner

list="PATH_TO_PROJECT\TEST_LIST_NAME.aiilist" out="PATH_TO_RESULT_DIR"  junitstep

OR

test="PATH_TO_PROJECT\TEST_NAME.tstest" out="PATH_TO_RESULT_DIR" junitstep

4.  Add new Build Feature

New Build Feature

From drop-down list, select "XML report processing"

For report type select "Ant JUnit" and save build feature.

For "Monitoring rules" specify output directory from previous step and ad all xml files.

Example: C:\Users\deyan\Desktop\TestStudioResults*.xml

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy