Unlock instant, AI-driven research and patent intelligence for your innovation.

A script testing method and device

A script testing and scripting technology, applied in the field of communication systems, can solve the problems of consuming a lot of manpower and material resources, a huge amount of query tasks, a huge number of equipment, etc., and achieve the effect of reducing the consumption of manpower and material resources

Active Publication Date: 2017-09-29
MAIPU COMM TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Specifically, when the test system executes a script, the tester needs to manually query the correct return result corresponding to the command in the script. If the number of devices to be tested is huge, the query workload is also very large
Therefore, a lot of manpower and material resources are required in the testing process

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
  • A script testing method and device
  • A script testing method and device
  • A script testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] The embodiment of the present invention provides a script testing method, which is applied to a script testing device, and the script testing device is directly connected to the network equipment and the operation and maintenance system, such as figure 1 As shown, can include:

[0032] Step 101. Receive service request information sent by the operation and maintenance system, where the service request information includes device information of network devices and mode parameters used to indicate the service execution mode of the operation and maintenance system.

[0033] Step 102: Determine the first script corresponding to the device information of the network device according to the stored correspondence between the device information and the test script.

[0034] Step 103, if it is determined that the mode indicated by the mode parameter is a test mode, load and execute the first script.

[0035] Step 104: Determine the first simulation file corresponding to the dev...

Embodiment 2

[0048] The embodiment of the present invention provides another script test method, which is applied to test systems such as figure 2 As shown, the system may include a test system, an operation and maintenance system, a script test device and a plurality of network devices. In this system, the operation and maintenance system can directly communicate with the test system and the script test device, and the script test device is directly connected with each network device. The script testing device is used to test the scripts of the network equipment, and the script testing device can also save scripts and simulation files, and the scripts in the embodiment of the present invention are Javascript scripts supported by each network equipment.

[0049] Such as image 3 As shown, the method may include:

[0050] Step 201, the script testing device collects device information, instructions and return results of each network device.

[0051] When the test system tests the script...

Embodiment 3

[0092] The embodiment of the present invention provides a script test device 30, such as Figure 4 As shown, can include:

[0093]The receiving unit 301 is configured to receive service request information sent by the operation and maintenance system, where the service request information includes device information of network devices and mode parameters used to indicate the service execution mode of the operation and maintenance system.

[0094] The determining script unit 302 is configured to determine the first script corresponding to the device information of the network device according to the stored correspondence between the device information and the test script.

[0095] The execution unit 303 is configured to load and execute the first script if it is determined that the mode indicated by the mode parameter is a test mode.

[0096] Determine a simulation file unit 304, configured to determine a first simulation file corresponding to the device information of the net...

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 invention provides a script testing method and device, which relate to the field of communication and can automatically test the scripts of network equipment, thereby reducing the consumption of manpower and material resources, including: receiving business request information sent by an operation and maintenance system; The correspondence between scripts, determine the first script corresponding to the device information of the network device; if it is determined that the mode indicated by the mode parameter is the test mode, load and execute the first script; according to the stored device information and simulation The corresponding relationship between the files is determined, and the first simulation file corresponding to the device information of the network device is determined; when the first test instruction in the first script is executed, according to the corresponding relationship included in the first simulation file , obtain the first return result corresponding to the first test instruction; and send the first return result to the operation and maintenance system. The script testing method and device provided by the present invention are applied to automated testing.

Description

technical field [0001] The invention relates to a communication system, in particular to a script testing method and device. Background technique [0002] At present, network equipment management, especially the daily maintenance and management of equipment, is in its infancy. In various industry network systems, there are operation and maintenance tools and processes for viewing network equipment operating parameters, upgrading equipment versions, configuring backups, and distributing configurations. . The SNMP (Simple Network Management Protocol, Simple Network Management Protocol) protocol and the TR069 protocol are the most commonly used protocols in network management systems, but many network devices cannot support the SNMP protocol or the TR069 protocol. Therefore, there must be differences in the script types of network devices. change. [0003] When the system supports more and more device models, a large number of scripts (various types of scripts) are written an...

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
Inventor 刘刚国
Owner MAIPU COMM TECH CO LTD