Forum Discussion
balak84
13 years agoOccasional Contributor
Hi,
Considering that the << inputValue >> variable in the Test Case holds the value/data retrieved from the notepad file, then I would suggest that you try the groovy script given below.
def var1 = myTestCase.getPropertyValue("inputValue")
//log.info var1
def project = testRunner.testCase.testSuite.project ;
def requestpost = project.testSuites["TestSuiteName"].testCases["TestCaseName"].getTestStepByName("TestStepName");
requestpost.getProperty("request").setValue(var1)
//log.info requestpost.getPropertyValue("request")
Hope this helps!!!
Regards
Considering that the << inputValue >> variable in the Test Case holds the value/data retrieved from the notepad file, then I would suggest that you try the groovy script given below.
def var1 = myTestCase.getPropertyValue("inputValue")
//log.info var1
def project = testRunner.testCase.testSuite.project ;
def requestpost = project.testSuites["TestSuiteName"].testCases["TestCaseName"].getTestStepByName("TestStepName");
requestpost.getProperty("request").setValue(var1)
//log.info requestpost.getPropertyValue("request")
Hope this helps!!!

Regards