How to develop an effective reusable test cases, how to use and manage

  In the software testing process, a mature team generally has its own public test case library. Public libraries can test case test case library reuse. Today we'll talk about how to develop an effective reusable test cases and learn how to use and manage.

First, the development of reusable test cases

  Test is to verify that a collection of input functions of the minimum point, and the output sequence of operations. It refers to a reusable test "designed for the purpose of reuse of test." Meaning that through reuse of reusable test cases to verify the same or similar function module, designed to speed up the progress of test cases, reduce the burden on the tester; can also help supplement products in demand when the details of the design of similar functions; and also to develop who agreed late in the development of similar functions, we can have a pre-existing standards, improve development productivity and code quality; 

 

  1. Analysis reusable dimensions

  Efficient use of reusable test, reusability test may analyze three dimensions:

  

  1) Time point of view: the basis of previous software versions using test cases as a new version of the test cases, can maintain and reuse as when regression testing software.

  2) General angle: In a hardware-based platform or software platform for testing which test characteristics may be multiplexed. The B / S network applications architecture for secure data transmission network to the test structure can be substantially reused.

  3) Application angle: In a particular domain model constructed on the basis of the test, during testing of different types of applications can be multiplexed in the same area.

 

 

  2. The reusable test quality characteristics

  To construct a high quality reusable test cases need to provide the essential characteristics of reusable test case, i.e. analyze its quality characteristics. IOS9126 herein given quality model and ISO9241 standards, and test a large number of applications multiplexing analyzed, that the quality of the model reusable test is shown in Fig.

  

  1) availability: means reusable test cases to effectively detect software defects, and easy to understand, easy for people to use, from a user perspective reflects reusable test quality.

  2) Independence: reusable test cases are independent, and preferably encapsulates the test procedures and test data. That test requirements for R1 and R2, the intersection test are set C1 and C2, C1, and C2 is empty.

  3) Maintainability: reusable test is not limited to the particular application, but reliance tested software requirements, design, and the environment, it can be used without modification or can be slightly modified in a broad field of art or similar application.

 

Second, the use of reusable test case

                                                                           Reusable test using flow

  1) Matching test cases: software test engineer in carrying out the test work, the first of the tested software business logic, test environment, test requirements, test type is analyzed, and then extract the test items each function point, forming a test project the analysis of the list, and retrieves one by one test match with the existing test items in the library can be reused.

  2) test reuse: if the retrieved items in the library with a test or similar test, the test engineer has been extracted test cases, and further test the concrete, so called for the specific project test case.

  3) generation and storage reusable test: if the library is not retrieved in the same or similar test items under test, the test engineer to design new test case, and in accordance with the quality and characteristics of the design of reusable test guidelines abstraction and generalization, a new generation of reusable test cases. At the end of the project, submit reviews and unified storage for future test cases ready for reuse.

Third, reusable test case management

  Efficient complex of independent test team, test cases used to achieve, must be carefully designed, selected, collected a large number of test cases, and be well organized and managed. In organizing the test cases, test cases in accordance with the business belongs to, such as multi-level project reasonable classification, organization, storage. Different levels of test cases to achieve different levels of multiplexing.

  To avoid the case of complex difficult to use a library of test, response test libraries for effective management, use cases such library typical, representative. The management of test case library includes the following:

  1. Extract the abstract test case. Extract refers to specific projects after the completion of system testing, the test team can select which cover system business rules, designed, representative test cases and test cases in accordance with the specific quality characteristics of reusable test cases, design principles abstract activities.

  2. phase of the review. Monthly or quarterly maintenance of reusable test library, including culling, adjustment of the same or similar test cases consolidated, redundant test cases test case library construction activities.

  In the test case management activities include the assessment, the assessment team during the assessment, the need for reusable test the correctness of reuse characteristics, design principles of compliance review after review by available storage.

Fourth, the advantages and difficulties of reusable test cases  

  Through a large number of engineering practice, not difficult to find a test case reuse has the following advantages and difficulties. The following advantages:

  • Improve the efficiency of software testing
  • Shorten the cycle of software testing
  • Improve software reliability testing
  • Reduce the cost of software testing
  • A partial solution to the lack of experience of testers

  But to truly difficult test reuse can not be ignored, if not solved the problem, will make the software testing less effective. The difficulty is as follows:

  • Test database maintenance issues
  • The standard test division
  • The test version management issues
  • The difference between the tested software
  • Management factors, environmental factors, human factors and educational factors.

  

Guess you like

Origin www.cnblogs.com/susanhonly/p/11435253.html