It's all about the answers!

Ask a question

Is it possible to remove empty comments from a test script step?


Mitch Slater (111) | asked Jun 16, 11:12 a.m.
edited Jun 16, 11:25 a.m.

 Hey all, we just finished writing up a script to control column order and visibility for our test scripts, and it works great, other than the fact that each step is populated with a comment ' ' which appears to be a string indicating an empty string in JavaScript. 

We'd rather not have them there, so we've attempted to remove them by updating the steps through a) replacing the existing comment with an empty comment block and b) removing the comment block entirely and reposting the XML without a comment block at all. 
Neither of these approaches have worked, and the ' ' comment persists. Interestingly, we can replace it with a non-empty comment (like 'TEST'), but haven't been able to remove it. Can comments even be removed through the API, or just changed? Thanks in advance for any help you can offer.

One answer



permanent link
Monika Rajput (2412) | answered Jun 18, 2:08 a.m.

Hi Mitch,


The comments cannot be removed using API, it can be done through UI only. 
It can be replaced using REST API.

Thanks

Your answer


Register or to post your answer.