06 2015 档案

摘要:1234567891011121314151617importcom.eviware.soapui.support.types.StringToStringMap//Get cookie's value from the project level propertiesString cookie =... 阅读全文
posted @ 2015-06-26 17:55 *飞飞* 阅读(537) 评论(0) 推荐(0) 编辑
摘要:1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556importcom.eviware.soapui.support.GroovyUtilsimp... 阅读全文
posted @ 2015-06-26 17:53 *飞飞* 阅读(758) 评论(0) 推荐(0) 编辑
摘要: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-26 17:51 *飞飞* 阅读(357) 评论(0) 推荐(0) 编辑
摘要:SoapUI Training : http://soapui-tutorial.com/index.php*Below are the details to access the online training videos for SoapUI.Website: http://soapui-tu... 阅读全文
posted @ 2015-06-26 17:15 *飞飞* 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-06-26 17:14 *飞飞* 阅读(242) 评论(0) 推荐(0) 编辑
摘要:选取节点表达式描述nodename选取此节点的所有子节点。/从根节点选取。//从匹配选择的当前节点选择文档中的节点,而不考虑它们的位置。.选取当前节点。..选取当前节点的父节点。@选取属性。examples: 路径表达式结果bookstore选取 bookstore 元素的所有子节点。/b... 阅读全文
posted @ 2015-06-26 17:07 *飞飞* 阅读(696) 评论(0) 推荐(0) 编辑
摘要:import com.eviware.soapui.support.GroovyUtilsdef groovyUtils = new GroovyUtils( context )def holder =groovyUtils.getXmlHolder( "NormalUserLogin#Respon... 阅读全文
posted @ 2015-06-26 16:55 *飞飞* 阅读(166) 评论(0) 推荐(0) 编辑
摘要:Reference parameter in WADL :Endpoint : ${#Project#DomainServer}Resource : {AdvisorID}Reference parameter in HTTP Request :${#Project#AdvisorID}${#Tes... 阅读全文
posted @ 2015-06-26 16:53 *飞飞* 阅读(434) 评论(0) 推荐(0) 编辑
摘要:(1) new WebDriverWait(driver, 10). until(ExpectedConditions.elementToBeClickable(locator));(2) new WebDriverWait(driver, 10). until(ExpectedConditions... 阅读全文
posted @ 2015-06-26 16:40 *飞飞* 阅读(550) 评论(0) 推荐(0) 编辑
摘要:1. jsclick 也不管用 Actions action = new Actions(driver); WebElement theRow = page.getInvisibleElement(); action.moveToElement(theRow).perform(); page.get 阅读全文
posted @ 2015-06-24 17:07 *飞飞* 阅读(310) 评论(0) 推荐(0) 编辑
摘要:http://sourceforge.net/projects/soapui/ 阅读全文
posted @ 2015-06-19 10:02 *飞飞* 阅读(187) 评论(0) 推荐(0) 编辑
摘要:从 Selenium 的官方文档来看,推荐用户使用ios-driver 或 appium 而不是官方发布的 iPone Driver. 他们的地址分别是:http://ios-driver.github.io/ios-driverhttp://appium.io/1、Appium 简介:Appium... 阅读全文
posted @ 2015-06-17 16:36 *飞飞* 阅读(725) 评论(0) 推荐(0) 编辑
摘要:从 Selenium 的官方文档来看,推荐用户使用ios-driver 或 appium 而不是官方发布的 iPone Driver. 他们的地址分别是:http://ios-driver.github.io/ios-driverhttp://appium.io/ios-driver 基于2种不同的... 阅读全文
posted @ 2015-06-16 17:21 *飞飞* 阅读(2902) 评论(0) 推荐(0) 编辑
摘要:HTML5 中引入了Application Cache,这意味着 Web 应用程序可以被缓存到本地,且可在没有网络的情况下也能访问该 Web 应用程序Application Cache 在以下3个方面具有明显优势1.离线浏览:在没有网络情况下用户也可使用 Web 应用程序2.速度快:缓存的资源被加载... 阅读全文
posted @ 2015-06-08 15:37 *飞飞* 阅读(552) 评论(0) 推荐(0) 编辑
摘要:在 HTML5 中,Web Storage 这个新特性可让用户将数据存储在本地的浏览器中。在早期的浏览器中可通过 cookies 来完成这个任务,但 Web Storage 会更加安全和高效,且Web Storage 通过键值对进行存储,只有自身的网页应用才可以访问存储的数据Web Storage ... 阅读全文
posted @ 2015-06-08 15:15 *飞飞* 阅读(768) 评论(0) 推荐(0) 编辑
摘要:package com.learingselenium.android;import junit.framework.TestCaseimport org.openqa.selenium.Rotatable;import org.openqa.selenium.ScreenOrientation;i... 阅读全文
posted @ 2015-06-08 14:58 *飞飞* 阅读(1113) 评论(0) 推荐(0) 编辑
摘要:1.安装 Android SDK到如下网址下载Android SDKhttp://developer.android.com/sdk/index.html2.创建Android 虚拟设备解包刚下载的SDK 压缩包,进入 tools 目录,然后启动 AVD 管理器(Android Virtual De... 阅读全文
posted @ 2015-06-05 17:18 *飞飞* 阅读(1927) 评论(0) 推荐(1) 编辑
摘要:在 HTML5 ,新特性Geolocation 用于定位用户位置信息。由于用户位置信息是敏感信息,所以需要得到用户允许后,才能让程序通过 API 获取当前用户信息。WebDriver 程序每次重新允许都是新的会话进程,及时之前在浏览器中已经通过手工方式运行浏览器访问用户的位置信息,但在当前运行环境中... 阅读全文
posted @ 2015-06-05 15:45 *飞飞* 阅读(370) 评论(0) 推荐(0) 编辑
摘要:以 jQuery UI 官方网站元素测试,地址:http://jqueryui.com/draggable/示例:package com.learningselenium.html5;import java.util.NoSuchElementException;import org.junit.A... 阅读全文
posted @ 2015-06-05 15:15 *飞飞* 阅读(1875) 评论(0) 推荐(0) 编辑
摘要:测试http://literallycanvas.com/以 Chrome Driver 为例阐述,通过 Actions 在 Canvas 上绘制一个封闭图形。对于 Canvas 上的操作,推荐 Chrome Driver 或 Firefox Driver示例:package com.learnin... 阅读全文
posted @ 2015-06-05 14:58 *飞飞* 阅读(1460) 评论(0) 推荐(1) 编辑
摘要:测试播放,停止播放http://www.videojs.com/示例:package com.learningselenium.html5;import static org.junit.Assert.*;import org.junit.*;import org.openqa.selenium.*... 阅读全文
posted @ 2015-06-05 14:29 *飞飞* 阅读(1253) 评论(0) 推荐(0) 编辑
摘要:1)屏幕截图接口函数是 TakesScreenshot示例:import java.io.File;import org.apache.commons.io.FileUtils;public void testTakesScreenshot() throws Exception{ //TakesS... 阅读全文
posted @ 2015-06-04 16:57 *飞飞* 阅读(1033) 评论(0) 推荐(0) 编辑
摘要:WebDriver 在操作页面元素等待时间时,提供2种等待方式:一个为显式等待,一个为隐式等待,其区别在于:1)显式等待:明确地告诉 WebDriver 按照特定的条件进行等待,条件未达到就一直等待。这在等待某个元素需要非常长的时间时非常有效示例:import org.openqa.selenium... 阅读全文
posted @ 2015-06-04 16:17 *飞飞* 阅读(294) 评论(0) 推荐(0) 编辑
摘要:driver.get("http://1.com");driver.navigate().to("http://2.com");driver.navigate().refresh();driver.navigate().back(); //1.comdriver.navigate().forw... 阅读全文
posted @ 2015-06-04 15:49 *飞飞* 阅读(298) 评论(0) 推荐(0) 编辑
摘要:WebDriver 提供了一系列 Cookies 的操作来获取、填写、删除 Cookies 的方法,节省了多次在登陆页面的查找元素并填写登录信息的时间。1)获取 Cookies ,并保存到文件中以备后续使用:package com.learningselenium.normalwebdriver;i... 阅读全文
posted @ 2015-06-04 13:03 *飞飞* 阅读(398) 评论(0) 推荐(0) 编辑
摘要:driver.manage().window.maximize(); 阅读全文
posted @ 2015-06-04 12:31 *飞飞* 阅读(246) 评论(0) 推荐(0) 编辑
摘要:以如下页面为例:http://sislands.com/coin70/week1/dialogbox.htm示例代码:pachage com.learningselenium.normalwebdriver;import org.junit.After;import org.junit.Before... 阅读全文
posted @ 2015-06-04 12:30 *飞飞* 阅读(935) 评论(0) 推荐(0) 编辑
摘要:1)验证标题 package com.learningselenium.normalwebdriver; import static org.junit.Assert.*; import java.util.Set; import org.junit.After; import org.junit. 阅读全文
posted @ 2015-06-04 12:07 *飞飞* 阅读(827) 评论(0) 推荐(0) 编辑
摘要:InternetExplorerDriver 在不指定任何参数的情况下,启动监听端口会随机变化。如果需要保证其端口固定不变,可通过InternetExplorerDriverService 达到目的。示例代码:public class testInternetExplorerService{ pu... 阅读全文
posted @ 2015-06-04 11:46 *飞飞* 阅读(1851) 评论(1) 推荐(0) 编辑
摘要:自从 IE7 引入 Protected Mode 以来, IE 浏览器的安全性的确得到了一定程度的提高。其原理从本质来讲,在浏览某些需要启用保护模式的页面时,会开启一个新的浏览器会话以完成任务,而此时你无法控制前一个会话中的 COM 对象。随之而来的问题是,WebDriver 在这种情况下会遇到如下... 阅读全文
posted @ 2015-06-04 11:38 *飞飞* 阅读(1668) 评论(0) 推荐(0) 编辑
摘要:public static boolean isAlertPresent(WebDriver driver) { try { driver.switchTo().alert(); return true; } catch (NoAlertPresentException... 阅读全文
posted @ 2015-06-04 10:11 *飞飞* 阅读(383) 评论(0) 推荐(0) 编辑
摘要:private static final String JQUERY_ACTIVE_CONNECTIONS_QUERY = "return $.active == 0;";private static ExpectedCondition noActiveConnections = new Expe... 阅读全文
posted @ 2015-06-04 10:06 *飞飞* 阅读(183) 评论(0) 推荐(0) 编辑
摘要:在使用IEDriverServer 可执行文件时,从理论上来说是可通过它来创建并使用多个同时存在的Internet Explorer Driver 实例的。但在实际使用过程中,总是会碰到与 cookie 相关的问题、窗口焦点的问题、浏览器多实例等可能会面临的问题。如果真想希望使用Internet E... 阅读全文
posted @ 2015-06-03 15:07 *飞飞* 阅读(796) 评论(0) 推荐(0) 编辑
摘要:1)请确保 IEDriverServer 的可执行文件在系统环境变量PATH 中2)在IE7 和以上版本的Internet Explorer 上,必须确保保护模式的正确配置。设置方式为 Tools->Internet Options->Security。每个不同的Zone 的ProtectedMod... 阅读全文
posted @ 2015-06-03 14:54 *飞飞* 阅读(834) 评论(0) 推荐(0) 编辑