Contributions
problem with wsdl.wsdlprojectpro
Im trying to run a testcase from a groovy script, this is the code : import com.eviware.soapui.impl.wsdl.WsdlProjectPro def x =testRunner.testCase.testSuite.project.getPath() WsdlProjectPro project = new WsdlProjectPro(x) testSuite = project.getTestSuiteByName("compositionOnes"); testCase0 = testSuite.getTestCaseByName("getToken"); testCase = testSuite.getTestCaseByName("insert - Success"); runner0 = testCase0.run(new com.eviware.soapui.support.types.StringToObjectMap(), false); runner = testCase.run(new com.eviware.soapui.support.types.StringToObjectMap(), false); def response = context.expand( '${#[compositionOnes#insert - Success#insert]#Response}' ) for some reason the script result is null unless i replace WsdlProjectPro project = new WsdlProjectPro(x) with project = testRunner.testCase.testSuite.project.workspace.getProjectByName("soapUIv3") if i do this it will work but i need to use wsdl because i have to use testrunner.bat laterSolved5 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes1CommentRe: How to run a testCase for each a testStep using tearDown script
Greetings, i just added an assertion whenever i want to run the testStep. the script : import com.eviware.soapui.support.types.StringToObjectMap import com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner def Runner = new WsdlTestCaseRunner(messageExchange.modelItem.testStep.testCase, new StringToObjectMap()) yourTestStep= messageExchange.modelItem.testStep.testCase.testSuite.project.testSuites["hDeliveries"].testCases["delete"].testSteps["deleteAll"] yourTestStep.run(Runner,context)5 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes0CommentsCreating a jira item automatically
I want to know if there's a way to create a jira item automatically for example whenever a teststep fails, if there's a way to get the code behind the popups that provides creating an item i could just use this code in a groovy script Any help would be really apperciatedSolved5 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes3CommentsHow to run a testCase for each a testStep using tearDown script
Im trying to run a testCase (delete) before running any other testCase using tearDown script but i get scriptException: error in teardDown script. this is the code : def testStep = testRunner.testCase.testSuite.testCases['delete'].testSteps['deleteAll'] testSuite.getTestCaseList().each{ testStep.prepare(testRunner, context) testStep.run(testRunner, context) testStep.finish(testRunner, context) } any help would be really apperciated.Solved5 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes4CommentsRe: Problem in DataSource while using testrunner.bat
Sorry for replying late, im using an exel file as a dataSource, it wokrs fine when i launch the testCase from SoapUI but when i launch the project using testrunner.bat i getjava.io.FileNotFoundException on that testCase5 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.4KViews0likes5Comments