CN1677362A - Test executer - Google Patents

Test executer Download PDF

Info

Publication number
CN1677362A
CN1677362A CN 200410031615 CN200410031615A CN1677362A CN 1677362 A CN1677362 A CN 1677362A CN 200410031615 CN200410031615 CN 200410031615 CN 200410031615 A CN200410031615 A CN 200410031615A CN 1677362 A CN1677362 A CN 1677362A
Authority
CN
China
Prior art keywords
test
module
interpreter
executing device
communication frame
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
CN 200410031615
Other languages
Chinese (zh)
Other versions
CN100337215C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2004100316157A priority Critical patent/CN100337215C/en
Publication of CN1677362A publication Critical patent/CN1677362A/en
Application granted granted Critical
Publication of CN100337215C publication Critical patent/CN100337215C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention is a test actuator, comprising test monitoring and management module, used for interaction and communication in a testing course; several interpreter modules, interpreting testing codes in a case of executing automatic test; where the test monitoring and management module is separated with the interpreter modules and interchanges with them through interface, and these interpreter modules interchanges externally with the testing actuator through the test monitoring and management module. It separates the test monitoring and managing function from the interpreter, abstracts a frame structure of the test actuator, interchanges with the test monitoring and management module through the interface module and further realizes the external interchange with the actuator through the communication module. In addition, the separation of the test monitoring and managing function and the interpreter module enhances the repeatability of the test monitoring and management module.

Description

