Schedule

Schedule

Tests and Run Suites can be scheduled to execute at a certain time, instead of a Run ASAP model

When Scheduling, the user can choose if they want to schedule a test or a Run Suite

The User can also see a calendar showing the scheduled execution, filter by user, and also show in a list format

This page is also the place to cancel any execution that hasn't started yet

When scheduling the user can:

  • Select the Test/Run Suite
  • Select teh date/time
  • Select where to execute (User or Agent)
  • Set the recurrence settings (How often to repeat, and how many times)

Schedule from API

Run Suites can be triggerd to execute using the API

This allow integrations with CI/CD tools such as Jenkins

to trigger an execution, the API command is POST SERVERURL/rest/api/runsuite/{projectCode}/{userName}/{suiteKey} (example: http://127.0.0.10/rest/api/runsuite/DEMOPROJECT/SAMPLEUSERNAME/1)

  • projectCode is the project code where the Run Suite is
  • userName is the user name of the user (or agent) that will execute
  • suiteKey is the run suite key to execute

Run Options can be added as JSON in the message body, JSON Example { "JIRA_TestPlan":"PLAN", "JIRA_Component":"COMP", "JIRA_Project":"PROJ", "TFS_TestPlanId":"TFSTP", "TFS_SuiteId":"TFSS" }

The API Result will contains a JSON response with the Overall Status, Execution Key and all the Tests status

to verify the status of an execution, the API command is GET SERVERURL/rest/api/runsuiteexecutionstatus/{projectCode}/{executionKey}

  • projectCode is the project code where the Run Suite is
  • executionKey is the run suite execution key (this value is available in the response from the trigger execution call)

The API Result will be the same as the trigger execution call

suittest API

suittest supports some API calls to help with the management phase

These calls can be used for Scheduling (see Schedule) or Data modification

for Data Modification, the calls are:

  • UpdateApplication: this call will update values from the application
    • to trigger the call, the API command is POST SERVERURL/rest/api/updateapplication/{projectCode} (example: http://127.0.0.10/rest/api/updateapplication/DEMOPROJECT)
      • projectCode is the project code where the Application is
    • Body JSON Example