With an annual salary of 30W, BAT is rushing to ask for it. How popular are testers who understand interview skills?

I found that whether it is a new tester who has just entered the workplace or an old man with several years of testing experience, for the test case design, if he has not been in contact with tested software products, he will basically not be able to answer when asked how to test. In the final analysis, the accumulation of test thinking is not enough.

I have compiled an article on how to write test cases and cultivate test thinking before. I suggest that the use cases are weak and take a good look.

In view of the fact that many small partners are looking for jobs at present, we simply sort out the use case design questions that have been feedback recently to assist everyone in their high-paying job hunting!

insert image description here

Test Case Design Questions

01. Use case design questions - self-service shopping APP

picture

Answer arrangement:

Assuming buy 2 get 1 free, you only need to scan the code for 2 items, and the purchase list will automatically add the gift item

Assuming that the same item can only enjoy a single discount, for example, if it is buy 2 get 1 free, there is no discounted price

1 Normal shopping process verification

Scan codes for regular-priced products, direct discounted products, and buy 2 get 1 free products, and add purchases

1) Add items and check whether the read prices are correct:

a. Scan the code to automatically fill the barcode box for regular-priced products and read the correct price

b. Buy 2 get 1 free. Scan the QR code for 2 items to automatically add 1 free item (the gift price is 0, and the other 2 items are at the regular price)

c. Directly discount products, manually enter the barcode box, and read the discounted price

2) Click Settlement, select APP account balance payment, whether to pay normally

3) Whether the password for opening the gate is automatically generated after the payment is successful, and the door can be opened by swiping the code normally

picture

2 Supplements to other normal shopping processes

1) Scan the QR code to add multiple buy 2 get 1 free items, whether the gift items are normally displayed in the purchase list and the price is 0; choose to pay with WeChat to check whether the payment is normal, and generate a password to open the gate to open the door normally

2) Scan the QR code to add multiple discounted products, whether the discounted price is displayed normally; choose to pay with Alipay, whether it is normal to pay, and generate a password to open the gate to open the door normally

3) Test the situation where the added product exceeds 1 page (generally 10 products per page)

4) Delete the scanned product, whether it is deleted normally, and the price subtotal is correct

5) Reduce the quantity of scanned products, whether the quantity is reduced normally, and the price subtotal is correct

3 Verification of other situations

1) Click the scan function, manually enter the wrong barcode in the barcode box, whether the app is processing normally

2) The number of products added exceeds the current inventory of the supermarket, whether the app prompts normally

3) If you frequently click on the settlement function multiple times, does the app remind you that you cannot submit operations frequently?

4) The price of purchased goods exceeds the app account balance/WeChat balance/Alipay balance

5) The generated gate opening password has been scanned and used, whether it can be reused

6) For the failure of normal payment and the failure to swipe the code to leave, whether the app has timely alarm processing

picture

02. Use case design questions - stock software

Please design a test plan for the business functions in the following interface:

Tip: It needs to be refined to test scenarios and test points

picture

Answer arrangement:

Scenario for buying stocks:

1. The operation of buying stocks is normal. After the purchase, whether the stocks are normally displayed and recorded, and whether the amount is deducted normally

2. Enter the first few digits of the stock code, whether it can be automatically associated; whether the shareholder code in the drop-down box is displayed completely, select the first, last, and middle selection test of the shareholder code in the drop-down box

3. After entering the stock code, the stock code can be automatically associated, and it can also support input

4. The available funds normally display the current available funds, and you can enter positive amounts, 0, negative amounts, and more than the current available funds

5. Select limit order for order type, buy price lower/higher than market price, whether to buy automatically

6. The test of the boundary value of the buying price, such as limit-down and limit-up price boundaries

7. Whether the maximum quantity is calculated correctly, available funds/buying price

8. Select by quantity: the purchase quantity is less than or equal to the boundary value test of the maximum quantity that can be purchased, and it is 0, negative, or exceeds the maximum purchase quantity

9. Select by amount: the purchase amount is less than or equal to the limit value test of the maximum purchase amount, which is 0, negative, or exceeds the maximum purchase amount

10. Check all, 1/2, 1/3, and 1/4 respectively to verify whether the purchase is normal

11. Verification of the clearing function, whether the input content of buying stocks is cleared normally

Single Interface Test Scenario 1 Solution

1. Buy stocks with more than 1 page (according to 1 page, 10 items) to check the stock display

