Want to change jobs? Don't worry! If you understand these 5 questions, it’s never too late to leave your job!

How to design a test case for creating a functional module of an agent group?

picture

answer:

For functional testing , use the equivalence class division method to analyze the valid and invalid classes of each input item to create a seat, and simultaneously consider the boundary value to design the corresponding test cases:

  1. First conduct a smoke test, and create an agent normally (the agent group number is automatically generated and confirmed to be unique in 6 digits, enter 10 Chinese characters for the name, select A for the type, select all check boxes for the mortgage agent group, and select the first on-site manager - under the name The first team leader - the first seat), click OK

  2. Create an agent normally (the agent group number is automatically generated and the 6-digit number is unique, enter a Chinese character for the name, select B for the type, check the mortgage agent group check box, select the last on-site manager - the last team leader under his name - the last one seat), click OK

  3. Can the seat number support manual input? After the system generates 6 digits uniformly, manually modify one less digit/more digit/non-digit/unique, verify if it is empty, and whether the system prompts an exception

  4. The agent group name input exceeds 11 Chinese characters/11 characters contain non-Chinese characters/existing name/is empty, will the system prompt an exception

  5. If the agent group type is not filled in, does the system prompt an exception?

  6. Whether there is a pledged seat group is not selected, and the seat creation operation can be performed normally

  7. On-site manager-team leader-seat, whether the three-level cascading function is normal, pay attention to the complete correctness verification of the drop-down box options; if the seat is empty, whether the system has a reasonable prompt

UI test : Whether the layout, layout, color and style of the interface are normal and reasonable, and whether it is consistent with the prototype requirements

 If you want to learn automated testing, here I recommend a set of videos for you. This video can be said to be the number one automated testing tutorial on the entire network at station B. At the same time, the number of people online has reached 1,000, and there are notes to collect and share with you. Dashen Technical Exchange: 798478386   

How to write a use case for the lottery event page, the lottery button, and the rewards deducted after the lottery is successful?

[Updated] The most detailed collection of practical tutorials for automated testing of Python interfaces taught by station B (the latest version of actual combat)_哔哩哔哩_bilibili [Updated] The most detailed collection of practical tutorials for automated testing of Python interfaces taught by station B (actual combat) The latest version) has a total of 200 videos, including: 1. Why should interface automation be done in interface automation, 2. The overall view of request in interface automation, 3. Interface combat in interface automation, etc. UP hosts more exciting videos, please pay attention to UP account . icon-default.png?t=N7T8https://www.bilibili.com/video/BV17p4y1B77x/?spm_id_from=333.337.search-card.all.click

answer:

Ui:  lottery draw page (turntable/horse race, etc.), and displays the remaining number of lottery draws

Function:

  1. Whether the entrance of the lottery is correct, such as through the homepage banner, recommended sharing links, etc.

  2. Basic lottery function verification, winning: the number of winnings - 1, the prizes are issued normally, and prizes can be exchanged

  3. Basic lottery function verification, not winning: number of winnings - 1

  4. The number of lottery draws for the same user is tested. For each lottery draw, the number of times will be reduced by 1; the number of lottery draws is 0, and no lottery draws are allowed; logout and relogin/refresh the page/login the next day will not be eligible for the lottery

  5. The probability of winning the lottery, you can call the lottery interface concurrently through Jmeter to calculate whether the probability of winning is correct

  6. Not logged in/session expired/not yet the time of the lottery draw, whether it is possible to draw a lottery
    Compatibility:
    compatibility with different browsers and different mobile phones, check whether the operation of the lottery page is normal
    Performance:
    at the same time, large concurrent lottery draws, whether the server processing is normal

Give you a chat window on WeChat, how do you test it?

The main function of the WeChat chat box is to send messages and receive messages from others.

Classification of messages: plain text, pictures, files, emoticons, voice, video, text + emoticons

Other functions of chat: @ symbol, withdraw function, add friend function, resend message, send red envelope, transfer money, send location information, send business card, group chat, etc.

function test:

Under a normal network, send plain text, pictures, files, emoticons, voice, video, text + emoticon messages, whether the sending and receiving functions are normal

Under the normal network, test the upper limit value test of pictures, files, voice, video and text

