Header
(8.3.1) Team City
Team City Configuration
Once TeamCity.exe and JRE/JDK are installed successfully, Team City is now ready for further configurations.
- Access the Team City URL and log on to TeamCity using your credentials.
- Click the Create project button and Select Manually using the drop-down list.
- Enter the Name, Project ID, and Description.
- Click Create.
- In the Build Configurations section, click the Create build configuration button and select Manually using the drop-down list.
- Enter Name and system updates the Build ID accordingly.
- Enter Description, if any.
- Click Create.
Build is now successfully created and you can proceed to configure Version Control Settings (VCS). - Click the project name on the top of the screen to view Project Settings.
- Click the Edit link adjacent to the build configuration created by you.
General Setting screen is displayed. - In the Artifact Paths field, type %env.qualitiareportpath%/**/* => Report.
- Click Save.
- In the left pane, select Version Control Settings and click Attach VCS root button.
- In Type of VCS, select Subversion using the drop-down list.
- Enter VCS root name. VCS root ID is populated automatically.
- In the URL field, enter the SVN URL up to the parent folder where offline package is uploaded.
Offline Package includes Offline.jar, all the other required files for Offline execution, and XML folder. - Enter SVN Username and Password.
- Click Test Connection to test the SVN connection, and click Create.
- In the left pane, select Build Steps.
- Click the Add build step button.
- In the Runner Type field, select Command Line using the drop-down list.
- Enter Step name as per your requirements.
- In the Run field, select Custom Script using the drop-down list.
- In the Custom Script field, enter cd %teamcity.build.checkoutDir% and java -jar <qualitiaofflineJarFileName>.jar
- Click Save.
- In the left pane, select Parameters.
- Click Add New Parameter.
- In the Kind field, select Environment variable using the drop-down list.
In the Name field, enter env.qualitiareportpath.
Do not enter any value in the Value field.
- Click Save.
Execute and View Report
Once you are done with Build configuration settings, you can proceed to execute your test cases.
- Open the project and build you want to execute from the project's list.
- Click the Run button located at the top right corner of the screen.
- To check logs, click the in progress builds, and go to build logs section.
- Once the build is complete, you can see Build finished at the end in the Build Log section.
- In the Artifacts section, click the SummaryReport.html to view the report.
You can even pass arguments and execute same test case with different parameters on different agents simultaneously.
- To pass different parameters on different agents simultaneously, access the Build steps section.
- Edit the Execute Parameter step.
- Add arguments with data followed by SPACE.
Here is an example of how to update the field value along with parameters and the syntax to be used, if the arguments value itself has space.
<path updated in the field>CaptureFailBitMap=False CapturePassBitMap=FalseCreateErrorLog=False sbrowsertype=firefox "xmlPath=f:\\TeamcityOffline
NewExec XMLs" ReleaseNum=2.01 ProjectName=offlinepack LogPath=argreport123
Note: Argument with value consisting space is updated within double inverted comma ("").
Configuring Offline Package to Push Results into the Report Database
You can configure the offline package to push the test execution reports into the report database after the test suite execution. This eliminates the manual process of importing offline package execution results in Qualitia automation studio (Reports section).
Importing these reports automatically into the automation studio will also enable Qualitia user to view test execution results from the web-based dashboards.
Prerequisites:
- In order to push results, the machine which you are using to trigger the test case execution must have access to the machine where Qualitia Server is installed.
- You must have access to port 8887 from the machine where Qualitia Server is installed.
To configure Qualitia offline package to push results into the report database:
- Open the extracted Qualitia Offline folder of the associated offline package.
- From the Config Utility folder, open the Qualitia Offline Configuration Manager.
- On the Setting tab, enter the Qualitia Server URL address.
Footer