当前位置:网站首页>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 !
边栏推荐
- B - The Suspects
- SQLMAP使用教程(三)实战技巧二
- [postman] collections - run the imported data file of the configuration
- Manhattan distance sum - print diamond
- LeetCode 729. 我的日程安排表 I
- ICLR 2022 spotlight | analog transformer: time series anomaly detection method based on correlation difference
- GTSAM中李群的运用
- (中)苹果有开源,但又怎样呢?
- Buuctf-[bjdctf2020]zjctf, but so (xiaoyute detailed explanation)
- GTSAM中ISAM2和IncrementalFixedLagSmoother说明
猜你喜欢
Detailed explanation of P problem, NP problem, NPC problem and NP hard problem
数字三角形模型 AcWing 1015. 摘花生
Overview of three core areas of Mathematics: algebra
GTSAM中李群的运用
IPv6 comprehensive experiment
LeetCode 1200. 最小绝对差
【eolink】PC客户端安装
Postman核心功能解析-参数化和测试报告
[postman] test script writing and assertion details
Sqlmap tutorial (III) practical skills II
随机推荐
10m25dcf484c8g (FPGA) amy-6m-0002 BGA GPS module
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
数学三大核心领域概述:几何
[postman] the monitors monitoring API can run periodically
2022 software testing workflow to know
(中)苹果有开源,但又怎样呢?
联合索引的左匹配原则
B - The Suspects
Isam2 and incrementalfixedlagsmooth instructions in gtsam
About PHP startup, mongodb cannot find the specified module
Coordinatorlayout+nestedscrollview+recyclerview pull up the bottom display is incomplete
Amazon Engineer: eight important experiences I learned in my career
[web security] nodejs prototype chain pollution analysis
LeetCode 732. 我的日程安排表 III
[postman] collections configuration running process
Win10 cannot operate (delete, cut) files
Nodejs realizes the third-party login of Weibo
Overview of three core areas of Mathematics: geometry
【eolink】PC客户端安装
How to use the container reflection method encapsulated by thinkphp5.1 in business code