Skip to content
On this page
[Integrations]

Jira

xtest connects to Jira Server and Data Center, and to Xray on it, with a token your workspace adds on the Integrations page. Every workspace connects its own Jira and sees only its own data. A project then reads its tickets, tests, executions and defects onto one board and one report, a test agent can read a ticket while it runs, and Xray tests import into the Test Library by API.

xtest keeps a copy of what your projects read from Jira and Xray, with its titles, descriptions, steps, comments and the names in it encrypted, so a board opens without reading Jira once its first sync completes; until then, and while Jira refuses the key or the connection is paused, a board reads Jira as before. The copy is brought up to date every day and when you press Refresh, deleted after 14 days of a refused key or a paused connection, and deleted when Jira is disconnected or an owner or admin turns off Keep a copy of tickets on the Integrations page.

Writing results back to Xray and filing defects in Jira is off by default. An owner or admin turns it on for a workspace on the Integrations page; until then xtest reads from Jira and writes nothing to it.

Testing a ticket

Run with a test agent on a ticket’s page or its board card opens Test Lab on the project’s device with the test agent for the ticket, which reads the ticket when you press Run, from Jira, or from xtest’s copy when the copy read it in the last ten minutes or Jira does not answer, with the results of its tests as the board shows them, and the run and its findings show on the ticket’s page. For an Xray test you imported into the Test Library, Test Lab offers that library test first. A run you start of a test imported from Xray is told its key and can read it too.

Bringing test cases in

From Xray by API: on a project's Tests tab, choose Import into xtest on any test, or use Import tests from Xray by API in the Test Library and paste the keys. The sheet reads each test's steps by key and shows them before you import. What lands is an ordinary test, linked to the Xray test it came from, with a notice to read its steps. Until you press Looks good on it, a test agent asks before opening a website an imported step names; after that the site counts as part of the test. Re-importing a test whose steps changed replaces them, clears any saved recording and brings the notice back; one whose steps did not change is left as it is.

From a spreadsheet: export from Xray, Zephyr or TestRail as Excel or CSV, then use Import from Excel or CSV in the Test Library. The columns are guessed from their headers and shown for you to correct, five fields are read, and the first few cases are previewed before anything is created:

  • Title, the only one required.
  • Steps, including the numbered kind that lives in one cell.
  • Expected result, priority and preconditions.

Up to 500 cases per file. What lands is an ordinary suite, so Run with a test agent works on it the moment it arrives: the first run works the steps out on a real browser and saves them, and later runs replay them at no AI cost unless a step needs the AI.

Sending tests to Xray

Export for Xray, in the Test Library’s menu, on a test’s row, on a test’s page and over the cases you tick, downloads the cases as the CSV Xray’s Test Case Importer reads for Manual tests: each case one Xray Test, one line per step, comma separated, UTF-8, up to 1000 tests a file. Cases imported from Xray are left out, so importing the file never makes a test twice. In Xray, open Test Case Importer, set the CSV delimiter to a comma and the encoding to UTF-8, and map each column to its field:

  • Test Case Identifier: Test Case Identifier, which groups a test’s lines (Issue Id on Xray Cloud).
  • Test Type: Test Type, on Xray Cloud only. It says Manual.
  • Summary: Summary, the case’s title.
  • Description: Description, its scenario and preconditions.
  • Priority: Priority, as Highest, High, Medium or Low.
  • Test Repository Path: Test Repository Path, a folder named for the xtest test. Tick Create folders to keep each test’s cases together (on Server and Data Center, with Hierarchical Test Organization on in Xray’s settings), or leave it unmapped and it is ignored.
  • Action, Data, Expected Result: the step’s Action, Data and Expected Result.
  • Labels: Labels, one label a column, so map each one. They are the case’s category and tags.

A cell that starts with =, +, - or @ has an apostrophe in front, unless it is a plain number such as -1, so a spreadsheet does not run it as a formula.

Getting a defect out

When the AI finds something wrong it records an issue with a title, a severity of critical, major or minor, the page it happened on, what it expected, what it got, and a screenshot. That is most of a bug report already. With write-back left off, read it from the run and create the ticket with your own script:

bash
curl https://xtest.io/api/v1/runs/RUN_ID -H "X-API-Key: xtest_live_…"

{
  "run": {
    "status": "failed", "statusWord": "Failed", "finished": true,
    "link": "https://xtest.io/dashboard?section=runs&run=…",
    "issues": [
      {
        "id": "…", "title": "Total ignores the discount", "severity": "major",
        "url": "https://…/checkout", "expected": "$18", "actual": "$20",
        "screenshot": "/api/v1/artifacts/…"
      }
    ]
  }
}

The link takes a reader straight to the run, with every step and screenshot, which is worth pasting into the ticket even when you copy the rest by hand.

With write-back on, xtest can hold a Jira bug only for a confirmed finding. A finding xtest measured itself, such as an accessibility rule that failed, is confirmed when it is found. One a test agent reported is confirmed once a verify run, which follows its steps again, saw it a second time, with the device answering the check of its expected result failed, or someone marked it Open; until then it is not filed. A finding a performance test agent reported naming a figure it measured, such as a largest paint of 4.1 s, or one an accessibility test agent reported naming the rule it breaks, such as color-contrast, after its rules ran, is never handed to a verify run, so it is confirmed only by someone marking it Open. An owner or admin approves each bug before it is sent.

What is not coming from us yet

No Jira Cloud connection yet, no Jira Cloud or Xray Cloud writes, no Jira app in the Marketplace, no webhooks (xtest reads when you open the board), and no creating new Xray Tests from xtest tests other than through the file above. If you need any of those, build them on the REST API and they will keep working.