Common functional design

Log function

Shopping Cart Module

Favorite QQ expression package

Online bank transfer

recharge on Alipay

Alipay withdrawals

 

Q:

A login function, design test cases.

A:

function test:

1. Enter the correct account number and password, and click on the submit button to verify whether the normal login;

2. Enter the wrong account or the wrong password, the login fails, whether there is a corresponding message;

3. After a successful login can jump to the correct page;

4. The account number and password, if too short or too long, how they deal with, whether prompted password is too short;

5. accounts and passwords with special characters (such as spaces), and circumstances other than English, whether to do a filter;

6. Can Remember account to log successful;

7. After the login fails, you can not remember the password;

8. There are before and after the account and password blank if the normal processing;

9. whether password encryption display (asterisk, dots, etc.);

10. The character codes identify whether big distortions caused by excessive difficulty, refresh is normal;

11. Login registration page, forget password link is correct jump;

12. Enter the password when prompted whether the information when the Caps Lock is on;

13. do not enter anything, click on the submit button, the message is correct (non-null check);

UI testing:

1. layout is reasonable, whether the correct text and buttons are arranged;

2. The length of the text input boxes and buttons, to meet the requirements height;

3. Does the interface design and Ul unified design style;

4. The interface whether the text easier to understand, no spelling;

Performance Testing:

1. Open the login page, take a few seconds;

2. Enter the correct account number and password, the login is successful jump to a new page, no more than 5 seconds;

Security testing:

1. Log on whether the Cookie has successfully generated after HttpOnly (script reduce the risk of theft);

2. account number and password are encrypted by the way, is sent to the Web server;

3. Verify the account and password, and server-side validation should be used, not just on the client side with javaScript validation;

4. The account number and password input box, and SQL injection attacks should be masked;

5. Enter the account and password box, enter the script should be banned (to prevent XSS attacks);

6. The number of bad logon limit (to prevent brute force);

7. Consider whether to support multi-user login on the same machine;

8. Consider a user is allowed to log on multiple machines;

Usability Testing:

1. Can use the full keyboard, whether the shortcut keys;
2. Enter account number, password, press enter, can log in;
whether input box 3. Tab key can be switched;

4. High contrast displays properly (the visually impaired to use);

Compatibility test:
1. Under the mainstream browser can display properly (IE, FireFox.Chrome, Safari, etc.);
2. Does the different platforms can work, such as Windows, Mac;
is working on 3 mobile devices, such as iPhone, Android;
appears under normal 4 different resolutions;

 

 

Q:

Second, how to test shopping cart module, design test cases.

A:

function test:

1. The product was added to cart> choose shopping cart All Goods> confirm purchases> Generate Orders> View order details, display product information, whether Cart is empty;

2. The product was added to the shopping cart, removed from the shopping cart to see if the cart the goods corresponding increase or decrease;

3. The product was added to the shopping cart, increase / decrease the number of goods, whether the goods corresponding View Cart add / delete;

4. Select the default Cart / Partially checked / unchecked> Click Buy> Generate All merchandise orders / orders generated display some of the goods / prompt does not add merchandise;

5. All pages link function properly, you can jump to the correct page;
6. sellers online, Want icon is highlighted, on the contrary, gray;
7. cart pages open at the same time, other pages added items, shopping cart page after refreshing, new products appear;
8. if you do not log in, click on the shopping cart, the user is prompted to log in;

9. unchecked the product state, the adjustment button is not clicked grayed;
10. Goods check, the total price of the selected item is displayed, the button is highlighted. Clickable clearing work;
11. Cart commodity stock price or emergency, then click on the corresponding tab, or in an emergency after the price of goods will be classified display;
the types of goods 12. the cart can be added to have the maximum number;
13. If the goods have failed, the cart can not go on settlement goods ;
14. payment has entered the payment screen but was not successful, re-enter the shopping cart, again added some items, whether the original articles retain the right;

Interface testing:

1. After you open the page, the page layout is reasonable, the display is complete;
2. floating mouse button in the shopping cart, shopping cart screen display is normal;
3. different sellers of goods in different regions of the table shows clearly obvious;

Performance Testing:

Open shopping cart page, how long;
usability testing:
Shortcuts function is support;
compatibility test:
function on 1. different browsers is normal;

2. page on different browsers display is normal;

 

 

Q:

Three, QQ collection of expressive function, design test cases.

