Cypress Automation and XRay graphql integration during test execution

Billy Owens
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 2, 2023

I'm developing a xray reporting solution for our Cypress automation framework that will allow the creation of a test execution, associate tests (without test steps) to the execution then dynamically add test step data (action,data, expected results) then run the execution and report the results/status from Cypress to the step then repeat until each test is added and executed.

I have most of the solution running but what I don't understand about the workflow is how to execute the test and pass results to it???

I see something called testRun in the graphql docs but only how to reset or update but not create?? 

Is this "testRun" how I would execute a case and update the status and comments after the automation finishes execution??

I'm looking for some ideas on how to achieve this.. 

1 answer

0 votes
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 6, 2023

Hi @Billy Owens 

I would describe it as follows:

The test run is the executed/executable instance of a test case that is automatically created when a test execution issue (with added testcases) is created.

 

Please also see the xray documentation about terms & confepts:

test run - A specific run of a test. An instance of the test containing the execution status and a snapshot of the test specification. Whenever a user adds a Test to a Test Execution, a test run is created internally within the Test Execution context. A test may have multiple test runs.

https://docs.getxray.app/display/XRAY/Terms+and+Concepts

 

Hope this is helpful. Please let us know if there are any further questions.

Best
Stefan

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 22, 2023

Hi @Billy Owens 

Any feedback? Was this helpful?

Best
Stefan

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events