Ask a Question

Remove project custom properties with TestRunner

Occasional Contributor

Remove project custom properties with TestRunner

Hello everybody,


I'm looking for a solution to remove custom properties from my project. 

Indeed, during an execution with the TestRunner, I save data in project custom properties and I would like delete them with a script.

This bellow script work fine when I play it with the Test Case execution, but not with the Test Runner Execution : {
if ([it.key].name == 'XRAY-ID'){'On ne fait rien')
else {
if ([it.key].name.contains('P_') == true){

This script is positionned in a Script Test Step.


Do you have an idea ?


Thank you in advance for your help,



Frequent Contributor

I figured out your answer by looking at my own question and finding the soap ui docs. The problem is that the docs are very hard to find, but I found them anyway.

Try this - testRunner.testCase.removeProperty('property1')

Rest of the details:

My question -


This is how I figured it out:

This gives class com.eviware.soapui.impl.wsdl.WsdlTestCasePro.

Google the above class. Its at . Search for removeProperty method or something like that.

This class might have remove method -

Lets try testRunner.testCase.removeProperty('prop1'). It works.


Community Hero

What is your use case.?
If the project is run from commandline, and the property is created dynamically, then you don't have to remove it manually unless if you are using option "-s".

Occasional Contributor

Hello rajs2020,


Thank you for your answers and your links, I'll watch them!

Occasional Contributor

Hello nmrao,


Effectively, I run the project in command line (from a Gitlab pipeline) and I was thinking the properties was save. Thank you for this information !

Showing results for 
Search instead for 
Did you mean: