bank test payment test

1. Payment classification

First of all, according to different dimensions, we can divide payment into different types. As shown below:

1.png

Secondly, generally speaking, online payment is divided into two consumption modes. One is to pay the amount directly, such as Taobao, Jingdong and other shopping websites, or membership services such as 360 cloud disk, video membership, etc.; Consumption, such as game platforms, pepper and other products.

2. Test method

Functional test :

By combining various test methods such as boundary value analysis, equivalence class division, error guessing, and causal 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 activation of specific parameters of the interface, the use of abnormal order numbers to simulate payment, the verification of the server and so on.

Security 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. Payment process

The common payment process is shown in the figure below:

2.png

insert image description here

3.1. Initiate a traffic recharge request normally, check points:

1) The information sent by the user has a key value

2) The local data of the merchant system will retain a copy of the user's order information, and will generate a payment information based on each order information (and save it locally)

3) The third-party payment is successful, and the third-party has stored payment order information

4) The recharge is successful, and the user's traffic balance increases correspondingly

3.2. Exception use cases

3.2.1 Modify the data sent by the user

1) The product ID and value are not equal ----> check point: tamper with data and key, check the merchant system and report an error: the key value is wrong or the user data is wrong.

2) Cancel recharge flow

3) Repeatedly initiate data recharge requests

3.2.2 Between Merchant System-Third Party

1) The key is wrong - the third party reports an error and does not receive the key

2) Submit an order/payment order that does not exist in the merchant system -> the third party cannot pass the request here

3) Tampering with the user’s payment amount –> the third party should also check

3.2.3 Third party – between users

1) Wrong payment password/insufficient balance

2) Cancel payment

3) Duplicate payment [reconciliation —> process refund]

4. Test points

Payment Process Test Point

1. Is the payment amount consistent with the payable amount

(For example: whether the scanned payment QR code is consistent with the displayed amount to be paid). It’s a crooked building, the subject of the topic has stepped on the pit before, the payable amount displayed on the page is returned through the interface vip.product, and the payable amount is displayed on the front end. However, the payment QR code is returned through the interface vip.getPayUrl. As a result, the value scanned by the QR code is different from the displayed payable amount! ! ! The final problem is that vip.getPayUrl takes the server cache, which causes the amount displayed by the QR code to be inconsistent with the payable amount displayed on the front end. Therefore, the test payment still needs to go through the entire payment process. From confirming the order to the final successful payment, there may be problems in any step.

2. The same payment method, but different payment portals

(For example: as shown in the picture below, Alipay has two payment entrances. You can pay by scanning the QR code or through the Alipay web page. During the test, both entrances must be covered. Another floor, the question Pitfall 2 that the owner stepped on during the test: Pay through the Alipay website. After the payment is successful, the page does not jump back to the original service package page. The final reason is that the return_url of the service configuration is incorrect, which leads to the failure to jump back to the original page after payment .If the test case does not cover this scenario, it will cause very serious online accidents.

3.png

3. After the payment is successful, whether the product purchase is successful

(such as membership service products, whether the membership expiration time is normally delayed after purchase; such as purchasing goods, after successful payment, whether the order status has changed, whether the product type and quantity are correct, etc.)

4. After the payment is successful, is the user's amount deducted successfully?

Payment Amount Test Point

a) normal amount payment

b) Minimum value of amount: 0.01

c) Meaningless value: 0 yuan

d) Maximum amount: set the maximum amount paid

e) Bank card or WeChat, etc., set the maximum daily consumption amount or single maximum consumption amount

f) Pay when the bank card or WeChat balance is insufficient

Payment Process Test Point

a) Complete the payment process normally

b) After calling the order, cancel the order

c) After the payment is interrupted, continue to pay

d) End payment after payment interruption

e) Single payment for a single order

f) Combined payment for multiple orders

g) Continue to click to pay, whether there will be multiple purchases

Payment Method Test Point

a) Alipay payment

b) Alipay web payment

c) WeChat Pay

d) Bank card payment

Coupons or discounts (with certain offers)

a) If the coupon/discount is used in the payment, the payable amount and the actual payment amount are correct

b) Is the coupon/discount mandatory or not?

c) After the refund of the payment order is completed, whether the coupon/discount can still be used

Finally: The complete software testing video tutorial below has been organized and uploaded, and friends who need it can get it by themselves [Guaranteed 100% free]

Software Testing Interview Documentation

We must study to find a high-paying job. The following interview questions are the latest interview materials from first-tier Internet companies such as Ali, Tencent, and Byte, and some Byte bosses have given authoritative answers. Finish this set The interview materials believe that everyone can find a satisfactory job.

picture

Guess you like

Origin blog.csdn.net/m0_67696270/article/details/132092244