stega
12 years agoContributor
Run TestStep with request parameter
Hi All,
My question is, how can i run rest method with template parmater by groovy script.
I can run methods without paramters (below), but i haven't found solution for the parameters. I have a method which needs a template parameter, called "id" and gives back the specified record.
testRunner.testCase.testSuite.getTestCaseByName("TestCase").getTestStepByName("TestStep").run(testRunner, context).getResponseContent();
My question is, how can i run rest method with template parmater by groovy script.
I can run methods without paramters (below), but i haven't found solution for the parameters. I have a method which needs a template parameter, called "id" and gives back the specified record.
testRunner.testCase.testSuite.getTestCaseByName("TestCase").getTestStepByName("TestStep").run(testRunner, context).getResponseContent();