Using matrix mode to complete Web multi-scene test

Source: Internet
Author: User
Keywords Scene testing Matrix mode

Array mode image can be understood as a table, we often use tables to record complex data, if the first row of the table and the first column of the data as a simple test point, except the first column of the table in addition to the data can be seen as a complex test case expected to execute the results, The table is a 6184.html "> datasheet that holds a lot of test cases." This paper expounds the application of matrix model in http://www.aliyun.com/zixun/aggregation/10185.html "> Software test Case" to help you understand how to use the simple method of matrix pattern skillfully, More efficient recording of test cases, especially for complex scenarios

The importance of matrix mode to test cases

In software testing, writing test cases is an essential link. In theory, testers will list the test points according to the product design document, and then design different scenarios based on each test point, writing test cases one by one. However, by analyzing the scenario of a test point is similar, there are some steps in the test case that have a high repetition rate. In actual tests, these repetitive steps are not highly utilized, and experienced testers do not need to view each step individually, and can perform similar test cases based on the scenario.

In response to this situation, Ryan Davis early in 2007 to put forward a matrix model, using matrix mode to record test cases, in fact, is equivalent to the combination of multiple test cases into a complex product checklist, on the one hand, save the time to write and maintain test cases, improve efficiency On the other hand, the traditional test cases can be simplified, the readability is increased, and the function points are visualized to facilitate the tester to track the test status globally.

Based on the application of matrix model in software testing, this paper mainly introduces the application examples of matrix model in multiple scene testing, repetitive problem testing, interactive testing, and the improved matrix mode principle and its tools.

Multiple scene Tests

In the test, the test is often designed for different scenarios to simulate the real effect of user use. For example, data input testing, such as password input fields, will generally limit at least 6-bit conditions. For a test pilot with at least 6 bits of password input length, the following four scenarios must be tested:

not input, less than 6 digits, equal to 6 bits, greater than 6 bits;

Four similar test cases need to be written in the traditional test case, and the four test steps are almost the same. The following table 1-table 4 shows:

Table 1. Password input field length test case-do not enter

Test tournaments Expected result 1. Open a creator .... Can Open normally 2. No Input in password field 3.Submit Alert "Password are not even blank"

Table 2. Password input field length test case-less than 6 bits

Test Tournaments Expected result 1. Open a creator .... Can Open normally 2. Input password with pager than 6 digit in password filed 3.Submit Alert "Password length moment-in to more than or equal 6 digit"

Table 3. Password input field length test case-equals 6 bits

Test Tournaments Expected result 1. Open a creator .... Can Open normally 2. Input password with 6 digit in password filed 3.Submit Success

Table 4. Password input field length test case-greater than 6 bits

Test Tournaments Expected result 1. Open a creator .... Can Open normally 2. Input password with more than 6 digit in password filed 3.Submit Success

Analyze the four test cases and find that the rest of the steps are the same except for the second step. We can pull this off and use the matrix mode to simplify the test case representation, as shown in table 5 below:

Table 5. Password input field length test cases

Test Point Expected result Execute result does not enter alert "password is not even blank" less than 6 bit Alert "Password length moment-in be greater tha n or equal 6 digit "equals 6-bit Success greater than 6-bit Success

It is found that the test points of password input field length are simply listed by matrix mode, which saves the time for testers to write test cases. Theoretically this form of test case cannot be completely called a complete test case, instead of listing each step in detail as a traditional test case, it actually works better, especially when a test pilot has a certain number of levels of testing, or when a test case has multiple test points, It is worthwhile to develop this form of test cases through matrix mode.

Related Article

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.