soapui

Script Assertion for json response

£可爱£侵袭症+ 提交于 2020-01-07 08:46:32
问题 I tried to use script assert for json response in SoapUI but Error comes "Lexing failed on line: 1, column: 1, while reading '<', no possible valid JSON value or punctuation could be recognized." Request : <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:loc="http://localhost"> <soapenv:Header/> <soapenv:Body> <loc:GetRoomAttribute> <loc:countryId>123</loc:countryId> <loc:locationId>36</loc:locationId> <loc:roomId>213</loc:roomId> </loc:GetRoomAttribute> <

Is there a limitation reading XLSX file using SoapUI free version 5.3.0 & Apache poi-3.14?

霸气de小男生 提交于 2020-01-07 04:44:14
问题 Is there a limitation reading XLSX file? With XLS file, i face no problems. My Environment is: SoapUI free version 5.3.0 Apache POI 3.14 Windows 7 Pro/ Office 2010 Location of Apache POI libraries I unzipped the downloaded POI package into the following folder: C:\Program Files\SmartBear\SoapUI-5.3.0\bin\ext fyi - I have also tried adding it to lib The error i get when i try to run the groovy script provided below is: org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException

如何选择API测试工具

爱⌒轻易说出口 提交于 2020-01-07 03:51:14
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 没有最好,只有最合适。 如今,越来越多的公司正在向DevOps的方向左转,以实现持续集成和持续部署开发。这意味着我们的反馈需要比以往更快,以便确定我们的应用程序是否准备好交付。这就是API测试如此重要的原因,以及为什么应将其作为整体自动化策略重要的一部分。 分享一下我认为不错的五种API测试工具,无论哪种方式,它们都是不错的选择。 Rest-Assured 如果您使用的是Java,则Rest-Assured将是实现API自动化的首选。 Rest-assured是一个流行的Java库,可用于测试基于HTTP的REST服务。它在设计时就考虑到了测试,并且与任何现有的基于Java的自动化框架集成在一起。它提供了一个类似于BDD的DSL,从而使用Java创建API测试变得简单。它还具有许多内置功能,这意味着不必从头开始编写代码。Rest-assured可以和很多测试框架无缝集成,这意味着可以将UI和API测试全部结合在一个框架中,从而生成全面出色的报告。与动态语言(例如Ruby和Groovy)相比,用Java测试和验证REST服务要困难得多。这是使用REST-Assured的另一个原因,因为它将Java语言中使用这些语言的简便性带给了您。 如果团队主要由Java开发人员组成,对API测试来说Rest

Using Groovy Script in sopaUI - Copy the content of a XML Holder to Another (Trying to CLONE the SOAP request Test Step)

橙三吉。 提交于 2020-01-06 23:48:10
问题 I am a newbie to groovy scripting and seeking your help to find a solution to the issue I am facing at the moment. My requirement is that, on each iteration based on the test data input, I will have to remove a particular node or certain nodes from the SoapRequest. In order to achieve that I created two identical SOAP Request -Original and Modified. Using groovy script I am trying to restore the content of the modified soap request with the content of the original soap request after each

I'm trying read 3 or more column from CSV file, it giving me an index error. anyone have an idea

一笑奈何 提交于 2020-01-06 20:24:40
问题 //Create a new filereader object, using the context variable so it can be used between test components context.fileReader = new BufferedReader(new FileReader('C:/data.csv')) //Read in the first line of the data file //this is the code fro the testcase firstLine = context.fileReader.readLine() //Split the first line into a string array and assign the array elements to various test case properties String[] propData = firstLine.split(",") testCase.setPropertyValue("data1",propData[0]) testCase

SOAP UI- Automation token retrieval process not working

时间秒杀一切 提交于 2020-01-06 19:58:28
问题 I have implemented the java script in the Automation window of SOAP UI in the Oauth Profile. But this is not working until user runs it manually. How to automatically call the script whenever my token will expired. enter code here function consent(){ document.getElementById('loginform').click(); } if (document.getElementById('login')) { document.getElementById('login').value = 'xxxx@xxx.com'; document.getElementById('password').value = 'xxxxx'; document.loginform.submit(); } else if (document

null object error when calling code from script assertion - soapui (creating test Runner in script assertion)

落花浮王杯 提交于 2020-01-06 14:53:08
问题 In a soapui groovy script test step I've this. context.setProperty("searchA", new searchA()); class searchA{ def testRunner def searchA(testRunner){ this.testRunner=testRunner } def search(a,b){ def search_TestCase = testRunner.testCase.testSuite.getTestCaseByName("Search") search_TestCase.setPropertyValue("ABC", a) search_TestCase.setPropertyValue("DEF", b) search_TestCase.run(new com.eviware.soapui.support.types.StringToObjectMap(), false) } } and in an assertion script in a different test

Downloading SOAP response as xml file

北城余情 提交于 2020-01-06 06:45:38
问题 I have a client who fetches content from a SOAP service. Because it uses a lot of resources and I need to test a lot of things I don't want to mess with their server capabilities. Thats why I need a way to download the raw XML response to an .xml file. What would be the easiest way to accomplish this? I have already tried to make a dump to a file with SOAPUI but this doesn't allow to automate the soap calls and download all the files in a sequence. 回答1: Similar to what albciff suggested,

Using GlassFish v3, EJB and SOAPUI

不羁岁月 提交于 2020-01-05 12:14:00
问题 I would like to create a web service. I am using Glassfish v3, an Eclipse Dynamic Web Project, and SOAPUI to test. I have the following code in eclipse: Class MyLogin package packageTest; import java.io.IOException; import javax.jws.WebMethod; import javax.jws.WebService; @WebService public class MyLogin { @WebMethod public AuthInfo login(@WebParam(name = "email") String email,@WebParam(name = "password")String password) throws IOException, CustomException { if(email == null || email.isEmpty(

Using GlassFish v3, EJB and SOAPUI

 ̄綄美尐妖づ 提交于 2020-01-05 12:13:32
问题 I would like to create a web service. I am using Glassfish v3, an Eclipse Dynamic Web Project, and SOAPUI to test. I have the following code in eclipse: Class MyLogin package packageTest; import java.io.IOException; import javax.jws.WebMethod; import javax.jws.WebService; @WebService public class MyLogin { @WebMethod public AuthInfo login(@WebParam(name = "email") String email,@WebParam(name = "password")String password) throws IOException, CustomException { if(email == null || email.isEmpty(