Forum Discussion
nmrao
6 years agoChampion Level 3
asseldonk01,
You mean to clean up custom properties of a test case on closing of the project (or saving the project)?
Clean up means remove the values alone? or property names as well?
You mean to clean up custom properties of a test case on closing of the project (or saving the project)?
Clean up means remove the values alone? or property names as well?
- asseldonk016 years agoContributorHi rao, i as mentioned i have a groovy script to empty the values of the get properties of a run test case. I would like to be able to do this automatically. Preferably when closing the project. How can i do that automatically.
- nmrao6 years agoChampion Level 3asseldonk01,
Sorry, did not get what you mean by - "get properties of a run test case".
Could you please show a screen shot along with the script you have for the review?
How many such cases there for you to be clean up?
Where the current script placed? Is it in a common place or in a specific test case ?
As you know there is no out-of-the-box functionality, need to understand the use case. So answering above info will help.- Lucian6 years agoCommunity Hero
Hi,
ReadyApi provides the concepts of Setup and Tear down scripts. The Setup script runs before a certain phase (either Project, Test Suite or Test Case) while the Tearn down script runs after a certain phase.
That being said, if you want to run a script after the project is run, you can click on the project in the Navigator, click on Tear down script and add your code there.
Later edit: it was only after I posted that I saw you wanted this to happen when closing a project and not after the project was ran. I don't really have a solution for this.
Related Content
- 9 months agom0nkeyb0b
- 11 years agokirk_bottomley
- 2 years agoPossum