当前位置:网站首页>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
- Use Yum or up2date to install the postgresql13.3 database
- Google, Baidu and Yahoo are general search engines developed by Chinese companies_ Baidu search engine URL
- MIT 6.824 - Raft学生指南
- 2022/2/11 summary
- 【2022全网最细】接口测试一般怎么测?接口测试的流程和步骤
- 2022/2/10 summary
- "Latex" Introduction to latex mathematical formula "suggestions collection"
- Oracle EMCC 13.5 environment in docker every minute
- 数据运营平台-数据采集[通俗易懂]
猜你喜欢
刘永鑫报告|微生物组数据分析与科学传播(晚7点半)
基于jsp+servlet+mysql框架的旅游管理系统【源码+数据库+报告】
Everyone is always talking about EQ, so what is EQ?
2022 latest blind box mall complete open source operation source code / docking visa free payment interface / building tutorial
After leaving a foreign company, I know what respect and compliance are
Who said that new consumer brands collapsed? Someone behind me won
[boutique] Pinia Persistence Based on the plug-in Pinia plugin persist
The largest single investment in the history of Dachen was IPO today
DAY THREE
System activity monitor ISTAT menus 6.61 (1185) Chinese repair
随机推荐
pinia 模块划分
GPIO简介
What is web penetration testing_ Infiltration practice
Zero code and high return. How to use 40 sets of templates to meet 95% of the reporting needs in the work
Leecode brushes questions and records interview questions 01.02 Determine whether it is character rearrangement for each other
Yaduo Sangu IPO
Compile logisim
PostgreSQL highly available repmgr (1 master 2 slave +1witness) + pgpool II realizes master-slave switching + read-write separation
PostgreSQL uses pgpool II to realize read-write separation + load balancing
Leecode brushes questions to record interview questions 17.16 massagist
[boutique] Pinia Persistence Based on the plug-in Pinia plugin persist
Unity color palette | color palette | stepless color change function
沉浸式投影在线下展示中的三大应用特点
How does win11 restore the traditional right-click menu? Win11 right click to change back to traditional mode
GPIO簡介
Pytest multi process / multi thread execution test case
Building lease management system based on SSM framework
谷歌百度雅虎都是中国公司开发的通用搜索引擎_百度搜索引擎url
Close unregistering application XXX with Eureka with status down after Eureka client starts
Interesting wine culture