CN104639384A - Method, device and system for transmitting test commands - Google Patents

Method, device and system for transmitting test commands Download PDF

Info

Publication number
CN104639384A
CN104639384A CN201310556707.6A CN201310556707A CN104639384A CN 104639384 A CN104639384 A CN 104639384A CN 201310556707 A CN201310556707 A CN 201310556707A CN 104639384 A CN104639384 A CN 104639384A
Authority
CN
China
Prior art keywords
test
interpreter
test command
command
terminal window
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310556707.6A
Other languages
Chinese (zh)
Other versions
CN104639384B (en
Inventor
刘宗昌
樊志强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201310556707.6A priority Critical patent/CN104639384B/en
Priority to PCT/CN2014/080141 priority patent/WO2015067052A1/en
Publication of CN104639384A publication Critical patent/CN104639384A/en
Application granted granted Critical
Publication of CN104639384B publication Critical patent/CN104639384B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method, a device and a system for transmitting test commands. The method includes enabling a communication agent unit to receive the first test commands and/or the second test commands; enabling the communication agent unit to transmit the first test commands and/or the second test commands to tested devices. Test scripts are interpreted by interpreters to obtain the first test commands, and the second test commands are inputted by users via a terminal window. The method, the device and the system have the advantages that the problem of poor extensibility of systems due to the fact that test commands are transmitted to tested devices by existing terminal windows in the prior art can be solved by the aid of the method, the device and the system, and the extensibility of test systems can be improved.

Description

Test command sending method, Apparatus and system
Technical field
The present invention relates to the communications field, in particular to a kind of test command sending method, Apparatus and system.
Background technology
In network equipment detection, agreement by a telnet(remote login service) to be connected to testing equipment be conventional method of testing to tool terminal, concrete mode is user's manually input configuration order (i.e. test command), then checks that returning results of equipment is tested.In this case, when user carries out the many test of some repetitive operations, as configured a large amount of sub-interface information, when adding a large amount of static routing informations, efficiency comparison is low.
In order to solve Similar Problems, some terminal installation supports are had to record the recording function of user's input, retest to a certain extent can be carried out, but because the information recorded lacks logic control ability, effectively can not process the change of device parameter, easily occur the test result of mistake.
In order to increase the logic control ability to input information, be integrated with interpreter on the terminal device, undertaken alternately by script and terminal window, specifically be responsible for and network device communications by terminal exactly, can manual input configuration order on terminal window, also the input configuration order of operation interpreter script automation can be passed through to terminal window, then by the order of terminal window transport arrangement to equipment.This mode achieves the functions such as the control of test process complex logic, repeated configuration, configuration in enormous quantities, but simultaneously also for user provides manual termination function.But inventor finds that in research process this mode also exists some problems:
1, dropped on terminal window with the communication of equipment, the configuration order of scripting also must be realized by terminal window, and termination extension is poor; The configuration order of manual configuration order and scripting also must be realized by terminal window, and the two may produce conflict;
2, the configuration order of scripting can improve testing efficiency, but in networking during multiple devices configuration mass data (such as every platform equipment all configure 4096 sub-interfaces), will this significantly reduces testing efficiency.And if adopt multiple tool terminal simultaneously distribution configuration command, there is again the problem being difficult to the configuration sequence of Mediation Device, cause allocation plan complicated, poor feasibility;
3, test process needs automation to participate in simultaneously, and when automatic test course needs manual test to coordinate once in a while, acquisition of information becomes very complicated; Due to this terminal installation limitation, be difficult to the function bearing automatization test system again, often will carry out manual test on a device, another one device carries out automatic test.
Send to equipment under test to cause the problem of set expandability difference test command in correlation technique by terminal window, not yet propose effective solution at present.
Summary of the invention
The invention provides a kind of test command sending method, Apparatus and system, send to equipment under test to cause the problem of set expandability difference test command at least to solve in correlation technique by terminal window.
According to an aspect of the present invention, provide a kind of test command sending method, comprise: communication agent unit receives the first test command and/or the second test command, wherein, described first test command is that interpreter makes an explanation to test script and obtains, and described second test command is that user is inputted by terminal window; Described first test command and/or described second test command are sent to equipment under test by described communication agent unit.
Preferably, after described first test command and/or the second test command are sent to described equipment under test by described communication agent unit, described method also comprises: described communication agent unit receives the response message of described equipment under test in response to described first test command and/or the response message of the second test command; The response message of described first test command is sent to described interpreter by described communication agent unit, and the response message of described second test command is sent to described terminal window.
Preferably, when described system comprises multiple interpreter, described multiple interpreter makes an explanation to described test script and comprises: the first buffering area that described multiple interpreter is created by the first lock unit, obtain described test script, wherein, described first buffering area is used for the data sharing between described multiple interpreter; The first signal that described multiple interpreter sends according to described first lock unit, make an explanation to described test script, wherein, described first signal explains described test script for controlling described multiple interpreter according to predesigned order.
Preferably, before described communication agent unit receives described first test command, described method also comprises: described first test command is sent to the second buffering area that the second lock unit creates by described interpreter, wherein, described second buffering area is used for the data sharing between described terminal window and described interpreter; Described terminal window obtains described first test command by described second buffering area, and described first test command is sent to described communication agent unit.
Preferably, before described communication agent unit receives described first test command, described method also comprises: the test script that user inputs by described terminal window and/or control command are sent to the second buffering area that the second lock unit creates, wherein, described second buffering area is used for the data sharing between described terminal window and described interpreter; Described interpreter obtains the test script of user's input and/or described control command by described second buffering area, and makes an explanation to the test script of user's input, and/or, according to described control command, described test script is made an explanation.
According to another aspect of the present invention, additionally provide a kind of test command dispensing device, comprise: receiver module, for receiving the first test command and/or the second test command, wherein, described first test command is that interpreter makes an explanation to test script and obtains, and described second test command is that user is inputted by terminal window; Sending module, sends to equipment under test for described communication agent unit by described first test command and/or described second test command.
According to another aspect of the present invention, additionally provide a kind of test command transmitting system, comprise: interpreter, terminal window and communication agent unit, wherein: described interpreter, for test script is interpreted as the first test command, and described first test command is sent to described communication agent unit; Described terminal window, for receiving the second test command of user's input, and sends to described communication agent unit by described second test command; Described communication agent unit, for sending to described equipment under test by described first test command and/or described second test command.
Preferably, described communication agent unit, also for receiving the response message of described equipment under test in response to described first test command and/or the response message of the second test command, and the response message of described first test command is sent to described interpreter, the response message of described second test command is sent to described terminal window.
Preferably, when described system comprises multiple interpreter, described system also comprises: the first lock unit, for sending the first signal to described multiple interpreter, and create the first buffering area, wherein, described first signal explains described test script for controlling described multiple interpreter according to predesigned order, and described first buffering area is used for the data sharing between described multiple interpreter.
Preferably, described system also comprises: the second lock unit, for forwarding the secondary signal of described terminal window to described interpreter, and/or, forward the 3rd signal of described interpreter to described terminal window, and create the second buffering area, wherein, described secondary signal explains described test script for controlling described interpreter, and described 3rd signal is used to indicate the service data of described interpreter, and described second buffering area is used for the data sharing between described terminal window and described interpreter.
Preferably, described service data comprises: described first test command, and wherein, described terminal window is also for sending to described communication agent unit by described first test command.
By the present invention, adopt communication agent unit to receive the first test command and/or the second test command, wherein, the first test command is that interpreter makes an explanation to test script and obtains, and the second test command is that user is inputted by terminal window; First test command and/or the second test command are sent to the mode of equipment under test by communication agent unit, solving in correlation technique sends to equipment under test to cause the problem of set expandability difference test command by terminal window, improves the autgmentability of test macro.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic flow sheet of the test command sending method according to the embodiment of the present invention;
Fig. 2 is the structural representation of the test command dispensing device according to the embodiment of the present invention;
Fig. 3 is the structural representation of the test command transmitting system according to the embodiment of the present invention;
Fig. 4 is the preferred structure schematic diagram one of the test command transmitting system according to the embodiment of the present invention;
Fig. 5 is the preferred structure schematic diagram two of the test command transmitting system according to the embodiment of the present invention;
Fig. 6 is the structural representation of test macro according to the preferred embodiment of the invention;
Fig. 7 is the preferred structure schematic diagram of test macro according to the preferred embodiment of the invention;
Fig. 8 is the schematic flow sheet of method of testing according to the preferred embodiment of the invention.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
Can perform in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although show logical order in flow charts, in some cases, can be different from the step shown or described by order execution herein.
Present embodiments provide a kind of test command sending method, Fig. 1 is the schematic flow sheet of the test command sending method according to the embodiment of the present invention, and as shown in Figure 1, this flow process comprises the steps:
Step S102, communication agent unit receives the first test command and/or the second test command, and wherein, the first test command is that interpreter makes an explanation to test script and obtains, and the second test command is that user is inputted by terminal window;
Step S104, the first test command and/or the second test command are sent to equipment under test by communication agent unit.
Pass through above-mentioned steps, communication agent unit is adopted the first test command and/or the second test command to be sent to the mode of equipment under test, make system can the mode of simultaneously compatible manual test and test automatically, and no longer need directly test command to be sent to equipment under test by terminal window; Adopt the scheme of the present embodiment, when test macro needs expansion, only need to be configured the terminal newly added in communication agent unit, therefore solving in correlation technique sends to equipment under test to cause the problem of set expandability difference test command by terminal window, improves the autgmentability of test macro.
It should be noted that, " first ", " second " that describe in above-mentioned first test command, the second test command etc. is only for identifying corresponding noun; Further, such as, in some cases, the first test command, the second test command are also likely same test commands, do not limit in the present embodiment.
Preferably, after step s 104, when terminal window or interpreter need the execution result receiving test command, communication agent unit receives equipment under test in response to after the response message of the first test command and/or the response message of the second test command, the response message of the first test command is sent to interpreter, and the response message of the second test command is sent to terminal window.
Preferably, terminal window and interpreter are all connected with communication agent unit by corresponding access point, the mapping relations of access point and equipment under test are preserved in communication agent unit, by these mapping relations, the information that predetermined access point receives is transmitted to corresponding equipment under test by communication agent unit, or response message equipment under test being issued predetermined access point is transmitted to corresponding terminal window or interpreter.
Preferably, in a test system when multiple interpreter collaborative work, the first buffering area that multiple interpreter is created by the first lock unit, obtains test script, and wherein, the first buffering area is used for the data sharing between multiple interpreter; The first signal that multiple interpreter sends according to the first lock unit, makes an explanation to test script, and wherein, the first signal explains test script for controlling multiple interpreter according to predesigned order.The first buffering area created by the first lock unit and the first signal, achieve the collaborative work between multiple interpreter, solve and adopt multiple interpreter distribution configuration command simultaneously, the configuration sequence being difficult to Mediation Device of existence causes allocation plan complicated, the problem of poor feasibility.
In the present embodiment, interpreter sends to the first test command of equipment under test also can forward via terminal window, preferably, before communication agent unit receives the first test command, first test command is sent to the second buffering area that the second lock unit creates by interpreter, wherein, the second buffering area is used for the data sharing between terminal window and interpreter; Terminal window obtains the first test command by the second buffering area, and the first test command is sent to communication agent unit.By which, user can monitor the test process of interpreter to equipment under test by terminal window.
In the above-described embodiments, interpreter can directly be connected with communication agent unit, thus test command is directly sent to communication agent cell processing; On the other hand, in order to realize manual testing and automatically test the mode combined, user can be intervened the process of test automatically, associated treatment can be carried out between interpreter and terminal window.Preferably, before communication agent unit receives the first test command, the test script that user inputs by terminal window and/or control command are sent to the second buffering area that the second lock unit creates, and wherein, the second buffering area is used for the data sharing between terminal window and interpreter; Interpreter obtains test script and/or the control command of user's input by the second buffering area, and makes an explanation to the test script of user's input, and/or, according to control command, test script is made an explanation.
The present embodiment additionally provides a kind of test command dispensing device, and this device is used for realizing above-mentioned test command sending method, and the functional realiey in this device embodiment carried out detailed description in said method embodiment, will repeat no more at this.
Fig. 2 is the structural representation of the test command dispensing device according to the embodiment of the present invention, as shown in Figure 2, this device comprises: receiver module 22 and sending module 24, wherein, receiver module 22, for receiving the first test command and/or the second test command, wherein, first test command is that interpreter makes an explanation to test script and obtains, and the second test command is that user is inputted by terminal window; Sending module 24 is coupled to receiver module 22, for communication agent unit, the first test command and/or the second test command is sent to equipment under test.
Module involved in embodiments of the invention, unit can be realized by the mode of software, also can be realized by the mode of hardware.Described module in the present embodiment, unit also can be arranged within a processor, such as, can be described as: a kind of processor comprises receiver module 22 and sending module 24.Wherein, the title of these modules does not form the restriction to this module itself under certain conditions, such as, sets up module and can also be described to " for receiving the module of the first test command and/or the second test command ".
The present embodiment additionally provides a kind of test command transmitting system, and this system is used for realizing above-mentioned test command sending method, and the functional realiey in this system embodiment can be described in conjunction with said method embodiment, will repeat no more at this.
Fig. 3 is the structural representation of the test command transmitting system according to the embodiment of the present invention, as shown in Figure 3, this system comprises: interpreter 32, terminal window 34 and communication agent unit 36, wherein: interpreter 32 is coupled to communication agent unit 36, for test script is interpreted as the first test command, and the first test command is sent to communication agent unit 36; Terminal window 34 is coupled to communication agent unit 36, for receiving the second test command of user's input, and the second test command is sent to communication agent unit 36; Communication agent unit 36, for sending to equipment under test 38 by the first test command and/or the second test command.
Preferably, communication agent unit 36, also for receiving the response message of equipment under test 38 in response to the first test command and/or the response message of the second test command, and the response message of the first test command is sent to interpreter 32, the response message of the second test command is sent to terminal window 34.
Fig. 4 is the preferred structure schematic diagram one of the test command transmitting system according to the embodiment of the present invention, as shown in Figure 4, preferably, when system comprises multiple interpreter 32, this system also comprises: the first lock unit 42 is coupled respectively to multiple interpreter 32, for sending the first signal to multiple interpreter 32, and create the first buffering area, wherein, first signal explains test script for controlling multiple interpreter 32 according to predesigned order, and the first buffering area is used for the data sharing between multiple interpreter 32.
Fig. 5 is the preferred structure schematic diagram two of the test command transmitting system according to the embodiment of the present invention, as shown in Figure 5, preferably, this system also comprises: the second lock unit 52 is coupled respectively to one or more interpreter 32 and one or more terminal window 34, for forwarding the secondary signal of terminal window 34 to interpreter 32, and/or, the 3rd signal of interpreter 32 is forwarded to terminal window 34, and create the second buffering area, wherein, secondary signal explains test script for controlling interpreter 32, 3rd signal is used to indicate the service data of interpreter 32, second buffering area is used for the data sharing between terminal window 34 and interpreter 32.
It should be noted that the first above-mentioned lock unit 42 and the second lock unit 52 can set up separately, also can close and be set to same lock unit.
Preferably, service data comprises: the first test command, and wherein, terminal window 34 is also for sending to communication agent unit 36 by the first test command.
Be described below in conjunction with preferred embodiment and illustrate.
This preferred embodiment relates to field tests, especially based on the testing of equipment that terminal mode carries out, in the preferred embodiment, provides a kind of method of testing based on terminal mode and system, can meet terminal test and automatic test demand simultaneously; Simultaneously by the two demand collaborative, for user provides integrated, a collaborative test macro.
Fig. 6 is the structural representation of test macro according to the preferred embodiment of the invention, and as shown in Figure 6, the test macro provided in this preferred embodiment comprises as lower module:
Terminal communication proxy module (being equivalent to above-mentioned communication agent unit), function comprises: for terminal window or interpreter are provided to the communication function of the network equipment, comprise and be linked into the network equipment, namely access point manages (establishment, logging device, release), transfers a command to the network equipment; Access point manages to the mapping table of equipment under test; The security control of access authority, Operation Log; Access point application programming interface (Application Programming Interface, referred to as api interface), terminal window api interface, script interpreter expansion interface; Communication module, such as telnet communication, serial communication etc.
Termination management module, function comprises: the establishment of terminal window, destruction, terminal window queue; Requesting terminal communication agent creates access point, and office terminal window is to the mapping table of access point; For multiple terminals window provides shared buffer, complete the synergistic function of terminal window; Receive the order of isochronous controller, complete the synchronous of terminal window and interpreter;
Interpreter administration module, is responsible for the establishment of script interpreter (i.e. interpreter), destruction, obtains script bank script and be issued to interpreter to perform; Requesting terminal communication agent creates access point, and manages the mapping table of interpreter to access point; Receive the order of isochronous controller, complete the synchronous of interpreter and terminal window;
Isochronous controller module (being equivalent to the function of above-mentioned first lock unit and the second lock unit), take charge of the explanation device management by synchronization, complete the synchronous of multiple interpreters parallel running process, synchronous to terminal window of transmitting order to lower levels, order is to the synchronizing function of the network equipment; For being created synchronizing signal, shared buffer by synchronization object (such as terminal window or interpreter), scheduling queue (such as transmitting order to lower levels is to the sequence of the network equipment); Being sunk into sleep and waking control up by synchronous explanation device.
Fig. 7 is the preferred structure schematic diagram of test macro according to the preferred embodiment of the invention, as shown in Figure 7, preferably, the number of script interpreter, terminal window can be multiple in a test system, and act on behalf of with terminal communication respectively and be connected, multiple script interpreter is connected by isochronous controller with multiple terminal window.
Based on said system, Fig. 8 is the schematic flow sheet of method of testing according to the preferred embodiment of the invention, and as shown in Figure 8, the method for testing provided in this preferred embodiment comprises the steps:
Step one, startup terminal communication agency, initialization access point administration module, access point is to the mapping of the network equipment, and initialization accesses control of authority;
Step 2, termination management module create terminal window, and destination network device parameter is sent to terminal communication agency, and requesting terminal communication agent creates access point, and carries out the mapping of terminal window to access point; Create window sharing buffering area, multiple terminals;
Step 3, at terminal window input of control commands, and be sent to target device by the access point that terminal communication is acted on behalf of; The equipment that access point receives returns to be delivered on terminal window again, completes the interactive operation of terminal window and the network equipment;
Step 4, interpreter administration module create interpreter, obtain script bank script and be issued to interpreter to perform; Requesting terminal communication agent creates access point, and manages the mapping of interpreter to access point; Create the mapping of interpreter to terminal window;
Step 5, explanation script run, and send control command by access point to target device; The returning and print to Log Window of receiving equipment; If have mapped interpreter to terminal window, script runs and sends control command to mapping terminal window, then sends control command to equipment by terminal window;
If step 6 creates multiple interpreters concurrent running script, isochronous controller creates synchronous control signal, controls multiple interpreters and performs according to the order of sequence; Create shared buffer, make by can interaction data between synchronous explanation device;
If step 7 interpreter and terminal window carry out Synchronization Control, isochronous controller creates synchronous control signal, controls the input of interpreter operation and terminal window; Create shared buffer, at automatized script run duration, terminal window can obtain interpreter service data, control data also can occur to interpreter, controls script and runs;
Step 8, script have run, and interpreter administration module destroys interpreter, release synchronous control signal and shared buffer, and requesting terminal communication agent discharges corresponding access point, release mapping table; Terminal window is closed, terminal window administration module release synchronically controlling information and shared buffer, requesting terminal communication agent release access point, release mapping table.
Visible, above-mentioned steps comprises following several part:
Terminal communication is acted on behalf of: start terminal communication agency, initialization access point administration module, and access point is to the mapping of the network equipment, and initialization accesses control of authority;
Terminal communication window: termination management module creates terminal window, destination network device parameter is sent to terminal communication agency, and requesting terminal communication agent creates access point, and carries out the mapping of terminal window to access point; Create window sharing buffering area, multiple terminals;
Terminal interaction operates: at terminal window input of control commands, and be sent to target device by the access point that terminal communication is acted on behalf of; The equipment that access point receives returns to be delivered on terminal window again, completes the interactive operation of terminal window and the network equipment;
Create interpreter: interpreter administration module creates interpreter, obtain script bank script and be issued to interpreter execution; Requesting terminal communication agent creates access point, and manages the mapping of interpreter to access point; Create the mapping of interpreter to terminal window;
Terminal script runs: explain that script runs, and sends control command by access point to target device; The returning and print to Log Window of receiving equipment; If have mapped interpreter to terminal window, script runs and sends control command to mapping terminal window, then sends control command to equipment by terminal window;
Multiple interpreters Synchronization Control: if create multiple interpreters concurrent running script, isochronous controller creates synchronous control signal, controls multiple interpreters and performs according to the order of sequence; Create shared buffer, make by can interaction data between synchronous explanation device;
Interpreter and terminal window Synchronization Control: isochronous controller creates synchronous control signal, control the input of interpreter operation and terminal window; Create shared buffer, at automatized script run duration, terminal window can obtain interpreter service data, control data also can occur to interpreter, controls script and runs;
Related resource is destroyed: script has run, and interpreter administration module destroys interpreter, release synchronous control signal and shared buffer, and requesting terminal communication agent discharges corresponding access point, release mapping table; Terminal window is closed, terminal window administration module release synchronically controlling information and shared buffer, requesting terminal communication agent release access point, release mapping table.
Known by foregoing description, the said method, the Apparatus and system that adopt the embodiment of the present invention to provide, compared with correlation technique, free terminal window from the Control on Communication with equipment, provides terminal communication agency, enhance autgmentability; By Synchronization Control, solve the collision problem of manual configuration and script configuration; Concurrent interpreter performs, and has pointed out the efficiency of many device synchronization distribution configuration command; By Synchronization Control, by synchronizing signal between manual test and automatic test, shared buffer, for user provides that integrate, an efficient test platform device.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
More than above are only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. a test command sending method, is characterized in that comprising:
Communication agent unit receives the first test command and/or the second test command, and wherein, described first test command is that interpreter makes an explanation to test script and obtains, and described second test command is that user is inputted by terminal window;
Described first test command and/or described second test command are sent to equipment under test by described communication agent unit.
2. method according to claim 1, is characterized in that, after described first test command and/or the second test command are sent to described equipment under test by described communication agent unit, described method also comprises:
Described communication agent unit receives the response message of described equipment under test in response to described first test command and/or the response message of the second test command;
The response message of described first test command is sent to described interpreter by described communication agent unit, and the response message of described second test command is sent to described terminal window.
3. method according to claim 1 and 2, is characterized in that, when described system comprises multiple interpreter, described multiple interpreter makes an explanation to described test script and comprises:
The first buffering area that described multiple interpreter is created by the first lock unit, obtains described test script, and wherein, described first buffering area is used for the data sharing between described multiple interpreter;
The first signal that described multiple interpreter sends according to described first lock unit, make an explanation to described test script, wherein, described first signal explains described test script for controlling described multiple interpreter according to predesigned order.
4. method according to claim 3, is characterized in that, before described communication agent unit receives described first test command, described method also comprises:
Described first test command is sent to the second buffering area that the second lock unit creates by described interpreter, and wherein, described second buffering area is used for the data sharing between described terminal window and described interpreter;
Described terminal window obtains described first test command by described second buffering area, and described first test command is sent to described communication agent unit.
5. method according to claim 3, is characterized in that, before described communication agent unit receives described first test command, described method also comprises:
The test script that user inputs by described terminal window and/or control command are sent to the second buffering area that the second lock unit creates, and wherein, described second buffering area is used for the data sharing between described terminal window and described interpreter;
Described interpreter obtains the test script of user's input and/or described control command by described second buffering area, and makes an explanation to the test script of user's input, and/or, according to described control command, described test script is made an explanation.
6. a test command dispensing device, is characterized in that comprising:
Receiver module, for receiving the first test command and/or the second test command, wherein, described first test command is that interpreter makes an explanation to test script and obtains, and described second test command is that user is inputted by terminal window;
Sending module, sends to equipment under test for described communication agent unit by described first test command and/or described second test command.
7. a test command transmitting system, is characterized in that comprising: interpreter, terminal window and communication agent unit, wherein:
Described interpreter, for test script is interpreted as the first test command, and sends to described communication agent unit by described first test command;
Described terminal window, for receiving the second test command of user's input, and sends to described communication agent unit by described second test command;
Described communication agent unit, for sending to described equipment under test by described first test command and/or described second test command.
8. system according to claim 7, it is characterized in that, described communication agent unit, also for receiving the response message of described equipment under test in response to described first test command and/or the response message of the second test command, and the response message of described first test command is sent to described interpreter, the response message of described second test command is sent to described terminal window.
9. the system according to claim 7 or 8, is characterized in that, when described system comprises multiple interpreter, described system also comprises:
First lock unit, for sending the first signal to described multiple interpreter, and create the first buffering area, wherein, described first signal explains described test script for controlling described multiple interpreter according to predesigned order, and described first buffering area is used for the data sharing between described multiple interpreter.
10. system according to claim 9, is characterized in that, described system also comprises:
Second lock unit, for forwarding the secondary signal of described terminal window to described interpreter, and/or, the 3rd signal of described interpreter is forwarded to described terminal window, and create the second buffering area, wherein, described secondary signal explains described test script for controlling described interpreter, described 3rd signal is used to indicate the service data of described interpreter, and described second buffering area is used for the data sharing between described terminal window and described interpreter.
11. systems according to claim 10, is characterized in that, described service data comprises: described first test command, and wherein, described terminal window is also for sending to described communication agent unit by described first test command.
CN201310556707.6A 2013-11-11 2013-11-11 Test command sending method, apparatus and system Active CN104639384B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310556707.6A CN104639384B (en) 2013-11-11 2013-11-11 Test command sending method, apparatus and system
PCT/CN2014/080141 WO2015067052A1 (en) 2013-11-11 2014-06-17 Method, device, and system for transmitting test command

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310556707.6A CN104639384B (en) 2013-11-11 2013-11-11 Test command sending method, apparatus and system

Publications (2)

Publication Number Publication Date
CN104639384A true CN104639384A (en) 2015-05-20
CN104639384B CN104639384B (en) 2019-03-15

Family

ID=53040857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310556707.6A Active CN104639384B (en) 2013-11-11 2013-11-11 Test command sending method, apparatus and system

Country Status (2)

Country Link
CN (1) CN104639384B (en)
WO (1) WO2015067052A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106707771A (en) * 2015-11-12 2017-05-24 丰唐物联技术(深圳)有限公司 Test method and system for intelligent appliance
CN114202004A (en) * 2020-08-26 2022-03-18 亿美Ai私人有限公司 Agent interpreter for upgrading an automated reservation system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000574A (en) * 2007-01-24 2007-07-18 中兴通讯股份有限公司 Information input method and device for computer terminal window
CN100370432C (en) * 2004-08-18 2008-02-20 华为技术有限公司 Automated testing apparatus and method for embedded software
CN101252471A (en) * 2008-03-20 2008-08-27 中兴通讯股份有限公司 Distributed automatization test system and method
CN101266570A (en) * 2007-03-15 2008-09-17 中兴通讯股份有限公司 Software system test method and apparatus
CN102468993A (en) * 2010-11-17 2012-05-23 大唐移动通信设备有限公司 Terminal test equipment and method
EP2274874B1 (en) * 2008-05-05 2013-07-03 Siemens Aktiengesellschaft Examination of a communication connection between field devices

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100370432C (en) * 2004-08-18 2008-02-20 华为技术有限公司 Automated testing apparatus and method for embedded software
CN101000574A (en) * 2007-01-24 2007-07-18 中兴通讯股份有限公司 Information input method and device for computer terminal window
CN101266570A (en) * 2007-03-15 2008-09-17 中兴通讯股份有限公司 Software system test method and apparatus
CN101252471A (en) * 2008-03-20 2008-08-27 中兴通讯股份有限公司 Distributed automatization test system and method
EP2274874B1 (en) * 2008-05-05 2013-07-03 Siemens Aktiengesellschaft Examination of a communication connection between field devices
CN102468993A (en) * 2010-11-17 2012-05-23 大唐移动通信设备有限公司 Terminal test equipment and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106707771A (en) * 2015-11-12 2017-05-24 丰唐物联技术(深圳)有限公司 Test method and system for intelligent appliance
CN114202004A (en) * 2020-08-26 2022-03-18 亿美Ai私人有限公司 Agent interpreter for upgrading an automated reservation system

Also Published As

Publication number Publication date
WO2015067052A1 (en) 2015-05-14
CN104639384B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN109743370B (en) SD-WAN-based hybrid cloud connection method and system
US11075821B2 (en) Method and apparatus for managing field device based on cloud server
EP3229420A1 (en) Method for establishing persistent connection between multiple smart devices and server, and smart device
CN104869043B (en) A kind of method and terminal for establishing VPN connection
US20200007472A1 (en) Service insertion in basic virtual network environment
CN104809369B (en) Packet sets method, client, server and the system of equipment access rights
CN113625589B (en) Equipment control method and device, electronic equipment and storage medium
EP3122008A1 (en) Cloud desktop pushing method and system, pushing end and receiving end
CN103631652A (en) Method and system for achieving virtual machine migration
CN114745724B (en) Access processing method and device, electronic equipment and computer readable medium
CN108810129A (en) Internet of Things network control system and method, terminal device and local network services equipment
CN104580029A (en) Address distribution method and device
US10326659B2 (en) Device and method for automatic switching of communication protocol of network devices based on user action
CN103401954B (en) The implementation method of virtual DHCP
CN106559236B (en) Equipment resource management method and device of service board, main control board and frame type equipment
CN104639384A (en) Method, device and system for transmitting test commands
CN102594636A (en) System and control method of residential intelligent gateway based on multiple wireless protocols
CN101309154A (en) Datagram sending method, sending apparatus and transmission system
CN106304241A (en) A kind of data transmission method, transponder and gateway
KR102011311B1 (en) Power system and method for transferring data using the same
CN112152889B (en) Method of controlling electronic device, computing device, and computer-readable storage medium
US9380085B2 (en) Server and method for providing collaboration service, and sociality management server
CN104144247A (en) Method for configuring and managing wireless internet access module through mobile phone
CN115022931B (en) Rate control method and device, computer readable storage medium and electronic equipment
CN116489064B (en) Method and device for constructing multi-mode network test environment by combining internal field and external field

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant