Forum Discussion
PaulDonny
11 years agoRegular Contributor
Since the majority of this uses the APIs built into SoapUI I am just going to post some of the data from a groovy script that will access what you need in order to complete your issue.
These will working SoapUI itself. if you need help bringing down the flow of it just let me know but they are rather simplistic and easy to follow. Just make sure that in the Java you can access these same Objects and you should be fine. If you have further questions feel free to ask.
context.testCase.testSuite.project.getInterfaceAt(0).getAllOperations()[0].getRequestAt(0).setMediaType("Audio")
log.info context.testCase.testSuite.project.getInterfaceAt(0).getAllOperations()[0].getRequestAt(0).getMediaType()
context.testCase.testSuite.project.getRestMockServiceAt(0).getMockOperationAt(0).setDispatchStyle("SCRIPT")
log.info context.testCase.testSuite.project.getRestMockServiceAt(0).getMockOperationAt(0).getDispatchStyle()
These will working SoapUI itself. if you need help bringing down the flow of it just let me know but they are rather simplistic and easy to follow. Just make sure that in the Java you can access these same Objects and you should be fine. If you have further questions feel free to ask.
Related Content
- 6 years ago
- 8 years ago
- 5 years ago
Recent Discussions
- 15 years ago