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

Script testing method and device

A script test and script 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: 2015-02-18
MAIPU COMM TECH CO LTD
View PDF7 Cites 13 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
  • Script testing method and device
  • Script testing method and device
  • 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 discloses a script testing method and a script testing device, and relates to the communication field; the testing method and the testing device can automatically test script of network equipment, so as to reduce labor and material consumption. The testing method comprises the following steps: receiving business request information transmitted by an operation and maintenance system; depending on a corresponding relation between stored equipment information and tested script, determining a first script corresponding to equipment information of the network equipment; if the determined mode indicated by mode parameter is a test mode, loading and executing the first script; depending on a corresponding relation between the stored equipment information and a simulation document, determining a first simulation document corresponding to the equipment information of the network equipment; when executing a first test order in the first script, acquiring a first returned result corresponding to the first test order depending on the corresponding relation in the first simulation document; and transmitting the first returned result to the operation and maintenance system. The script testing method and the script testing device disclosed by the invention are applied to automatic 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
IPC IPC(8): G06F11/36
Inventor 刘刚国
Owner MAIPU COMM TECH 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