当前位置:网站首页>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

  1. Enter normal letters or numbers
  2. 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
  3. Enter the default value , blank , Space
  4. If only letters are allowed , Try entering a number ; conversely , Try typing letters
  5. Using replication , Paste and other operations force the input of data not allowed by the program
  6. Enter a special character set , for example ,NUL And \n etc.
  7. Enter a character or text that exceeds the length of the text box , Check whether the input content is displayed normally
  8. 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

  1. Click the button to respond to the operation correctly . If you click OK , Perform the operation correctly ; Click Cancel , Exit window
  2. 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
  3. 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

  1. 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
  2. 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
  3. Enter the super boundary value directly , The system should prompt you to re-enter
  4. 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
  5. The input character . At this time, the system should prompt that the input is wrong

Combo list box

Test point

  1. The content of the entry is correct , The detailed items can be determined according to the requirements
  2. Perform the function of each entry in the list box one by one
  3. Check whether data can be entered into the combo list box

Check box

Test point

  1. Multiple check boxes can be selected at the same time
  2. Multiple check boxes can be partially selected
  3. Multiple check boxes may not be selected
  4. Perform the function of each check box one by one

ListBox control

Test point

  1. 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
  2. Use the scroll bar when there are many contents in the list box
  3. 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

  1. 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
  2. Drag the scroll bar , Check screen refresh , And check for garbled code
  3. Click the scroll bar
  4. Use the scroll wheel to control the scroll bar
  5. The up and down buttons of the scroll bar

Various controls are mixed in the form

Test point

  1. Interaction between controls
  2. tab The order of the keys , It's usually from top to bottom , From left to right
  3. The use of hotkeys , Test one by one
  4. 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 !

原网站

版权声明
本文为[The elegance of testing]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060606580093.html