medtoure18 / codeceptjs-xray-helper

A Codeceptjs helper which can publish tests results on Xray api
1 stars 2 forks source link

Directing test output to a specific JIRA project or Xray test execution record #5

Closed JamesFrancisco closed 4 years ago

JamesFrancisco commented 4 years ago

In a JIRA environment where we have multiple projects, how can we direct the helper to sent the test output to a specific project or even a specific test execution record?

medtoure18 commented 4 years ago

yours xray tests have to be on cucumber types. when you export yours tests from your existing Test Execution, the jira id of the Test Execution will be the first tag of the .feature file. in this case, you have to set the plugin variable testsExportedFromTestExecution:true and your initial test execution will be updated if your feature files are exported from Test Plan, you have to set testsExportedFromTestExecution:false so a new Test Execution will be created on your project.

JamesFrancisco commented 4 years ago

yours xray tests have to be on cucumber types.

I see. We have to write the tests first in cucumber in jira. OK thanks