Passing test and Failure Test

Source: Internet
Author: User

In software testing technology, existing testing methods and technologies do not mention passing tests and failure tests.

In the actual project testing process, many project teams applied this method again. Although this method is used, manyPass testAndFailed testUnderstanding is not transparent, and it is not done according to the unified labeling during actual use. Many test engineers only use this name in their own projects, but do not understand this method if it can be used. That is to say, in the process of use, it is actually a well-known test method, such as the Boundary Value and equivalence class.

The purpose of this article is to discuss this method with you, hoping to provide the next standard to standardize the design of testing methods in practical applications.

 

Pass the test:As the name suggests, If you execute this test case set, all the results are pass and correct.

For example:

The username in the logon box must beEnglish,

Enter your username in English and click "Logon.

 

Failed test:Test Case set for failed execution. The test result is returned.(Expected)Result of failure.

That is, to run the failed test case, you want to get the expected error message by executing the test case,

For example:

The user name cannot beNumberIf the digital system requires an error message, you can set it as a failure test case.

That is, enter the username as a number and click "Log on" to display an error message.

 

Here is a simple example:

Qq logon Interface

The requirements are as follows:

1. the QQ number must be a number.

2. If the QQ number is not a number, an error message is displayed when you click log on.

650) This. width = 650; "name =" image_operate_97641313648433406 "src =" http://s2.sinaimg.cn/middle/5007d1b1gaac199745ab1&690 "width =" 340 "Height =" 256 "style =" border: 0px; width: 231px; Height: 173px; "alt =" 5007d1b1gaac199745ab1 & 690 "/> 650) This. width = 650; "name =" image_operate_299313648553578 "src =" http://s4.sinaimg.cn/middle/5007d1b1gaac19a0ecbe3&690 "width =" 340 "Height =" 256 "style =" border: 0px; width: 234px; Height: 175px; "alt =" 5007d1b1gaac19a0ecbe3 & 690 "/>

The following settings should be set for passing test cases and failure test cases.

Pass test cases

650) This. width = 650; "name =" image_operate_76221313648456000 "src =" http://s9.sinaimg.cn/middle/5007d1b1gaac197cbc068&690 "width =" 657 "Height =" 164 "style =" border: 0px; "alt =" 5007d1b1gaac197cbc068 & 690 "/>



 

Failed test case

650) This. width = 650; "name =" image_operate_31381313648456750 "src =" http://s7.sinaimg.cn/middle/5007d1b1gaac198a0a016&690 "width =" 654 "Height =" 153 "style =" border: 0px; "alt =" 5007d1b1gaac198a0a016 & 690 "/>



Therefore, you can design test cases and failure test cases based on your needs, and then use evening test cases such as boundary values and equivalence classes.

This greatly improves the speed and efficiency of designing test cases. 

The above is just a summary of myself. If there are any mistakes, please feel free to discuss them.

 


This article is from the "Exploration home" blog, please be sure to keep this source http://starpoint.blog.51cto.com/968349/1439069

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.