You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After following the official documentation on cypress to import results generated by JUnit and mocha into jira - xray I am facing the issue where the imported results create new tests instead of mapping to the current test on test execution.
I found that mapping a test with a result you have to add a property named issue_key into a test case like in this xml:
<?xml version="1.0" encoding="UTF-8"?>
<testsuitesname="Mocha Tests"time="10.118"tests="1"failures="0">
<testsuitename="Root Suite"timestamp="2023-02-16T15:14:14"tests="0"file="cypress/e2e/general.cy.js"time="0.000"failures="0">
</testsuite>
<testsuitename="Test role creation"timestamp="2023-02-16T15:14:14"tests="1"time="10.093"failures="0">
<testcasename="Test role creation role management depot list"time="7.477"classname="role management depot list">
<properties>
<propertyname="test_key"value="DSC-1142" />
</properties>
</testcase>
</testsuite>
</testsuites>
It works but I am having no luck when trying to add those parameters directly into the Cypress test that generated this test. How can I make the following test to it with the name of role management depot list to automatically generate the issue_key in the results xml?
importLoginPagefrom'../../support/pageobjects/login-page';importHomePagefrom'../../support/pageobjects/home-page';importRoleManagementPagefrom'../../support/pageobjects/roles/role-management-page';describe('Test role creation',()=>{consthomePage=newHomePage();constloginPage=newLoginPage();constrolePage=newRoleManagementPage();it('role management depot list',()=>{homePage.visitLoginPage();loginPage.setLoginEmail('');loginPage.setLoginPassword('');loginPage.clickLoginButton();homePage.openConfigurationsMenu();homePage.clickRoleListMenu();rolePage.clickLocationTab();rolePage.clickAddRoleButtonLocation();})})
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
After following the official documentation on cypress to import results generated by JUnit and mocha into jira - xray I am facing the issue where the imported results create new tests instead of mapping to the current test on test execution.
I found that mapping a test with a result you have to add a property named
issue_key
into a test case like in this xml:It works but I am having no luck when trying to add those parameters directly into the Cypress test that generated this test. How can I make the following test to
it
with the name ofrole management depot list
to automatically generate theissue_key
in the results xml?Beta Was this translation helpful? Give feedback.
All reactions