getTestStepsOfType and AMQPPublishTestStep
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2022
10:21 AM
03-11-2022
10:21 AM
getTestStepsOfType and AMQPPublishTestStep
Hello Everyone,
i have in my code:
else if ( typeToExecute.equals("AMQP") ) {
soapuiRequests = testCaseExecuted.getTestStepsOfType(AMQPPublishTestStep);
but soapuiRequests = testCaseExecuted.getTestStepsOfType(AMQPPublishTestStep) is not correct, i need help for combinet getTestStepsOfType and AMQPPublishTestStep.
thanks for all
Labels:
- Labels:
-
Integrations
-
Scripting
-
SOAP
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022
01:06 AM
04-22-2022
01:06 AM
normally should work:
testCaseExecuted.getTestStepsOfType(AMQPPublishTestStep.class)
For some reason there are issues within Groovy to import the class com.smartbear.amqp.steps.AMQPPublishTestStep.
As a workaround you could use:
steps = tc.getTestStepList()
steps.each {
step = it
if (step.class.getName().endsWith("AMQPPublishTestStep")) {
log.info it.getName()
}
}
Anyway the plugin does not publish it's SDK as far as I know, so things may change in the future.
Best regards,
Karel
Karel@apimate.eu
https://apimate.eu
https://apimate.eu
