Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

How to: Show results from automated tests in Testy

Version 2.2+

Public API has been introduced in version 2.2.  API description is available here: http://almworks.com/testy/apidocs/v3/

We also introduced the Swagger UI, it is available via link like <You JIRA address>/rest/testy/3/rest-browser/. Our public demo JIRA instance is available at  https://demo-structure.almworks.com, so the URL for Swagger UI is https://demo-structure.almworks.com/rest/testy/3/rest-browser/ (you should be logged in JIRA first)


Older versions:

There was no public API,  but you can show your automated tests results in the structure using Structure API.

Here is how:

  1. Add issues representing your automated tests to your structure and manually create a test run.
  2. Find the Test Run ID. To do that, open the View drop-down menu -> Manage Views -> mouse over the view name -> Details -> Advanced -> Active Specification



  3. Find Issue IDs. To do that, add “#debug” to the structure board URL, refresh the page and add the Issue ID column.



  4. To send test results to Testy, send HTTP request of the following format:

    Info
    iconfalse

    POST <baseUrl>/rest/testy/1/run/<testRunID>/issue/<issueID>/status
    Content-type: application/json


    Content:
    { status: "PASSED" }
     

    Replace <baseUrl> with your JIRA url, <testRunID> and <issueID> with the numerical IDs of the test run and the issue respectively. Specify the test result (PASSED, FAILED, BLOCKED,SKIPPED or NONE) in the content part!



  5. To add notes, use the following HTTP request:

    Info
    iconfalse

    POST <baseUrl>/rest/testy/1/run/<testRunID>/issue/<issueID>/notes
    Content-type: application/json


    Content:
    {"notes":"note_text"}