Forum Discussion
Nastya_Khovrina
7 years agoSmartBear Alumni (Retired)
Hi Axel,
Can you provide the script which you use?
- axeltoushirou7 years agoContributor
i found a way to modify the request of a teststep using a groovy script
def testStep = context.testCase.getTestStepByName('My test step name') for (def testCaseProp in testStep.getPropertyList()) { testCaseProp.setValue() }
but, is there a better way? I want to modify the request queries of other teststeps.
- PaulMS7 years agoSuper Contributor
You have an optional query parameter that should not be in the request URL if blank?
Was the parameter set as required in the method viewer?
In many requests you can set the parameter value to equal a property like ${#TestCase#PropertyName}
Then you can change the test case property to update all those tests.
Related Content
- 6 years ago
- 9 years ago