TestRail integration

Integration app URL for the sync

Regarding Username and Password

  • Sharing separately

Setup

  1. Meke sure that you have created PersonalAccessToken from Autify
  2. Make sure that you enable API request on TestRail

Information required for synchronization and description

  • Autify API key

    • Personal access token (string) that can be created on the Autify user settings page
  • Autify Project ID

    • Autify Project ID (number)

  • TestRail API key

    • TestRail API KEY (string)

  • TestRail Project ID

    • TestRail synchronization destination ID (numeric)

  • TestRail Section ID

    • TestRail synchronization destination Section ID (number)

  • TestRail username

    • Email address (character string) set in TestRail

  • TestRail URL

    • TestRail URL used (string)

Feature Description

Troubleshooting

If you get this message, the following items may be incorrect:

  • TestRail API key
  • TestRail username
  • TestRail URL

In this case, you can easily check that the values ​​entered are correct:

macOS

Replace the part enclosed by with your own value and execute the following in the terminal:

curl -H "Content-Type: application/json" \
        -u "<TestRail username>:<TestRail API key>" \
        "<TestRail URL>/index.php?/api/v2/get_users"

Expected result:

[{"id":1,"name":"******","email":"*****","is_active":true}, {} ...]



Microsoft Windows

Replace the part enclosed by with your own value and execute the following in the powershell:

$base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f "<TestRail username>","<TestRail API key>")))
$headers = @{}
$headers.Add("Content-Type",'application/json; charset=utf-8')
$headers.Add("Authorization",("Basic {0}" -f $base64AuthInfo))
Invoke-WebRequest -UseBasicParsing -Headers $headers -Uri "<TestRail URL>/index.php?/api/v2/get_users"

Expected result:

StatusCode        : 200
StatusDescription : OK
Content           : [{"id":1,"name":"******","email":"*****","is_active":true}, {} ...]
RawContent        : HTTP/1.1 200 OK
                    Connection: keep-alive
                    Content-Length: 84
                    Content-Type: application/json; charset=utf-8
                    Date: Tue, 24 Dec 2019 06:35:29 GMT
                    Set-Cookie: tr_session=...
Forms             :
Headers           : {[Connection, keep-alive], [Content-Length, 84], [Content-Type, application/json; charset=utf-8], [Date, Tue, 24 Dec 2019 06:35:29
                    GMT]...}
Images            : {}
InputFields       : {}
Links             : {}
ParsedHtml        :
RawContentLength  : 84