Forum Discussion
avidCoder
8 years agoSuper Contributor
Could you please explain or give some more insight for the same. What actually you want to report or validate?
- 6787 years agoRegular Contributor
I have Test cases on Excel for Every Row 1 = Testcase 1, Row 2 = Testcase 2, when i run a request i am getting report as Request Pass/Fail but not the Test case name from Excel
- New2API7 years agoFrequent Contributor
Hi there, I am assuming that this is a data driven test and data is being used by a REST test step. you could add a groovy step to read Datasource data and dynamically update testcase name on the run.
for Ex: your test case structure would be
Datasource
Groovy Script
RestStep
DataSource Loop
Groovy script:
//Variables to store datasource values def TestData = context.expand( '${DataSource#Row}' ) //## get REST Step Name and dynamically change// def RestStep = testRunner.testCase.getTestStepAt(2) RestStep.setName("RestStep_$TestData")
Related Content
- 2 years ago
- 4 years ago
- 4 years ago
- 6 years ago
Recent Discussions
- 21 days ago