2. When buying too many stocks, select the first, last, and middle one according to the boundary value, and check whether the value of each field of each stock is displayed correctly, especially pay attention to the amount-related fields

3. When the stock price fluctuates, pay attention to whether the stock market value, profit and loss, profit and loss ratio, etc. are correct

4. When the stock is sold and purchased, whether the total amount of securities and the available quantity are correct

5. Whether the keyword query function and the sorting function of the stock query are correct

Data display correctness verification

Select different stock codes to check whether the data in the buy, sell, cancel order, transaction, and position views are displayed normally

Carry out different business operation simulations of stocks, and check whether the data is displayed normally

insert image description here

03. Smart door handle, how to design test cases?

The direction is the same. From the perspective of function, interface, compatibility, ease of use, security, performance, etc., during the interview, first answer based on your understanding of electronic locks.

The functions can be : whether fingerprint unlocking, password unlocking, whether there is an upper limit for the set fingerprint and password, whether the set password has strength verification, whether the key can be unlocked when there is no power, how many times the password is entered incorrectly, the electronic lock will be locked and whether It is bound to the mobile app to notify illegal unlocking warnings, etc.

Interface : Whether the interface button layout, display, screen display, etc. are friendly, and whether the door handle design is friendly

Compatible : whether it is adapted to different sizes

Safety : In the event of a fire or the electronic lock has no power, whether the key can be unlocked, and whether the app can be connected to the predictive warning

Performance : The door has been hit many times, whether the electronic lock is normal

04. How to test mobile phone camera?

UI tests:

Whether the camera interface, functional controls, etc. are normal

Feature:

1. Does it support time-lapse photography (closed, 3s), video, panorama, and photo functions?

2. When facing the light source, where light and shade meet, moving between light and shade, facing the edge of an object or a straight line object, the shadow of an object, sunlight/fluorescent light or backlight, high-speed continuous shooting, whether there is much difference from the real scene after taking pictures

3. Is it normal to turn off/on the flash in the camera to take pictures?

4. Whether the focus function in the camera and taking pictures on the horizontal and vertical screens are normal

5. Preview under various special effects, whether the color difference under various color cards is normal

6. Are photos and videos saved normally?

7. Whether the photo and video processing, including deleting, editing, sharing and other operations are normal

8. Irregular operation of keys (press no key or touch screen floating menu when taking pictures or video recording)

9. Take pictures when the space is full

Break test:

10. Incoming SMS/MMS, incoming voice calls, incoming schedules, incoming alarm clocks, pulling out the battery, and in U disk mode

11. Turn on and off the machine, plug and unplug the charger, time to shut down, and play music in the background;

pressure test:

12. Constantly pressing the camera button, repeatedly advancing and retreating the camera, repeatedly switching the camera, repeatedly switching the camera,

13. Repeatedly change each item in the camera, repeatedly enter and exit when the screen is horizontal or vertical, and music is playing in the background

14. Prolonged use or video recording

picture

05. How to test the earphone?

Function:

1. Select several different audios including slow music, fast rhythm, high audio, etc. to play, plug in the earphones to see if the sound is clear and there is no noise

2. Adjust the headphone volume key up and down to see if the sound is distorted

3. If there is a jump in the music playing, check whether the sound transition is natural

UI:

Whether the appearance of the earphone is normal, whether it conforms to the design of the human body, etc.

pressure:

4. If you use the earphone for a long time, is there any quality problem?

5. Is it normal to plug and unplug the earphone many times and adjust the earphone button?

06. Practice

Assuming a software has membership activities, only members can participate. Members recharge 100 to get a lucky draw chance, 200 has two times, and 300 has 4 times. What test points are there when the recharge function is stable?

1. Members recharge 100, 199 for verification and have 1 lucky draw chance

2. Members recharge 200 and 299 for verification and have 2 lucky draw chances,

3. Members recharge 300, 400, 1000 for verification and have 4 lucky draw opportunities

4. Members have run out of lucky draw chances, and the page displays 0 remaining lucky draws, and there is no permission to draw again

5. Member recharge 99, no lucky draw chance

6. Non-members recharge 100, 200, 300, no lucky draw chance

7. If the network is interrupted during the lottery draw, can the lottery draw continue?

Finally: In order to give back to the die-hard fans, I have compiled a complete software testing video learning tutorial for you. If you need it, you can get it for free【保证100%免费】
insert image description here

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.

insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/m0_67695717/article/details/131436300