A: normal function: expression package supported image formats including jpg, jpeg, bmp, gif, png, does not support doc, xls, flv, txt etc; 1 expression package met the formal requirements, and the picture size in the range of collection success. ;
2. expression package does not meet the formal requirements, the picture size in the range, the collection failure; 3 expression package required format, the picture size is not within the scope of the collection failure;
support 4. collection right, the picture size within the range of the required format expression of a single packet collection and batch collection;
5. expression package Bookmarked working properly; 6 pack look after the collection deleted again supported the deletion;
7. Tap the text into a collection, not to support the collection of expression;
8. choose chats collection system time, does not support the collection expression;
9.VIP user to return to the regular user, the original collection of available expression;
10. Collect the valid time expression may be used, the use of non-expired;
11. a collection of computers and mobile QQ expression can be shared;
12. collection system does not support carrying the expression; 13 supports Favorites friends transmitted, through the expression of non-collection of their transmission; abnormal power : Insufficient space 1. Click on the collection, processing is normal; 2 reaches the upper limit of the collection click collection, whether normal processing;.
3. weak network, while off the network offline, click on the collection, processing is normal; 4 received more than expressions. click Collect a certain time limit, whether the normal processing;; 5 local modifications format does not support a supported format, click on the collection, processing is normal.
: usability testing after 2 collections; 1. collection operation is convenient, simple and approachable. It is easy to use;
3. Collect delete if no longer take up memory;
performance testing:
1. Collect a single user on a single-volume collection and expression, response time to meet the requirements;
2. Multiple users on a single facial expression when the collection and batch collection, response time to meet the requirements;
the number 3. The user's favorite expression to achieve maximum response time meets the requirements of the user using the expression; security testing: 1. Add infected the picture collection, whether the collection;
2. pictures and concerning the violation, whether the collection; compatibility testing: 1. different Windows operating system can normally collections; after 2.QQ updated version of the original collection of normal expression use; 3 on Windows / Mac / IOS / Android devices can browse the collection and use of expression;

 

 

Q:

Fourth, online bank transfer is a measure of how to design functional test cases.

A:

function test:

1. Verify peer transfers, inter-bank transfer, bank card system conversion bindings;

2 .. check to verify the validity of the code (usually just a small phone verification code, verification code + phone required large dynamic password, transferred to bind bank card without authentication);

3. Verify that the transfer fee charged situations (such as less than a certain amount of free peer transfers, interbank fees and so on, the specific charges subject to the requirements described in the book);

4. Verify transfers and immediate transfer of ordinary circumstances;

5. Verify correctness case 6 digit transaction code;

6. Verify that insufficient account balances;

7. Verify the transfer amount exceeds the limit situation;

8. Verify timeout transfer case (general transaction has timed out control server over a certain time (usually 30s) does not respond, the server will send an error to the client timeout, timeout scenario testing require a temporary contact the developer and let set about developing, testing employees you can simulate a timeout a client scenario);

9. The verification of the payee name and the account receivable or both inconsistencies incorrect;

10. Verify the transferor or transferee account is illegal (report of loss, frozen, the locking pin household accounts) situation;

11. Verify credit card, fixed deposit can not be transferred out. (Usually at the time the account is selected, shielding);

12. Verify ios, Andrews, wap, web-side transfer scenario;

 

 

Q:

Fifth, Alipay testing, functional test case design.

A:

function test:

1. Verify mainstream bank card bound to recharge the situation;

2. Verify normal circumstances the recharge;

3. Verify that the recharge amount is greater than the limit situation;

4. Verify that the payment of the password is correct or not;

5. Verify that the lack of bank card balances;

6. Verify bank card loss, freeze, lock, top case of cancellation;

7. Verify that the recharge time-out situations (general transaction has timed out control server over a certain time (usually 30s) does not respond, the server will send an error to the client timeout, timeout scenario testing required temporary;

Contact development, lets developers set about testing employees can simulate client scenarios overtime);

8. Verify ios, Andrews, wap, web scene top end;

 

 

Q:

Sixth, Alipay withdrawals testing, functional test case design.

A:

function test:

1. Verify mainstream bank card to withdraw cash bound;

2. Verify withdrawal situation there within 2 hours;

3. Verify fee charged case (from 0.1% in 2016, only 20,000 per person free cash withdrawal and transfer of credits);

4. Verify mention present, adding a temporary card, the bank card and selects;

5. Verify that the input current to mention the case where the transaction password is correct or not;

6. Verify withdrawals timeout condition;

7. Verify mentioned case is greater than the amount of cash balance;

8. Verify case where the amount of withdrawal or less balance;

9. Verify ios, Andrews, wap, web site mentioned end view;

 

Transfer: https://www.cnblogs.com/Christalccc123/p/11777412.html

Guess you like

Origin www.cnblogs.com/suger43894/p/12448363.html