Talk about software test interviews - frequently encountered payment test design questions

For Internet products, non-cash payment has become an indispensable partner in daily life. Payment is also an important link related to the company's income. Then the payment test is also an important part of the test for our testers. The author will explain in detail from the business and classification

1. Payment classification

First of all, according to different dimensions, we can divide payment into different types.

Secondly, generally speaking, online payment is divided into two consumption modes. One is direct payment, such as Alipay, WeChat payment, etc., or Taobao, JD.com direct payment, and membership services such as 360 cloud disk, video membership purchase, etc.; Use virtual currency on the website for consumption, such as game platforms and other products.

2. Test method


function test:

By combining various test methods such as boundary value analysis, equivalence class division, error guessing, and causality diagrams, we sort out as comprehensive a test case as possible, and test the payment function and its related functions to ensure that the entire payment process and the The rest of the process to the payment process works fine in any case.

Interface test:

Clarify the interfaces that need to be called in the entire payment process, and clearly distinguish the interfaces, parameters and request methods of merchants and third-party payment platforms. Including the encryption of specific parameters of the interface, the use of abnormal order numbers to simulate payment, the verification of the server and so on.

Safety test:

The payment involves the amount, so the safety test must be considered. Forgery of payment requests, malicious tampering of amounts, malicious simulation of third-party interfaces to call merchant interfaces, etc. These are all issues we need to consider.


3. Specific payment test points (key points)

payment amount

1. Less than the minimum value, such as: less than 0.01

2. Greater than the maximum value/amount limit

3. Insignificant amount, such as 0 yuan

4. Format error (negative number, non-number)

5. The balance is less than the actual amount to be paid

6. Exceeding the third-party payment interface's daily consumption/single consumption amount

 

payment interface

Third-party interface, WeChat/Alipay/online banking system/post machine terminal service

 

 

payment operation

1. Fingerprint payment

2. Password-free payment

3. Account + password payment

4. Dynamically obtain the payment verification code for payment

5. Bank card encryption payment

6. Credit card payment code

 

exception handling

1. Refund Processing

2. If the payment data exchange is interrupted (power failure, network disconnection, weak network), can the payment be made again after restarting

3. How to deal with payment failure

4. When the payment amount is insufficient, can the payment be continued after recharging

5. Keep clicking

6. How to handle refunds for multiple deductions

7. Cancel payment / pay again after canceling payment

8. Third-party payment payment when not logged in

 

compatibility

PC/laptop/tablet/mobile terminal payment

 

Background processing order

1. Successful order financial processing

2. Financial processing of failed orders

3. Financial processing of refund orders

4. How to deal with wrong bills, etc.

 

Guess you like

Origin blog.csdn.net/u010957310/article/details/130920841