当前位置:网站首页>"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 .
边栏推荐
- Summary and sorting of XSS (cross site script attack) related content
- On the economic model of open source ecology
- Cloud native platform, let edge applications play out!
- What are the important trends revealed by the release of "operator data viability index"?
- Redis unauthorized access vulnerability recurrence (www.hetianlab.com)
- 6-10 vulnerability exploitation SMTP experimental environment construction
- Babbitt | metauniverse daily must read: Dubai launched the national metauniverse strategy, which plans to increase the number of related companies of metauniverse by five times in the next five years
- Gbase 8s how to query relational databases in sentences to select sample syntax and results of data from complex types
- VRRP virtual redundancy protocol configuration
- Vite dynamically loads static resource pictures, and fixes the 404 problem of pictures after packaging.
猜你喜欢

6-10 vulnerability exploitation SMTP experimental environment construction

VRRP virtual redundancy protocol configuration

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!

Case analysis of building exhibition service management system with low code development platform

I was forced to graduate by a big factory and recited the eight part essay in a two-month window. Fortunately, I went ashore, otherwise I wouldn't be able to repay the mortgage

In the post deep learning era, where is the recommendation system going?

Cloud native platform, let edge applications play out!

ICO objects in classification

Project management tool Zen

Server performance monitoring
随机推荐
Use Fiddler to capture apps
Server performance monitoring
Anacona has too many environments?? How to view your current environment in jupyter
Cloud native platform, let edge applications play out!
Sword finger offer 11. rotate the minimum number of the array
6-10 vulnerability exploitation SMTP experimental environment construction
R language one page and many pictures
Vs2019 configuring Qt5 development environment
I was forced to graduate by a big factory and recited the eight part essay in a two-month window. Fortunately, I went ashore, otherwise I wouldn't be able to repay the mortgage
What are the basic skills of engineers? How to practice? -- Learning experience sharing "suggestions collection"
[system design] distributed key value database
Jedispoolconfig parameter configuration from the perspective of source code
After upgrading v2.1.0, the synchronization failed
Apk packaging process
What are you working for? Don't give up is our only choice, come on, everyone
Completefuture parallel asynchronous return processing
BMW I3 based on clar architecture is not a simple "oil to electricity" product
Rolling division, Young's matrix and three-step flip
Master jedispoolconfig parameter configuration and learn tuning skills
Detailed explanation of MySQL, Oracle and PostgreSQL database index failure scenarios