Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Execution method and device of test program

A test program and interface configuration technology, applied in the field of computer processing, can solve problems such as serious system coupling, weak transferability, and insufficient versatility, so as to achieve decoupling, reduce the workload of repeated development, improve versatility and The effect of transferability

Active Publication Date: 2018-11-30
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the prior art, different systems have specialized system-level test solutions, but the solution itself is too heavily coupled with the system, resulting in insufficient versatility and weak portability; in addition, the repeated development of existing system-level test tools Very serious, the development efficiency is low, and the stability is not guaranteed

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Execution method and device of test program
  • Execution method and device of test program
  • Execution method and device of test program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] figure 1 It is a flow chart of a method for executing a test program provided in Embodiment 1 of the present invention. The method in this embodiment can be executed by a device for executing a test program. The device can be implemented by means of hardware and / or software, and generally can be Integrate in the test equipment used to complete the system level testing of the set software system. The method of this embodiment specifically includes:

[0034] 110. Load the environment description interface configuration file associated with the test program into the memory.

[0035] Wherein, the environment description interface configuration file includes: a fixedly configured environment parameter name, and an environment characteristic value corresponding to the environment parameter name set by the user, and the environment characteristic value is associated with the test environment.

[0036] As mentioned above, developers first need to use the semi-fixed environmen...

Embodiment 2

[0092] figure 2 It is a flowchart of a method for executing a test program provided in Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiments. In this embodiment, it further preferably includes: when a problem location scene is detected, calling and executing the problem troubleshooting and location code in the test program.

[0093] Correspondingly, the method in this embodiment specifically includes:

[0094] 210. Load the environment description interface configuration file associated with the test program into the memory.

[0095] Wherein, the environment description interface configuration file includes: a fixedly configured environment parameter name, and a user-defined environment feature value corresponding to the environment parameter name, and the environment feature value is associated with the test environment.

[0096] 220. Execute the program codes of the test program sequentially according to the pr...

Embodiment 3

[0115] Figure 4 It is a structural diagram of a test program execution device provided in Embodiment 3 of the present invention. Such as Figure 4 As shown, the device includes: a configuration file loading module 41, a program execution module 42 and an environment feature value acquisition module 43, wherein:

[0116] The configuration file loading module 41 is used to load the environment description interface configuration file associated with the test program in the memory; wherein, the environment description interface configuration file includes: the environment parameter name of the fixed configuration, and the user-defined setting, The environment characteristic value corresponding to the environment parameter name, the environment characteristic value is associated with the test environment.

[0117] The program execution module 42 is configured to execute the test program, wherein the test program includes: at least one abstract class.

[0118] The environment f...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses an executing method and device of a test program. The method comprises the steps of: loading a description interface configuration file associated with a test environment in a memory; executing the test program; and, when executing the test program to an environment-related statement in a target abstract class, acquiring a target environment characteristic value corresponding to a target environment parameter name in the memory according to the target environment parameter name in the environment-related statement, so that the test program executes operations associated with the target environment characteristic value. The technical scheme provided by the invention realizes decoupling of a test tool and the environment, improves the universality and the mobility of the test tool, and greatly reduces the workload of repeated development of developers.

Description

technical field [0001] The embodiments of the present invention relate to computer processing technology, and in particular to a method and device for executing a test program. Background technique [0002] With the explosive growth of the scale of the Internet, the scale of the system becomes more and more complex, and the number of modules in the system also increases rapidly. Therefore, in the face of such a large and complex system, how to conduct efficient and stable system-level testing becomes difficult. [0003] In the prior art, different systems have specialized system-level test solutions, but the solution itself is too heavily coupled with the system, resulting in insufficient versatility and weak portability; in addition, the repeated development of existing system-level test tools It is very serious, the development efficiency is low, and the stability is not guaranteed. Therefore, how to implement efficient and stable system-level testing for complex large-s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3672G06F11/3688
Inventor 白晓庆董海炜
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products