当前位置:网站首页>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 23:36:00 【Test the world rejoice】
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 automated test scripts when you are doing UI automation testing.
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.
A Jenkins controller is the original node in a 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.
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
job configuration
Finally: Available on the official account: Sad Spicy Tiao!Get a 216-page software test engineer interview collection document by yourself [free].And the corresponding video learning tutorials are shared for free!, including basic knowledge, Linux essentials, Shell, Internet program principles, Mysql database, packet capture tool topics, interface testing tools, advanced testing-Python programming, Web automated testing, APP automated testing, interface automated testing, testingAdvanced continuous integration, testing architecture development testing framework, performance testing, security testing, etc.
Now I invite you to join our software testing learning exchange group: [746506216
], note "join the group", everyone can join togetherDiscuss and communicate software testing, learn software testing techniques, interviews and other aspects of software testing together. There will also be free live classes to gain more testing skills. Let's advance Python automated testing/test development together and move towards a high-paying careerroad.
Friends who like software testing, if my blog is helpful to you, if you like my blog content, please "Like", "Comment" and "Favorite" with one click!
Self-study course for software test engineers:
Interface performance test—software testers must know 618 actual combat scene analysis
Meituan Interview Questions_Advanced Test 25K Job Interview - Software testers should see it
Jmeter actual combat explanation case - software testers must know
边栏推荐
- 计算两点之间的距离
- 浅析多服务在分布式系统下多事务通信处理机制方案
- The monthly salary of the test post is 5-9k, how to increase the salary to 25k?
- 还在纠结报表工具的选型么?来看看这个
- numpy.around
- Calculate the midpoint between two points
- JAX-based activation function, softmax function and cross entropy function
- Access the selected node in the console
- TCP 可靠吗?为什么?
- 中职网络安全竞赛B7比赛部署流程
猜你喜欢
From 0 to 1: Design and R&D Notes of Graphic Voting Mini Program
sys_kill system call
The third chapter of the imitation cattle network project: develop the core functions of the community (detailed steps and ideas)
Leetcode 129求根节点到叶节点数字之和、104二叉树的最大深度、8字符串转换整数(atoi)、82删除排序链表中的重复元素II、204二分查找、94二叉树的中序遍历、144二叉树的前序遍历
软技能之UML图
UML diagram of soft skills
Codeforces CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!) A-D Solution
cmd指令
Sql之各种Join
数据机构---第五章树与二叉树---二叉树的概念---应用题
随机推荐
perspectiveTransform warpPerspective getPerspectiveTransform findHomography
6132. All the elements in the array is equal to zero - quick sort method
Spark Sql之join on and和where
月薪12K,蝶变向新,勇往直前—她通过转行测试实现月薪翻倍~
中职网络安全竞赛B7比赛部署流程
chrome copies the base64 data of an image
drf生成序列化类代码
Flink学习第三天——一文带你了解什么是Flink流?
欧拉路径与欧拉回路
Oracle database is set to read-only and read-write
2022第六届强网杯部分wp
问题解决方式了
B. Difference Array--Codeforces Round #808 (Div. 1)
数据机构---第五章树与二叉树---二叉树的概念---应用题
请问什么是 CICD
problem solved
Avoid hidden text when loading fonts
UML diagram of soft skills
numpy.unique
Chapter 19 Tips and Traps: Common Goofs for Novices