当前位置:网站首页>Testers, how to prepare test data
Testers, how to prepare test data
2022-07-07 00:13:00 【Official account_ Growth path of Xiaobo test】
In daily testing work , Will you encounter similar problems ?
1、 For example, the page data is not enough , The page turning function cannot be tested
2、 Some functions of the page have not found the data that meets the requirements for the time being
3、 When doing data analysis , It takes a lot of data , However, the amount of data in the existing environment can not meet the demand
......
How to solve the problem of data ?
1)、 be based on GUI Construct test data
benefits :
1、 It's not just data , It's essentially an end-to-end test
2、 There are not too many skill requirements , Familiar with the page , It's OK to operate on the page
shortcoming :
1、 Creating data is inefficient
2、 Creating data depends on too much ( Depends on the background interface 、 Test environment and development support )
3、 be based on GUI The method of creating test data is not suitable to be encapsulated as a test data tool
4、 The cost of making data is high , Poor stability , Too dependent
2) adopt api call (python Of faker library ,jmeter Methods such as )
advantage :
1、 The data generated is reliable
2、 Efficient
3、 The script that constructs the data can be changed into an interface case
4、 Can skip the front desk , Independent of the front end
shortcoming :
1、 The cost of learning
2、 You need to sort out the interfaces
3、 There are individual businesses , You need to use some parameters other than the interface ( Some data may be transferred to the interface after front-end processing ), It's very troublesome to deal with
3) Through the database (sql) Generate test data
advantage :
1、 High efficiency
shortcoming
1、 It's very difficult to organize the relationship of database , Sort out all the corresponding information of a business sql It's not easy.
4) Based on the existing online business data, after desensitization, it is imported into the test environment
When it comes to big data testing , A lot of data is often needed to validate logic , At this time, we can consider desensitizing the online data , Synchronize to the database of the test environment , At the same time, it can avoid that the data constructed by itself is not comprehensive , Cause missing test .
5) Comprehensive use API And database
be based on GUI Operation generating test data is the most primitive method , But it's inefficient , And introduce unnecessary
rely on ; adopt API Call and database operation to generate test data is the current mainstream practice , adopt API transfer
This method has the characteristics of high data accuracy but low creation efficiency , But through the database way has the creation efficiency to be high
But the maintenance complexity is also high .

边栏推荐
- Every year, 200 billion yuan is invested in the chip field, and "China chip" venture capital is booming
- okcc呼叫中心的订单管理时怎么样的
- 【精品】pinia 基于插件pinia-plugin-persist的 持久化
- ldap创建公司组织、人员
- 三句话简要介绍子网掩码
- App general function test cases
- [automated testing framework] what you need to know about unittest
- 使用yum来安装PostgreSQL13.3数据库
- 1000字精选 —— 接口测试基础
- TypeScript增量编译
猜你喜欢

互动滑轨屏演示能为企业展厅带来什么

Pytest multi process / multi thread execution test case

Introduction au GPIO

2022年PMP项目管理考试敏捷知识点(9)

量子时代计算机怎么保证数据安全?美国公布四项备选加密算法

Rider离线使用Nuget包的方法
![Tourism Management System Based on jsp+servlet+mysql framework [source code + database + report]](/img/41/94488f4c7627a1dfcf80f170101347.png)
Tourism Management System Based on jsp+servlet+mysql framework [source code + database + report]

从外企离开,我才知道什么叫尊重跟合规…

Business process testing based on functional testing

2022 latest blind box mall complete open source operation source code / docking visa free payment interface / building tutorial
随机推荐
2022年PMP项目管理考试敏捷知识点(9)
How can computers ensure data security in the quantum era? The United States announced four alternative encryption algorithms
Why should a complete knapsack be traversed in sequence? Briefly explain
The largest single investment in the history of Dachen was IPO today
DAY ONE
Newsletter L Huobi ventures is in-depth contact with genesis public chain
MySQL主从之多源复制(3主1从)搭建及同步测试
Penetration test --- database security: detailed explanation of SQL injection into database principle
量子时代计算机怎么保证数据安全?美国公布四项备选加密算法
GPIO簡介
pinia 模块划分
Zero code and high return. How to use 40 sets of templates to meet 95% of the reporting needs in the work
【CVPR 2022】半监督目标检测:Dense Learning based Semi-Supervised Object Detection
互动滑轨屏演示能为企业展厅带来什么
Every year, 200 billion yuan is invested in the chip field, and "China chip" venture capital is booming
Rider离线使用Nuget包的方法
在docker中快速使用各个版本的PostgreSQL数据库
iMeta | 华南农大陈程杰/夏瑞等发布TBtools构造Circos图的简单方法
STM32 enters and wakes up the stop mode through the serial port
Automatic test tool katalon (WEB) test operation instructions