当前位置:网站首页>Interface automation test platform fasterrunner series (IV) - continuous integration and solution of multi domain names
Interface automation test platform fasterrunner series (IV) - continuous integration and solution of multi domain names
2022-07-25 18:47:00 【wangmcn】
Interface automation test platform FasterRunner series ( Four )
Continuous integration 、 Solve the problem of multiple domain names
Catalog
- 1、 Continuous integration
- 1.1、Jenkins
- 1.2、 Script code
- 1.3、 Send report
- 2、 Solve the problem of multiple domain names
1、 Continuous integration
Due to the present FasterRunner For the time being, it has not been connected with Jenkins Integrate , The idea of implementation is to use FasterRunner To interface with Jenkins Continuous integration .
1.1、Jenkins
Created 2 A project , Script execution methods are divided into : Regular execution and manual execution
Execute use cases regularly ( All )
Manually execute the use case ( Single )
Execute configuration regularly
Perform configuration manually
1.2、 Script code
configure.conf The configuration file , Mainly set the report switch 、 Special news 、 Number of failed cases .
data.yaml The configuration file , For storing nail licenses token、 Test case set ID
Program execution entry code ( part ):
Execute the use case set
Get the report from the database ( part )
Send report to nailing
Nailing report content ( part )
1.3、 Send report
After the execution of the test case set , Send the report to the nail group .
1、 test result : success
2、 test result : Failure , Mark the number of failed cases , And intercept the failed interface information .
2、 Solve the problem of multiple domain names
In the process of interface automation testing , Captured interface , Often not a single domain name , But according to different services , And there are multiple domain names ( Such as interface 1 The domain name used is AAA, Interface 2 The domain name used is BBB), Plus different environments ( Test environment 、 Production environment, etc ), At this time, simply using configuration cannot meet the specified switching of multiple domain names and multiple environments .
Solutions :
1、 Write functions in the driver code , Fill in multiple domain names and addresses .
As shown in the figure : Parameters pod To specify the domain name used , Parameters environment To specify the switching environment .
2、 The interface refers to the function in the driver code .
As shown in the figure : Reference function {getURL(environment,app)} , among app To determine which domain name to use ,
边栏推荐
- Introduction notes of JVM foundation and problem analysis
- Summer Challenge [FFH] this midsummer, a "cool" code rain!
- 接口自动化测试平台FasterRunner系列(二)- 功能模块
- "Wdsr-3" Penglai pharmaceutical Bureau solution
- 文件常用操作
- [translation] logstash, fluent, fluent bit, or vector? How to choose the right open source log collector
- ServletConfig class and ServletContext class
- [QNX hypervisor 2.2 user manual]9.4 dryrun
- 通讯录(二)
- The Yellow Crane Tower has a super shocking perspective. You've never seen such a VR panorama!
猜你喜欢

TypeError: Unrecognized value type: <class ‘str‘> ParserError: Unknown string format

MySQL子查询篇(精选20道子查询练习题)

ThreadLocal夺命11连问

Share six practical applet plug-ins

Optimistic lock resolution

阿里云技术专家秦隆:可靠性保障必备——云上如何进行混沌工程?

How to build an enterprise level OLAP data engine for massive data and high real-time requirements?

怎样设计产品帮助中心?以下几点不可忽视

动态内存管理

曾拿2亿融资,昔日网红书店如今全国闭店,60家店仅剩3家
随机推荐
Yyds dry inventory interview must brush top101: reverse linked list
How developers choose the right database for react native
CS615 System Administration, Week 02, Segment 5 - Partitions
Add a little surprise to life and be a prototype designer of creative life -- sharing with X contestants in the programming challenge
"Wdsr-3" Penglai pharmaceutical Bureau solution
jmeter性能测试实战视频(常用性能测试工具有哪些)
接口自动化测试平台FasterRunner系列(三)- 操作示例
东北人,最懂性感
The auction house is a VC, and the first time it makes a move, it throws a Web3
Esp32 S3 vscode+idf setup
What is the difference between GB and gib disk space units?
Register carefully! The number of applicants for these double non-governmental institutions exceeded 10000!
【开源工程】STM32C8T6+ADC信号采集+OLED波形显示
Experiment 2 goods purchase and sale management system
Trust multithread security count
VIM basic operation commands
A brief history from object detection to image segmentation
进程通信(SystemV通信方式:共享内存,消息队列,信号量)
Ceres curve fitting
APP测试点(思维导图)