当前位置:网站首页>Jenkins continuous integration automation test practice (Part 2)
Jenkins continuous integration automation test practice (Part 2)
2022-07-21 23:30:00 【Pot talk soft test】
Deploy and run the project
In this example, the item is directly marked jar package , Then it can be directly in the project target Start... In the directory jar The package completes the project deployment and operation .
increase Execute Windows batch command Build steps , Write... In it bat The command script completes the project jar Package startup .
Write the project startup script command .
rem Entering the project target Catalog
cd target
rem avoid jenkins Task execution blocking , Open a new one cmd Window complete jar Package start
cmd /c start java -jar vip12splogin-1.0.jar
rem wait for 10 second , Until the project starts running normally
ping 127.0.0.1 -n 10
Perform automated tests
In this case , Use self-developed keywords + The data-driven framework is packaged jar Package completes automated test execution , Also use cmd The command is executed locally .
After completing the automatic test case design editing , Continue to increase Execute Windows batch command Build steps , Write... In it bat The command script completes the automation project Jar Package execution :
rem Switch to the packaged directory of the framework tool
cd /d F:\VIP12Auto frame
rem call jar Package execution spring Project automation testing
java -jar VIP12AutoWithFileName.jar web VIP12webspring.xlsx
perform Jenkins Build tasks
After completing all process configurations of the build task , Save build task , You will return to the build task operation menu .
Click on build now, Start build execution now , Execution time , The construction record will appear in the construction history below , Click to view the construction details .
边栏推荐
- 运用链表必记的九大超实用结论
- JS Basics
- Analyze examples and immersively master important concepts of matter
- C # from entry to mastery (I)
- 如何从业务测试过渡到测试开发呢?
- Expérience complète Rip
- Analysis of matter protocol characteristics (III) device discovery, authentication and distribution network
- C语言写三阶矩阵的转置
- Jenkins持续集成自动化测试实战(上篇)
- Unity lock the arc motion of the camera around the locked target
猜你喜欢
ms17_010 入侵Win7
遵守指南,快速提升自己:功能测试如何快速转向自动化测试
Great reward for data visualization chart plug-in development works (I)
CocosCreator 3. X environment construction
文件下载,用例怎么写?
Database beginner's notes
004_ SSSS_ Image-to-Image Translation with Conditional Adversarial Networks
如何做 APP 安装测试 ?
AGV调试随手记(一)——型号:MIR250
How to record game interface in unity editor
随机推荐
OSPF experiment
MGRE实验
带你轻松解密白盒测试及(Demo详解)
raptor 可视化工具
Application test of timer bidirectional break inputs based on stm32g4 series
C语言运用函数七大极易忽略的结论
Hcip section 1: network type learning
拼夕夕面試題之優惠券超發怎麼去測試?
接口测试没思路?一篇教你搞定面试
The difference between overloading and rewriting
beta. Version 4 has been released, and the domestic open source data visualization datart will trot into the RC stage next
Read and write of zip file
Software test 49 must ask interview questions + Answers
[semiconductor advanced process technology series] HKMG process technology (Part 2)
Jacobian矩阵的计算(三维重建task2-4)
Hcip day 10
APP 兼容性专项测试
Static comprehensive experiment
All equipment, accessible throughout the network
关于char str[20]=““ 和 char str[20]=“ “