当前位置:网站首页>"Introduction to interface testing" punch in day08: can you save all parameters to excel for test data?
"Introduction to interface testing" punch in day08: can you save all parameters to excel for test data?
2022-07-25 02:30:00 【Field test record】
Ideas : You need to encapsulate the data , In a better way , Store data in a data storage file , In this way, the code can find the corresponding parameters by itself , Then call the test framework to execute the test process , Then return the expectation through automatic comparison , Check whether the test results are correct .
Two benefits .1、 Nobody is on duty , Save time and energy .2、 Automatically detect the return value , Improve test efficiency .
How to select test data
1、 First , You first need to define a parameter storage format , For now ,Excel It is the most used tool in designing test cases , Then we can also use Excel Store files as your own parameters .
But before we do it , You should also think of , Your parameter file type will not be unchanging Excel, In the future, you may also use parameter files in other formats , So at the beginning, you should also consider the extensibility of parameter classes , In this way, you don't need every additional parameter file storage format , Just write a parameter class , To complete the selection and call of parameters .
Thinking is through unified abstraction , Establish a common way to process data . You can design and use simple factory design patterns , In this way, if there is another parameter storage type , Add a corresponding processing class , This is very convenient for you to expand quickly , It can also provide a unified data processing mode once and for all .
边栏推荐
- When sharing a folder, the 'attempt to share xxxxx
- Ten year structure and five-year Life-03 trouble as a technical team leader
- After six years of precipitation, new consumption has found a digital transformation paradigm
- Win10 configuring CUDA and cudnn
- Common functional interfaces_ Predicate interface_ Default method and and predicate interface exercise_ Set interface filtering
- About the relationship between parent process and child process (UAC bypass idea)
- Jedispoolconfig parameter configuration from the perspective of source code
- Chinese son-in-law OTA Ono became the first Asian president of the University of Michigan, with an annual salary of more than 6.5 million!
- Visualization of correlation coefficient matrix
- What are the important trends revealed by the release of "operator data viability index"?
猜你喜欢

Yunyuanyuan (VIII) | Devops in depth Devops

Genesis, the world's first "consumption investment" public chain, was invited to participate in consensus 2022

Simulate the implementation of StrCmp function
![[leetcode] 2. Add two numbers - go language problem solving](/img/26/9b5df9aedc34238ce816cbf8e72066.png)
[leetcode] 2. Add two numbers - go language problem solving

After working for two months in the summer vacation, I understood three routing schemes of keepalived high availability

After six years of precipitation, new consumption has found a digital transformation paradigm
![Simulation Implementation of [STL] string class](/img/be/2e4f8dd7da59753e109b38fdf51fba.png)
Simulation Implementation of [STL] string class

Cookies and sessions
![Codeforces:d1. choosing carrots (easy version) [max min problem + control one side to make the other side as close as possible + thinking]](/img/53/69276cb390016a0de980643dfc599a.png)
Codeforces:d1. choosing carrots (easy version) [max min problem + control one side to make the other side as close as possible + thinking]

Four redis cluster schemes you must know and their advantages and disadvantages
随机推荐
B2B e-commerce trading platform of heavy metal industry: breaking the state of data isolation and improving the benefits of heavy metal industry
Android memory optimized disk cache
H5 common positioning function package
Simulate the implementation of StrCmp function
Failed to create data snapshot: lock file [/siyuan/data/assets/image- 2022070216332-jijwccs.png failed: open /siyuan/data/assets/image- 2022070216332-jijwccs.png: permission denied; unable to lock fil
On the economic model of open source ecology
What are the basic skills of engineers? How to practice? -- Learning experience sharing "suggestions collection"
Origin and development of philosophy Hegel external historical form
Explanation of C language file operation function
Windows Server 2022 received a non security update in July: fix the sticking problem caused by defender
Redis unauthorized access vulnerability recurrence (www.hetianlab.com)
Arthas case: dynamic update application logger level
Matlab draws radar chart (four lines of code)
6-11 vulnerability exploitation - use the built environment to send emails
Cloudrev deploy your own public cloud disk (pagoda installation method)
A weird jedisconnectionexception: connection rejected problem
Simulate the implementation of strstr
About the relationship between parent process and child process (UAC bypass idea)
Yunyuanyuan (VIII) | Devops in depth Devops
[circular array] JS method collection of circular array