Test executing device
Technical field
The present invention relates to software test, refer to be used to carry out the test executing device of automatic test case especially.
Background technology
The execution of automatic test case is key link in the test automatically, and its realization mainly contains dual mode at present: the one, and test case is write with interpreted languages, is explained by actuator and carries out; The 2nd, test case is with compiling type language compilation, but its actuator is the working procedure after all test cases compile, and its implementation is the operational process of program.The former The present invention be directed to the latter's executive mode with simple, flexible and controlled and obtain a large amount of application.
The fundamental purpose of actuator is to explain to carry out test code (specifically being to be responsible for by corresponding interpreter), but, because the interaction of test needs, it also must provide general test monitoring functions such as test communication, supervision, control, daily record, alarm, process management, debugging and tracking thereof.The programming language of realizing test code is diversified, as tcl, python, perl, javascript etc., therefore the needed interpreter of actuator is different, and if once in the test test code comprise multilingual, actuator just needs a plurality of interpreters simultaneously.Interpreter generally provides with its corresponding programming language, and actuator is by the developer's design and the realization of testing tool.
Generally speaking, the test monitoring function of different actuators is consistent substantially, and its development amount is determined by its function that can provide.Can satisfy fully automatically that the workload of the test supervision module of test needs is very large, reducing this a part of development amount has great influence to the exploitation of actuator.In addition, not only need to adopt different test program language in the actual test job, and also may need to carry out the test code that different language is write simultaneously in bigger system testing, thereby to have actuator also be very important to the support of different interpreters.
Existing actuator all designs at different interpreters, and most of actuator all is that an interpreter adds part supervision code and mixes.To different interpreters, need the different actuator of design.
Nearly all actuator scheme designs round interpreter at present, that is to say that an interpreter has determined the design of an actuator, even both are equal in a lot of designs.Its make is similar to:
Actuator=interpreter+test supervision module (realize fully or partly realize).
In this design, the code of interpreter and test supervision module mixes mutually, and both generally are difficult to separate.
Such scheme has two fatal shortcomings:
1. the reusability of actuator is poor, inefficiency when needs are developed a plurality of actuator
In the design of actuator, realize a function fully, the test supervision module that can satisfy the actual demand of test be very difficult, workload is huge, it in addition will be considerably beyond the workload of an interpreter.And the demand that different test executing devices is supervised module to test is consistent basically, therefore can be designed as reusable module fully.And this scheme is because with interpreter with test supervision module is separated and make test supervise reusing of module becomes very difficult.Development efficiency can seem very low at different test program language development actuator the time like this, particularly when these actuators be when bearing by different developers.
2. the poor expandability of actuator
Separate owing to lack effectively between the interpreter module of actuator and the test supervision module, more do not have the interface of standard, thereby it is poor to the supportable of third-party interpreter, more can't support a plurality of interpreters.When new test program language was introduced into, the interpreter that is necessary for this language correspondence was developed new actuator like this, and its most of work all belongs to the repeatability exploitation.Developer's time and efforts has not only been wasted in the exploitation of this repeatability exploitation, and because actuator needs considerable time just can enter stable application, the application time of newspeak also has been elongated like this, and it has caused the low and loss of time of testing efficiency and finally can damage the market achievement of enterprise.
Summary of the invention
The problem that the present invention solves provides a kind of test executing device with reusability and extendability.
For addressing the above problem, test executing device of the present invention comprises: test supervision module is used for the interaction and the communication of test process; Some interpreter modules are explained the test code of carrying out in the automatic test case; Wherein, test supervision module is separated setting and is undertaken alternately by interface module with interpreter module, and interpreter module is undertaken by test supervision module and test executing device outside alternately.
Described test supervision module is provided with and the outside mutual communication module of test executing device.
Described interface module comprises with lower channel: create interface channel, be used to set up the passage of communication between test supervision module and target interpreter module; The I/O passage is used for test supervision module and imports automatic test case to interpreter module, and the test result information of interpreter module output automatic test case; Interpreter communication frame passage is used for the communication frame of interpreter module input is forwarded to the destination; Transmit the communication frame passage, be used to supervise module external information is transmitted to the target interpreter module; Close interface channel, test supervision module closes and tests the passage of supervision inter-module communication to the request of target interpreter module.
Described establishment interface channel is provided with user ID and gap marker, and wherein user ID is used for identifying the founder and the owner of passage, and gap marker is the sign of the passage of communication between test supervision module and target interpreter module.
Communication frame in the described interpreter communication frame passage comprises: be used for the feedback communication frame of loopback test procedural information and test result information and send the control communication frame of test process control information to system under test (SUT).
The destination address of described feedback communication frame is a user ID, and source address is a gap marker; And the destination address of control communication frame is the address of the test port that is connected with testing tool of system under test (SUT), and source address is a gap marker.
The destination address of the communication frame of described forwarding communication frame channel transfer is a gap marker, and the address of the test port that source address is a system under test (SUT) to be connected with testing tool.
Described test supervision module also comprises as lower module: the test pre-processing module, be used for the test script that analytic record test assignment and decomposition include some automatic test cases, and the automatic test case that decomposition obtains is sent to the target interpreter module by interface module; The test process administration module is used for the relevant information management of test process, and is mutual by interface module and interpreter module; The test post-processing module is used for logging test results and store test results information, and is mutual by interface module and interpreter module.
Compared with prior art, the present invention has the following advantages:
The test monitoring function and the interpreter of test executing device of the present invention are separated, and take out the framed structure of test executing device, and be mutual with test supervision module by interface module, and then realize with actuator outside mutual by communication module.Because the test monitoring function is the geostationary part of test executing device, and interpreter module is with the part of testing the test code language variation that need be adopted, their separation makes test supervise the reusability raising of module.Meanwhile, test supervision module and interpreter interface module make that new interpreter module is easy to supervise module cooperative work with the test of old test executing device, thereby make test executing device can support different interpreter modules.This has not only reused the framework of test executing device, and is that test executing device can be expanded the different interpreter of support.The raising of reusability and extendability has finally reduced the development amount of the test executing device that brings because of test code language different, and has shortened the automatic testing instrument applicable time greatly, and the development and application efficient of automatic testing instrument is had improvement.
Description of drawings
Fig. 1 is the entire block diagram of test executing device of the present invention.
Fig. 2 is the further refinement block diagram of Fig. 1.
Fig. 3 is the applicating flow chart of test executing device of the present invention.
Fig. 4 is the further refinement block diagram of Fig. 3.
Embodiment
Test executing device of the present invention is separated with interpreter module so that different test executing devices can be shared this test supervision module by testing the supervision module.Interpreter module only can not be contacted directly with the outside with test supervision module communication, interpreter module is supervised the module transfer to the communication (as the communication of interpreter module and system under test (SUT)) of test executing device outside by test, like this by the interface module in the test supervision module, test executing device can be supported multiple different interpreter module, also can support multilingual test code simultaneously with the design of reusing the test executing device common segment to greatest extent.
Please refer to shown in Figure 1ly, test executing device 1 of the present invention is used for testing system under test (SUT) 2, comprising:
Test supervision module 10 is used for the interaction and the communication of test process;
Some interpreter modules 11 are explained the test code of carrying out in the automatic test case;
Test supervision module 10 is separated with interpreter module 11 and interface module 13 is set is carried out alternately, and interpreter module 11 carries out with test executing device 1 outside by test supervision module 10 alternately.
Test script by control desk 3 input and be sent in the test monitoring module 10.Control desk 3 is operation interfaces of tester, is the client-side program of test executing device 1, both can be that graphical interfaces also can be the capable interface of Text Command.Test script is called the test code text again, and a test script can contain one or more automatic test cases.The automatic test case execution result is the test result information that the test script represented with format text is carried out, and wherein contains pairing automatic test case sign, because of the expression of its concrete form does not belong to content of the present invention, no longer describes in detail here.
In the present embodiment, interface module 13 is arranged in the test supervision module 10, can certainly independently be provided with.Please refer to shown in Figure 2ly, test supervision module 10 further comprises:
Communication module 101, outside mutual with test executing device 1, be the communication interface of 1 pair of control desk 3 of test executing device and tested system 2, make the coupling minimum of the former and the latter two;
Test pre-processing module 102 is used for the test script that analytic record test assignment and decomposition include some automatic test cases, and the automatic test case that decomposition obtains is sent to the target interpreter module by interface module 13;
Test process administration module 103 is used for the relevant information management (as alarm, abnormality processing, testing measurement and statistics, daily record etc.) of test process, and is mutual by interface module 13 and interpreter module 11;
Test post-processing module 104, be used for logging test results and store test results information, mutual by interface module 13 and interpreter module 11, directly to test process administration module 103 transmission information, these information comprise from the test control of control desk and trace command,, test result unusual from the test of interpreter module 11, test pilot process information etc.Because test pre-processing module 102, test process administration module 103 and test post-processing module 104 are that prior art repeats no more.
Interface module 13 comprises with lower channel:
1) creates interface channel (OpenChannel), be used to set up the passage of communication between test supervision module 10 and target interpreter module;
Input: user ID; Output: gap marker
The user ID here is used for the founder and the owner of passage, and its concrete implication is explained by test supervision module 10.For example, the tester initiates a test assignment from control desk 3, then can be used as user ID to the sign of test assignment.Gap marker is the distinguishing mark that is established passage, represents with an integer or character string usually, and its implication is come specific explanations by participating in its interpreter of establishment.
2) I/O passage (SendScript) is used for test supervision module 10 to interpreter module 11 input automatic test cases, and the test result information of interpreter module 11 output automatic test cases;
Input: test code text; Output: test code execution result (format text)
3) interpreter communication frame passage (ReceiveFrame) is used for the communication frame of interpreter module 11 inputs is forwarded to the destination;
Input: binary signaling frame; Output: transmit communication frame to the destination.Wherein communication frame comprises the address or the sign of sending and receiving side.
Communication frame in the interpreter communication frame passage comprises: be used for the feedback communication frame of loopback test procedural information and test result information and send the control communication frame of test process control informations to system under test (SUT) 2, for example in protocol test, interpreter module 11 can send message to system under test (SUT) 2 when the operation test code.
The destination address of feedback communication frame is a user ID, and source address is a gap marker; And the destination address of control communication frame is the address of the test port that is connected with testing tool of system under test (SUT) 2, and source address is a gap marker.
4) transmit communication frame passage (SendFrame), be used for test supervision module 10 external information (mainly making the response message of finger from system under test (SUT) 2) is transmitted to the target interpreter module.For example, will be relayed in the interpreter module 11 from the response message (as the response message in the protocol test) of system under test (SUT) 2;
Input: binary signaling frame; Output: transmit communication frame to interpreter module 11.
The destination address of transmitting the communication frame of communication frame channel transfer is a gap marker, and the address of the source address test port that to be system under test (SUT) 2 be connected with testing tool.
5) close interface channel (CloseChannel), test supervision module 10 closes and tests the passage of 10 communications of supervision module to the request of target interpreter module.
Input: gap marker; Output: do not have.
In the practical application, for example (this is more common situation in concrete test to the test script of a product with TCL and TTCN language compilation, for example write the protocol automatic test use-case with TTCN, write the function automatic detection use-case with TCL), and the test script file of each automatic test case is used with a kind of language compilation, and the extension name of corresponding test script file is associated with this language.When the test script of this product of operation, just need in test executing device 1, support TCL and TTCN interpreter module 11 at test period.Test pre-processing module 102 determines that according to the extension name of test script file the required interpreter module 11 of this test script operation is TCL interpreter or the interpreter of TTCN, and the test script in the test script file is delivered in the interpreter module 11 of TCL or TTCN by interface module 13.In the test script operational process, interpreter module 11 is mutual by interface module 13 and system under test (SUT) 2, perhaps sends test result information to test post-processing module 104.
Please refer to shown in Fig. 3,4, the application flow of test executing device of the present invention is as follows:
1) user is from control desk input test script and send to the communication module of test executing device, and for example the user initiates a test assignment from control desk, and imports one or more test script files into to test supervision module;
2) the transmitted test script is to the test pre-processing module, and the test pre-processing module decomposes test script and obtains some automatic test cases, disposes this according to the extension name of test script file and tests needed target interpreter module;
3) each automatic test case is sent to interpreter module by interface module;
Use and create interface channel (OpenChannel) to connection of target interpreter module request establishment;
Connection is created successfully, and back use I/O passage (SendScript) imports test script according to the test script file order or according to the automatic test case order into to the target interpreter module;
4) each automatic test case is explained execution by the target interpreter module;
5) interpreter module carries out information interaction 51 by interface module in carrying out the process of test script) interpreter module via the interpreter communication frame passage (ReceiveFrame) of interface module, test process administration module, communication module to control desk loopback test procedural information;
52) interpreter module via the interpreter communication frame passage (ReceiveFrame) of interface module to system under test (SUT) send control information (for example in the protocol test), and system under test (SUT) will be relayed in the interpreter module from the information (as the response message in the protocol test) of system under test (SUT) by transmitting communication frame passage (SendFrame);
6) interpreter module finishes implementation of test cases, and test result information is undertaken alternately by interface module;
By the interpreter communication frame passage (ReceiveFrame) of interface module test result information is delivered to the test post-processing module and be sent to control desk via communication module;
7) interface channel (CloseChannel) request of the closing interpreter module of supervision module interface module is closed connection;
8) test assignment finishes.
The test monitoring function and the interpreter of test executing device of the present invention are separated, and be mutual with test supervision module by interface module, and then realize with actuator outside mutual by communication module.Because the test monitoring function is the geostationary part of test executing device, and interpreter module is with the part of testing the test code language variation that need be adopted, their separation makes test supervise the reusability raising of module.Meanwhile, test supervision module and interpreter interface module make that new interpreter module is easy to supervise module cooperative work with the test of old test executing device, thereby make test executing device can support different interpreter modules.This has not only reused the framework of test executing device, and is that test executing device can be expanded the different interpreter of support.The raising of reusability and extendability has finally reduced the development amount of the test executing device that brings because of test code language different, and has shortened the testing tool applicable time greatly, the improvement that the development and application efficient of automatic testing instrument is had.

