当前位置:网站首页>Equivalence class, boundary value, application method and application scenario of scenario method
Equivalence class, boundary value, application method and application scenario of scenario method
2022-06-25 23:00:00 【Old t teaching test】
Equivalence class :
In many cases , The test method that many people think of is exhaustive testing , Exhaustive testing is the most comprehensive test , But it's not realistic when there's a lot of data , The test efficiency is too low , Later, in order to reduce the workload of testers, improve the efficiency of testing and achieve the best test quality , Gradually, there are test methods for equivalence classes . As long as there is an input box to input data, you can use equivalent classes for testing , Select representative data from a large number of data for testing .
Usage and applicable scenarios of equivalent classes in testing :
1) Divide equivalence class One , It should be according to the input conditions ( Such as the range of input values , The number of values , The type of value , What are the input conditions ), Divide valid input and invalid input ( Effective equivalence class and invalid equivalence class ) , in general , What is within the requirement is a valid input , All other than requirements are invalid inputs .
for example : Input submit one 11 The number of digits
Can be divided into a valid equivalence class : Submit a correct 11 The number of digits
Multiple invalid equivalence classes can be divided :
To submit a 10 Number of digits or 12 Number of digits
The content submitted is not digital
Submit empty data
Does not conform to the number format ..
2) Design test cases
One , Make a test case cover as many valid equivalence classes as possible , Until all valid inputs ( Yes effect Equivalence class ) Be covered .
Two , A use case can only cover one invalid equivalence class , Until all invalid inputs ( Invalid equivalence class ) By cover Finished .
The boundary value :
Long term testing experience tells us that , A lot of errors occur at the boundary of the input or output range , Not inside the I / O range . Therefore, test cases are designed for various boundary conditions , We can find out more mistakes difference : Although the boundary value analysis method is a supplement to the equivalence class , But it is different from equivalence classes , Boundary value analysis is not to select any one of the equivalence classes as a representative , Instead, make each boundary of the equivalence class as a test condition .
Usage and applicable scenarios of boundary values in testing :
The boundary value analysis method is applicable to all test points related to numbers .
Columns such as : One , An input box restricts the input of 2-9 Characters ,
The boundary value to be tested is :1 Characters ,2 Characters ,3 Characters ,8 Characters ,9 Characters ,10 Characters
Two , Program night 20 Automatically publish new content at o'clock ,
The boundary value to be tested is :19 spot 59 branch 59 Second unpublished content 20 Press the release content
3、 ... and , Each time you send a red envelope, you can only send 1-100 Yuan's red envelope
The boundary value to be tested is : Hair 0.99 Yuan a red envelope , Hair 1 Yuan a red envelope , Hair 1.01 Yuan a red envelope , Hair 99.99 element Red envelopes , Hair 100 Yuan a red envelope , Hair 100.01 Yuan a red envelope ...
Applicable scenarios such as , Size , location , Speed , Coordinates and so on ,..
Scenario analysis :
Analyze the scenario of software application , From the perspective of users , Design test cases from the perspective of scenarios , Is a user oriented test case design method . Care about what users do , It's not about what the product does , The test point is not on a single function, but on the whole business process , in general , Is to use the product from the perspective of users .
Usage and applicable scenarios of boundary values in testing :
Case study : Commodity payment purchase
Analyze basic flow : After the user selects the product , payment , Input password to pay successfully
Analyze alternative flows :1) Password error during payment , Re - enter to re - pay for the purchase
2) Not logged in during payment , Go to login to re pay for the purchase ...
Abnormal flow : 1) During the payment process, the goods are off the shelf or there is no inventory, which makes it impossible to purchase
2) Insufficient balance at the time of payment makes it impossible to purchase
3) During the payment process, the number of password input errors is too many, resulting in account freezing and unable to purchase
4) The price of the goods is changed during the payment process, which makes it impossible to buy ..
Generally speaking, the abnormal flow is that the business is not completed due to some errors or abnormal operations .
Welcome to thumb up + Collection
边栏推荐
- 作为一个程序员我们如何快乐的学习成长进步呢?(个人感悟和技术无关)
- MySQL数据库索引
- 再突破!阿里云进入Gartner云AI开发者服务挑战者象限
- How do I project points on a 3D plane- How to project a point onto a plane in 3D?
- 聊聊Adapter模式
- Travel notes of 2022giao
- Unity的Ping类使用
- Record the learning record of the exists keyword once
- Simple and easy-to-use cache library gcache
- Why is BeanUtils not recommended?
猜你喜欢
2022-2028 global SiC igniter industry research and trend analysis report
使用EAST ocr遇到的坑解决方法(编译lanms)
荣耀推出积分商城,支持兑换各种荣耀产品
Civil Aviation Administration: by 2025, China will initially build a safe, intelligent, efficient and green aviation logistics system
万亿热钱砸向太空经济,真的是一门好生意?
2022年河南省第一届职业技能大赛网络安全项目试题
再突破!阿里云进入Gartner云AI开发者服务挑战者象限
2022-2028 global industrial TFT LCD industry survey and trend analysis report
[intensive lecture] 2022 PHP intermediate and advanced interview questions (II)
Another breakthrough! Alibaba cloud enters the Gartner cloud AI developer service Challenger quadrant
随机推荐
Unity技术手册 - 生命周期旋转RotationOverLifetime-速度旋转RotationBySpeed-及外力
Analysis report on scale investigation and investment development suggestions of China's special equipment inspection and testing industry 2022-2028
2022-2028 global open source cloud storage industry research and trend analysis report
Some reflections on preparing for the Blue Bridge Cup
Openwrt (VIII) application layer development
2022 love analysis · panoramic report of it operation and maintenance manufacturers
Use of local stack in flask
CVPR2022教程 | 马里兰大学《机器学习遥感处理:农业与粮食安全》教程
Ribbon core ⼼ source code analysis
c语言与数据库的创建使用
再突破!阿里云进入Gartner云AI开发者服务挑战者象限
Jz-064- maximum value of sliding window
2022-2028 global TFT touch screen industry research and trend analysis report
Oracle - 基本入门
ES7/ES9 -- 新特性与正则
A3.ansible production practice case -- system initialization roles
Dio encapsulé pour les requêtes réseau flutter (gestion des cookies, ajout d'intercepteurs, téléchargement de fichiers, gestion des exceptions, annulation des requêtes, etc.)
Data governance is easier said than done
Why is BeanUtils not recommended?
荣耀推出积分商城,支持兑换各种荣耀产品