CN1858719A - Method for realizing automatic test and its system - Google Patents
Method for realizing automatic test and its system Download PDFInfo
- Publication number
- CN1858719A CN1858719A CN 200510132863 CN200510132863A CN1858719A CN 1858719 A CN1858719 A CN 1858719A CN 200510132863 CN200510132863 CN 200510132863 CN 200510132863 A CN200510132863 A CN 200510132863A CN 1858719 A CN1858719 A CN 1858719A
- Authority
- CN
- China
- Prior art keywords
- module
- command
- messages
- message
- controlled
- 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
Links
Images
Abstract
This invention provides a realization method for automatization test, in which, a primary control computer receives a test order sent by a user and converts the order to order information to transmit it to a controlled computer and the order information includes an information kind corresponding to the function kind to be called by the test controlled software entity, after the controlled computer receives said order information, the software entity carries out said function call and transfers the result to the control computer in the way of feeding back information.
Description
Technical field
The present invention relates to technical field of measurement and test, relate to a kind of automatic test implementation method and system thereof or rather.
Background technology
In field of software engineering, test is a very important link.And traditional manual test efficient is low, and test coverage is also lower.
In order to improve testing efficiency and test coverage, realize that test automation has become the common recognition of industry numerous enterprises.More and more enterprises can realize than higher percent of automatization in the execution of test case.Along with the widespread use of automatic test, applied scene is also got over complicated, and the requirement of distributed control has particularly been arranged, and need control the software entity on outer other computing machine of this machine.
Existing automated testing method can't be realized the function of distributed Control Software entity.At the application scenarios that needs carry out distributed control, the tester removes to operate the software entity on the various computing machine by hand in carrying out robotization use-case implementation.Tester's manual mode of operation is difficult to realize test automation, and efficient is low, and strict or need the application of parallel processing for some sequential, and manual operations is difficult to accurately realize.
A kind of Distributed Component Object Model (DCOM) (Distributed Component Object Model that can utilize Microsoft to provide at above-mentioned situation, DCOM) carry out the implementation of distributed control, but this scheme needs the developer to grasp the technical know-how of large amount of complex DCOM in the process that realizes, development difficulty is bigger.Also need configuration when using, the application personnel also need grasp certain DCOM background knowledge, and are corresponding to personnel's technical requirement height.Simultaneously, later release upgrading or when safeguarding cost higher.
Summary of the invention
The invention provides a kind of automatic test implementation method and device thereof, realize in the existing technology that to solve there is exploitation in automatic test and uses complexity and the high problem of cost.
The invention provides following technical scheme:
A kind of automatic test implementation method comprises the steps:
A, main control computer are accepted test command, and become command messages to be sent to managed computer this command conversion, and wherein this command messages comprises type of message, and this type of message is corresponding with the function type that the controlled software entity of test need call;
After B, managed computer receive this command messages, carry out funcall, and the result of funcall is passed to main control computer with the form of return messages by controlled software entity.
Test command described in the steps A is the test command that utilizes the TCL form of scripts that the TCL explosion command writes.
Command messages described in the steps A comprises message header and operation information, and described message header comprises the Transaction Identifier that calls sign and identification message processing transactions of the controlled software entity of identification; Described operation information comprises corresponding to the input parameter that calls.
Step B further comprises:
B1, described managed computer receive command messages, according to Transaction Identifier it are discerned, and judge when described message belongs to this start message of calling, create calling process;
B2, controlled software entity be by reading power function or other external interface that described command messages calls self, and will call the result and be passed to main control computer with the form of return messages;
B3, when managed computer receives this termination messages that calls, stop calling process, and return termination messages.
Described main control computer and managed computer employing reach the mode that adds the server end communication layers on managed computer at adding client communication layer on the main control computer and carry out alternately.
The output interface function is provided on the client communication layer, and then main control computer is to carry out in the mode of object invocation to managed computer transmission command messages with accepting return messages.
Described mode with object invocation further refers to: start object invocation earlier before carrying out first command messages transmission, fill order message transmits afterwards, and obtain the return messages of this command messages execution result correspondence, stop object invocation in the time of need not fill order.
After server end communication layers on the managed computer has been accepted information order, undertaken alternately by shared drive between server end communication layers and the controlled software entity.
Described server end communication layers is created two message queues based on shared drive, is respectively applied for and deposits command messages and return messages, and controlled software entity is by finishing the interacting message with the server end communication layers to the read-write of message queue.
The present invention further provides a kind of automatic test and realize system, described system comprises main control computer and at least one managed computer, wherein, main control computer is used to accept the test command that the user sends, and become command messages to be sent to managed computer this command conversion, described command messages comprises type of message, and this type of message is with that controlled software entity is tested the function type that need call is corresponding; After managed computer received this command messages, its described controlled software entity was carried out described funcall and the funcall return results is passed to main control computer with the form of return messages.
Described main control computer comprises script explanation module, expanding packet module and Master Communications layer module, wherein,
Described script explanation module is accepted outside test command and is called, and this order is sent to the expanding packet module;
Described expanding packet module is used to accept the test command that script explanation module sends, this order is configured to be sent to Master Communications layer module behind the command messages, and accept the return messages of carrying command execution results that Master Communications layer module returned, after being resolved, it reports to script explanation module;
Described Master Communications layer module passes to controlled communication layer module with the command messages of expanding packet module, and the return messages that controlled communication layer module passed back pass to the expanding packet module.
Described managed computer comprises controlled communication layer module and controlled software entity module, controlled communication layer module one end be connected with Master Communications layer module carry out mutual, the test call that the other end carries out controlled software entity alternately with the form and the controlled software entity of shared drive.
The only corresponding ID sign of controlled communication layer module on the described managed computer, this ID sign can be the IP address.
Can only start a controlled communication layer process on every managed computer.
The present invention discloses a kind of main control computer, and described main control computer comprises script explanation module, expanding packet module and Master Communications layer module, wherein,
Described script explanation module is accepted outside test command and is called, and this order is sent to the expanding packet module;
Described expanding packet module is used to accept the test command that script explanation module sends, this order is configured to be sent to Master Communications layer module behind the command messages, described command messages comprises type of message, and this type of message is with that controlled software entity is tested the function type that need call is corresponding; And accept the return messages of carrying command execution results that Master Communications layer module returned, after being resolved, it reports to script explanation module;
Described Master Communications layer module passes to controlled communication layer module with the command messages of expanding packet module, and the return messages that controlled communication layer module passed back pass to the expanding packet module.
Described expanding packet module comprises order analysis module, command messages constructing module, order rreturn value parsing module and command execution results reporting module, wherein,
Described order analysis module is mutual with script explanation module, accepts the test command of its transmission, and this order is analyzed;
Described command messages constructing module is configured to command messages according to the result of order analysis module analysis with it and sends it to Master Communications layer module;
Described order rreturn value parsing module and Master Communications layer module are mutual, accept the return messages of described command messages execution result correspondence, and are sent to the command execution results reporting module after it is resolved;
Described command execution results reporting module is back to script explanation module with command execution results.
Described Master Communications layer module comprises transmission command module and receiving thread module, wherein,
Sending command module is used for and will be sent to controlled communication layer module from the order of expanding packet module reception;
The receiving thread module comprises again and receives message module and return messages matching module, receives forwards that message module will return from controlled communication layer module to the return messages matching module, by the return messages matching module with this forwards to the expanding packet module.
The present invention further discloses a kind of managed computer, described managed computer comprises controlled communication layer module and controlled software entity module, controlled communication layer module one end be connected with Master Communications layer module carry out mutual, the test call that the other end carries out controlled software entity alternately with the form and the controlled software entity of shared drive.
Described controlled communication layer module comprise the receiving thread module and with the shared drive of its coupling and first internal memory read the thread module and with the shared drive of its coupling, wherein,
Described receiving thread module is used to receive the order that Master Communications layer module sent, and carries out test target by the shared drive with controlled software entity after the type of this message is discerned and calls and control calling process;
Described first internal memory reads the thread module and is used for reading return messages from the shared drive corresponding with it, and these return messages are forwarded to main control computer.
Described receiving thread module comprises reception message module, type of message identification module, creates the calling process module, stops the calling process module, wherein,
The type of message identification module sends command messages to controlled entities software module, and realizes calling controlled software entity test target according to the type of message of the command messages mode by shared drive;
When the message of type of message identification module transmission is start message, call establishment calling process module and begin a process;
When the message of type of message identification module transmission is termination messages, promptly call the process of calling process module end that stops.
Described first internal memory reads the thread module and comprises the internal memory read module and send command module that wherein said internal memory read module is used for reading the return messages of carrying the funcall execution result from shared drive; Described transmission command module is back to Master Communications layer module with these return messages.
Described controlled software entity module comprises that second internal memory reads thread module, power function module and return messages constructing module, wherein,
The power function that can call when described power function module is used to provide this controlled software entity module of test;
Described message constructing module is used for the result that calls of power function module is constructed, and is configured to return messages, passes controlled communication layer module back by shared drive;
Described second internal memory reads the thread module and is used for by the mode that the reads controlled communication layer module shared drive message that takes orders, and after this order resolved, the test function function that the invoking performance function module provides and then controlled software entity module tested.
Described second internal memory reads the thread module and further comprises and read shared drive data module, command analysis module and command calls module, wherein,
Describedly read the command messages that the shared drive data module is used for reading order message shared drive;
Described command analysis module is used for this described command messages is resolved;
The test function function that described command calls module provides according to analysis result invoking performance function module and then controlled software entity module tested.
Provide a kind of automatic test implementation of distributed Control Software entity by method of the present invention and corresponding system for industry, this scheme is easy to be easy-to-use, understands complexity that has reduced exploitation simultaneously, uses and safeguarded and cost easily.The invention solves the problem of carrying out distributed Control Software entity in the test automation realization.
Description of drawings
Fig. 1 is that automatic test of the present invention is realized the system architecture synoptic diagram;
Fig. 2 is the structural representation of the expanding packet module on the main control computer of the present invention;
Fig. 3 is a Master Communications layer modular structure synoptic diagram of the present invention;
Fig. 4 is a controlled communication layer modular structure synoptic diagram of the present invention;
Fig. 5 is the architectural schematic of the controlled software entity module of the present invention;
The structural representation of the command messages that Fig. 6 sends out from the expanding packet module for the present invention;
The message header structural representation of the command messages that Fig. 7 sends from the expanding packet module for the present invention;
The message header structural representation of the return messages that Fig. 8 returns to main control computer from controlled software entity for the present invention;
The main process flow diagram that Fig. 9 tests for the present invention;
Figure 10 is for sending command messages and the schematic flow sheet of accepting return messages at main control computer to managed computer.
Embodiment
As shown in Figure 1, test macro of the present invention comprises main control computer and at least one managed computer.Except comprising traditional script explanation module, also comprise expanding packet module and Master Communications layer module on the main control computer.The automatic test platform that described script explanation module can be based on Tool Command Language TCL (ToolCommand Language) (also can adopt other script explanation module, such as TTCN), the user can carry out design, realization, execution and the test report output of robotization use-case with it.Comprise controlled communication layer module and controlled software entity module on the managed computer, in this architecture, by the function of outside with the mutual realization automatic test of script explanation module.Realize the function of distributed Control Software entity by expanding packet module, Master Communications layer module, controlled communication layer module and controlled software entity module entity.
Wherein, script explanation module comprises carries out the explosion command module, and this module is accepted outside test command and called, and this order is sent to the expanding packet module.
The structural representation of the expanding packet module on the main control computer is shown in 2.This module is used to accept the test command that script explanation module sends, and this order is configured to be sent to Master Communications layer module behind the command messages, described command messages comprises type of message, and this type of message is with that controlled software entity is tested the function type that need call is corresponding; Accept the command execution results that Master Communications layer module returned, and report to script explanation module after it is resolved.The expanding packet module comprises order analysis module, command messages constructing module, order rreturn value parsing module and command execution results reporting module, wherein, the order analysis module is mutual with the execution explosion command module in the script explanation module, accept the test command of its transmission, and this order is analyzed; The command messages constructing module is configured to it to send it to Master Communications layer module behind command messages according to the result of order analysis module analysis; Order rreturn value parsing module and Master Communications layer module is mutual, accepts the test command rreturn value of its transmission, and is sent to the command execution results reporting module after this rreturn value resolved; The command execution results reporting module is back to script explanation module with command execution results.
Wherein, Master Communications layer modular structure as described in Figure 3, this module is used for pass-along message between main control computer and managed computer, and the command messages of expanding packet module is passed to controlled communication layer module, and the return messages that controlled communication layer module passed back pass to the expanding packet module.Master Communications layer module is with communicating by multiple message format between the controlled communication layer module.This Master Communications layer module comprises transmission command module and receiving thread module, wherein, sends command module and is used for and will be sent to controlled communication layer module from the command messages that the expanding packet module receives; The receiving thread module comprises again and receives message module and return messages matching module, receives forwards that message module will return from controlled communication layer module to the return messages matching module, by the return messages matching module with this forwards to the expanding packet module.
The expanding packet module can form the TCL expanding packet, and should order the open user of giving in script explanation module according to calling needs encapsulation TCL explosion command.The TCL expanding packet is at a certain specific application area the core commands set of TCL language to be expanded, and adds the explosion command set of the application that is suitable for oneself.The TCL explosion command that the user can utilize the expanding packet module to provide in script explanation module is write the TCL script, realizes test case, reaches test purpose by implementation of test cases, has good dirigibility and extensibility.Expanding packet module and Master Communications layer module can be carried out with the interface function form alternately.
Controlled communication layer module in managed computer also plays the effect of pass-along message, as shown in Figure 4.The one end is connected with Master Communications layer module and carries out alternately, and the other end is mutual by shared drive and controlled software entity.The only correspondence of controlled communication layer module ID sign, this ID sign can be the IP address, can only start a controlled communication layer process on every PC.Controlled communication layer module of the present invention comprise the receiving thread module and with the shared drive of its coupling and first internal memory read the thread module and with the shared drive of its coupling, wherein, the receiving thread module is used to receive the command messages that Master Communications layer module sent, and carries out test target by the shared drive with controlled software entity after the type of this message is discerned and calls and control calling process.The receiving thread module comprises reception message module, type of message identification module, creates the calling process module, stops the calling process module, wherein, the type of message identification module sends command messages to controlled entities software module, and the mode by shared drive realizes calling controlled software entity test target.When the message of type of message identification module transmission is start message, call establishment calling process module and begin a process, when the message of type of message identification module transmission is termination messages, promptly call the process of calling process module end that stops.Wherein, first internal memory reads the thread module and comprises internal memory read module and transmission command module, and wherein, the internal memory read module is used for reading the return messages of carrying the funcall execution result from shared drive; Described transmission command module is back to Master Communications layer module with these return messages.
Controlled software entity module is that actual functional capability calls the realization part, call self power function or other external interface by the message that reads in the controlled communication layer module shared drive, the test of realization required function, and will call the result and pass controlled communication layer module with the form of return messages back by shared drive.The system assumption diagram of controlled software entity module as shown in Figure 5, comprise that second internal memory reads thread module, power function module and return messages constructing module, the power function that can call when wherein, the power function module is used to provide this controlled software entity module of test.The message constructing module is used for the result that calls of power function module is constructed, and is configured to return messages, passes controlled communication layer module back by shared drive.Second internal memory reads the thread module and comprises and read shared drive data module, command analysis module and command calls module, be used for taking orders by the mode that reads controlled communication layer module shared drive, and after this order resolved, the test function function that the invoking performance function module provides.Wherein, read the command messages that the shared drive data module is used for reading order message shared drive; The command analysis module is used for this described command messages and resolves; The test function function that the command calls module provides according to analysis result invoking performance function module and then controlled software entity tested.Described controlled software entity module can also comprise internal event processing monitor module, and this module people having the same aspiration and interest links to each other with the function function module, is used for monitoring calling situation.
The method of calling to controlled software entity in the architectural framework of the present invention can utilize the mode of expansion existing protocol to call, and also can call by the form of self-defined message.When calling, be base conditioning unit, follow unified message structure with the self-defined message by self-defined message.A basic function of the corresponding controlled software entity of each self-defined message, a newly-increased basic function should at first define corresponding self-defined message.The expanding packet module is a command messages to controlled software entity module transmission, controlled software entity module receives orders and calls corresponding test function function after the message, return results is passed to the expanding packet module with the form of return messages, so just finished a basic function and handled.
The structure of the message that sends out from the expanding packet module comprises two parts of message header and operation information as shown in Figure 6.Comprise as shown in Figure 7 four parts for the message header of the command messages that sends from the expanding packet module, comprise message-length, call ID, affairs ID and type of message.Wherein, message-length is used to identify the byte-sized of whole message; Call ID sign call type, be used for controlled software entity of only sign; Affairs ID is used for Message Processing affairs of only sign, and command messages of every transmission can increase progressively 1; Type of message is used to identify the type of this message correspondence, corresponding to a funcall of controlled software entity.The operation information of command messages is this input parameter that calls.
The message header of the return messages of returning to main control computer from controlled software entity comprises message-length, calls ID, affairs ID, end of message sign, service layer's abnormality mark that wherein, message-length is used to identify the byte-sized of whole message as shown in Figure 8; Call ID sign call type, be used for controlled software entity of only sign, be the ID that calls of the command messages of correspondence; Message Processing affairs of the only sign of affairs ID are the affairs ID of the command messages of correspondence; Whether end of message sign is used to identify return messages finishes; Whether service layer's abnormality mark: it is unusual to be used for the identification service layer.Can only coupling command messages and return messages by calling ID and affairs ID.This coupling can be finished in the return messages matching module of Master Communications layer module end.
The aforesaid operations information content is the required necessary data of current message.The operation information of command messages then is an input parameter, and the operation information of return messages then is output parameter and rreturn value, and the concrete information content is only relevant with type of message, by mating to obtain its operation information with type of message.
The extension layer module is with can being undertaken alternately by function call between the Master Communications layer module, and Master Communications layer module provides the output interface function for the expanding packet module invokes.Interface function can be described several just like table one.
Table one
The interface function title | Function |
ExecCmd | Fill order |
GetCmdResult | Obtain command execution results |
StartCall | Start object invocation |
EndCall | Stop object invocation |
GetTransactionID | Obtain affairs ID |
Expanding packet module invokes process is: start object invocation before carrying out first order earlier.Fill order is obtained command execution results afterwards.Stop object invocation in the time of need not fill order.Starting object invocation, fill order stops all must obtaining affairs ID before the object invocation.Object invocation is controlled software entity, identifies by calling ID.
Can communicate in several ways between Master Communications layer module and the controlled communication layer module, can communicate by letter with the client mode by server end, also can communicate by self-defined message type mode, can also expand present communication mode and communicate, also can communicate by letter, with pass-along message by the mode of calling interface function.
Undertaken alternately by shared drive between controlled communication layer module and the controlled software entity module.Controlled communication layer module creation two message queues based on shared drive, be respectively applied for and deposit command messages and return messages.Controlled software entity is opened message queue, finishes the mutual of message by the read-write of message queue.The interface type that message queue provides after controlled communication layer module receives the command messages that sends from Master Communications layer module, calls the SendMessage function and sends message to the command messages formation as shown in Table 2; Wait for when in the return messages formation message being arranged, call the GetMessage function and obtain message, send return messages to Master Communications layer module.When in the controlled software entity wait command message queue message being arranged, call GetMessage and obtain message; Call SendMessage to return messages formation transmission message after handling message.
Table two
The interface function title | Function |
SendMessage | Send message |
GetMessage | Receive message |
GetMsgCount | Obtain the message number |
ResetMsgQueue | The reset message formation |
m_hHaveMsgEvent | Message event |
Consult shown in Figure 9ly, the key step of automatic test is as follows:
Step 100, send test command to main control computer.
Main control computer has encapsulated the TCL explosion command according to the test call needs, and the user utilizes the form input test order of the TCL script that this TCL explosion command is written as, and then realizes calling of test case.
The form that step 110, main control computer test command convert command messages to is sent to managed computer.Described command messages comprises type of message, and this type of message is with that controlled software entity is tested the function type that need call is corresponding.
Main control computer is configured to command messages with this test command, message format such as Figure 6 and Figure 7 according to main control computer with the form of the controlled software entity communication of managed computer.
After step 120, managed computer received command messages, the controlled software entity on it was carried out funcall.
Managed computer receives this command messages, ID discerns it according to affairs, judge when belonging to this start message of calling, create calling process, and command messages that will be subsequently is sent to the shared drive on the managed computer, and controlled software entity calls self power function or other external interface by the message that reads in the communication layers Server shared drive.
The result of step 130, managed computer funcall passes to main control computer with the form of return messages.The form of return messages as shown in Figure 8.Can only coupling command messages and return messages by calling ID and affairs ID, when managed computer receives this termination messages that calls, stop calling process, in this return messages, carry end of message sign.
Communication mode between above-mentioned main control computer and the managed computer is a lot, in the present embodiment, main control computer reaches the mode that adds the server end communication layers on managed computer with the managed computer employing at adding client communication layer on the main control computer and carries out alternately (the corresponding corresponding client communication layer of Master Communications layer module; Controlled communication layer module corresponding with service device end communication layers).The output interface function is provided on the client communication layer, and the type of this interface function as shown in Table 1.Send command messages and the flow process of accepting return messages as shown in figure 10 at main control computer to managed computer, startup object invocation earlier before carrying out first command messages and sending.Fill order message transmits afterwards, and obtains the return messages corresponding to this command messages execution result.Stop object invocation in the time of need not fill order.Before starting object invocation, fill order, termination object invocation, all must obtain affairs ID.Object invocation is controlled software entity, identifies by calling ID, promptly judges and need start calling with this controlled software entity then with which controlled software entity communication according to the ID that calls in the command messages.
After server end communication layers on the managed computer has been accepted information order, undertaken alternately by shared drive between server end communication layers and the controlled software entity.Communication layers is created two message queues based on shared drive, is respectively applied for and deposits command messages and return messages.Controlled software entity is opened message queue, finishes the mutual of message by the read-write of message queue.The interface function that this message queue provides as shown in Table 2.After the server end communication layers receives the command messages that sends from the client communication layer, call SendMessage and send message to the command messages formation.Wait for when in the return messages formation message being arranged, call GetMessage and obtain message, send return messages to the client communication layer.When controlled software entity is found in the command messages formation message to be arranged, call GetMessage and obtain message.Call SendMessage to return messages formation transmission message after handling message.
The automatic test implementation method of distributed Control Software entity provided by the invention is easy to be easy-to-use, understands easily, reduces complexity and the cost developing, use and safeguard, has solved the difficult problem of the automatic test of distributed Control Software entity.
Claims (23)
1, a kind of automatic test implementation method is characterized in that, comprises the steps:
A, main control computer are accepted test command, and become command messages to be sent to managed computer this command conversion, and wherein this command messages comprises type of message, and this type of message is corresponding with the function type that the controlled software entity of test need call;
After B, managed computer receive this command messages, carry out funcall, and the result of funcall is passed to main control computer with the form of return messages by controlled software entity.
2, the method for claim 1 is characterized in that, test command described in the steps A is the test command that utilizes the TCL form of scripts that the TCL explosion command writes.
3, the method for claim 1 is characterized in that, the command messages described in the steps A comprises message header and operation information, and described message header comprises the Transaction Identifier that calls sign and identification message processing transactions of the controlled software entity of identification; Described operation information comprises corresponding to the input parameter that calls.
4, method as claimed in claim 3 is characterized in that, step B further comprises:
B1, described managed computer receive command messages, according to Transaction Identifier it are discerned, and judge when described message belongs to this start message of calling, create calling process;
B2, controlled software entity be by reading power function or other external interface that described command messages calls self, and will call the result and be passed to main control computer with the form of return messages;
B3, when managed computer receives this termination messages that calls, stop calling process, and return termination messages.
5, method as claimed in claim 4 is characterized in that, described main control computer and managed computer employing reach the mode that adds the server end communication layers on managed computer at adding client communication layer on the main control computer and carry out alternately.
6, method as claimed in claim 5 is characterized in that, the output interface function is provided on the client communication layer, and then main control computer is to carry out in the mode of object invocation to managed computer transmission command messages with accepting return messages.
7, method as claimed in claim 6, it is characterized in that, described mode with object invocation further refers to: start object invocation earlier before carrying out first command messages transmission, fill order message transmits afterwards, and obtain the return messages of this command messages execution result correspondence, stop object invocation in the time of need not fill order.
8, method as claimed in claim 5 is characterized in that, after the server end communication layers on the managed computer has been accepted information order, is undertaken alternately by shared drive between server end communication layers and the controlled software entity.
9, method as claimed in claim 8, it is characterized in that, described server end communication layers is created two message queues based on shared drive, be respectively applied for and deposit command messages and return messages, controlled software entity is by finishing the interacting message with the server end communication layers to the read-write of message queue.
10, a kind of automatic test is realized system, it is characterized in that described system comprises main control computer and at least one managed computer, wherein, main control computer is used to accept the test command that the user sends, and becomes command messages to be sent to managed computer this command conversion; After described managed computer receives this command messages, carry out described funcall and the funcall return results is passed to main control computer with the form of return messages by described controlled software entity.
11, system as claimed in claim 10 is characterized in that, described main control computer comprises script explanation module, expanding packet module and Master Communications layer module, wherein,
Described script explanation module is accepted outside test command and is called, and this order is sent to the expanding packet module;
Described expanding packet module is used to accept the test command that script explanation module sends, this order is configured to be sent to Master Communications layer module behind the command messages, and accept the return messages of carrying command execution results that Master Communications layer module returned, after being resolved, it reports to script explanation module;
Described Master Communications layer module passes to controlled communication layer module with the command messages of expanding packet module, and the return messages that controlled communication layer module passed back pass to the expanding packet module.
12, system as claimed in claim 10, it is characterized in that, described managed computer comprises controlled communication layer module and controlled software entity module, controlled communication layer module one end be connected with Master Communications layer module carry out mutual, the test call that the other end carries out controlled software entity alternately with the form and the controlled software entity of shared drive.
13, system as claimed in claim 12 is characterized in that, the only corresponding ID sign of the controlled communication layer module on the described managed computer, and this ID sign can be the IP address.
14, system as claimed in claim 12 is characterized in that, can only start a controlled communication layer process on every managed computer.
15, a kind of main control computer of realizing automatic test is characterized in that, described main control computer comprises script explanation module, expanding packet module and Master Communications layer module, wherein,
Described script explanation module is accepted outside test command and is called, and this order is sent to the expanding packet module;
Described expanding packet module is used to accept the test command that script explanation module sends, this order is configured to be sent to Master Communications layer module behind the command messages, and accept the return messages of carrying command execution results that Master Communications layer module returned, after being resolved, it reports to script explanation module;
Described Master Communications layer module passes to controlled communication layer module with the command messages of expanding packet module, and the return messages that controlled communication layer module passed back pass to the expanding packet module.
16, computing machine as claimed in claim 15 is characterized in that, described expanding packet module comprises order analysis module, command messages constructing module, order rreturn value parsing module and command execution results reporting module, wherein,
Described order analysis module is mutual with script explanation module, accepts the test command of its transmission, and this order is analyzed;
Described command messages constructing module is configured to command messages according to the result of order analysis module analysis with it and sends it to Master Communications layer module;
Described order rreturn value parsing module and Master Communications layer module are mutual, accept the return messages of described command messages execution result correspondence, and are sent to the command execution results reporting module after it is resolved;
Described command execution results reporting module is back to script explanation module with command execution results.
17, computing machine as claimed in claim 15 is characterized in that, described Master Communications layer module comprises transmission command module and receiving thread module, wherein,
Sending command module is used for and will be sent to controlled communication layer module from the order of expanding packet module reception;
The receiving thread module comprises again and receives message module and return messages matching module, receives forwards that message module will return from controlled communication layer module to the return messages matching module, by the return messages matching module with this forwards to the expanding packet module.
18, a kind of managed computer of realizing automatic test, it is characterized in that, described managed computer comprises controlled communication layer module and controlled software entity module, controlled communication layer module by interface be connected with Master Communications layer module carries out mutual, the test call that the other end carries out controlled software entity alternately with the form and the controlled software entity of shared drive.
19, computing machine as claimed in claim 18 is characterized in that, described controlled communication layer module comprise the receiving thread module and with the shared drive of its coupling and first internal memory read the thread module and with the shared drive of its coupling, wherein,
Described receiving thread module is used to receive the order that Master Communications layer module sent, and carries out test target by the shared drive with controlled software entity after the type of this message is discerned and calls and control calling process;
Described first internal memory reads the thread module and is used for reading return messages from the shared drive corresponding with it, and these return messages are forwarded to main control computer.
20, computing machine as claimed in claim 19 is characterized in that, described receiving thread module comprises reception message module, type of message identification module, creates the calling process module, stops the calling process module, wherein,
The type of message identification module sends command messages to controlled entities software module, and realizes calling controlled software entity test target according to the type of message of the command messages mode by shared drive;
When the message of type of message identification module transmission is start message, call establishment calling process module and begin a process;
When the message of type of message identification module transmission is termination messages, promptly call the process of calling process module end that stops.
21, computing machine as claimed in claim 19, it is characterized in that, described first internal memory reads the thread module and comprises the internal memory read module and send command module that wherein said internal memory read module is used for reading the return messages of carrying the funcall execution result from shared drive; Described transmission command module is back to Master Communications layer module with these return messages.
22, computing machine as claimed in claim 18 is characterized in that, described controlled software entity module comprises that second internal memory reads thread module, power function module and return messages constructing module, wherein,
The power function that can call when described power function module is used to provide this controlled software entity module of test;
Described message constructing module is used for the result that calls of power function module is constructed, and is configured to return messages, passes controlled communication layer module back by shared drive;
Described second internal memory reads the thread module and is used for by the mode that the reads controlled communication layer module shared drive message that takes orders, and after this order resolved, the test function function that the invoking performance function module provides and then controlled software entity module tested.
23, computing machine as claimed in claim 22 is characterized in that, described second internal memory reads the thread module and further comprises and read shared drive data module, command analysis module and command calls module, wherein,
Describedly read the command messages that the shared drive data module is used for reading order message shared drive;
Described command analysis module is used for this described command messages is resolved;
The test function function that described command calls module provides according to analysis result invoking performance function module and then controlled software entity module tested.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101328635A CN100367235C (en) | 2005-12-27 | 2005-12-27 | Method for realizing automatic test and its system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101328635A CN100367235C (en) | 2005-12-27 | 2005-12-27 | Method for realizing automatic test and its system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1858719A true CN1858719A (en) | 2006-11-08 |
CN100367235C CN100367235C (en) | 2008-02-06 |
Family
ID=37297628
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005101328635A Expired - Fee Related CN100367235C (en) | 2005-12-27 | 2005-12-27 | Method for realizing automatic test and its system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100367235C (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101316196B (en) * | 2007-05-28 | 2010-12-08 | 华为技术有限公司 | Method and apparatus for implementing simulation test of service on distributed platform |
CN101923509A (en) * | 2009-02-20 | 2010-12-22 | 国际商业机器公司 | In level formula parallel environment, carry out the method and system of distributed run time diagnosis |
CN102541728A (en) * | 2010-12-14 | 2012-07-04 | 北京新媒传信科技有限公司 | Method for expanding identifiable control of automatic test tool |
CN102819463A (en) * | 2012-08-17 | 2012-12-12 | 西安远征智能软件有限公司 | Automatic testing system of comprehensive protection device |
CN102999423A (en) * | 2012-11-15 | 2013-03-27 | 华为技术有限公司 | Multi-core testing method and device |
CN103023708A (en) * | 2011-09-20 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Method and system for testing communication protocol interface |
CN104679000A (en) * | 2015-01-09 | 2015-06-03 | 中国科学院合肥物质科学研究院 | Indoor simulation testing device and testing method for target object sensing capability of mobile robot |
CN106201860A (en) * | 2015-05-07 | 2016-12-07 | 阿里巴巴集团控股有限公司 | The method of testing of application system and device |
CN107229567A (en) * | 2017-06-09 | 2017-10-03 | 山东超越数控电子有限公司 | A kind of IPMI firmwares automatization test system |
CN107894762A (en) * | 2017-11-09 | 2018-04-10 | 重庆鲁班机器人技术研究院有限公司 | Practicality imitation test method, apparatus and system |
CN110059004A (en) * | 2019-03-21 | 2019-07-26 | 深圳市腾讯信息技术有限公司 | A kind of method, apparatus, equipment and the medium of application test |
WO2022143108A1 (en) * | 2020-12-30 | 2022-07-07 | 华为技术有限公司 | Software debugging method, electronic device, and debugging system |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2297994A1 (en) * | 2000-02-04 | 2001-08-04 | Ibm Canada Limited-Ibm Canada Limitee | Automated testing computer system components |
CN1143215C (en) * | 2000-05-17 | 2004-03-24 | 英业达股份有限公司 | Component test equipment and method between two computers |
JP2002182949A (en) * | 2000-12-15 | 2002-06-28 | Mitsubishi Electric Corp | Object testing device, object testing method and computer readable recording medium having object testing program recorded thereon |
JP2002259161A (en) * | 2001-03-02 | 2002-09-13 | Hitachi Ltd | Device for automatically generating test script |
US7174541B2 (en) * | 2002-06-28 | 2007-02-06 | Sap Aktiengesellschaft | Testing of applications |
AU2003291794A1 (en) * | 2003-12-18 | 2005-07-05 | Motorola Inc | A method of automatically generating test scripts from a system specification model |
-
2005
- 2005-12-27 CN CNB2005101328635A patent/CN100367235C/en not_active Expired - Fee Related
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101316196B (en) * | 2007-05-28 | 2010-12-08 | 华为技术有限公司 | Method and apparatus for implementing simulation test of service on distributed platform |
CN101923509A (en) * | 2009-02-20 | 2010-12-22 | 国际商业机器公司 | In level formula parallel environment, carry out the method and system of distributed run time diagnosis |
CN101923509B (en) * | 2009-02-20 | 2013-08-14 | 国际商业机器公司 | System and method for distributed runtime diagnostics in hierarchical parallel environments |
CN102541728A (en) * | 2010-12-14 | 2012-07-04 | 北京新媒传信科技有限公司 | Method for expanding identifiable control of automatic test tool |
CN103023708A (en) * | 2011-09-20 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Method and system for testing communication protocol interface |
CN103023708B (en) * | 2011-09-20 | 2016-04-13 | 腾讯科技(深圳)有限公司 | The method of testing of communication protocol interface and system |
CN102819463B (en) * | 2012-08-17 | 2015-09-09 | 西安远征智能软件有限公司 | Complex protection device Auto-Test System |
CN102819463A (en) * | 2012-08-17 | 2012-12-12 | 西安远征智能软件有限公司 | Automatic testing system of comprehensive protection device |
CN102999423A (en) * | 2012-11-15 | 2013-03-27 | 华为技术有限公司 | Multi-core testing method and device |
CN102999423B (en) * | 2012-11-15 | 2016-03-02 | 华为技术有限公司 | A kind of method and apparatus of multinuclear test |
CN104679000A (en) * | 2015-01-09 | 2015-06-03 | 中国科学院合肥物质科学研究院 | Indoor simulation testing device and testing method for target object sensing capability of mobile robot |
CN106201860A (en) * | 2015-05-07 | 2016-12-07 | 阿里巴巴集团控股有限公司 | The method of testing of application system and device |
CN106201860B (en) * | 2015-05-07 | 2019-03-29 | 阿里巴巴集团控股有限公司 | The test method and device of application system |
CN107229567A (en) * | 2017-06-09 | 2017-10-03 | 山东超越数控电子有限公司 | A kind of IPMI firmwares automatization test system |
CN107894762A (en) * | 2017-11-09 | 2018-04-10 | 重庆鲁班机器人技术研究院有限公司 | Practicality imitation test method, apparatus and system |
CN107894762B (en) * | 2017-11-09 | 2018-08-28 | 重庆鲁班机器人技术研究院有限公司 | Matter emulation tests system |
CN110059004A (en) * | 2019-03-21 | 2019-07-26 | 深圳市腾讯信息技术有限公司 | A kind of method, apparatus, equipment and the medium of application test |
WO2022143108A1 (en) * | 2020-12-30 | 2022-07-07 | 华为技术有限公司 | Software debugging method, electronic device, and debugging system |
Also Published As
Publication number | Publication date |
---|---|
CN100367235C (en) | 2008-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1858719A (en) | Method for realizing automatic test and its system | |
CN1747472B (en) | Universal embedded marker and marking method based on CCP | |
CN1851667A (en) | Graphic user interface test method and system | |
US20070022324A1 (en) | Multi-platform test automation enhancement | |
CN1791037A (en) | Method for realizing Web service automatic test | |
CN101043384A (en) | System and method for network test | |
CN1767453A (en) | Automatic test method and system | |
CN1832433A (en) | Distribution structure test system and testing method of the test system | |
CN1279461C (en) | Method for calibrating controller of electric automobile in mixing motive power based on CCP protocol | |
CN101035090A (en) | Instant communication method | |
CN1862512A (en) | Single board read/writ system and method for information | |
CN101056220A (en) | Central monitoring method of the data service system without network management interface | |
CN210573263U (en) | Building system | |
CN1841340A (en) | Method and system for testing drive software | |
CN1881189A (en) | Method and system for computer receiving video data of mobile phone with camera | |
CN1794242A (en) | Failure diagnosis data collection and publishing method | |
CN103676663A (en) | A wind generating set combined simulation system communication interface realization method | |
CN1852546A (en) | Operation maintenance system and method for base-station system | |
CN1280754C (en) | Embedded and networked remote input and output system | |
CN106550026B (en) | Network communication device and method | |
CN1583478A (en) | Wireless monitoring and fault diagnostic system and method for vehicle | |
CN1210663C (en) | Synchronous data transmitting method and interface device thereof | |
CN1573704A (en) | Error-processing system and method for printers | |
CN1889442A (en) | Method and apparatus for identifying terminal command line | |
CN1388455A (en) | Protocol converting method and device between in-situ bus and serial interface equipment |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080206 Termination date: 20121227 |