soapui

Issue with excel sheet while trying to fetch the values from groovy script

守給你的承諾、 提交于 2019-12-02 16:17:50
问题 If i place getCell(0,0) in String reqTagName = sheet1.getCell(0,0).getContents() for the below code then, it is only executing the first value from the sheet. But, if I place getCell(0,Row) for the same String reqTagName = sheet1.getCell(0,0).getContents() and change the values in the excel sheet from number to string then it works as expected. But it is not working when I pass number as request value in the sheet. I have tried changing the data type from String to any other still its not

Not able to loop over XML tags in groovy properly

三世轮回 提交于 2019-12-02 13:19:52
问题 I was able to send a webrequest by soapUI which gives me data in XML format as response .I want to insert the value of xml tag in database tables. This is what I have tried : def response = context.expand('${Request1#Response}') def xml = new XmlSlurper().parseText(response) Content of 'response' variable : <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http

NoSuchMethodError: org.openqa.selenium.os.CommandLine.findExecutable(Ljava/lang/String;)Ljava/lang/String; while launching Chrome using SoapUI

大憨熊 提交于 2019-12-02 12:36:44
问题 I'm trying to launch the selenium scripts from SoapUI 5.2.1 tool with the following launching script: System.setProperty("webdriver.chrome.driver","D:\\SoapUI-5.2.1\\bin\\ext\\chromedriver.exe") WebDriver driver = new ChromeDriver(); driver.manage().window().maximize(); driver.get("https://www.MyUrl.com") driver.manage().timeouts().implicitlyWait(120,TimeUnit.SECONDS); I have kept the following selenium dependency file in SoapUI/bin/ext folder - chromedriver 2.36 - selenium-server-standalone

Groovy script to Read an xml file and update next step request with file contents

霸气de小男生 提交于 2019-12-02 11:48:20
问题 Requirement : To read the xml file from the folder and pass the contents of the file to Soap request. Issue I am trying to read the file saved in the folder using groovy script, But unable to read the contents of the file. I am getting Null pointer exception while trying to print the contents of the xml file. def fileList = [] new File("C:\\Users\\Documents\\Groovy Scripts\\requests").eachFile { f -> if (f.isFile()&& f.name.endsWith('.xml')) { def filename = f.name[0..-5] fileList.add

Validation of encrypted SOAP request throws the error fault

点点圈 提交于 2019-12-02 11:35:29
This picture shows my simple ws-security configuration of soapui: And I apply this configuration to soap request: Then <arg0> content of soap request is encrypted. This is encrypted soap messsage. <soapenv:Envelope xmlns:soap="http://soap.aaa.com/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss

get query params from request url soapui using groovy

你。 提交于 2019-12-02 10:40:48
I only used SOAP UI to just test the WSDL/URL but not in this extent. I need to get the request url query parameters from SOAP UI and use them to test some stuff using groovy script. Lets say i have a GetCustomers request url as follows `http://myendpoint.com/customers?Id=111&ModeName=abc&DeltaId=023423` i need the following from URL Id=111 ModeName=abc DeltaId=023423 I created a groovy script in SOAP UI which in the following hierarchy TestSuit->TestCase-> TestStep->GroovyScript In the groovy script i tried def id = testRunner.testCase.getPropertyValue("Id") but when i print id i am getting

Coversion of Junit XML Report into HTML form [closed]

旧城冷巷雨未停 提交于 2019-12-02 09:34:12
I am using soapui free version to generate the report of test cases,but it is only generating a junit report in XML form, now I want to convert that into an HTML form. Renat Gilmanov There are several ways to do that, but you can simply use XSL transformation ( junitreport option ) as suggested by this answer How can I generate an HTML report for Junit results? <junitreport todir="${outputdir}"> <fileset dir="${jrdir}"> <include name="TEST-*.xml"/> </fileset> <report todir="${outputdir}/html" styledir="junitreport" format="frames"> <param name="key1" expression="value1"/> <param name="key2"

Spring-ws: How to create Wsdl from an xsd with no “Request” element

北城余情 提交于 2019-12-02 08:49:45
问题 Trying to implement a SOAP Webservice for a client and I need a wsdl file to test the service by soapUI. But as you can see below, this xsd has no Request and Response methods, all requests and responses are defined as a a "type" in a base ServiceProvider element. So when I try to auto generate my wsdl file by spring-ws it does not generate a proper wsdl, because Spring-ws requires all requests and responses element names should end with "Request" "Response". What can I do? <xs:schema xmlns

How to assert value in login response in soapUI?

给你一囗甜甜゛ 提交于 2019-12-02 08:28:56
I have a login request and I want to assert a value from the response. Here is this response: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="https://TUI.io/ns/20110812"> <soap:Body> <login_resp> <zato_env> <cid>K07FKWJTWZMCNFJJBNDQVMZTW4TQ</cid> <result>TUI_OK</result> </zato_env> <item> <response>{"timestamp": "2015-11-30T17:05:37Z", "data": {"file": null, "token": "16e5fd", "endpoints": [{"label": "app1", "branc": [{"url": "/app1/v1.0/", "name": "test", }]}}, "success": true}</response> </item> </login_resp> </soap:Body> </soap:Envelope> Now I want to assert:

Groovy script to Read an xml file and update next step request with file contents

坚强是说给别人听的谎言 提交于 2019-12-02 07:21:16
Requirement : To read the xml file from the folder and pass the contents of the file to Soap request. Issue I am trying to read the file saved in the folder using groovy script, But unable to read the contents of the file. I am getting Null pointer exception while trying to print the contents of the xml file. def fileList = [] new File("C:\\Users\\Documents\\Groovy Scripts\\requests").eachFile { f -> if (f.isFile()&& f.name.endsWith('.xml')) { def filename = f.name[0..-5] fileList.add(filename) log.info filename } } if (fileList.size() <1) { testRunner.fail("No request files found") } context