Test method and system of test case

A technology of test cases and test methods, which is applied in the direction of software testing/debugging, etc., can solve problems such as wasting system resources, initialization data and test results are different, and achieve the effect of alleviating test pressure and saving test resources

CN102467448AActive Publication Date: 2012-05-23ANYKA (GUANGZHOU) MICROELECTRONICS TECH CO LTD
4 Cites 20 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2012-05-23

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention relates to a test method and system of a test case. The method comprises steps as folows: a scheduler reads a configuration file and loads a test program according to the configuration file; a script file is called, and test case data and an operation flow in the script file are analyzed; and a test program tests the test case data and writes the test result in a target file according to the operation flow. In the test method and system provided by the embodiment of the invention, the test data and operation flow are written in the script file which can be identified by the scheduler, the test program is called, and the test case data is acquired to perform the test according to the operation flow defined in the script, thereby effectively separating the test data, operation flow and test codes; and multiple sets of test data and multiple sets of operation flows can be configured in the script file. The test is carried out in one test code, and the test result is stored in the target file, thereby effectively relieving the test pressure of the system and saving the test resource of the system.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] This application relates to the field of software testing, in particular to a testing method and system for testing cases. Background technique

[0002] In existing software testing technologies, when developing test codes, general testers mix test cases (including test data and business processes) with test codes, and similarly, test results are also mixed with test codes.

[0003] Since test cases and test codes are mixed together, for a function or function, every time a test case is added, a similar test code must be added. The logic of the test code is actually the same, and the difference from the previous test code is only The reason is that the initialization data of the test is different from the test results. If a test code is added every time the test data is changed, it will put a lot of pressure on the system's carrying capacity and waste system resources. Contents of the invention

[0004] In order to solve the above technical problems...

Examples

Embodiment Construction

[0028] In order to enable those skilled in the art to better understand the scheme of the present application. The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

[0029] The flow chart of the test method of the test case provided by the embodiment of the application is as follows figure 1 shown, including:

[0030] Step S101: read the configuration file and load the test program according to the configuration file;

[0031] Step S102: call the script file, analyze the test case data and business process in the script file;

[0032] Step...