Forum Discussion
bagochips
8 years agoContributor
// in a groovy step after your DataSource step pull the name of the column that contains the test case name you are wanting to update
def TestCaseName = context.expand( '${DataSource#TestCaseName}' )
//if you are wanting to change the name of the Test Case at runtime
context.testCase.setName(TestCaseName)
//if you are wanting to change the name of the request step name at runtime
tc = testRunner.testCase.getTestStepAt(2) // The number 2 would represent the position of the step in your test case. Starting with 0 as the first step
tc.setName(TestCaseName)