Forum Discussion
3 Replies
Sort By
- Nastya_KhovrinaSmartBear Alumni (Retired)
Hi Axel,
Can you provide the script which you use?
- axeltoushirouContributor
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.
- PaulMSSuper 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