当前位置:网站首页>"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 .
边栏推荐
- String class
- What are you working for? Don't give up is our only choice, come on, everyone
- Several application scenarios of NAT
- Use SAP ui5 application to consume create and delete operations of OData in business application studio
- Vs2019 configuring Qt5 development environment
- ICO objects in classification
- July 8, 2022
- What do growth enterprises need most to build a data-driven organization?
- PostgreSQL views tables, table indexes, views, table structures, and parameter settings
- Query the thread information of MySQL server (detailed explanation)
猜你喜欢

Beijing Zhun electric clock, Beidou clock server, GPS network time server, NTP satellite timing system

Standard transfer function

Detailed explanation of manually writing servlet in idea

6-11 vulnerability exploitation - use the built environment to send emails

Picgo configuring Alibaba cloud OSS
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

Ogg data extraction delay is large

DLL load failed: the page file is too small to complete the operation

ByteDance confirmation will be self-developed chip: for internal use only; Musk: I have uploaded my brain to the cloud; Go language product head leaves | geek headline

Introduction to web security telent testing and defense
随机推荐
Remote sensing image classification tool and visualization application of WebGIS
Query the thread information of MySQL server (detailed explanation)
Digital power supply -- Chapter 1
Gerrit statistics script
Freedom and self action Hegel
How MySQL 8.0 based on TRX_ Id find the statement of the whole transaction
Hbuilderx developed by uni app connects to night God simulator
See you in Suzhou! "Cloud Intelligence Technology Forum - industry special" will be held soon
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
Common functional interfaces_ Predicate interface_ Default method and and predicate interface exercise_ Set interface filtering
Is it necessary to increase the number of milliseconds and save several KB of memory in the program?
Work arrangement of generator set
Matlab draws radar chart (four lines of code)
Scalar, vector, matrix calculus
How to upload files to the server
Sword finger offer 11. rotate the minimum number of the array
Generator set work arrangement problem code
Experienced the troubleshooting and solution process of an online CPU100% and the application of oom
Digital commerce cloud fine chemical industry management platform integrated informatization solution
Text reading end judgment