Forum Discussion
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?
- 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.
- asseldonk016 years agoContributor
Hi Rao and Lucian,
Thanks for your remarks. First i learned that describing something in a post is not that easy. You believe that it is clear but that is certainly not always the case.
I was looking for a way to call a groovy script when closing a project. I will now have a more closer look at teardown scripts and maybe again events.
Thanks!