06 2015 档案

[SoapUI] 怎样确定一个应答报文的格式是不是标准的JSON
摘要:有一个网站 :http://jsonviewer.stack.hu/将Response的文本贴进去,如果是标准的JSON格式,就可以以JSON的view显示出来 阅读全文

posted @ 2015-06-26 17:28 张缤分 阅读(374) 评论(0) 推荐(0) 编辑

[SoapUI] 通过SoapUI发送POST请求,请求的body是JSON格式的数据
摘要:通过SoapUI发送POST请求,请求的body是JSON格式的数据:data={"currentDate":"2015-06-19","reset":true}而且通过Fiddler抓取页面报文Content-Type是application/x-www-form-urlencoded一开始我将C... 阅读全文

posted @ 2015-06-26 16:17 张缤分 阅读(15316) 评论(0) 推荐(0) 编辑

[SoapUI] 循环遍历某个Test Case下的所有Test Step,将Cookie传递给这些Test Step
摘要:import com.eviware.soapui.support.types.StringToStringMap //Get cookie's value from the project level propertiesString cookie = context.expand( '${#Pr... 阅读全文

posted @ 2015-06-26 12:31 张缤分 阅读(1064) 评论(0) 推荐(0) 编辑

[SoapUI] 按照 Test Step Type 获取所有满足条件的 Test Step
摘要:获取当前测试用例下所有Groovy Script类型的测试步骤def testStepList = testRunner.testCase.getTestStepsOfType(com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestSt... 阅读全文

posted @ 2015-06-26 12:19 张缤分 阅读(441) 评论(0) 推荐(0) 编辑

[OS] 如何在远程机器上用ctrl+alt+del键修改登录用户的密码
摘要:远程登录某台机器,想修改当前登录用户的密码,系统提示按Ctrl+Alt+Del,在出现的界面里修改密码但我一按这三个键,是在我本地客户机生效,而不是在远程服务器。答案 : 向远程桌面发送Ctrl+Alt+Del组合是用Ctrl+Alt+End代替. 阅读全文

posted @ 2015-06-25 17:00 张缤分 阅读(497) 评论(0) 推荐(0) 编辑

[SoapUI] 如何让某个步骤的Assertion失败之后继续执行后面的步骤
摘要: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... 阅读全文

posted @ 2015-06-24 17:45 张缤分 阅读(344) 评论(0) 推荐(0) 编辑

[Fiddler] 在 Composer 中对HTTP报文进行编辑,重新执行
摘要:如果想要对某个HTTP请求进行编辑,然后重新执行观察结果,可以将这个报文从左侧拖放到右侧的Composer里面这样就可以很方便的修改HTTP请求的方法,报文头,报文体在用 SoapUI 做 API 测试的时候,这个功能将会非常实用,因为有时不确定哪些字段是必填的,哪些不是,用Fiddler可以事先做... 阅读全文

posted @ 2015-06-24 15:38 张缤分 阅读(902) 评论(0) 推荐(0) 编辑

[SoapUI] UrlEncode编码/UrlDecode解码网站
摘要:http://tool.chinaz.com/Tools/URLEncode.aspx解码:编码: 阅读全文

posted @ 2015-06-24 14:58 张缤分 阅读(601) 评论(0) 推荐(0) 编辑

[Token] 从index.jsp中获取Token
摘要:import com.eviware.soapui.support.GroovyUtils def groovyUtils = new GroovyUtils( context )def holder = groovyUtils.getXmlHolder( "Get Token#Response" ... 阅读全文

posted @ 2015-06-24 10:53 张缤分 阅读(1831) 评论(0) 推荐(0) 编辑

[Groovy]获取当前活动的Environment,获取response中节点的name和节点的value
摘要:import com.eviware.soapui.support.GroovyUtilsimport com.eviware.soapui.support.XmlHolderimport org.w3c.dom.Nodeimport org.apache.commons.lang.StringUt... 阅读全文

posted @ 2015-06-24 10:01 张缤分 阅读(516) 评论(0) 推荐(0) 编辑

[Cookie] Clear Cookie
摘要:import com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport def myCookies = testRunner.testCase.testSuite.project.testSuites['Login'].getTestCa... 阅读全文

posted @ 2015-06-23 17:57 张缤分 阅读(491) 评论(0) 推荐(0) 编辑

[Groovy] Groovy API
摘要: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... 阅读全文

posted @ 2015-06-21 18:49 张缤分 阅读(878) 评论(0) 推荐(0) 编辑

[Schema] I have updated my XML Schema for my service but SoapUI still generates/validates according to the old schema.
摘要: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... 阅读全文

posted @ 2015-06-21 18:36 张缤分 阅读(216) 评论(0) 推荐(0) 编辑

[SoapUI] SoapUI可以做到些什么?功能有多强大?
摘要: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... 阅读全文

posted @ 2015-06-20 17:27 张缤分 阅读(887) 评论(0) 推荐(0) 编辑

[Training Video - 7] [Database connection] Various databases which are supported, Drivers for database connection, SQL Groovy API
摘要:Various databases which are supportedDrivers for database connectiongroovy.sql.Sql packageSoapUI怎样支持对数据库的操作Various databases which are supportedGroovy... 阅读全文

posted @ 2015-06-20 15:13 张缤分 阅读(315) 评论(0) 推荐(0) 编辑

[JSON] Validating/Asserting JSON response with Jsonlurper
摘要:import groovy.json.JsonSlurperdef response = messageExchange.response.responseContentlog.info "response : "+ responsedef slurper = new JsonSlurper()... 阅读全文

posted @ 2015-06-18 11:15 张缤分 阅读(311) 评论(0) 推荐(0) 编辑

[Fiddler]如何让Fiddler可以抓取https的请求
摘要:Fiddler通过在本机开启了一个http的代理服务器来进行http请求和响应转发,默认情况下,并不能抓取https的请求。下面小编就来介绍下,如何用fiddler来抓取https的请求。1.打开Fiddler,然后点击菜单栏的Tools > Fiddler Options,打开“Fiddler O... 阅读全文

posted @ 2015-06-18 09:44 张缤分 阅读(307) 评论(0) 推荐(0) 编辑

[Cookie] Read Cookie and Pass in headers
摘要:在同一个Suite里import com.eviware.soapui.support.types.StringToStringMapdef headers = testRunner.testCase.testSuite.getTestCaseByName("LoginTest").getTestS... 阅读全文

posted @ 2015-06-17 18:11 张缤分 阅读(335) 评论(0) 推荐(0) 编辑

[Training Video - 6] [File Reading] Using log object in the Groovy class
摘要:Car c= new Car(log);c.print()class Car{ def log public Car(log){ this.log=log } public void print(){ log.info "hello world" }} 阅读全文

posted @ 2015-06-17 11:11 张缤分 阅读(183) 评论(0) 推荐(0) 编辑

[Training Video - 6] [File Reading] [Java] Create and Write Excel File Using Apache POI API
摘要:package com.file.properties;import java.io.File;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import... 阅读全文

posted @ 2015-06-17 10:36 张缤分 阅读(302) 评论(0) 推荐(0) 编辑

[Training Video - 6] [File Reading] [Java] Read Excel File Using Apache POI API
摘要:读取以下两种格式的Excel : *.xls and *.xlsx用Apache POI API来实现,需要用到 HSSF 和 XSSF 的类库HSSF is the POI Project's pure Java implementation of the Excel '97(-2007) (.x... 阅读全文

posted @ 2015-06-16 17:16 张缤分 阅读(324) 评论(0) 推荐(0) 编辑

[Training Video - 6] [File Reading] [Java] Read Properties file
摘要:package com.file.properties;import java.io.FileInputStream;import java.util.Properties;public class ReadProperties { Properties prop; public ReadPro... 阅读全文

posted @ 2015-06-16 15:52 张缤分 阅读(336) 评论(0) 推荐(0) 编辑

[Training Video - 6] [File Reading] [Groovy] Reading Properties file
摘要:Reading Properties file :Properties prop = new Properties()def path = "D:\\SoapUIStudy\\application.properties"FileInputStream fs = new FileInputStrea... 阅读全文

posted @ 2015-06-16 15:15 张缤分 阅读(181) 评论(0) 推荐(0) 编辑

[Training Video - 5] [Groovy Script Test Step - Collections, Exceptions] HashSet and Hashtable
摘要: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... 阅读全文

posted @ 2015-06-16 15:08 张缤分 阅读(336) 评论(0) 推荐(0) 编辑

[Training Video - 5] [Groovy Script Test Step - Collections, Exceptions] Array and ArrayList
摘要: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... 阅读全文

posted @ 2015-06-16 14:54 张缤分 阅读(403) 评论(0) 推荐(0) 编辑

[Training Video - 4] [Groovy] String Functions
摘要: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... 阅读全文

posted @ 2015-06-16 14:42 张缤分 阅读(378) 评论(0) 推荐(0) 编辑

[Training Video - 6] [File Reading] Making a Jar file with eclispe, Importing custom jars in SoapUI
摘要:Code example :package com.file.properties;import java.io.FileInputStream;import java.util.Properties;public class ReadProperties { Properties prop; ... 阅读全文

posted @ 2015-06-16 14:16 张缤分 阅读(174) 评论(0) 推荐(0) 编辑

[Selenium]重写拖拽dragWidgetToElementContainner()
摘要:public void dragWidgetToElementContainner(String widgetName, String targetPosition){ WebElement widgetIconEl=page.getWidgetIconInDockMenu(widgetName)... 阅读全文

posted @ 2015-06-09 13:44 张缤分 阅读(420) 评论(0) 推荐(0) 编辑

[Selenium]Grid模式下运行时打印出当前Case在哪台node机器上运行
摘要:当Case在本地运行成功,在Grid模式下运行失败时,我们需要在Grid模式下进行调试,同时登录远程的node去查看运行的情况。Hub是随机将case分配到某台node上运行的,怎样知道当前的case是运行在哪台node上呢?可以通过这段代码获取node的信息:public void getComp... 阅读全文

posted @ 2015-06-09 11:23 张缤分 阅读(458) 评论(0) 推荐(0) 编辑

[Java]通过java获取计算机名
摘要:通过java获取计算机名String hostname = "Unknown"; try { InetAddress addr; addr = InetAddress.getLocalHost(); hostname = addr.getHostName(); }... 阅读全文

posted @ 2015-06-08 17:34 张缤分 阅读(2182) 评论(0) 推荐(0) 编辑

[Selenium]点击下拉框之后,从下拉列表选择元素进行点击很容易失败
摘要:点击下拉框之后,下拉列表会显示出来,但是有时候下拉列表会很快就消失掉,导致后面选择元素的时候会失败。像这种情况,需要将鼠标移动到下拉列表上,使下拉列表维持显示,然后才选择元素进行点击。将鼠标移动到下拉列表上,有时候只要提供整个下拉列表的Dom结构就可以,有时候下拉列表很长,这种方式也会失败。后来采用... 阅读全文

posted @ 2015-06-05 17:07 张缤分 阅读(3338) 评论(0) 推荐(0) 编辑

[Selenium]Click element under a hidden element
摘要:Description:Find outthe DDLin Treegrid, but cannot clickonit.Because the element is under a hidden element.Have tried all below solutions:1) theDDL.cl... 阅读全文

posted @ 2015-06-04 18:09 张缤分 阅读(432) 评论(0) 推荐(0) 编辑

[Selenium]Turn Page By Scroll Bar
摘要: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 ... 阅读全文

posted @ 2015-06-04 18:04 张缤分 阅读(403) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示