Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,124
Community Members
 
Community Events
168
Community Groups

XRAY test import removes comments

When I'm importing cucumber features using the XRAY API, all comments and empty lines in my cucumber text are being removed.

E.g. I have:

GIVEN something is not so obvious

# this next step is important!
WHEN I use a comment line

# but this does not happen
THEN I also want to import the comment line to XRAY

After importing, the cucumber content looks like so:

GIVEN something is not so obvious
WHEN I use a comment line
THEN I also want to import the comment line to XRAY

I believe that this is wrong, because when I export feature files from XRAY, they do contain comments. When importing the same files back to XRAY, I'd expect to have no change.

Is there anything I can do about it, or is this a known and accepted issue?

2 answers

1 accepted

0 votes
Answer accepted

Note that this issue has been fixed by now: https://jira.getxray.app/browse/XRAYCLOUD-4577.

Only comments at the end of a Scenario are still dropped, because they would be added to the following Scenario, if there was one. I.e. it would be ambiguous whether to add the comment to the above or the below Scenario, and the decision goes for the below Scenario.

Hi @janos 

Xray supports the cucumber comments, so it is best to investigate the cause to understand what's happening first.

Please get in touch with Xray Support (http://Xraysupport.getXray.app) to share your configuration so that the support team can investigate further.

Thank you.

Kind regards,
Rogerio Paiva [Xray Support Team]

Hi @Rogério Paiva - Xray Xporter , thanks for responding to this. Yes, by now I already got in touch with them through that channel, I just happened to find this forum first. The issue is still under investigation there.

Best, Janos

Hi @janos 

You are most welcome.

Yes, this forum is usually closer, and there are a lot of good answers here.

In this case, since it will require a deeper investigation, it is best to have a support engineer dedicated to it.

Kind regards,
Rogerio Paiva [Xray Support Team]

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS

Atlassian Community Events