当前位置:网站首页>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.
边栏推荐
- MySQL related knowledge
- Yizhou Financial Analysis | The intelligent transformation of bank ATM machines is accelerated; the new Internet loan regulations bring challenges
- String - Trie
- ARFoundation Getting Started Tutorial U2-AR Scene Screenshot Screenshot
- Based on php tourism website management system acquisition (php graduation design)
- AIDL communication
- 迁移学习——Discriminative Transfer Subspace Learning via Low-Rank and Sparse Representation
- 【C语言实现】求两个整数的较大值
- NgRx Selector 的 Memoization 特性学习笔记
- HCIP---Multiple Spanning Tree Protocol related knowledge points
猜你喜欢

威纶通触摸屏如何打开并升级EB8000旧版本项目并更换触摸屏型号?

一种灵活的智能合约协作方式

feel so stupid

(Translation) How the contrasting color of the button guides the user's actions

感觉自己好傻

03、GO语言变量定义、函数

力扣第 304 场周赛复盘

number of solutions to solve a multivariate multi-degree equation

Prufer序列

19 Lectures on Disassembly of Multi-merchant Mall System Functions - Invoice Management on the Platform
随机推荐
xctf攻防世界 Web高手进阶区 web2
HCIP---Multiple Spanning Tree Protocol related knowledge points
365 days challenge LeetCode1000 questions - Day 046 Generate a string with odd number of each character + add two numbers + valid parentheses
selenium无头,防检测
还在纠结报表工具的选型么?来看看这个
03. GO language variable definition, function
【C语言实现】求两个整数的较大值
Yizhou Financial Analysis | The intelligent transformation of bank ATM machines is accelerated; the new Internet loan regulations bring challenges
基于 OData 模型和 JSON 模型的 SAP UI5 表格控件行项目的添加和删除实现
SOM网络2: 代码的实现
【Verilog刷题篇】硬件工程师从0到入门1|基础语法入门
罗克韦尔AB PLC RSLogix5000中的比较指令使用方法介绍
深度学习Course2第一周Practical aspects of Deep Learning习题整理
LeetCode952三部曲之一:解题思路和初级解法(137ms,超39%)
Small program -- subcontracting
编曲软件FL studio20.8中文版功能和作用
blender3.2.1 unit setting
MySQL related knowledge
Kubernetes Scheduler全解析
NgRx Selector 的 Memoization 特性学习笔记