Claims (8)

1. a test executing device is characterized in that, comprising:
Test supervision module is used for the interaction and the communication of test process;
Some interpreter modules are explained the test code of carrying out in the automatic test case;
Wherein, test supervision module is separated setting and is undertaken alternately by interface module with interpreter module, and interpreter module is undertaken by test supervision module and test executing device outside alternately.
2. test executing device as claimed in claim 1 is characterized in that, test supervision module is provided with and the outside mutual communication module of test executing device.
3. test executing device as claimed in claim 1 is characterized in that, interface module comprises with lower channel: create interface channel, be used to set up the passage of communication between test supervision module and target interpreter module;
The I/O passage is used for test supervision module and imports automatic test case to interpreter module, and the test result information of interpreter module output automatic test case;
Interpreter communication frame passage is used for the communication frame of interpreter module input is forwarded to the destination;
Transmit the communication frame passage, be used to supervise module external information is transmitted to the target interpreter module;
Close interface channel, test supervision module closes and tests the passage of supervision inter-module communication to the request of target interpreter module.
4. test executing device as claimed in claim 3, it is characterized in that, create interface channel and be provided with user ID and gap marker, wherein user ID is used for identifying the founder and the owner of passage, and gap marker is the sign of the passage of communication between test supervision module and target interpreter module.
5. test executing device as claimed in claim 4, it is characterized in that the communication frame in the interpreter communication frame passage comprises: be used for the feedback communication frame of loopback test procedural information and test result information and send the control communication frame of test process control information to system under test (SUT).
6. test executing device as claimed in claim 5 is characterized in that, the destination address of feedback communication frame is a user ID, and source address is a gap marker; And the destination address of control communication frame is the address of the test port that is connected with testing tool of system under test (SUT), and source address is a gap marker.
7. test executing device as claimed in claim 4 is characterized in that, the destination address of transmitting the communication frame of communication frame channel transfer is a gap marker, and the address of the source address test port that to be system under test (SUT) be connected with testing tool.
8. test executing device as claimed in claim 3 is characterized in that, test supervision module also comprises as lower module:
The test pre-processing module is used for the test script that analytic record test assignment and decomposition include some automatic test cases, and the automatic test case that decomposition obtains is sent to the target interpreter module by interface module;
The test process administration module is used for the relevant information management of test process, and is mutual by interface module and interpreter module;
The test post-processing module is used for logging test results and store test results information, and is mutual by interface module and interpreter module.
CNB2004100316157A 2004-03-29 2004-03-29 Test executer Expired - Fee Related CN100337215C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100316157A CN100337215C (en) 2004-03-29 2004-03-29 Test executer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100316157A CN100337215C (en) 2004-03-29 2004-03-29 Test executer

