In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
First of all, functional automation testing TestBird helps to improve the efficiency of functional testing.
1. Login, add, delete, query modules are often encountered, how to consider the test points of these modules
1) Log in
① username and password meet the requirements (format requirements)
The ② username and password do not meet the requirements (format requirements)
The ③ user name meets the requirements, and the password does not meet the requirements (format requirements)
The ④ password meets the requirements, and the user name does not meet the requirements (format requirements)
⑤ username or password is empty
User name that does not exist in the ⑥ database, password that does not exist
User name in ⑦ database, wrong password
User name that does not exist in the ⑧ database, password that exists
There is a space before the data entered by ⑨
⑩ enter the correct user name and password and press [enter] to see if you can log in.
2) add
The data items to be added by ① are reasonable. Check whether the corresponding data has been added to the database.
② leaves a required data blank
③ designs test cases for other inputs according to the principle of boundary value equivalence class design test cases.
If the ④ does not meet the requirements, there should be an error prompt.
Does ⑤ support the table key?
Whether ⑥ can be saved by pressing enter
If ⑦ prompts that it cannot be saved, also check to see if there is an extra piece of data in the database.
3) Delete
① deletes data that exists in a database, and then checks to see if it is deleted in the database
② deletes data that does not exist in the database to see if there is an error prompt, and no data in the database has been deleted
③ enters a malformed data to see if there is an error prompt, and no data in the database has been deleted.
The correct data entered by ④ is preceded by a space to see if the data can be deleted correctly.
⑤ does not enter anything
Does ⑥ indicate the table key?
Does ⑦ support enter key?
4) query
Precise query:
The query condition entered by ① is the data that exists in the database to see if the corresponding data can be found correctly.
② enters the correct query condition with a space before it to see if the corresponding data can be found correctly.
③ input data whose format or range does not meet the requirements to see if there is an error prompt.
④ imports data that does not exist in the database
⑤ does not enter any data
Does ⑥ support the table key?
Does ⑦ support enter key?
Fuzzy query:
Add the following points to the exact query
① enter some characters to see if you can find out all the relevant information in the database.
two。 Design functional test cases
Test controls such as text boxes, buttons, etc
Testing of text boxes
How to test a text box
A, enter a normal letter or number.
B, enter the name of the file that already exists
C, enter extra-long characters. For example, enter more than the allowed number of characters in the name box, assume a maximum of 255 characters, and try to enter 256 characters to check whether the program can handle it correctly.
D, enter default value, blank, space
E, if only letters are allowed, try entering numbers; vice versa; try entering letters
F, use copy, paste and other operations to force input data that is not allowed by the program.
G, enter a special character set, such as NUL, etc.
H, enter characters or text that exceed the length of the text box, and check whether the input is displayed properly
I, input data that does not conform to the format, check whether the program is properly checked, for example, the program requires that the input format is yy/mm/dd, and the actual input yyyy/mm/dd, the program should give an error prompt
The test methods used in the testing process:
1. Enter illegal data
2, enter the default value
3, enter a special character set
4. Enter the data that overflows the buffer
5, enter the same file name
Testing of command button controls
A, click the button to respond correctly to the operation. For example, click OK to perform the operation correctly; click cancel to exit the window
B, give enough hints for illegal input or operation, for example, when the number of monthly working days is 32, the system should prompt that the number of days should not be greater than 31 after clicking OK.
C, the confirmation information must be given for the operations that may cause the data to be unrecoverable to give the user the opportunity to give up the choice.
Testing of radio button controls
A, a set of radio buttons cannot be selected at the same time, only one can be selected.
B, perform the functions of each radio button one by one. After selecting "male" and "female" respectively, the data saved to the database should be "male" and "female" respectively.
C, a set of radio buttons that perform the same function must be selected by default in the initial state and cannot be empty at the same time
Testing of up-down Control text Box
A, enter the number directly or control it with the up and down arrows, for example, enter 10 directly in the number, or click the up arrow to change the number to 10
B, use the up and down arrows to control the automatic loop of numbers, for example, when the maximum number is 253, click the up arrow, the number automatically changes to 1, and vice versa
C, enter the excess boundary value directly, and the system should be prompted to re-enter
D, enter the default value, blank. For example, if the number of inserts is the default value, click OK, or delete the default value and leave the content empty, click OK to test
E, enter characters. At this point, the system should prompt that the input is incorrect.
Test of combo list box
A, the content of the item is correct, and the detailed content of the item can be determined according to the requirement description.
B, perform the functions of each entry in the list box one by one
C, check whether you can enter data into the combo list box
Testing of check boxes
A, multiple check boxes can be selected at the same time
B, multiple check boxes can be partially selected
C, multiple check boxes can be unchecked
D, perform the functions of each check box one by one
Testing of list box controls
A, the content of the entry is correct; similar to the combined list box, it is determined according to the requirements statement that the contents of the list are correct and not missing or wrong
B, use the scroll bar when the list box is full of content
C, when many selections are allowed in the list box, check shift to select items, press ctrl to select items, and directly use the mouse to select multiple items
Testing of scroll bar controls
Pay attention to the following points:
A, the length of the scroll bar changes in time according to the length or width of the displayed information, which is helpful for the user to know the location and percentage of the displayed information, for example, browsing 100 pages of documents in word, when browsing to 50 pages, the scroll bar should be in the middle.
B, drag the scroll bar to check the screen refresh and see if there is any garbled code
C, click the scroll bar
D, use the roller to control the scroll bar
E, the up and down buttons of the scroll bar.
Testing when various controls are mixed in a form
A, the interaction between controls
B. the order of tab keys is usually from top to bottom, from left to right.
C, the use of hotkeys, test one by one
D, the use of enter key and esc key
In the testing, we should follow the principle from simple to complex, first test the function of a single control to ensure that it is correct, and then test the functional combination of multiple controls.
Ps: when testing the password input box, you should pay special attention to testing the uppercase input of letters.
Find replace operation
Case demonstration: open the replace dialog box in word
There are two cases of testing this function: passing the test and failing the test.
Pass the test:
1, enter the content to find directly, or find all
2, look for the content that has been looked for in the combo box, find and confirm that the content of the document is correct again, for example, you have found the "test case", and you can search the document directly without re-entering the search content.
Failed test:
1, enter a query string that is too long or too short. For example, assuming that the string length of the query is from 1 to 255, enter 0meme1meme2256255 and 254 to test.
2. Enter a special character set, for example, in word. ^ g represents a picture and ^ represents a column break. You can enter this kind of special character to test.
The replacement test is roughly the same.
Use cases for functional tests for editing the action window:
1, close the find and replace window. Do nothing and exit directly.
2, attachment and option testing. If, set "precise search", "backward" search and other attachment options to test
3, the interaction between controls. For example, when the search content is empty, the buttons "search all", "search", "replace" and "replace" are all grayed out.
4, hotkey, Tab key. The use of enter key.
Insert operation
1) insert a file
The condition of the test
A, insert the file
B, insert the image
C, insert the document itself in the document
D, remove the inserted source file
E, change the contents of the inserted source file
2) Link Fil
Test method:
A, insert the linked file
B, link the document itself in the document
C, remove the inserted source file
D, change the contents of the inserted source file.
3) insert object
What to test
A, insert the objects allowed by the program, for example, insert the excel worksheet in word
B, modify the contents of the inserted object. The inserted object is still displayed correctly
C, uninstall the program that generates the insert object, for example, uninstall excel after inserting the excel worksheet in word, the worksheet is still in normal use.
Editing operation
Editing operations include cut, copy, and paste operations.
Methods of testing shearing operations
A, cut the text, text box, picture box
B, cut the image
C, text image mixed clipping
The method of copy operation is similar to cutting.
When testing, the main purpose is to test the paste operation by:
A, paste cut text, text box and picture box
B, paste the cut image
C, after cutting, paste in different programs
D, paste the same content many times, for example, paste 3 times in the program after cutting
E, use the paste operation to force the input of data that the program is not allowed to enter.
3. Design method of Interface Test case
1) form
How to test the form:
A, the size of the form should be appropriate, and the layout of the controls should be reasonable.
B, mobile form. Fast or slow mobile form, background and form itself must be refreshed correctly
C, zoom the form, and the controls on the form should change with the size of the form
D, display resolution. The display of the program must be tested at different resolutions.
When testing, we should also pay attention to whether the status bar is displayed correctly; whether the icon of the toolbar is valid and consistent with the display of the icon in the lazy menu; whether the error message content is correct, no typos, and clear, and so on.
2) controls
Test method:
A, the font and size of the form or control should be the same
B, pay attention to full-width and half-width mixing
C, no mixture of Chinese and English.
3) menu
Pay attention to when testing
A, select whether the menu works properly and is consistent with the actual execution
B, whether there are any typos:
C, whether the shortcut keys are repeated
D, whether the hotkey is repeated
E, whether shortcut keys and hotkey operations are effective
F, whether there is a mixture of Chinese and English
G, menus should be context-related, for example, users with different permissions log in to an application, and users at different levels can see different levels of menus and use different levels of functions
H, right mouse button shortcut menu
4) Special attributes
1. The installation interface should have a company introduction or product introduction, with a company icon.
2. The main interface and most interfaces had better have a company icon.
3. Select "help"-> "about" command, you should see the relevant copyright and product information.
Summary:
During the period of summarizing software testing knowledge, individuals found that in order to do a good job in software testing, how to improve our testing efficiency, the first thing is to find out the commonly used functional test points in the software, using automated testing tools TestBird and professional test engineers, so that the content in the article above, after extracting the common work, the individual work will be broken through one by one, and the work will become easier.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.