Forum Discussion
How does the test case look a like? Screen shot would help.
May be you can try by disabling all the test steps except groovy script step of the test case to prevent from running.
- Samrayen11 months agoOccasional Contributor
yes I tried, problem is my requirement, need to capture every teststep execution request and response payload result capture in my html report. if am disabling the teststep will not get the result for every teststep level in my report
- nmrao11 months agoChampion Level 3
How is the current report generated? Any files generated in certain location on execution of each step? Can't that be achieved with in groovy?
- Samrayen11 months agoOccasional Contributor
soapuiextentter_v5.1.1.jar helping to create consolidated html report after our all test suite execution.
My concern is above script is executing teststep level as well testcase level if am commenting below line of code
while executing it from testcase level it's passing empty value for all the teststep or last row of value passing all teststep.
CODE:
// Define a map to store test step names
<!--def testStepMap = [
1: "Teststep-add1",
2: "Teststep-add2",
3: "Teststep-add3",
4: "Teststep-add4",
5: "Teststep-add5",
6: "Teststep-add6",
7: "Teststep-add7",
8: "Teststep-add8",
9: "Teststep-add9",
10:"Teststep-add10",
]-->// Construct the test step name dynamically
<!-- def testStepName = testStepMap[i]if (testStepName) {
// Run the test step
def testStep = testRunner.testCase.getTestStepByName(testStepName)
if (testStep) {
testStep.run(testRunner, context)
} else {
log.warn("Test step not found: ${testStepName}")
}
} else {
log.warn("No test step defined for row ${i}")
}// Clear properties for the next iteration
for (int j = 0; j < row.getLastCellNum(); j++) {
testRunner.testCase.setPropertyValue("Param" + (j + 1), "")
}
} -->
- nmrao11 months agoChampion Level 3
So, the execution of steps are now running once after disabling steps?
Related Content
- 3 years ago
- 6 years ago
- 5 months ago
- 2 years ago