Experimental: Xray Cloud only. Specwright can connect an existing
playwright-bddworkspace to Xray Cloud from inside VS Code. It is suitable for trying the workflow with a Jira/Xray trial tenant, provided your account can access the project you use. Because some actions create or update remote records, use a disposable project for your first evaluation and review each confirmation carefully.
Traceability starts with tags in your .feature files. Specwright uses them to show mapped and untraced scenarios, sync Xray metadata, run your tests locally, and optionally publish their results. It does not run tests in Jira or Xray; tests always run through your local Playwright setup.
The guide labels actions by where their effects go.
| Action | Data boundary | What it does |
|---|---|---|
| Review local mappings, change grouping, edit tags, or clear local run history | Local only | Changes VS Code state or your workspace files. It does not modify Xray or Jira. |
| Connect, test the connection, sync, search for a test, or load accessible projects | Local storage + remote read | Stores credentials in VS Code Secret Storage when connecting, then uses Xray Cloud and, where configured, Jira APIs without creating or updating records. |
| Link an existing test | Local write | Adds or removes an @TEST_… tag in the local .feature file. Searching for the test may read remote data, but the link itself does not change the remote test. |
| Create a test, push Gherkin text, create a Test Set, Test Plan, or Test Execution, publish results, or upload attachments | Remote change | Creates or updates Jira/Xray data after an explicit confirmation. |
You need:
- An existing workspace with Specwright and
playwright-bddalready configured. See running tests if the project itself is not running yet. - An Xray Cloud API client ID and client secret.
- Your Atlassian site host, such as
example.atlassian.net, and the Xray API region for that site:global,us,eu, orau. - Access to the Jira project you intend to read or change. The precise permissions depend on your Jira/Xray configuration.
Jira access is optional but recommended. Add a Jira email and API token when you want Specwright to list accessible projects, search existing executions or plans, or upload attachments to a Jira issue. Xray authentication still uses the Xray client ID and client secret; it does not use your Jira password.
Do not put either secret in settings.json, .feature files, screenshots, or source control. Specwright stores the Xray and optional Jira credential pairs in VS Code Secret Storage. Disconnect from Xray removes the stored pairs for the current site; it does not delete any remote tests, executions, or attachments.
- In the Command Palette, run Specwright: Connect to Xray. You can also select Set up Xray in the disconnected Traceability panel.
- Enter the site host, Xray client ID, and client secret. Use a host such as
example.atlassian.net; a scheme or trailing slash is normalized, but paths and ports are not valid. - Set
playwrightBddRunner.xray.apiRegionto the region that matches your Xray Cloud tenant. The default isglobal. - Optionally enter both a Jira email and Jira API token. Leave both fields blank if you do not need Jira project discovery, target search, or issue attachments.
- Choose Save & Test Connection.
The connection test authenticates with Xray and, when the workspace already contains test tags, probes their metadata. With Jira credentials, it can also show the projects your account can access. It does not create or update remote records.
Later, use Specwright: Manage Xray Connection to update credentials, test the connection, disconnect, or open the relevant settings.
You can evaluate the integration without creating any remote data:
- Connect and test the connection.
- Set a disposable project as the default project, or add it to
xray.syncProjectKeys. - Add a tag for a known existing test, or open the Coverage Board and sync that project.
- Link a scenario to an existing test. This writes only the local tag.
- Run Run Locally and Publish…, inspect the local result summary, then cancel the Publish tab instead of choosing Publish.
At that point you have tested connection, mapping, local execution, and result capture. Move on to creating remote tests, executions, or attachments only when you are ready for those remote changes.
Use a test tag to map one executable Gherkin unit to an Xray test. Use a requirement tag when you want the Coverage Board's Matrix to show a local requirement-to-test-to-scenario relationship.
@TEST_DEMO-123 @REQ_DEMO-9
Scenario: A signed-in customer can place an order
Given a signed-in customer
When they place an order
Then the order is confirmedBy default:
@TEST_DEMO-123maps the scenario to the Xray test with keyDEMO-123.@REQ_DEMO-9marks the scenario as covering the requirement keyDEMO-9.
The prefixes are case-insensitive and keys are normalized to uppercase. A valid key has the usual Jira form, such as DEMO-123; project parts may contain letters, digits, underscores, or hyphens. The settings hold the prefix without @: use TEST_, not @TEST_.
Put one test tag directly on the Scenario, Scenario Outline, or Examples block it represents. Specwright warns when one unit has multiple test tags, or when the same test tag is applied to more than one unit. Those mappings are ambiguous for publishing.
Feature-level test tags are inherited by every scenario in the feature. Avoid them unless the feature contains exactly one executable unit. Tags on Rule: and Background: are not used for traceability; place the tag on the scenario or Examples block instead.
For a Scenario Outline, an outline-level test tag maps the whole outline to one Xray test. A test tag on a particular Examples: block maps that block separately. Specwright does not create one Xray test per example row. See Scenario Outlines in Xray for how an outline is created, pushed, and published.
Changing a local tag updates the local mapping automatically. It does not require a remote sync and does not change Xray.
Open the Specwright view in the Activity Bar, then open Traceability. Its three tabs separate local mapping from remote organization:
- Workspace contains the existing by-test or by-feature-file grouping, local mappings, untraced scenarios, available remote tests, and run badges.
- Repository mirrors each synced project's read-only Xray Test Repository folders. A folder preview includes mapped scenarios from that folder and every descendant folder, with duplicates removed. A partial or empty catalogue has no run action.
- Test Sets lists read-only remote Test Sets with their summary, remote member count, locally runnable scenario count, remote-only count, and expandable members.
Workspace shows:
- Untraced scenarios: local scenarios without a valid test tag.
- Mapped tests: local scenarios grouped by their Xray test key.
- Available Xray tests: synced tests in a catalogued project that no local scenario maps to.
- Local run badges, plus synced remote summaries and status where available.
The panel keeps the last synced snapshot locally. It does not continually poll Xray. When the cache reaches playwrightBddRunner.xray.cacheTtlMinutes, it is marked stale; it remains display-only until you run Specwright: Sync Traceability again.
Repository and Test Set reads use the same project sync scope and offline cache identity as metadata: Xray endpoint, account, and workspace. An ordinary sync intentionally bounds projects and Test Set hydration, and reports omitted projects instead of implying complete coverage. Large membership lists are marked incomplete instead of being presented as exact. Previously cached member details can remain visible after a partial sync, but are marked last-known and incomplete. Choosing Run Set and publish refreshes that one Test Set to exact membership before showing confirmation. If refresh fails, is cancelled, remains incomplete, exceeds the supported limit, or resolves to no local scenarios, nothing runs.
Use Select Projects to Sync to choose which projects Sync refreshes:
- Sync refreshes the checked projects, including their catalogues and locally tagged test keys. Unchecked projects are excluded, even if they appear in local tags, an earlier sync, or the board's View project selector.
- Accepting the picker saves the checkboxes to
playwrightBddRunner.xray.syncProjectKeys, including when you accept the initial selection unchanged. Clearing every box saves an empty list and makes ordinary Sync fetch nothing. - Before a selection is saved, the scope is derived from your test and requirement tags,
playwrightBddRunner.xray.defaultProjectKey, and projects an earlier sync already catalogued. Reset the setting at each configured settings scope to restore this automatic behavior.
Run Specwright: Select Projects to Sync from the Command Palette, the connection row of the Traceability panel, or Select projects... next to Sync on the Coverage Board. The picker lists projects your connection can reach, plus those named by your tags, default project, and earlier syncs. The saved selection applies to Sync from the board, panel title, and command palette.
The Coverage Board loads a newly selected project automatically when connected and schedules one quiet, forced project sync after a remote create is confirmed. Both still work under a pinned list: a sync asked for one project by name fetches that project for that run only, and the pinned list stays as written. That post-create sync keeps a newly tagged scenario from remaining not found on remote until a manual refresh. Sync Traceability remains the on-demand refresh. A remote test is shown as available only after Specwright has completed that project's catalogue sync; an incomplete project catalogue never drives a claim that a test is unlinked. A successful direct lookup can still identify a tagged key that is missing remotely.
The Mapping toolbar keeps Sync available whenever no board mutation or sync is active. Its two columns scroll independently: Untraced is on the left, while Available and Mapped share the right column. Their action rows remain pinned. Available and Mapped can be collapsed, and the board restores those choices after reload.
Run Specwright: Open Coverage Board from the Command Palette or the Traceability panel toolbar. The board remains entirely inside VS Code.
| Tab | Purpose |
|---|---|
| Mapping | Link untraced scenarios to synced Xray tests, create tests from selected scenarios, create a Test Set or Test Plan from selected tests, push scenario text, and remove a local link. |
| Matrix | Review the requirement, test, scenario, tag, and latest local result relationships. Empty cells show coverage gaps. |
| Executions | Groups this workspace's local create and publish activity under each Test Execution. Expand or collapse a parent to inspect its history. This is not a complete list of executions in Jira. |
| Publish | Select a completed local run and create a new Test Execution or append results to an existing one. |
Use the View project selector at the top of the board to choose the project the board works in. It narrows what the board shows, loads that project, and is the target for create and publish actions. Later ordinary syncs follow the checked project list. Use Select projects... next to Sync in the Mapping toolbar to change that list.
The Matrix shows one page of rows at a time. Use its Prev and Next controls to reach later rows, or use the board search to filter all synced results before paging. A feature file can appear on more than one page; its Matrix group count shows rows on the current page.
In Mapping, select Open story on a scenario or test card to open that story in the tracker. Scenario tags and synced test coverage provide the keys.
There are two local-linking workflows:
- In Mapping, drag an untraced scenario onto an available or mapped test. You can also drag an available test onto an untraced scenario.
- In the Traceability panel, select Link Scenario to Test on the scenario row. The picker can use synced tests and, when available, search Xray for a test.
Confirming an existing test inserts its @TEST_… tag into the local feature file. Unlink removes only that local test tag. Neither action edits the remote Xray test.
For an unlinked scenario, the same picker can offer Create new Xray test from this scenario. Choose Create only, or optionally add the new test to an existing Test Set, Test Plan, or both. Enter exact keys in the same project; Specwright resolves every chosen target before the final confirmation names the project, site, scenario, and targets. Confirmation creates one Cucumber test with the scenario name and current Gherkin, then Specwright inserts the returned @TEST_… tag and refreshes its metadata. Cancelling setup or confirmation creates nothing. If Xray creates the test but does not return a key, or the local tag cannot be written, Specwright reports the remote test without claiming it linked the scenario.
These actions make remote changes and always ask for confirmation:
- Create tests creates one Xray Cucumber test for each selected untraced scenario. The scenario name and its current Gherkin are sent to Xray, then Specwright adds the returned test tag locally. See Scenario Outlines in Xray for what is left out of the text that is sent.
- The Test Set and Test Plan icon pairs create a new container or add the selected tests to an existing one. Hover an icon to see its current action and state. Adding to an existing container asks for its exact key, verifies that it is the expected container type in the selected project, and names the key, project, site, and selected count before writing.
- Create Execution creates an empty remote Test Execution in the selected project. It has no results until you publish a run to it later.
Create tests offers the same optional existing Test Set and Test Plan choices as single-scenario creation. Each chosen target receives one membership request containing the issue IDs returned by the successful creates. Membership does not wait for sync. An association failure keeps the created tests and local tags and reports the failed target separately. Missing returned IDs are named; unreadable added counts and cancellation after a request starts require inspecting the target before retrying. Cancellation or an unknown membership outcome stops further association requests and names targets that were not attempted. Specwright never retries creation or membership automatically. Adapters without existing-container support keep the create-only flow.
The separate board actions that create a container or add selected existing tests require every selected test to have a synced remote issue ID. If any selected test cannot be resolved, nothing is written and the message names the tests to sync. After an existing-container update, Specwright reports how many tests Xray says it added. A lower count can mean tests were already members or were not accepted; if Xray does not return a readable count, inspect the target rather than assuming zero. A cancelled or interrupted update may still have reached Xray once it was sent, so inspect the exact target before retrying.
A cancelled or partially completed bulk create can leave tests that were already created in Xray. If Specwright cannot apply the matching local tag, the remote test still exists; link it manually from the feature file or the Coverage Board.
On a mapped scenario row in Mapping, choose Push to replace the remote test's Gherkin with the local scenario text.
This is a remote update. Before writing, Specwright reads the remote test again and compares it with the last synced or refreshed version it has recorded. It refuses to overwrite a remote change it has not seen. If it reports drift, run Sync, review the difference, and decide whether to push again.
Push is available only for a synced Gherkin-compatible Xray test with a remote issue ID. It is not available for an Examples-block-only mapping, because that mapping does not own a complete scenario body. Sync reads remote text into Specwright's cache; it never overwrites your local .feature file.
The Traceability view has inline row actions, plus the filter and multi-selection described in Navigate the panel with the keyboard. Select a batch of mapped scenario rows, then use Run and publish on one selected row. A single row runs one scenario; the Traceability toolbar's Run All Mapped Scenarios and Publish runs all mapped scenarios. The Command Palette offers Run and Publish by Tag Expression. Specwright runs the batch through your local Playwright configuration, then opens the Publish workflow.
Repository folder and Test Set runs show a confirmation with remote, runnable-local, and remote-only counts. Confirmation seals only the named folder or Test Set identity and the exact mapped local scenarios shown. Remote-only tests never execute locally, and an empty selection is never widened to another scope. After confirmation, these runs use the same preflight, local execution, immutable run artifact, and publish workflow as Workspace runs. Specwright never starts a server-side Xray run.
Before running, Specwright checks for unmapped scenarios, invalid or duplicate mappings, and known incompatible Xray test types. You can repair a mapping, run all flagged scenarios locally, or exclude flagged scenarios from the batch. An explicitly excluded or unmapped result is not sent to Xray. If you choose Run all locally and later choose Publish, review the publishable-result summary carefully: a result that still has a usable test mapping can remain eligible for publishing. To guarantee a flagged result stays local, exclude it or cancel the batch.
Runs started from the Testing view are recorded too, not only the ones started from Run Locally and Publish…. Running at any level there records one run alongside the Traceability badges it updates: a single Examples row, a scenario, a feature node, a tag group, a multi-selection, or the whole view. Debug runs started from the Testing view are recorded on the same path. Specwright keeps the last 10 runs in the workspace and drops older ones.
The plain run commands do not record. A run started with CodeLens in the feature editor, from the editor or Explorer context menus, or from a Command Palette run command such as Run All Tests leaves no run to publish afterwards. The Testing view and Run Locally and Publish… are the two paths that record one.
Use Specwright: Publish Last Run… to return to a recorded run. Its dropdown offers the runs that can still be published, which means all of the following hold:
- The Traceability panel is enabled. Test keys are resolved from its mapping when the run starts, so with the panel off no run is ever publishable, and a tag added after a run does not apply to it. Run the scenarios again after tagging them.
- The run finished without being cancelled or cut short.
- At least one of its results maps to an Xray test and was not excluded during preflight.
The Coverage Board's Publish form stays visible even when there are no runs. Publish becomes available when a completed mapped run is ready, and new runs appear without refreshing the board. If you finish a run in another editor, the board updates when you return without taking focus. After publishing or cancelling, choose a run to prepare it again.
What Run Locally and Publish… adds is the preflight above. It checks mappings before running and records your exclusions on the run, so its results reach the Publish tab already reconciled. A Testing view run carries no preflight decisions, so read its result summary in the Publish tab before you publish it.
In the Publish tab:
- Select the run to publish in the Run dropdown.
- Choose Create new execution or Add to existing execution.
- For a new execution, provide a project key and summary; you can optionally add a Test Plan key and environments. For an existing execution, enter or search for its key.
- Review the result summary and attachments, then choose Publish.
Creating a new execution imports results as a new Xray Test Execution. Appending imports results into the execution you selected. Publishing does not launch a remote test run.
If you enter an optional Test Plan key, Specwright checks that your Xray account can read it as a Test Plan before importing results. This check uses your Xray credentials and does not require Jira credentials. A missing plan, wrong issue type, or failed lookup leaves the form open so you can correct the key, clear the field, or retry. No results are imported until the check succeeds.
To create a new Test Execution, the target Jira project must have an Xray-mapped, standard-level work type named Test Execution, unless you configured a different name with playwrightBddRunner.xray.executionIssueType. A subtask work type cannot hold a standalone execution.
The filter box above the tree is always visible, and its placeholder names the tab you are on. Typing narrows the rows as you type and returns the tree to the top. The panel title's search button, Find in Traceability, focuses the panel and puts the cursor in that box. The filter text, expanded rows, and selection survive a refresh and reopening the panel.
With a tab focused, Left and Right move between Workspace, Repository, and Test Sets, and Home and End jump to the first and last tab.
Inside the tree:
| Key | What it does |
|---|---|
| Up, Down | Move focus one row. |
| Home, End | Move focus to the first or last row. |
| Page Up, Page Down | Move focus a screen of rows. |
| Right | Expand the focused group, or move to its first child when it is already expanded. |
| Left | Collapse the focused group, or move to its parent row. |
| Enter, Space | Expand or collapse a group row. On any other row, run that row's own default action: a scenario opens in the editor, a remote test opens in the tracker, the connection row starts Xray setup, and the workspace-trust row opens the VS Code trust dialog. |
| Shift with a movement key | Extend the selection from the anchor row to the row you land on. |
| Ctrl or Cmd with a movement key | Move focus and leave the selection as it is. |
| Ctrl or Cmd with Space | Add the focused row to the selection, or take it out. |
Those modifiers work with the mouse too: Shift-click selects a range, and Cmd/Ctrl-click toggles one row. A selection holds at most 128 rows, the same number a run confirmation lists, however you build it: extending with Shift stops at the cap, and a Cmd/Ctrl toggle that would pass it is ignored, with the refusal announced to screen readers only. Escape cancels the run confirmation dialog.
Specwright can capture Playwright evidence such as screenshots, traces, and videos from the local run. playwrightBddRunner.xray.attachTo controls where per-test evidence goes:
evidence: embed it in the Xray result payload.issue: upload it to the execution's Jira issue.both: do both.
Jira credentials are required for issue uploads. If issue or both is selected without Jira credentials, Specwright falls back to embedding the evidence in the Xray payload and tells you that it did so.
playwrightBddRunner.xray.reportGlob suggests run-level report bundles, such as Playwright HTML reports and trace archives. Chosen run-level files always upload to the Jira execution issue after a successful result import, so they require Jira credentials. An attachment failure does not undo a successful import; use the retry action to upload only the pending files instead of importing results again.
Attachment sealing currently requires an operating-system no-follow file-open primitive. Windows does not expose the required primitive to this extension, so attachment sealing and upload are unavailable there. Specwright refuses the operation instead of following a link whose target could change during confirmation. Result publishing without attachments remains available.
Only attach material you are permitted to send to Xray or Jira. Test artifacts can contain screenshots, URLs, user data, or other sensitive information.
Specwright treats a Scenario Outline as one Xray test from creation through publishing. An outline is never converted into an Xray dataset or a parameterized test; it stays Gherkin text.
Creating a test from an outline, one at a time or in bulk, creates a single Cucumber-type Xray test. Its Gherkin definition holds the outline as written, including every Examples table and any tagged Examples block.
The text sent is the outline body: its keyword line through its last Examples row. Everything around that body stays behind, including the Feature: line, any Rule: header, Background steps, and the tag lines above the outline, so the @TEST_… tag is not part of the definition either. Trailing blank and comment-only lines are trimmed off the end.
The test as read in Jira is therefore the outline on its own. Keep context that a Jira reader needs inside the outline rather than in a Background.
Push replaces the whole Gherkin definition of the mapped test with the current outline text, Examples tables included. It is a replacement, not a merge, so a row you deleted locally disappears from the remote test.
Push refuses to write when the remote test is not one it can safely rewrite. It refuses a test whose type Xray reports as Manual or Generic, so an existing Manual test's dataset is left alone. It refuses a link that points at an individual Examples: block instead of a whole outline, and a test with no synced baseline or no remote issue ID. It also refuses when the remote definition changed since the last sync; sync, review the difference, then decide whether to push.
The outline is published as one test in the execution, and the rows you ran appear inside its Xray test run. The shape depends on the publishing mode:
- Add to existing execution sends each row as an iteration of the test, carrying the row's status and duration.
- Create new execution sends each row as its own scenario entry in a Cucumber report, named
Outline name (row title), and Xray folds those entries into the same test run.
Either way the test run's status aggregates the rows, so one failing row fails the test run in Xray. Rows carry the row title Playwright reports, normally Example #1, Example #2, and so on. When adding to an existing execution, each row also carries a synthetic example parameter holding that same title, so the title appears among the iteration's parameters in Xray. The column values from the Examples table are not sent.
The Testing view counts each Examples row as an individual test. Xray counts the outline as one test case. Run all five rows of a five-row outline and you see five tests locally and one test with five rows inside its Xray test run. Because you can also run a single Examples row, only the rows that ran are reported: run two of the five and the Xray test run holds those two. The two tools count different units of the same run.
All settings use the playwrightBddRunner.* namespace. See the general settings reference for where to edit VS Code settings.
| Setting | Default | Purpose |
|---|---|---|
traceability.enablePanel |
true |
Shows the Traceability panel and its local file watchers. |
traceability.provider |
xray |
Selects the traceability backend. Xray Cloud is the only available value. |
traceability.testTagPrefix |
TEST_ |
Prefix used to recognise test tags, for example @TEST_DEMO-123. |
traceability.reqTagPrefix |
REQ_ |
Prefix used to recognise requirement tags, for example @REQ_DEMO-9. |
xray.siteUrl |
empty | Jira/Xray Cloud host used for setup, Jira access, and browser links. |
xray.apiRegion |
global |
Xray API region: global, us, eu, or au. It must match your tenant. |
xray.syncProjectKeys |
[] |
Saved projects for ordinary Sync. An explicitly saved empty list syncs nothing. When unset, scope is derived from tags, the default project, and earlier syncs. |
xray.cacheTtlMinutes |
15 |
How long a synced snapshot is considered fresh. Stale data is not refreshed until Sync runs. |
xray.defaultProjectKey |
empty | Prefills new tests and executions. It joins the automatic sync scope while xray.syncProjectKeys is unset. |
xray.executionIssueType |
Test Execution |
Work type used when creating a new Test Execution. It must be a standard-level type. |
xray.reportGlob |
playwright-report/**, test-results/**/*.zip |
Workspace globs used to suggest run-level report attachments. |
xray.attachTo |
evidence |
Sends per-test evidence to the Xray payload, the Jira issue, or both. |
For example, a trial workspace that uses an Australian Xray region and one disposable project might use:
Keep credentials out of this file. Enter them through Connect to Xray instead.
Xray and the in-memory test adapter are bundled integration adapters that run inside the extension host. Registration requires an exact integration API version and an exact version for each declared capability. Duplicate IDs and incompatible versions are rejected before activation. Initialization and disposal are asynchronous and deadline-bound, and capability responses are checked before the traceability model consumes them.
Metadata snapshots retain tests from every synced project. The boundary validates each entry of the already materialized test map and each synced key or verified absence, so validation work grows with those collections while the per-test shape, nested collection size, and string length remain bounded. Live and cached Repository and Test Set organization snapshots share a separate 20,000-item limit and report truncation when reached.
This boundary limits cooperative asynchronous code. It does not isolate the extension host from a process crash or blocked event loop. A bundled adapter must not load native add-ons, block the event loop, or start arbitrary subprocesses. Third-party integration adapters remain future work and will use an out-of-process Integration Protocol. This contract is not the execution-provider contract and must not be used for managed execution hosts or delegated bridge adapters.
| Symptom | What to check |
|---|---|
| The Traceability panel is missing | Confirm playwrightBddRunner.traceability.enablePanel is enabled, then open the Specwright Activity Bar view. |
| Connection test fails | Check the Xray client ID, client secret, site host, and xray.apiRegion. Use Test Xray Connection and open the Specwright output channel for the safe diagnostic details. |
| Jira projects do not appear | Add both a Jira email and API token in Xray setup, then confirm the token can list projects on that site. This does not prevent Xray-only sync. |
| No available Xray tests appear | Set a default or sync project, select that project in the Coverage Board, and run Sync. Available tests appear only after a complete catalogue sync for that project. |
| A tag does not map a scenario | Check the prefix, Jira-key shape, and tag location. Put it on the scenario, outline, or Examples block, not on a Rule or Background. The Problems panel flags duplicate mappings and can suggest a missing prefix; Traceability preflight identifies invalid test tags. |
| A mapped test says it is not found remotely | The key may be mistyped, belong to a different project or site, or name an issue that is not an Xray test. Sync again after correcting the tag or connection. |
| Preflight reports a duplicate or incompatible mapping | Use one test tag per scenario unit and one scenario unit per test. For publishing or Push, link a Gherkin-compatible Xray test. |
| Push is blocked by drift | Another person may have changed the remote Gherkin since the last sync. Sync, review the intended overwrite, then try again. Examples-block mappings cannot be pushed. |
| Publish has no local runs | Enable the Traceability panel first: with it off, no run is publishable. Then check that the scenarios carry a valid test tag, that you started the run from the Testing view or with Run Locally and Publish…, and that preflight did not exclude them, and run them again. Only the last 10 runs are kept, and Clear Local Run History… empties them. |
| A new execution cannot be created | Check project permissions and the Xray Test Execution work-type mapping. If your project uses another standard-level name, set xray.executionIssueType to that name. |
| Attachments are unavailable or fail | Add Jira credentials for issue uploads, check the site's upload limit and file size, then use the pending-attachment retry. A successful result import is not repeated. |
For a clean trial, run Specwright: Clear Local Run History… from the Command Palette or the last item in the Traceability panel's overflow menu to remove this workspace's recorded local runs and, if you choose, its local publish ledger. This does not delete remote records.
Delete any trial Tests, Test Sets, Test Plans, Test Executions, and attachments through Jira/Xray using an account with permission to do so. When you are finished, use Disconnect from Xray to remove stored credentials from VS Code Secret Storage.
- Xray traceability is experimental and Xray Cloud only.
- Tags are the source of truth for the local mapping; Specwright does not infer a link from a scenario name.
- Remote metadata is cached; use Sync to refresh it on demand. The Coverage Board may load a newly selected project, but changes are never continuously imported.
- The Coverage Board's Executions tab shows activity recorded by this workspace, not every execution on the Jira site.
- Local Gherkin is never pushed automatically. Creating, pushing, publishing, and attaching files all require an explicit action and confirmation.
For feature-file authoring and ordinary test execution, see authoring features and running and debugging tests.






{ "playwrightBddRunner.xray.apiRegion": "au", "playwrightBddRunner.xray.defaultProjectKey": "DEMO", "playwrightBddRunner.xray.syncProjectKeys": ["DEMO"], "playwrightBddRunner.xray.attachTo": "evidence" }