[Tool] QQ login test case

Source: Internet
Author: User

Enter the QQ number (5 to 10 digits in length) and the QQ password, and click the login and exit buttons. One machine can log on to more than one QQ number at the same time. Please design a function test case.

Whether the shortcut key is used properly:

1. is the use of the tab key correct?

2. Are the upper and lower right keys correct?

3. Check whether the ESC key is working properly.

3. Whether the use of the Enter key is correct or not.

Aesthetic Layout

Whether the layout of the interface meets the aesthetic standards of people

Depending on the specific person

Function of the input box:

Enter a valid user name and password.

Enter a valid user name and invalid password and give a reasonable prompt.

Enter an invalid user name and correct password and give a reasonable prompt.

Enter an invalid user name and incorrect password and give a reasonable prompt.

Invalid usernames: Incorrect usernames, which contain more than the user name

Special characters that are not allowed by the normal user name are empty and reserved characters of the system (Operating System and Application System)

Invalid passwords include: empty passwords (unless otherwise specified), wrong passwords, and character exceeding the password limit

Special characters not allowed for normal passwords, reserved characters for Systems (operating systems and application systems)

Interface link:

For interfaces with links, test all links on the interface or give reasonable prompts.

Supplement

Whether the input box supports copying, pasting, and moving

The password box does not contain specific characters.

Check whether there is a space before the user name to enter. Generally, yes.

Verify that the username is case sensitive. (Some software is case sensitive)

The required verification item is blank and whether to allow access.

Verify that the number of logins is limited. From the security perspective, some software with high security levels will consider this restriction.

There are many types of test cases. For unit test cases, you need to design them as follows:

Concept of unit test

In general, a unit refers to a function that implements simple functions. Unit testing only uses a specific set of inputs (test cases) to test whether the function works properly and returns the correct output.

Test Coverage

1. Statement coverage: statement coverage is to design several test cases to run the tested program so that each executable statement can be executed at least once.

2. Decision coverage (also called branch coverage): design several test cases to run the tested program so that each of the true and false branches in the program can be executed at least once.

3. Condition coverage: Design sufficient test cases to run the tested program so that each possible value of each condition in the program can be executed at least once.

4. decision-condition coverage: Design enough test cases to run the tested program so that each possible value of each condition in the program can be executed at least once, in addition, each possible judgment result is executed at least once.

5. Condition combination test: Design enough test cases to run the tested program, so that all the condition values in each judgment in the program can be combined at least once.

6. Path test: Design enough test cases to run the tested program and overwrite all possible paths in the program.

The design scheme of use cases mainly includes the following types: conditional test, basic path test, and cyclic test. The above method can be used to implement logical coverage and path coverage of the program in the test case.

[Tool] QQ login test case

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.