当前位置:网站首页>Testing of web interface elements
Testing of web interface elements
2022-07-06 06:15:00 【The elegance of testing】
The text box
Test point
- Enter normal letters or numbers
- Enter extra long characters . For example, in “ name ” Box, enter more than the number of characters allowed , Assume that at most 255 Characters , Try typing 256 Characters , Check whether the program can handle it correctly
- Enter the default value , blank , Space
- If only letters are allowed , Try entering a number ; conversely , Try typing letters
- Using replication , Paste and other operations force the input of data not allowed by the program
- Enter a special character set , for example ,NUL And \n etc.
- Enter a character or text that exceeds the length of the text box , Check whether the input content is displayed normally
- Enter data that does not conform to the format , Check whether the program is normal , If the program requires the input of year, month and day, the format is yy/mm/dd, Actual input yyyy/mm/dd, The program should give an error prompt
Test methods used
positive / reverse
- Enter illegal data
- Enter the default value
- Enter a special character set
- Enter the data that overflows the buffer
- Enter the same file name
Command button control
Test point
- Click the button to respond to the operation correctly . If you click OK , Perform the operation correctly ; Click Cancel , Exit window
- Give enough hints for illegal input or operation , If the number of working days per month is 32 when , single click “ determine ” The system should prompt : The number of days cannot be greater than 31
- The confirmation information must be given for the operation that may cause the data unable to be recovered , Give users the chance to give up their choices
Test methods used
- A set of radio buttons cannot be selected at the same time , Only one can be selected
- Perform the function of each radio button one by one . They chose “ male ”、“ Woman ” after , The data saved to the database should be “ male ”、“ Woman ”
- A group of radio buttons that perform the same function must have one selected by default in the initial state , Can't be empty at the same time
up-down Control text box
Test point
- Input numbers directly or control with up and down arrows , If in “ number ” Directly input 10, Or click the up arrow , Change the number to 10
- Use up and down arrows to control the automatic circulation of numbers , If the maximum number is 253 when , Click the up arrow , The number automatically changes to 1; And vice versa
- Enter the super boundary value directly , The system should prompt you to re-enter
- Enter the default value , blank . Such as “ Insert ” The number is the default , Click on “ determine ”; Or delete the default value , Leave the content empty , single click “ determine ” To test
- The input character . At this time, the system should prompt that the input is wrong
Combo list box
Test point
- The content of the entry is correct , The detailed items can be determined according to the requirements
- Perform the function of each entry in the list box one by one
- Check whether data can be entered into the combo list box
Check box
Test point
- Multiple check boxes can be selected at the same time
- Multiple check boxes can be partially selected
- Multiple check boxes may not be selected
- Perform the function of each check box one by one
ListBox control
Test point
- The content of the entry is correct : Similar to combo list box , According to the requirement specification, make sure that the contents of the list are correct , No loss or error
- Use the scroll bar when there are many contents in the list box
- When the list box allows multiple choices , Check separately shift Check the entry , Press ctrl The situation of selecting items and directly using the mouse to select multiple items
Scroll bar controls
Test point
- The length of the scroll bar changes in time according to the length or width of the displayed information , This helps the user understand the location and percentage of the information displayed , Such as word browse 100 Page document , Browse to 50 When the page , The scroll bar should be in the middle
- Drag the scroll bar , Check screen refresh , And check for garbled code
- Click the scroll bar
- Use the scroll wheel to control the scroll bar
- The up and down buttons of the scroll bar
Various controls are mixed in the form
Test point
- Interaction between controls
- tab The order of the keys , It's usually from top to bottom , From left to right
- The use of hotkeys , Test one by one
- enter Key sum esc The use of keys
In the test , We should follow the principle from simplicity to complexity , First, test the function of a single control , After making sure it's all right , Then test the function combination of multiple controls
ps: When testing the password input box, you should pay special attention to the test of uppercase input
Last : It can be in the official account : Sad spicy bar ! Get one by yourself 216 Page software testing engineer interview guide document information 【 Free of charge 】. And the corresponding video learning tutorial is free to share !, It includes basic knowledge 、Linux necessary 、Shell、 The principles of the Internet 、Mysql database 、 Special topic of bag capturing tools 、 Interface testing tool 、 Test advanced -Python Programming 、Web automated testing 、APP automated testing 、 Interface automation testing 、 Testing advanced continuous integration 、 Test architecture development test framework 、 Performance testing 、 Safety test, etc. .
I recommend one 【Python Automated test communication group :746506216】, We can discuss communication software testing together , Learn software testing together 、 Interview and other aspects of software testing , Help you advance quickly Python automated testing / Test Development , On the road to high pay .
Friends who like software testing , If my blog helps you 、 If you like my blog content , please “ give the thumbs-up ” “ Comment on ” “ Collection ” One Key triple connection !
边栏推荐
- Usage of test macro of GTEST
- 曼哈顿距离和-打印菱形
- 数字三角形模型 AcWing 1015. 摘花生
- 【Postman】Monitors 监测API可定时周期运行
- Coordinatorlayout+nestedscrollview+recyclerview pull up the bottom display is incomplete
- 功能安全之故障(fault),错误(error),失效(failure)
- Buuctf-[[gwctf 2019] I have a database (xiaoyute detailed explanation)
- 【C语言】字符串左旋
- IP day 16 VLAN MPLS configuration
- 在线问题与离线问题
猜你喜欢
随机推荐
Réflexions sur la sécurité des données (réimpression)
《卓有成效的管理者》读书笔记
Configuring OSPF GR features for Huawei devices
The latest 2022 review of "graph classification research"
LeetCode 729. 我的日程安排表 I
GTSAM中李群的运用
误差的基本知识
[postman] the monitors monitoring API can run periodically
Clock in during winter vacation
【Postman】Collections配置运行过程
Pat (Grade B) 2022 summer exam
(中)苹果有开源,但又怎样呢?
GTSAM中李群的運用
Overview of three core areas of Mathematics: algebra
LeetCode 732. 我的日程安排表 III
Company video accelerated playback
Eigen稀疏矩阵操作
黑猫带你学UFS协议第8篇:UFS初始化详解(Boot Operation)
【C语言】qsort函数
功能安全之故障(fault),错误(error),失效(failure)