当前位置:网站首页>Selenium distributed testing
Selenium distributed testing
2022-06-10 10:23:00 【Wang Dashan 0928】
selenium Distributed testing
Selenium Grid
Selenium Grid yes Selenium One of the three components of , Its function is to execute tests in a distributed way .
UI The advantages and value of automation are mainly reflected in : Repeat the test and multi browser compatibility test ; What is the concept of distribution ? Simply put, the boss received the task , Give it to your hands to work ;Selenium Grid It can control multiple machines and multiple browsers to execute test cases , The distributed execution environment is Selenium Grid called node node .
Selenium Grid principle
Selenium Grid Actually it is based on Selenium RC Of , The so-called distributed structure is composed of a hub Nodes and a number of node The composition of agent nodes . Hub It is used to manage the registration information and status information of each agent node , And accept the request call from the remote client code , Then forward the requested command to the agent node to execute .
Selenium Grid What's the usage? ?
- In different browsers 、 Run tests on the operating system and the machine - Distributed testing
- For compatibility testing to the greatest extent
- Improve the efficiency of automated execution , Reduce running time
Selenium Grid The deployment environment
start-up Selenium Grid In three ways :
- Start... From the command line --bat start-up
- use JSON Profile startup
- use docker start-up
start-up Selenium Grid The preparatory work
Will use 2 Taiwan machine , One runs hub The other one is running node, For ease of description , Will run hub Our machine is named “Machine H”(IP:192.168.1.114), function node Our machine is named “Machine N”(IP:192.168.1.87);2 The machines must be in the same LAN .
Environmental requirements
- selenium Grid rely on java Environmental Science , So whether it's hub And is node machine , There must be JDK Environment
- download selenium server,selenium server Namely selenium Grid The core , It is also the key to start , take selenium-server- standalone-X.XX.jar We separate “Machine H” and “Machine N” On ( Custom path )
Command line start -Selenium Grid
In the machine “Machine H” Open the command line on the , Switch to selenium server Path , function :java -jar selenium-server- standalone-3.141.59.jar -role hub -port 5566.
verification Hub Startup successful :
In the machine “Machine H” Enter... In the browser on the :http://localhost:5566/grid/console , You will see the following figure :
In the machine “Machine N” Check out Hub, The address in the browser localhost To be changed to “Machine H” Of IP Address 
边栏推荐
- 干货!基于掩码标签平滑的机器翻译模型训练方法
- “会说话的汤姆猫家族-时代逐光者”3D数字藏品中奖名单公布
- Design of smart home control system (onenet) based on stm32_ two thousand and twenty-two
- xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Deve
- 无心剑中译拜伦诗4首
- 【FAQ】运动健康服务REST API接口使用过程中常见问题和解决方法总结
- 2022年煤矿井下电气考试题库及在线模拟考试
- Requirements and business model analysis - Requirements 16 - requirements validation
- 图像处理理论和应用
- "Isolation insurance" has become a "net red" product, but many policyholders say that it is difficult to settle claims
猜你喜欢

Why is your next computer a computer? Explore different remote operations
![[image denoising] image denoising based on MATLAB bdcnn [including Matlab source code 1866]](/img/d0/1509fde114ad8af7a7026086a86821.jpg)
[image denoising] image denoising based on MATLAB bdcnn [including Matlab source code 1866]

Install the latest version of cocoapods tutorial

Uncaught TypeError: Cannot read properties of undefined (reading ‘colspan‘)

Important technological breakthrough in privacy computing! 100 million level data density analysis can be completed in 10 minutes

Basic process of program compilation

MongoDB 发布“可查询加密”系统 Queryable Encryption

Qchart note 1: simple linear diagram lineseries

2021 ciscn-pwn 初赛

Requirements and business model analysis - Requirements 17- requirements management
随机推荐
Why is your next computer a computer? Explore different remote operations
Print: Entry, ':CFBundleIdentifier', Does Not Exist
kubernetes 设置 Master 可调度与不可调度
ADB 日志抓取
Microsoft exposes another "scandal": watching VR porn in the office, "the father of hololens" is about to leave!
NFT铸造交易平台开发市场详情
图像处理理论和应用
“会说话的汤姆猫家族-时代逐光者”3D数字藏品中奖名单公布
PostgreSQL cost model
HPCA名人堂成员蒋晓维博士,任职大禹智芯首席科学家
What are the tools and software needed for SCM development
The new domestic golang framework is ready to be released. Come and have a look
隐私计算重要技术突破!亿级数据密态分析可在10分钟内完成
5g Unicom network management design idea
混音器:视频会议录制不可或缺的组件
Demand and business model innovation - demand 15- demand specification
Composite mode example
张小白教你使用OGG实现Oracle 19C到MySQL 5.7的数据同步(3)
【图像去噪】基于matlab BdCNN图像去噪【含Matlab源码 1866期】
SAP 云平台多目标应用 Multi-Target Application 的开发技术介绍