- 博客(16)
- 资源 (1)
- 收藏
- 关注
翻译 webDriver提供了四种类型启动browser的方式:firefox,chrome,ie,htmluint
1、启动firefox浏览器a.如果你的本地firefox是默认路径安装的话,如下方式即可启动浏览器WebDriver driver = new FirefoxDriver();driver.get("http://www.baidu.com");b.如果不是默认路径安装,需要先将firefox.exe配置到系统变量中去,如下: System.setProperty("webdriver.f...
2018-03-13 14:27:16 772
原创 LoadRunner常用知识点-----LoadRunner日志输出
在Windows环境下,日志文件output.txt保存在脚本目录中;在UNIX环境下,保存在标准输出中。【Vuser】——【Run Time Settings】——【General】——【Log】1、【Enable logging】启动日志功能;(建议运行场景进行负载测试时关闭此项)2、【Send messages only when an error occurs】仅发送出错时的日志,可设置缓...
2018-03-13 14:20:34 630
原创 LR参数化设置
在“Selectnextrow”中输入更新方法,以说明虚拟用户在获取第一行数据后,下一行数据按照什么规则来取。方法可以是:顺序的(Sequential)、随机的(Random)、唯一的(Unique),或者与其他参数表相同的行(SameLineas..)。1.顺序(Sequential):该方法顺序地给虚拟用户分配参数值。如果正在运行的虚拟用户访问数据表的时候,它会取到下一行中可用的...
2018-03-13 14:19:08 2303
原创 win7 xp mode XPMUser 注销后登录密码错误,怎么办?
遇到此问题,我解决办法下:1、首先更改用户名,由XPMUser改为XP;2、删除XP用户密码,当时我输入的原始密码是123456,即当前XP户无密码;3、好,问题来了,重启后用户名任然是XPMUser,改成XP,登录失败;4、虚拟机设置,将登录凭证-》密码保护去掉;5、关闭虚拟机,再打开,登录系统后,再将用户名修改成XPMUser,设置密码;6、登录成功;...
2018-03-13 14:18:47 829
原创 项目环境搭建
1、安装数据库:输入数据库实例名(一般默认orcl)、数据库管理员密码(自定义oracle);2、PLsql登陆,本机连orcl,用户名SYS或system,密码oracle(他机连本机:建TNSname)3、建表空间:create tablespace TCIS_INDX datafile 'c:\oracle\oradata\tcis\tcisindex.dbf' size 200M; ...
2018-03-13 14:17:25 188
原创 Loadrunner __windows socket小脚本
#include "lrs.h" Action() { char *cOut="ffff<NewParam_1>---<NewParam_1>\0"; //size_t strlen(const cOut); char *BufVal; //记录接收到的数据包 int intGe...
2018-03-13 14:16:40 193
原创 selenium弹出框、页面跳转处理
<span style="white-space:pre"> </span>//得到当前窗口的句柄 String currentWindow = wd.getWindowHandle(); System.out.print(currentWindow); //得到所有窗口的句柄 Set<String> hand...
2015-01-14 14:57:43 2123
转载 SVN
Subversion有一个很标准的目录结构,是这样的。比如项目是proj,svn地址为svn://proj/,那么标准的svn布局是svn://proj/|+-trunk+-branches+-tags这是一个标准的布局,trunk为主开发目录,branches为分支开发目录,tags为tag存档目录(不允许修改)。但是具体这几个目录应该如何使用,svn并没有明确的规范,更多的还是用户自己的习惯。...
2014-12-03 16:50:21 284
原创 小小自动化
package web;import java.util.List;import junit.framework.TestCase;import org.junit.Before;import org.junit.Test;import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.o...
2014-08-07 10:25:37 368
转载 如何处理Alert、confirm、prompt
例子:<html><head><title>Alert</title></head><body><input id = "alert" value = "alert" type = "button" onclick = "alert('欢迎!请按确认
2014-07-01 17:33:23 373
原创 webdriver打开链接新页面
html例子:点击链接,代开51网站<html><head><title>Test Popup Window</title></head><body><a id = "51" href = "http://www.51.com/" target = "_blank">Let's go!</a...
2014-06-30 10:28:23 4682
原创 webdriver定位元素并打印title
package web;import java.util.List;import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.WebElement;import org.openqa.selenium.firefox.FirefoxDriver;publ...
2014-06-26 17:34:59 713
原创 webdriver打开浏览器输入selenium
package web;import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.WebElement;import org.openqa.selenium.firefox.FirefoxDriver;public class FindTest {p...
2014-06-25 18:00:55 415
原创 webdriver启动chorome浏览器
package web;import java.io.File;import java.util.concurrent.TimeUnit;import com.thoughtworks.selenium.*; import com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium;import org.junit.*;imp...
2014-06-24 17:41:05 547
原创 webdriver启动IE浏览器_报错
报错信息:java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.ie.driver system property是因为没有找到IE浏览器(不是因为你没有安装IE,而是你的IE版本和你的电脑版本不一致),怎么办呢?1、下载IEDriverServer.exe,放...
2014-06-24 14:57:59 643
原创 webdriver启动firefox浏览器
package web;import java.util.concurrent.TimeUnit;import com.thoughtworks.selenium.*; import com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium;import org.junit.*;import org.openqa.seleni...
2014-06-11 18:01:53 588
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人