Execution

Edited on December 14, 2016

Starting a test

A test starts with the execution of a Test Plan object. That's done by clicking the ► button in the corresponding view.

startTest.JPG

Executions overview

You are then taken to the Execution view of your currently executed test, where you can see the results and details of each test case and step. There are also controls which allow you to restart your execution and a navigation link to RTM, where the performance data can be browsed.

ExecutionOverview.png

And here the overview of the last executions on the instance:

 

ExecutionsOverview.JPG

REST API

On top of the local and manual execution through the UI, you can trigger the execution of an artefact remotely over http.

REST Endpoint :

http://localhost:8080/rest/controller/execution

Sample payload :

{"userID":"anonymous","description":"Demo_TestCase_HTTPGet","mode":"RUN","artefact":{"repositoryID":"local","repositoryParameters":{"repositoryId":"local","artefactid":"57dff41e867b323db18d222b"}},"exports":[],"customParameters":{"env":"TEST"}}

Scheduler

You can also use a cron style scheduling directive to execute artefacts periodically and automatically. You then need to insert a json descriptor to reference the artefact which needs to be executed and provide the necessary arguments.

Simply click the clock button in the test execution view and enter a cron expression.

scheduler.JPG

For example : 

0 0/5 * * * ?

Then you will find it in the Scheduler tab :

schedulerResult.JPG