Joke Collection Website - Blessing messages - What is a test case?

What is a test case?

A software test case is an explanation that guides you to operate the software and helps you to prove the software function or find the software defects.

His form is roughly like this

Let's assume. Now you are required to test Baidu's known submit and answer functions.

Use case number: submit the question 00 1 (the number is generally written according to the function or module).

The purpose of the test is to verify whether the user can submit the answer normally after answering the question. (Most of them will write a requirement statement, in short, let people know what you want to test in this use case. )

Test title: This sometimes includes the test purpose and can be omitted, but the test case title is necessary.

Importance level: most use cases such as submission and answer will be listed as the highest level use cases, because this is the most basic function. Often the more basic, the higher the level. The reason is that if the basic function is defective, you don't need to test other functions at all and return to the version directly.

Prefabrication condition: 1, Baidu knows it works normally. 2. The user has logged in. 3. Go to the question page you want to answer. (That is, you must have a prerequisite before doing this test)

Operating steps: 1. Click the cursor in the input field under "Let me help him answer".

2. Enter the answer you want to submit.

3. Click Submit to answer.

4. Verify whether the submitted answer can be displayed under the current question.

(Most of the input data is incorporated into the operation steps, for example, the input data in this article is the "answer")

Expected result: 1 After clicking Submit Answer, the page prompts that the answer is successful. When you look at the question again, the answer just now can be displayed correctly. ...

All titles are attributes that need to be included in software test cases. The colon is followed by a specific description of this use case.