Publications (2)

Publication Number Publication Date
CN1677362A true CN1677362A (en) 2005-10-05
CN100337215C CN100337215C (en) 2007-09-12

Family

ID=35049893

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100316157A Expired - Fee Related CN100337215C (en) 2004-03-29 2004-03-29 Test executer

Country Status (1)

Country Link
CN (1) CN100337215C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100370434C (en) * 2005-11-01 2008-02-20 华为技术有限公司 Method and system for realizing software automatic test
CN101242620B (en) * 2008-03-07 2012-03-28 深圳国人通信有限公司 A realization method and system for monitoring repeater
CN104181873A (en) * 2013-05-28 2014-12-03 深圳市菲恩测控科技有限公司 Method, device and system for achieving digital product detection
CN106156423A (en) * 2016-07-01 2016-11-23 合肥海本蓝科技有限公司 A kind of method and apparatus realizing that test platform design to be tested with user communicates
CN107463500A (en) * 2017-08-09 2017-12-12 网易(杭州)网络有限公司 Adjustment method, medium, system and the computing device of test script

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7093238B2 (en) * 2001-07-27 2006-08-15 Accordsqa, Inc. Automated software testing and validation system
CN1231032C (en) * 2002-07-22 2005-12-07 华为技术有限公司 Network protocol measuring method and measuring system thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100370434C (en) * 2005-11-01 2008-02-20 华为技术有限公司 Method and system for realizing software automatic test
CN101242620B (en) * 2008-03-07 2012-03-28 深圳国人通信有限公司 A realization method and system for monitoring repeater
CN104181873A (en) * 2013-05-28 2014-12-03 深圳市菲恩测控科技有限公司 Method, device and system for achieving digital product detection
CN106156423A (en) * 2016-07-01 2016-11-23 合肥海本蓝科技有限公司 A kind of method and apparatus realizing that test platform design to be tested with user communicates
CN106156423B (en) * 2016-07-01 2019-07-12 合肥海本蓝科技有限公司 A kind of method and apparatus realizing test platform and being communicated with user's trial-ray method to be measured
CN107463500A (en) * 2017-08-09 2017-12-12 网易(杭州)网络有限公司 Adjustment method, medium, system and the computing device of test script

