Executing Test Studio tests with Bamboo

Using the ArtOfTest.Runner.exe

In order to use ArtOfTestRunner.exe for executing your tests you will need to define new plan.

1.  Create new plan

Create new plan

2.  Configure the plan

Configure the plan

3.  Add tasks

  • 3.1.  Add new command task:

Add new command task

First step is to add new executable, it's path should be path to the Test Studio runner (ArtOfTest.Runner.exe). Default location of ArtOfTest.Runner.exe is "C:\Program Files (x86)\Progress\Test Studio\Bin"

Add new executable

To configure the task add following arguments:

list="PATH_TO_PROJECT\TEST_LIST_NAME.aiilist" out=${bamboo.build.working.directory} junitstep


test="PATH_TO_PROJECT\TEST_NAME.tstest" out=$bamboo.build.working.directory} junitstep

Command task

  • 3.2 Add new script task - Convert to NO-BOM task

Note: This task should be "Final task"

New script task

This step is needed, because Bamboo JUnit parser can't parse files encoded in UTF-8-BOM Reference: https://confluence.atlassian.com/bamkb/junit-parser-failing-to-find-or-parse-test-results-935372076.html

Source of the script:

Write-Output $env:WORKDIR;

Get-ChildItem $env:WORKDIR -Filter *.xml | 
Foreach-Object {
    $MyFile = Get-Content $_.FullName
    Write-Output $_.FullName;
    $Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding($False)
    [System.IO.File]::WriteAllLines($_.FullName, $MyFile, $Utf8NoBomEncoding)

Save the script in desired location. Add following Environment variable to the task:


Script config

  • 3.3 Add new JUnit parser task

Note: "This task should be Final task"

JUnit parser task

Specify custom results directories to be */.xml

JUnit config

In this article
Not finding the help you need? Improve this article