摘要:有一个网站 :http://jsonviewer.stack.hu/将Response的文本贴进去,如果是标准的JSON格式,就可以以JSON的view显示出来
阅读全文
摘要:通过SoapUI发送POST请求,请求的body是JSON格式的数据:data={"currentDate":"2015-06-19","reset":true}而且通过Fiddler抓取页面报文Content-Type是application/x-www-form-urlencoded一开始我将C...
阅读全文
摘要:import com.eviware.soapui.support.types.StringToStringMap //Get cookie's value from the project level propertiesString cookie = context.expand( '${#Pr...
阅读全文
摘要:获取当前测试用例下所有Groovy Script类型的测试步骤def testStepList = testRunner.testCase.getTestStepsOfType(com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestSt...
阅读全文
摘要:远程登录某台机器,想修改当前登录用户的密码,系统提示按Ctrl+Alt+Del,在出现的界面里修改密码但我一按这三个键,是在我本地客户机生效,而不是在远程服务器。答案 : 向远程桌面发送Ctrl+Alt+Del组合是用Ctrl+Alt+End代替.
阅读全文
摘要:To continue tests executing after failed test step you need disable "Abort on error" option in TestCase options.To control test execution flow you can...
阅读全文
摘要:如果想要对某个HTTP请求进行编辑,然后重新执行观察结果,可以将这个报文从左侧拖放到右侧的Composer里面这样就可以很方便的修改HTTP请求的方法,报文头,报文体在用 SoapUI 做 API 测试的时候,这个功能将会非常实用,因为有时不确定哪些字段是必填的,哪些不是,用Fiddler可以事先做...
阅读全文
摘要:http://tool.chinaz.com/Tools/URLEncode.aspx解码:编码:
阅读全文
摘要:import com.eviware.soapui.support.GroovyUtils def groovyUtils = new GroovyUtils( context )def holder = groovyUtils.getXmlHolder( "Get Token#Response" ...
阅读全文
摘要:import com.eviware.soapui.support.GroovyUtilsimport com.eviware.soapui.support.XmlHolderimport org.w3c.dom.Nodeimport org.apache.commons.lang.StringUt...
阅读全文
摘要:import com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport def myCookies = testRunner.testCase.testSuite.project.testSuites['Login'].getTestCa...
阅读全文
摘要:http://www.soapui.org/about-soapui/soapui-faq.html#1-SoapUI--General-Questions3.1.1. What is Groovy?It's a scripting language which is very similar to...
阅读全文
摘要:SoapUI caches XML schemas when they are first loaded. If you need to force a reload of an interfaces schema either restart SoapUI or use the "Update D...
阅读全文
摘要:SoapUI. The Swiss-Army Knife of Testing.Whether you’re a tester, developer, business analyst, or manager,SoapUI has something for everyone.From the pe...
阅读全文
摘要:Various databases which are supportedDrivers for database connectiongroovy.sql.Sql packageSoapUI怎样支持对数据库的操作Various databases which are supportedGroovy...
阅读全文
摘要:import groovy.json.JsonSlurperdef response = messageExchange.response.responseContentlog.info "response : "+ responsedef slurper = new JsonSlurper()...
阅读全文
摘要:Fiddler通过在本机开启了一个http的代理服务器来进行http请求和响应转发,默认情况下,并不能抓取https的请求。下面小编就来介绍下,如何用fiddler来抓取https的请求。1.打开Fiddler,然后点击菜单栏的Tools > Fiddler Options,打开“Fiddler O...
阅读全文
摘要:在同一个Suite里import com.eviware.soapui.support.types.StringToStringMapdef headers = testRunner.testCase.testSuite.getTestCaseByName("LoginTest").getTestS...
阅读全文
摘要:Car c= new Car(log);c.print()class Car{ def log public Car(log){ this.log=log } public void print(){ log.info "hello world" }}
阅读全文
摘要:package com.file.properties;import java.io.File;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import...
阅读全文
摘要:读取以下两种格式的Excel : *.xls and *.xlsx用Apache POI API来实现,需要用到 HSSF 和 XSSF 的类库HSSF is the POI Project's pure Java implementation of the Excel '97(-2007) (.x...
阅读全文
摘要:package com.file.properties;import java.io.FileInputStream;import java.util.Properties;public class ReadProperties { Properties prop; public ReadPro...
阅读全文
摘要:Reading Properties file :Properties prop = new Properties()def path = "D:\\SoapUIStudy\\application.properties"FileInputStream fs = new FileInputStrea...
阅读全文
摘要:Hashset:HashSet set = new HashSet()set.add("India")set.add("USA")set.add("China")log.info "Set size is : " + set.size()set.add("China")log.info "Set s...
阅读全文
摘要:Array:def x = new String[5]x[0] = "India"x[1] = "USA"x[2] = "Korea"x[3] = "Japan"x[4] = "China"log.info "Size of list is " + x.size()log.info "The fir...
阅读全文
摘要:def x="I like to read books before bed"def temp = x.split(" ")log.info "Size of array is : "+temp.lengthlog.info temp[0]log.info temp[1]log.info x.sub...
阅读全文
摘要:Code example :package com.file.properties;import java.io.FileInputStream;import java.util.Properties;public class ReadProperties { Properties prop; ...
阅读全文
摘要:public void dragWidgetToElementContainner(String widgetName, String targetPosition){ WebElement widgetIconEl=page.getWidgetIconInDockMenu(widgetName)...
阅读全文
摘要:当Case在本地运行成功,在Grid模式下运行失败时,我们需要在Grid模式下进行调试,同时登录远程的node去查看运行的情况。Hub是随机将case分配到某台node上运行的,怎样知道当前的case是运行在哪台node上呢?可以通过这段代码获取node的信息:public void getComp...
阅读全文
摘要:通过java获取计算机名String hostname = "Unknown"; try { InetAddress addr; addr = InetAddress.getLocalHost(); hostname = addr.getHostName(); }...
阅读全文
摘要:点击下拉框之后,下拉列表会显示出来,但是有时候下拉列表会很快就消失掉,导致后面选择元素的时候会失败。像这种情况,需要将鼠标移动到下拉列表上,使下拉列表维持显示,然后才选择元素进行点击。将鼠标移动到下拉列表上,有时候只要提供整个下拉列表的Dom结构就可以,有时候下拉列表很长,这种方式也会失败。后来采用...
阅读全文
摘要:Description:Find outthe DDLin Treegrid, but cannot clickonit.Because the element is under a hidden element.Have tried all below solutions:1) theDDL.cl...
阅读全文
摘要:Description:Need to turn page by operating scroll bar and find out the element in the current page.Previous page will not exist in DOM structure when ...
阅读全文