Also Published As

Publication number Publication date
CN100337215C (en) 2007-09-12

Similar Documents

Publication Publication Date Title
CN208314755U (en) A kind of artificial intelligence development platform and system
CN102917095B (en) A kind of method of the terminal test based on android system and device
CN1832433A (en) Distribution structure test system and testing method of the test system
WO2014015573A1 (en) Wireless automation test apparatus and method for mobile device
CN204759403U (en) System based on data pass realization equipment internal module thoroughly and upgrade
CN1901569A (en) Remote regulating method and system
CN104461854A (en) General simulation testing platform for software of ship equipment and construction method of general simulation testing platform
CN108427640A (en) A method of debugging driver under User space
CN108804313A (en) A kind of method, apparatus and server of remote debugging program
CN104572428A (en) Complicated control testing method based on windows operating system
CN100337215C (en) Test executer
CN108388426A (en) A kind of artificial intelligence development platform and system
CN101668036A (en) Simulating system of distributed device and method for processing service by simulating distributed device
CN107172013B (en) Data transmission method and system
CN100337216C (en) Software test method
CN103746873A (en) System and method for testing communication module
WO2014000299A1 (en) Serial port redirection processing method, device, and system
CN112202798A (en) Data protocol conversion method, system, electronic device and storage medium
CN1764131A (en) Protocol testing system and method
CN109343894A (en) A kind of O&M method and apparatus of cloud platform
Long et al. A case study in testing distributed systems
CN101582928B (en) Adaptive device and data transmission method for communication of veneer and peripheral device
CN102243489A (en) Cross-platform data processing system and method
CN113641577A (en) Debugging method and device for terminal product application program
CN114064153A (en) Embedded dynamic module loading method and device based on multi-core processor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Assignee: Guangzhou Jiuheng Bar Code Co., Ltd.

Assignor: Huawei Technologies Co., Ltd.

Contract record no.: 2010440000483

Denomination of invention: Method for realizing executor test

Granted publication date: 20070912

License type: Exclusive License

Open date: 20051005

Record date: 20100511

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070912

Termination date: 20160329