Contributions
Datasink - keep values
Hello all! A simple issue I have that am not able to see a work around. I have my tests to run in a cycle, and some results are being sent to a Datasink step. Every time the cycle is stopped due to a failed step and then rerun from that failed step, all previous information that was already stored n the Datasink is erased, so I loose all data if a test step fails and reruns. Is there a way to keep that information stored even if a test cycle stops in the middle of a run and starts again that same cycle ? Thank you so much in advance!4 months agoPlace ReadyAPI QuestionsReadyAPI Questions22Views0likes3CommentsSoapui - Groovy continue loop
Hello! Trying to implement something like this cycle: DataSource Request 1 - if response has property x = 1 , go to request 2 and continue loop flow - if response has property x = 2, go to request 3 and continue loop flow request 2 request 3 validate DB Datasink DataSource Loop as: def responseAsXml = context.expand( '${GET BD Valida Credito Servico - para POSPAGO, Empresarial, NOVA QUERY#ResponseAsXml#//Results[1]/ResultSet[1]/Row[2]/AUTOSUBS[1]}' ) if (responseAsXml == ("NAO")) { testRunner.runTestStepByName("GET WS Subscricao") } else if (responseAsXml == ("SIM")){ testRunner.runTestStepByName("GET BD Subscricao") } ------------------ My problem is that the loop brakes when executes "testRunner.runTestStepByName", doesnt execute the next step of the loop flow .. Thank you in advance for any help you may give me ! pedroSolved1.2KViews0likes5Comments