Contributions
How to call a Webservice through Groovy script?
Hi Friends, I have a below test plan setup and I need support in calling a webservice using groovy script Test Step-1: Call Rest Api and proivde input parameters Test Step-2: JDBC Request-Query DB, Asser it against the Test Step-1's response Test Step-3: Call another webservice lile "http://webserviceqa.domain.net/xyz.svc?wsdl" and pass input parameters to that webservice methods Test Steo-4: Do assertions I have a problem is doing Test Step-3. How do I achieve this test step-3sceanrio? I tried with the below groovy script import groovy.net.soap.SoapClient def client= new SoapClient('https://webserviceqa.domain.net/xyz.svc?wsdl') def response=client.send(<tried passing the entire soap request i used to pass for the webservice>) the above did not work for me.. Please help me achieve this.. Awaiting expert support. Thanks, ItP UMG10 years agoPlace ReadyAPI QuestionsReadyAPI Questions4KViews0likes0Comments- 10 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.4KViews0likes0Comments
Re: [Res] How to Read multiple XML files from a folder location
Hi, Thanks for your response. I agree that I can use directory data source, but I want to accomplish this using Groovy script, since the customer who is going to use my project, doesn't use SoapUI Pro..they just use SoapUI OS. Please help me resolve this. Thanks, UMG ItP10 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.4KViews0likes0Comments[Res] How to Read multiple XML files from a folder location
Hi, I am facing a problem in reading multiple XML files within a folder using groovy scripting. I am able to read one file and make use of the contents of the file, but I am unable to read other files which are located in the folder. Example: I have 4 XML files (sample1.xml, sample2.xml, sample3.xml, sample4.xml) in a folder "Data". The 'Data' folder is located exactly where the soapui project is stored. I am able to read sample1.xml using the below piece of code. And I also want to read the other 3 XML files sample 2.xml, sample3.xml, sample4.xml as well. Please help me achieve this. def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context) def projectPath = groovyUtils.projectPath //gets the path of the project root def response = new File(projectPath, "/Data/sample1.xml").text; log.info response Thanks, UMG ItP10 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.5KViews0likes4CommentsLaunch TestRunner
Hi, I am unable to run a test using TestRunner. I am getting the below error Running SoapUI TestRunner for [WsAuthorization-AnA QA] directory: C:\AnA Regression Test Automation Suite command: cmd.exe /C testrunner.bat -ehttp://anaservicev3qa.global.umusic.ext/Services/WsAuthorization.asmx -s"Regression TestSuite QA" -cGetApplicationsByPortalName -r -R"TestSuite Report" -EDefault "C:\AnA Regression Test Automation Suite\WsAuthorization-AnA-QA-soapui-project.xml" 'testrunner.bat' is not recognized as an internal or external command, operable program or batch file. Please help me fix this problem Thanks, UMG10 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.8KViews0likes1CommentSoapUI Pro License
Hi, I have installed SoapUI Pro license in my laptop. (Accessing the License.key file from my local laptop). Now I want to put this license file in another laptop and install soapui pro in that laptop and access the license.. Is it possible?? Does it create any activation problem? Please reply. Thanks10 years agoPlace ReadyAPI QuestionsReadyAPI Questions1KViews0likes1CommentValidate an XML response against 3 different datasources
Hi Experts, I want to validate an XML response against 3 different excel datasource. I know its very straight forward, but the problem I face is, the excel data sources are not properly aligned and our validation is against a tree type structure in excel which are not aligned. I have attached my xml response along with the data sources which needs to be validated against. Exact scenario: I want to fetch the Account id from the attached xml response and validate it in the excel data source. Based on the Account id, there are devices, services, emails etc...and for each set of data I have to refer the appropriate datasource and find the entry and validate it. The excel data sources are not properly aligned as well. Please someone in the forum help me get this resolved. PFA xml response, datasources10 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes1Comment