How to transfer a value from one test case to another using groovy
Hi, In my first test case, I have a soap request from which I get an account id in the response. Below is theresponse that I get. <CreatAccountResponse> <Account> <AccountId>ACCT11011294</AccountId> </Account> </CreatAccountResponse> In my second test case, I have a request where I have to use the account id created in the first test case. <UpdateAccountRequest> <Account> <AccountId>"need to use account id from the first test case</AccountId> <AccountStatus>ACTIVE</AccountStatus> </Account> </UpdateAccountRequest> so my question is how can I transfer the account id from my first test case soap response to my second test case via Groovy script. Regards, UmairSolved5.8KViews0likes3CommentsUpdate definition of interface
Hi all, I'm finding solution for the problem, but still not finish yet. Could you please help me? I want to update definition of interface and including checking on option: Update TestRequests Please refer to this document for more detail about update definition;https://www.soapui.org/soap-and-wsdl/reference/wsdl-interface.html Here is script I use: myInterface=(WsdlInterface) testRunner.testCase.testSuite.project.getInterfaceByName("interfacename"); myInterface.updateDefinition(url, false) recreateRequests(myInterface,false,false,false,false); recreateTestRequests(myInterface,false,false,false,false); updateTestRequests(myInterface,true,true,true,true); Thanks in advance. Best regards, Linh2.4KViews0likes7Comments