selenium之多线程启动grid分布式测试框架封装(一)
一、设计思路
在国内市场上,IE内核的浏览器占据了绝大部分的市场份额,那么此次框架封装将进行IE系列的浏览器进行多线程并发执行分布式测试的封装。
运行时主进程与多线程关系如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAASAAAAFrCAIAAAD+fsN4AAAgAElEQVR4nO2d728V15nH9x+7rVJvq3pXa+8btC9oVSkStzRug7frtZRQUdyILKoIu67EtV1yWRPwUhBOCWvhLsUhWLVywQu40m1M0uCsWYKx+BER2wIbmmdfPPHZ8Zwfc2buzD3njL8fnRdz5557ZjzMh2fuc8+PvyIAQGH8lesTAKDMQDAACgSCAVAgEAyAAoFgABQIBAOgQCAYAAUCwQAoEAhWWr4iIqKpuXt7j9/oHpgqQemvz75z6dON539xfGXTAMHKzNTcPedW5F4Gz33k+rqmAIKVmd6Rq859yL3sOHA5oCAGwcqMcxkKKq6vawogWJlxbgIEg2BlxrkJEAyClRnnJkAwCFZmnJsAwSBYmXFuAgSDYGUml1s5WzXek8s5QDDgKWYTEuvbVzZ8VvkWbeqXeMIQDPhLvkEpsSZtFVJnha5OqiOGAgQrM5nNIX38sRdMeRpkLdie6VUiujvdgGDAUywDQitxTD6c+ehk8djZNdA4+4DuTjcOz0Mw4DHZnrKUoSmxffNLuREbvSEY8BrdfWkTo5Qt6Oorj6U8ou5wEAyER+JDmlkYw1vmBg0nEN2feMIQDHhNomAUudezBSvdEZUtizrKmohgIAwePVnjDbNglBTKlC3omrWJgcqzMjQIwYCPTN9c4A3zra8kL8Fkk0kVuwxHh2DAU46dv8Yb5vs+8S1lTUOzJD34kcUDobyH0/RRGuMQDHjD67VJ3jCEr1QhyCxh7FiJLzOHRAgGvKC7b/TrDf2tbPq4tUv2PsjbiUeHYMBHHj1Zq1RrvJ3WhFCK2yucCghWNqZvLkAwf4BgZePY+WsQzB8gWNl4vTYJwfwBgpWN7r7Rjp6Rr7ddmwDBIFip4AzH7oPj/NK5CRAMgpUKznD86vQf+KVz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WmWKvrpIpVBsBgQDATDsfPXeCNREps9unZSVYiSyiUIBrxj+uYCbyRGksQ9ykZIr193JELGzkF3PhAMBMajJ2u80eIdbFNNd9+b25TPGYKB8LC/L+U6hk8p95ujn6ijrIkIBoJEF3AoKc9hs8cc1kgV3DK3CcGAjzgRTHcgsoiKXQONsw/o7nQjtkHzTQgGvKM9gsWORXqpEtuEYCAkChVMPkriy1aiIgQD3pH2jpS1SWw50QSl3q20CcGAL2SLD/4X19c1BRCszDg3AYJBsDLj3AQIBsHKjHMTIBgEKzPOTYBgEKzMODcBgkGwMuPcBAgGwcqMcxMgGAQrM85NgGAQrMzsGpxxLkMRZf35X1xfWlsgWJl5+2OWlkUAAACDSURBVHefOJch9zIwNuf6uqYAgpWZjed/GRibc65EjqW/Prv8xVPX1zUFEAwEQ0BPhgIIBkCBQDAACgSCAVAgEAyAAoFgABQIBAOgQCAYAAUCwQAoEAgGQIFAMAAKBIIBUCAQDIACgWAAFAgEA6BAIBgABQLBACgQCAZAgUAwAArk/wCKq5EkrG3cfwAAAABJRU5ErkJggg==" alt="" />
运行线程通俗的说就是我们用来跑用例的线程,其中《监控线程1》用来监控《运行线程1》的运行状态。
二、前期准备
1、创建一个java工程。
2、导入selenium、dom4j、log4j相关jar包
可到网上自行寻找jar包,也可到我云盘中下载,地址:
selenium jar 以及源码jar :http://yunpan.cn/cKaJ6NAy3QT9z 访问密码 1732
dom4j : http://yunpan.cn/cKaJ2ReKdFxsa 访问密码 b710
log4j : http://yunpan.cn/cKaJEryj757Qc 访问密码 c300
3、准备若干台作为服务端的测试机,如练习时无那么多物理机也可以选择使用虚拟机来进行练习。
4、下载selenium server ,翻墙的同学可自行到官网下载,未翻墙的可到我云盘下载,地址:http://yunpan.cn/cKaJq6JvSsr5T 访问密码 aae6
5、在所有测试机上安装java运行环境JDK。
6、配置好java环境变量后,运行selenium server
命令: javar -jar selenium-server-standalone-2.24.1.jar
这一步也可以等进行代码调试的时候进行。
三、配置文件设计
创建一个XML文件,命名为:RemoteServerLaunchInfo.xml
<?xml version="1.0" encoding="UTF-8"?>
<lingfeng>
<!-- homepage 就是我们所要进行测试的主页 -->
<homepage>http://www.baidu.com</homepage> <!-- remote-server标签就是保存远程服务端信息的,status属性来控制是否运行 on为打开,off为关闭 -->
<remote-server ID="1" name = "IE6" status="off">http://你的测试机IP:4444/wd/hub</remote-server>
<remote-server ID="2" name = "IE7" status="off">http://你的测试机IP:4444/wd/hub</remote-server>
<remote-server ID="3" name = "IE8" status="on">http://你的测试机IP:4444/wd/hub</remote-server>
<remote-server ID="4" name = "IE9" status="off">http://你的测试机IP:4444/wd/hub</remote-server>
<remote-server ID="5" name = "IE10" status="on">http://你的测试机IP:4444/wd/hub</remote-server>
<remote-server ID="6" name = "IE11" status="off">http://你的测试机IP:4444/wd/hub</remote-server> </lingfeng>
由于就是我一个人写这个XML文件,此处就没有进行XML Schema的设计,自己写就随意一点吧,哈哈!
四、目录创建
com.lingfeng.domain 这个目录用来存储需要保存的javabean
com.lingfeng.junit 测试代码保存目录
com.lingfeng.start 入口目录
com.lingfeng.staticPage 打开要测试的网站目录,也是存储用例代码的目录
com.lingfeng.utils 工具目录
目录创建完成如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQIAAADcCAIAAAAUbjjsAAAZYUlEQVR4nO2dX2wUR57H+yXvPETK8nBKLpvNOkEHWoRHnBVxebmY3D4kF8kSSAEMJHNBZKWAslpzFy62Y5vBkMsc2OBsFuNkYzLgP3Hg8NobkIEIg4kDJkAyN5Yd22NjM/b4Bv+bHpts3UPPdFd1VXXP2N0z5Z7fRyWrp6aqurqnvtNV0/31T0LpImfHsbTtCwCSQZblwcHB+/fvS2nbJcgAEA1ZlgcGBsbGxqyUwe2mfWqi3wUZAKJhvQx6GveRL4t0BQxl0OvNkyR369K70eqW9FjRLOBILJNBdcnB6pKD1SWe+Qe18w9q5346NnH7UPDy/v89u6e6xIMQeuU/TysljWTQ683Ly8szH7C93iQKIYQQanUvZvgn3z7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LQsC4x+lKXgTV2ZOYpUXOz7KqTDhkge73IHPMx2xaMfebsAtQUi1GGFcGOnt4w6+qKpbBEttqOTIqadYzsS5UjSYcMbPYiczyQnEUAIQPTIWjuLTaUAV03PTJIxo6My4A72nHLtZOxXQb2e5F55mOmLVg3KaIL0P/Bwdhb3GsYHphZlzRvLmJSZIkdmXsRjcuKslw7GSF+KVqKF5lvPmav8ojvPu46Ute8rgxTBnhJnUmZXGbiy1Ev92pAzFHssCPrf1lgnCiq645FiPsGgnuRAccjxF1kob3IQBYghAwAILOADAAAZAAAIAMAQCADAEAgAwBAIAMAQCADAECOkEHCaGOHUxHIDgSSwTeHXGpKpR7IAFgqQjxThBBqevsZg5eG0LZLkAGQGkI8YfpNuUseq5HHaiJ+71iPZ+BSkb/lnW/KXXji1wYZAEtFCC/yhfK1cuS6QbpQvpZfG58UGRt2AYCNEF7kC++vlcdaDFLttqf4O2HLgGXYBQA2QniR/+f9tfJAnZqa9q4xSFRt3tVALQBzJMAEIbzITXtXyX6vkpr2rpEHaphprMcDMgDsQAgvcv3bz8h+j+z3NO1do2zQiaMBxJ0UMQy7AMBGiF+Karf9ndxT1LR3jdxTzEx8DSDu1YBh2AUANkLcN/jotZVNe9fIPUXMZKgBALAAUe4i17p/bZAy2zfA8YgiAwDIICADAAAZAADIAAAQyAAAEMgAABAmg/8Hos121G6LoawAAAAASUVORK5CYII=" alt="" />
未完待续!!!!!马上奉上!
selenium之多线程启动grid分布式测试框架封装(一)的更多相关文章
- selenium之多线程启动grid分布式测试框架封装(四)
九.工具类,启动所有远程服务的浏览器 在utils包中创建java类:LaunchAllRemoteBrowsers package com.lingfeng.utils; import java.n ...
- selenium之多线程启动grid分布式测试框架封装(三)
七.工具类,线程监控器类创建 utils包中,创建java类:RemoteThreadStatusMonitor.java package com.lingfeng.utils; /** * 此监控器 ...
- selenium之多线程启动grid分布式测试框架封装(二)
五.domain类创建 在domain包中创建类:RemoteLanchInfo.java 用来保存启动信息. package com.lingfeng.domain; public class Re ...
- Selenium Grid分布式测试入门详解
本文对Selenium Grid进行了完整的介绍,从环境准备到使用Selenium Grid进行一次完整的多节点分布式测试. 运行环境为Windows 10,Selenium版本为 3.5.0,Chr ...
- Selenium Grid分布式测试环境搭建
Selenium Grid简介 Selenium Grid实际上是基于Selenium RC的,而所谓的分布式结构就是由一个hub节点和若干个node代理节点组成.Hub用来管理各个代理节点的注册信息 ...
- e2e测试框架之Cypress
谈起web自动化测试,大家首先想到的是Selenium!随着近几年前端技术的发展,出现了不少前端测试框架,这些测试框架大多并不依赖于Selenium,这一点跟后端测试框架有很大不同,如Robot Fr ...
- selenium 测试框架中使用grid
之前的测试框架:http://www.cnblogs.com/tobecrazy/p/4553444.html 配合Jenkins可持续集成:http://www.cnblogs.com/tobecr ...
- selenium结合docker构建分布式测试环境
selenium是目前web和app自动化测试的主要框架.对于web自动化测试而言,由于selenium2.0以后socker服务器由本地浏览器自己启动且直接通过浏览器原生API操作页面,故越来越多的 ...
- web自动化测试---selenium分布式测试
使用selenium框架还可以进行分布式测试,操作如下: 准备俩台PC:A和B,ip分别为IP_A和IP_B 下载最新的selenium-standalone的jar包,可以到下面地址下载各版本的包: ...
随机推荐
- LayoutDemo
package swing.ui; import java.awt.BorderLayout; import java.awt.GridLayout; import javax.swing.JButt ...
- 嵌入在网页上Flash媒体播放器(1)
做的项目,在不久的将来相关的Flash玩家使用,需要播放视频的网页上,不同的视频资源,需要不同的球员.基于使用稳定性.的嵌入式和嵌入式复杂性能的优点概括起来有两种方式(不同的玩家),视频资源也略有不同 ...
- Install Orace 11g on Solaris 10 Sparc 64 bit
昨天有一个客户端安装11g数据库.整个安装过程和一些遇到的问题是一个创纪录.共享. 由于客户不能使用自己的机器远程连接到server,意通过U盘.移动硬盘等拷贝不论什么文件.因此一些记录内容无法做到非 ...
- Nginx + unicorn 运行多个Rails应用程序
PS:第一次写的很详细,可惜发布失败,然后全没了,这是第二次,表示只贴代码,剩下的自己领悟好了,这就是所谓的一鼓作气再而衰吧,希望没有第三次. 版本: ruby 2.1.0 rails 4.0.2 n ...
- .NET反编译之Reflector
.NET反编译之Reflector 这几日由于公司需要, 看了些.NET反编译技巧,特地和大家分享下 .NET反编译工具很多,Reflector是其中一个很优秀的工具,所以就用它来进行反编译工作了.今 ...
- 把自解压的RAR压缩包解压到指定的软件安装目录
原文 把自解压的RAR压缩包解压到指定的软件安装目录 今天千里独行同学给轻狂来信问了一个问题:如何把一个自解压的RAR压缩包解压到我们指定的软件安装目录. 其实,在NSIS中,我们可以灵活运用相关 ...
- 皴linux rootpassword(方式:重置rootpassword)
皴linux rootpassword: 开机后,.点击"e"进入维护模式.选"内核选项",例如,看到下面的数字: watermark/2/text/aHR0c ...
- discuz 7.2 faq.php sql注入了一些研究
6.2号码(可能更早)上网本见exp,是一家discuz 7.2的sql注入漏洞 经过反复研究.最高在线人数exp它们存在于这些或那些问题,经过我自己的使用和变更摘要,使用的方法如以下: Discuz ...
- 怎样批量把excel中已显示的科学计数法取消
作者:iamlaosong 把一文本文档拷贝到EXCEL中时,当中一列数字所有变成科学计数法,这些数事实上是条码号,不需进行运算,怎样能够取消科学计算法,将数字显示成原来的样子呢?一般方法例如以下: ...
- 解决 configure.ac:17: error: possibly undefined macro: AC_PROG_LIBTOOL
当安装configure.ac:17: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are le ...