Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DefaultSummaryMapper overrides/deletes content of existing test cases #16

Closed
sbke-mms opened this issue Oct 10, 2022 · 3 comments · Fixed by #17
Closed

DefaultSummaryMapper overrides/deletes content of existing test cases #16

sbke-mms opened this issue Oct 10, 2022 · 3 comments · Fixed by #17
Assignees
Labels
bug Something isn't working

Comments

@sbke-mms
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce

  1. Annotate a test case with @XrayTest(key="ABC-123")
  2. Use the DefaultSummaryMapper
  3. Start a test run

Expected behavior
Only an execution with results for test ABC-123 gets created.

Observed behavior
Test ABC-123 gets renamed with name of the test in the code and the steps of the test get deleted.

Test

public class XrayResultSynchronizer extends AbstractXrayResultsSynchronizer implements PropertyManagerProvider {
    public XrayMapper getXrayMapper() {
        return new DefaultSummaryMapper();
    }
}

example test:

@XrayTest(key="TEST-123") //use a ticket id of an existing xray test case
@Test
public void newTestName(){ //newTestName should be different from any existing test case (not sure what would happen if it's the same as an existing one that isn't TEST-123
    //do whatever here
}
@sbke-mms sbke-mms added the bug Something isn't working label Oct 10, 2022
@sbke-mms
Copy link
Author

A quickfix might be to not sync at all if both the @XrayTest annotation and the DefaultSummaryMapper and generate some kind of warning/error that they don't work together.

@sbke-mms
Copy link
Author

accidentally closed

@sbke-mms
Copy link
Author

Additional info from review of the bug (already known in #17):
The override isn't depending on the DefaultSummaryMapper. The steps in Xray get overwritten independent of the mapper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants