Ask a Question

how clean output propertis of runTestCaseTestStep form groovy


how clean output propertis of runTestCaseTestStep form groovy

Because my tests are really huge.. And ofte use runTestCase test step.. to dont repeat same again and again.. 

And because I use composite project in GIT. 

I need to clean out all output parameters of runTestCaseTestStep by groovy script when project is saved.

Goal is to dont commit output values - because they are changed each time, but irelevent - not need to be in GIT.


Here is my script for deletion the test case properties (except specific one starting with prefix).. I can display even the properties names and values of runTestCaseTestStep.. but no idea to say.. which one is output and no idea how to clean them.

Any ideas?

Basically I thing this must be in UI of the readyAPI some check box.. But is not.. 😞 "*********** SAVE PROJECT script ***********"; "Cleaning the properties values - start"
for ( t in project.getTestSuiteList() ) { " -s " + 
	// "-suite propertis count: " + t.getPropertyCount()
	for ( c in t.getTestCaseList() ) { " --tc " +
		// " -- suite propertis count: " + c.getPropertyCount()
		if (c.getPropertyCount() > 0) {
			for( n in c.propertyNames ){ " --- tcp " + n + " value: " + c.getPropertyValue(n)
				if ((n.substring(0,1) == "#")||(n.substring(0,1) == "*")){ " ---- cleaning skipped"
					{if (n == "countDown") {
						c.setPropertyValue( n, '0')		
					else {
						c.setPropertyValue( n, '')
	} "Cleaning the properties values - finished"
Champion Level 3

It would help if you provide more details where fall short. Because it helped many.
If it didn't help in this case, there must be something needed more.

Showing results for 
Search instead for 
Did you mean: