How to design test cases - to log function Case

Hi, Hello, everyone, I am a leaf

  About test case design, according to different business, different capabilities, design test cases are completely different, the following is a case about old-fashioned, "login" function.

  Requirements: As a user, I want to enter the account number, password and a verification code, so that I can log in normally

According to the above requirements, different testers may test cases designed to test different login function, interested junior partner, you can look at what they have not thought of, also welcomed the junior partner went on to add:

Log case design -1

  • Enter the registered user name and the correct password, verify that the login is successful
  • Enter the registered user name and password is incorrect, verify that the login fails, correct and prompt information
  • Enter an unregistered user name and any password, verify that the login fails, correct and prompt information
  • Both the user name and password are empty, verify that the login fails, correct and prompt information
  • One user name and password are both blank, verify that the login fails, correct and prompt information
  • If the login feature is enabled verification code function, under the premise of the correct user name and password, enter the correct verification code to verify that the login is successful
  • If the login feature is enabled verification code function, under the premise of the correct user name and password, enter an incorrect code, verify the login fails, correct and prompt information
  • Whether to support third-party login
Designed more use cases, you may feel more satisfied, because these use cases appear to have covered the demand point. Yes, the above use case does cover the main needs of test scenarios, but for a more outstanding test engineers, which might just meet the basic test, then there will be experienced test engineers how to design test cases, which will increase test Example:
 
Log case design -2
  • User name, password, authentication code is case sensitive
  • Whether encryption password box on the page display
  • The first time a user's back-end system to create a successful login, if prompted to change your password
  • Forgot your username and password forget feature is available
  • Front page whether to limit a user name and password length according to design requirements
  • Click on the picture verification code if you can replace the verification code, the replacement code is available
  • Refresh the page whether to refresh code
  • If the codes are timely, respectively, need to verify the validity of the limitation and the outer limitation of the codes
  • After users of different levels, login system permissions are correct
  • Whether the user login times out, continue operation will be redirected to the user login interface
  • The default page if the focus is positioned in the user name input box
  • Switching between the network environment, log on to verify proper function
  • Shortcuts Tab and Enter, etc., can normally use
  • Can I use the packet capture tool caught request directly log
  • In addition to verify the format and length of the front end, back-end whether the check?
  • The user has logged on, after killing the process APP, APP remains open whether the state is logged again
  • After a successful login, session timeliness settings
To here, is not it a bit surprised here, a simple login needs to actually be able to design so many test points, do not be surprised, very calm ~ ~ ~ for a senior testers, far above these were not enough, may also need some security related tests, then there will be a test case which ~ na, do not worry, come with me ~ ~ ~
 
Login use case design -3
 
Performance test design points:
  • Single user login response time is less than 3 seconds
  • Single-user logs on, the background whether the excessive number of requests
  • Highly concurrent scenario, the user response time is less than 5 seconds log
  • High concurrency scenarios, monitoring indicators server meets expectations
  • Rendezvous at high concurrency scenarios, whether there is a resource deadlocks and unreasonable wait resources
  • Long continuous large number of users to log in and log out, the server memory leaks

Safety Test Test points:

  • User password is encrypted back-end storage
  • User password is encrypted network transfer
  • Is there a password expiration date, after the expiration, if prompted to change the password
  • Without login, enter the URL address after login directly in your browser, to verify whether the user is redirected to the login screen
  • Password input box supports copy and paste
  • User name and password input boxes are typical SQL injection attack strings, verify system behavior has been tampered with
  • Login failed repeatedly case, whether the system will prevent subsequent attempts to deal with brute force
  • The same user on multiple browsers the same terminal login, login verification function mutually exclusive with the design expectations
  • The same user has to log in on the browser multiple terminals to verify whether the login mutually exclusive
  • Remote login check, replacement of equipment check, whether considered abnormal login account frozen 

 See here, you might think that it was all right, no no no, we are not forgetting something? Compatibility testing gone? Come ~ ~ ~ Here's increased compatibility test point:

Login test design -4

Compatibility test:

  • Different platforms, and display function to verify the correctness of the login page
  • Under different devices, and display function to verify the correctness of the login page
  • Different browsers, and display function to verify the correctness of the login page
  • Different resolutions, to verify the login page display and functionality of correctness
  • The same browser, different versions, verify that the login page is displayed and functional correctness

After reading the above test point design sign-on feature, you still think it is very simple login function? At any time, we received a demand for a function, in addition to considering the needs of covering functional test points outside, but also need to consider non-functional test point design, so as to better ensure the integrity of the function.

The above information conveys a design idea, of course, there will be more for the login function of test points, this would need to project development process, test time and economic costs, risk-driven pattern-based, have focused to select the test range and test cases, defects in order to strike a balance between risk and development costs.

Note: All information reference RU teacher (RU Bing Sheng) geek time in the "software testing 52 stresses" 

Guess you like

Origin www.cnblogs.com/cherish-yy/p/11807263.html