Showing results for 
Search instead for 
Did you mean: 

Cleaning up properties after every VirtAction

New Contributor

Cleaning up properties after every VirtAction

I find myself writing context.setProperty() statements on my dispatch scripts, so I can dynamically customize my responses. However I noticed that the lifetime of dispatch script goes well beyond the lifetime of a VirtAction call.


How would I go about cleaning up after every VirtAction call? Or is there a more appropriate context I can use to store and manipulate properties with the scope of a VirtAction?

Community Manager

Re: Cleaning up properties after every VirtAction

Hi @Figueiredo,

As the Community doesn't suggest anything, I suspect that this question requires a deep investigation. Could you please refer it to our Support Team?

Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Script Wanted
Check out this week's challenge!

Create a script to generate an email when an assertion fails for the TechCorner tag!

Scripts created in July:
- A script to change the request body before sending it to the server