Under normal network conditions, the function of continuously sending messages and counting the number of messages is normal

Under normal network, whether to support group sending/chatting files, whether to support voice-to-text

Under a normal network, after a message is sent, whether it supports withdrawal within a certain time range, and whether it does not support the withdrawal function beyond the specified time

Under normal network, after sending failure, whether to support message resend
Under normal network, when there are many messages, whether to support one-click return to the previous browsing position

Under normal network conditions, whether the function of switching between voice chat and video chat is normal, and whether there is a sound prompt when sending voice chat or video chat

Under the normal network, when sending voice chat and video chat, if there is no answer for a long time, is there a prompt?

Under normal network conditions, whether the functions of sending business cards and sending location information are normal

Under normal network conditions, whether the functions of sending red envelopes and transferring money are normal

Under normal network conditions, if no friends are added, whether the function of adding friends is normal Under
normal network conditions, group chat: @single person, multiple persons, all persons, whether the subject will receive a reminder
During group voice, whether all invited members can join the group chat
Under normal network conditions, group chat: whether the statistics of the number of group chats are correct


Network test : Whether various functions are normal in the case of weak network or no network, whether there are prompts for video chat and voice chat

Interruption test:  In the scene of sending messages/voice chatting/video chatting, reconnecting after network disconnection/low battery/calling/switching apps, whether the processing is normal

Interface test : whether the chat message interface, prompt box, etc. are normal

Compatibility test : Different mobile phone systems, different mobile phone models, resolution screen sizes, whether the function of sending messages is normal
Performance test : Send pictures, text, video, voice and other messages, and whether the time received by the other party is within the required time

How do you do a module of an e-commerce project?

For example, what you are familiar with, such as the shopping cart in the e-commerce project,

Function:

  1. Divided into logged-in and non-logged-in scenarios; if not logged in, adding a shopping cart will prompt the login page to log in first; if logged in, you can jump to the shopping cart normally;

  2. Entry verification into the shopping cart: For example, click "Add to Cart" on the Taobao product page to enter, or go to the shopping cart from the top of the navigation bar;

  3. Shopping cart empty page verification: When the shopping cart item is added to 0, whether the page is normal prompt

  4. Product list verification in the shopping cart: Whether the pictures, names, unit price, etc. of one/multiple/multiple merchants are displayed normally, and click to jump to the product details page;

  5. Increase or decrease of commodity quantity and input verification: test 1/maximum inventory/normal condition of purchase limit, test 0/negative number/exceeding inventory/exceed purchase limit quantity/abnormal condition of non-number;

  6. Select all or part of the selected products to confirm the correctness of the subtotal amount of a single product, the quantity in the settlement and the total price

  7. The products added to the shopping cart are removed from the shelves, whether the normal display is invalid

  8. Delete the shopping cart item, the shopping cart is no longer displayed, re-add it can be displayed normally

  9. Click settlement, you can normally jump to the order page, and there is an interactive function verification with the promotional activities

Non-functional:
interface: the beauty of the page, no typos and page layout, etc.

Compatibility: The Web side can be compatible with mainstream browsers, and the APP side can be compatible with mobile phones and system versions

Performance: Multiple visits, long-term visits considering stability, etc.

Security: transmission of sensitive information, vulnerability scanning, etc.

Inventory testing involved?

  1. Whether the product details page in the foreground and the inventory of the shopping cart are consistent with the inventory of the products added by the background administrator

  2. The administrator in the background increases and changes the inventory of the product, and whether the inventory display in the product detail page and the shopping cart on the front desk is normal

  3. After the product has completed the purchase, payment and delivery process, whether the inventory in the front and back offices is reduced in time

  4. Complete the purchase of the product and cancel the order, and check the inventory changes in the front and back

  5. Complete the purchase and delivery of the product, and return it, and check the inventory changes in the front and back

  6. Constraint testing of inventory and purchase quantities

  7. Set the inventory alarm threshold in the background, verify whether there is an alarm below the threshold, and add the inventory in time

  8. The inventory is 0, check whether the inventory of the front and back is displayed normally

Guess you like

Origin blog.csdn.net/m0_73409141/article/details/132624791