当前位置:网站首页>Use Jenkins for continuous integration, this knowledge point must be mastered
Use Jenkins for continuous integration, this knowledge point must be mastered
2022-08-01 22:07:00 【Test Cortana】
Thank you for taking out
Jenkins is a commonly used continuous integration tool. I think everyone will use it more or less when doing automated testing. I don't know how you use Jenkins to trigger automation when you are doing UI automation testing.What about the test script?
01, Part one
Generally speaking, for beginners, Jenkins is usually installed on the local machine, and the code is also stored on the local machine or Git. No matter which storage method is used, it will eventually land on the local machine.Using Jenkins to trigger UI automation test scripts in this environment is actually very simple. You only need to create a Job and configure the trigger method in the Job. Let's take Python+Selenium as an example, such as
Build
02, Part two
But there is a problem. I don't know if you have encountered it. In actual work, Jenkins and the machine used to run automated tests are often not the same machine. For example, Jenkins is deployed on a Linux server, and UI automation tests are run on Windows entities.machine or Windows virtual machine, then the question is, how does Jenkins trigger this Windows machine to make the UI automation script run?
Here we need to understand the agent mechanism of Jenkins.
Jenkins architecture is designed for distributed build environments.It allows us to use a different environment for each build project to balance the workload among multiple agents running jobs in parallel.
The Jenkins controller is the original node in the Jenkins installation.The Jenkins controller manages the Jenkins agents and coordinates their jobs, including building Jobs on the agents and monitoring the agents.Agents can connect to the Jenkins controller using a local or cloud computer.
, Duration 02:09
01, create Jenkins node
1. Click System Configuration, Click Node Management
System Configuration
Create node
Create node 2
2. Download the agent and save it to the specified directory of the remote machine
Download agent
3. The remote machine starts the agent (it should be noted that JDK must be installed and environment variables must be configured)
java -jar agent.jar -jnlpUrl https://qa.jenkins.com/computer/autotest_node/slave-agent.jnlp -secret b323s70ss08sbougs92f043fcfda9644hsns04snspbs
Start agent
02, Jenkins Job Configuration
General selects the running node of the restricted project, and selects the created node in the label expression
Learning resource sharing
Finally, I would like to thank everyone who has read my article carefully. Watching the rise and attention of fans all the way, there is always a need for gifts. Although it is not a very valuable thing, if you can use it, you can take it directly.
These materials should be the most comprehensive and complete preparation warehouse for friends who do [software testing]. This warehouse has also accompanied me through the most difficult journey. I hope it can also help you!Everything should be done as early as possible, especially in the technology industry, and the technical foundation must be improved.Hope it will be helpful to you all...
If you don't want to experience the feeling that you can't find any information during self-study, no one answers your questions, and give up after a few days, you can join my QQ group below to discuss and exchange, there are also various softwareTest data and technical exchange.
边栏推荐
猜你喜欢
小程序毕设作品之微信美食菜谱小程序毕业设计成品(6)开题答辩PPT
恒星的正方形问题
shell programming conventions and variables
工程建筑行业数据中台指标分析
罗克韦尔AB PLC RSLogix5000中的比较指令使用方法介绍
LeetCode952三部曲之一:解题思路和初级解法(137ms,超39%)
C语言必杀技3行代码把运行速度提升4倍
SOM Network 1: Principles Explained
xctf attack and defense world web master advanced area web2
【建议收藏】ヾ(^▽^*)))全网最全输入输出格式符整理
随机推荐
Shell programming conditional statement
leetcode 204. Count Primes 计数质数 (Easy)
LeetCode952三部曲之二:小幅度优化(137ms -> 122ms,超39% -> 超51%)
shell programming conventions and variables
【ASM】字节码操作 MethodWriter
SAP Spartacus Accessibility E2E 端到端测试
feel so stupid
线上故障排查方案
将vim与系统剪贴板的交互使用
编曲软件FL studio20.8中文版功能和作用
高等代数_证明_矩阵的任意特征值的代数重数大于等于其几何重数
leetcode 204. Count Primes 计数质数 (Easy)
Advanced Algebra_Proof_The algebraic multiplicity of any eigenvalue of a matrix is greater than or equal to its geometric multiplicity
今日睡眠质量记录74分
用户体验 | 如何度量用户体验?
Implementation principle of VGUgarbage collector (garbage collector)
2022 版 MySQL 巅峰教程,收藏好,慢慢看
小程序毕设作品之微信美食菜谱小程序毕业设计成品(5)任务书
Yizhou Financial Analysis | The intelligent transformation of bank ATM machines is accelerated; the new Internet loan regulations bring challenges
如何给 UE4 场景添加游戏角色