I’m currently using Serenity version 4.0.1 to generate a cucumber.json report and employing the Xray Maven plugin to upload the results to Jira.
While most functions are working seamlessly, such as the creation of Test Executions and the display of results, I’m facing issues with three particular fields that aren’t being populated:
- The test plans aren’t linking as expected
- The environment field is not getting filled
- The fix version field remains empty
I’ve attempted two different approaches to set these fields:
- Using command line parameters, similar to how I provide Jira credentials
- Configuring these values directly in the plugin setting within my pom.xml
In both cases, other configurations are applied correctly, but these three fields still do not populate.
Below is my plugin configuration:
<plugin>
<groupId>app.getxray</groupId>
<artifactId>xray-maven-plugin</artifactId>
<version>0.7.3</version>
<configuration>
<cloud>false</cloud>
<jiraBaseUrl>https://jira.test.com</jiraBaseUrl>
<projectKey>E2E</projectKey>
<testEnvironment>UAT</testEnvironment>
<fixVersion>1.0</fixVersion>
<testPlanKey>E2E-577</testPlanKey>
<reportFormat>cucumber</reportFormat>
<reportFile>target/cucumber.json</reportFile>
</configuration>
<executions>
<execution>
<id>import-results</id>
<phase>post-integration-test</phase>
<goals>
<goal>import-results</goal>
</goals>
</execution>
</executions>
</plugin>
And here is the Maven command I’m using:
clean verify -e -X -Dcucumber.filter.tags="@E2E_Regression" -Dxray.testPlanKey="E2E-577" -Dxray.fixVersion=1.0 -Dxray.testEnvironment=UAT -Dxray.jiraUsername=xxx -Dxray.jiraPassword=xxx
The output I receive from the plugin suggests it runs successfully:
{"testExecIssue":{"id":"16065764","key":"E2E-583","self":"https://jira.test.com/rest/api/2/issue/16065764"},"testIssues":{"success":[{"id":"16037818","key":"E2E-576","self":"https://jira.test.com/rest/api/2/issue/16037818","testVersionId":1433450}]},"infoMessages":[]}
I’m curious why these specific fields are not being filled at all?