CN103135986B - A kind of operation acquisition method and system - Google Patents

A kind of operation acquisition method and system Download PDF

Info

Publication number
CN103135986B
CN103135986B CN201310031157.6A CN201310031157A CN103135986B CN 103135986 B CN103135986 B CN 103135986B CN 201310031157 A CN201310031157 A CN 201310031157A CN 103135986 B CN103135986 B CN 103135986B
Authority
CN
China
Prior art keywords
information
control
initiation message
forms
identity information
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.)
Expired - Fee Related
Application number
CN201310031157.6A
Other languages
Chinese (zh)
Other versions
CN103135986A (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.)
Academy of Armored Forces Engineering of PLA
Original Assignee
Academy of Armored Forces Engineering of PLA
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 Academy of Armored Forces Engineering of PLA filed Critical Academy of Armored Forces Engineering of PLA
Priority to CN201310031157.6A priority Critical patent/CN103135986B/en
Publication of CN103135986A publication Critical patent/CN103135986A/en
Application granted granted Critical
Publication of CN103135986B publication Critical patent/CN103135986B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of operation acquisition method and system, wherein, described operation acquisition method comprises the identity information and auxiliary descriptor that obtain control, by the identity information of described control and auxiliary descriptor write interface database; Obtain the initiation message of input equipment operational motion, according to the Functional Analysis of described initiation message call, cause message, obtain the identity information of the source control of described initiation message; The identity information of source control causing message is mated with the identity information in interface database, if the match is successful, then obtain the auxiliary descriptor associated with the identity information of the source control of described initiation message in interface database, call function obtains the operation information of described initiation message, according to the operation information generating run record of described auxiliary descriptor and described initiation message.Adopt operation acquisition method of the present invention and system, achieve the operation collection to form control and non-form control, promote the experience of user.

Description

A kind of operation acquisition method and system
Technical field
The present invention relates to data collecting field, be specifically related to a kind of operation acquisition method and system.
Background technology
Operation sampling instrument common at present mainly by operation note function i ntegration in Automated testing tool, generate test script by the operation of recording application program, what realize that user interface (UserInterface, UI) tests automatically performs.More typical instrument has the TestQuestPro of the RationalFunctionalTester of IBM (InternationalBusinessMachines, IBM) company, QuickTestProfessional and the TestQuest company of Hewlett-Packard.
Wherein, the RationalFunctionalTester of IBM Corporation is a kind of automated test tool, and user can use the operation of this instrument recording application program and generate test script.User can the script of selection tool and development environment, comprises the MicrosoftVisualBasic.NET in Java or the MicrosoftVisualStudio.NET development environment in Eclipse framework.When recording script, RationalFunctionalTester can create tested object map automatically for tested application program, i.e. tested object.The recognition property to each tested object is contained in tested object map.When user upgrades recorded information in tested object map, any information employing the script meeting Share update of this tested object map, decreases the cost of maintenance and the complexity of whole script exploitation.Tested object map is also for user provides the method for adding tested object fast in script.Check post can be inserted in recording process in script to determine the state of tested object in tested application program process of establishing.
QuickTestProfessional is the function regression test instrument that Hewlett-Packard provides, can the operation of recording user, from employing the establishment of VBScript language for test script, user passes through the amendment of test script, the parametrization of test data, can playback test script, the input of analog subscriber and click, reach the object of automatic test.
TestQuestPro is an automated test tool, provides script recording function equally.TestQuestPro comprises three main modular, and be script recorder, test information management device and test execution controller respectively, the integration of three can create test job, the integrated test mode and perform test of entering.Script recorder is the core of TestQuestPro, and it creates test script and definition illustration by record key-case.
But, although above-mentioned three kinds of operation sampling instruments can realize the record to operation to a certain extent, but they can only identify form control, non-form control can not be identified, and military commander system software adopts non-form control in a large number at present, cause current existing operation sampling instrument can not be applicable to the operation collection of military commander system.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of operation acquisition method and system, achieves the operation collection to form control and non-form control, promotes the experience of user.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of operation acquisition method, the method comprises:
Obtain the identity information of control and auxiliary descriptor, by the identity information of described control and auxiliary descriptor write interface database;
Obtain the initiation message of input equipment operational motion, according to the Functional Analysis of described initiation message call, cause message, obtain the identity information of the source control of described initiation message;
The identity information of source control causing message is mated with the identity information in interface database, if the match is successful, then obtain the auxiliary descriptor associated with the identity information of the source control of described initiation message in interface database, call function obtains the operation information of described initiation message, according to the operation information generating run record of described auxiliary descriptor and described initiation message.
In such scheme, identity information and the auxiliary descriptor of described acquisition control comprise:
For form control, call function obtains the forms handle of described form control, utilizes the identity information of form control described in forms handle acquiring, comprises described form control and is subordinate to the application information of application program and the forms information of described form control;
For non-form control, call function obtains the forms handle that described non-form control is subordinate to forms, described in the forms handle acquiring utilizing described non-form control to be subordinate to forms, non-form control is subordinate to the identity information of forms, comprises described non-form control and is subordinate to the forms information that the application information being subordinate to application program of forms and described non-form control be subordinate to forms; Be subordinate to the region in forms by the described non-form control of control annotation tool mark, obtaining described non-form control and be subordinate to the area information in forms; Described non-form control is subordinate to the identity information of forms and described non-form control at the identity information being subordinate to the described non-form control of the composition of the area information in forms;
The auxiliary descriptor of described control is set, comprises type and the title of described control.
In such scheme, described by the identity information of control and auxiliary descriptor write interface database comprise:
By in the application program table in described application information write interface database;
By in the identification control table in described forms information write interface database;
For non-form control, further, described control is being subordinate in the mark control table in the write of the area information in forms interface database.
In such scheme, describedly according to the Functional Analysis of described initiation message call, cause message, the identity information obtaining the source control of described initiation message comprises:
Described initiation message is analyzed according to described initiation message call System Programming interface function, if the source control of described initiation message is form control, then the source control obtaining described initiation message is subordinate to the identity information of forms information as the source control of described initiation message of the application information of application program and the source control of described initiation message;
If the source control of described initiation message is non-form control, then the source control of the application information being subordinate to application program and described initiation message that the source control obtaining described initiation message is subordinate to forms is subordinate to the identity information of forms information as the source control of described initiation message of forms.
In such scheme, described coupling with the identity information in interface database by the identity information of source control of initiation message, comprises:
Application information in the identity information of the source control of described initiation message is mated with the application information in the application program table in interface database;
If the match is successful, then the forms information in the identity information of the source control of described initiation message is mated with the identification control table in interface database;
If the forms information in the identity information of the source control of described initiation message and forms information matches success corresponding with described application information in identification control table, whether the source control then judging described initiation message is non-form control, if the result judged is no, then terminate coupling process;
If the result judged is yes, then obtained the positional information of operational motion by calling system DLL (dynamic link library) function according to operational motion, described positional information is mated with the mark control table in interface database, if in the area information that described positional information is corresponding with described forms information in described mark control table, then the match is successful, terminates coupling process.
In such scheme, the auxiliary descriptor associated with the identity information of the source control of described initiation message in described acquisition interface database, call function obtains the operation information of described initiation message, and the operation information generating run record according to described auxiliary descriptor and described initiation message comprises:
Obtain the auxiliary descriptor associated with the identity information of the source control of described initiation message in interface database, wherein, described auxiliary descriptor comprises type and the title of the source control of described initiation message;
Call function obtains the operation information of described initiation message, wherein, the operation information of described initiation message comprises the time of operation generation, network interconnection agreement (InternetProtocol, the IP) address operating generation place terminal, the control operation causing message, the content of operation of initiation message control, the software information belonging to control;
According to the operation information generating run record of described auxiliary descriptor and described initiation message.
The invention provides a kind of operation acquisition system, this system comprises information acquisition end, interface database and operation collection terminal; Wherein,
Described information acquisition end, for obtaining the identity information of control and auxiliary descriptor, by described identity information and auxiliary descriptor write interface database;
Described interface database, for storing the described identity information of information acquisition end transmission and auxiliary descriptor;
Described operation collection terminal, obtains the initiation message of input equipment operational motion, causes message, obtain the identity information of the source control of described initiation message according to the Functional Analysis of described initiation message call; The identity information of source control causing message is mated with the identity information in interface database, if the match is successful, then obtain the auxiliary descriptor associated with the identity information of the source control of described initiation message in interface database, call function obtains the operation information of described initiation message, according to the operation information generating run record of described auxiliary descriptor and described initiation message.
In such scheme, described information acquisition end comprises information identification module, information labeling module and information and arranges module; Wherein,
Described information identification module, for when described control type is form control, call function obtains the forms handle of described form control, utilizes the identity information of form control described in forms handle acquiring, by the identity information of described form control write interface database; When described control type is non-form control, call function obtains the forms handle that described non-form control is subordinate to forms, described in the handle acquiring utilizing control to be subordinate to forms, non-form control is subordinate to the identity information of forms, described non-form control is subordinate to the identity information write interface database of forms; Wherein, the identity information of described form control comprises application information and the forms information that form control is subordinate to application program;
Described information labeling module, for when described control type is non-form control, mark described non-form control and be subordinate to the region in forms, obtain described non-form control and be subordinate to the area information in forms, described non-form control is being subordinate to the write of the area information in forms interface database;
Described information arranges module, for arranging the auxiliary descriptor of described control, comprises type and the title of described control, by the auxiliary descriptor write interface database of described control.
In such scheme, described interface database, specifically for the auxiliary descriptor storing application program table, identify control table, mark control table and described control; Wherein,
Described application program table stores described application information;
Described identification control table stores described forms information;
Described mark control table stores described non-form control and is being subordinate to the area information in forms.
In such scheme, described operation collection terminal comprises operation information acquisition module, operation information analysis module, operation information matching module and operation information generation module; Wherein,
Described operation information acquisition module, for obtaining the initiation message of input equipment operational motion, sends to operation information analysis module by described initiation message;
Described operation information analysis module, message is caused for described in the initiation message call Functional Analysis of sending according to operation information acquisition module, obtain the identity information of the source control of described initiation message, and the identity information of described source control is sent to operation information matching module;
Described operation information matching module, identity information for the described source control sent by operation information analysis module mates with the identity information in interface database, when the match is successful, send a notification message to operation information analysis module, and obtain the auxiliary descriptor associated with the identity information of the source control of described initiation message in interface database, described auxiliary descriptor is sent to operation information generation module;
Accordingly, described operation information analysis module, also send for receiving operation information matching module the match is successful notification message, call function obtains the operation information of described initiation message, comprise the time of operation generation, the IP address of operation generation place terminal, the control operation causing message, the content of operation of initiation message control, the software information belonging to control, send to operation information generation module;
Described operation information generation module, for the operation information generating run record of the described initiation message that the auxiliary descriptor of the identity information association of the source control of described initiation message that sends according to operation information matching module and operation information analysis module send.
Operation acquisition method provided by the invention and system, by the identity information of form control and non-form control and the collection of auxiliary descriptor, by described identity information and auxiliary descriptor write interface database, obtain the initiation message of input equipment operational motion, the identity information that message obtains the source control of described initiation message is caused according to the Functional Analysis of described initiation message call, the identity information of source control of described initiation message is mated with the identity information in interface database, the match is successful, then illustrate it is the operation information needing to gather, generating run record, so, achieve the operation collection to form control and non-form control, be applicable to the operation collection to all controls, especially solving cannot to the operation collection of the non-form control in military commander system, greatly improve the experience of user.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that the present invention operates acquisition method;
Fig. 2 is the method flow schematic diagram will causing the identity information of source control of message and mate with the identity information in interface database in the present invention;
Fig. 3 is the schematic diagram of the operation note generated in the present invention;
Fig. 4 is the composition structural representation that the present invention operates acquisition system.
Embodiment
Basic thought of the present invention is: control type is divided into form control and non-form control, and described non-form control is under the jurisdiction of a certain form control; Obtain the identity information of form control and non-form control and auxiliary descriptor, by described identity information and auxiliary descriptor write interface database; Obtain the initiation message of input equipment operational motion, message is caused according to the Functional Analysis of described initiation message call, the identity information of source forms of described initiation message is mated with the identity information in interface database, if the match is successful, then illustrate it is the operation information needing to gather, generating run record.
Below in conjunction with drawings and the specific embodiments, the present invention is further detailed explanation.
Fig. 1 is the schematic flow sheet that the present invention operates acquisition method, as shown in Figure 1, comprises the following steps:
Step 101: obtain the identity information of control and auxiliary descriptor, by the identity information of described control and auxiliary descriptor write interface database;
Here, the identity information of described acquisition control and auxiliary descriptor comprise:
For form control, call function obtains the forms handle of described form control, utilize the identity information of form control described in forms handle acquiring, comprise described form control and be subordinate to the application information of application program and the forms information of described form control, now, the identity information of forms is the identity information of control;
For non-form control, call function obtains the forms handle that described non-form control is subordinate to forms, described in the forms handle acquiring utilizing described non-form control to be subordinate to forms, non-form control is subordinate to the identity information of forms, comprises described non-form control and is subordinate to the forms information that the application information being subordinate to application program of forms and described non-form control be subordinate to forms; Be subordinate to the region in forms by the described non-form control of control annotation tool mark, obtaining described non-form control and be subordinate to the area information in forms; Described non-form control is subordinate to the identity information of forms and described non-form control at the identity information being subordinate to the described non-form control of the composition of the area information in forms;
The auxiliary descriptor of described control is set, comprises type and the title of described control.
Here, described control type is that form control or non-form control are by the identification of System Programming interface function;
Wherein, described form control can be the control that the higher level lanquages such as Windows control or VC such as button, edit box, check box, tool bar, list box, combo box provide.
Further, described by the identity information of control and auxiliary descriptor write interface database comprise:
By in the application program table in described application information write interface database;
By in the identification control table in described forms information write interface database;
For non-form control, further, also need described control being subordinate in the mark control table in the write of the area information in forms interface database.
Concrete, if control type is forms, then utilize forms handle (Hwnd) executive system DLL (dynamic link library) function to obtain the application information being subordinate to application program in the identity information of described form control; Hwnd executive system DLL (dynamic link library) function is utilized to obtain forms information in the identity information of described form control;
Wherein, the application information being subordinate to application program described in comprises the title of the catalogue of application program, application program;
Wherein, described forms information comprises level count value, forms level titre, forms level class name, forms preorder, forms postorder;
Wherein, described forms level titre is forms and all title of title by hierarchical combination being subordinate to forms thereof;
Wherein, described forms level class is called forms and all class name of class name by hierarchical combination being subordinate to forms thereof;
Wherein, described level count value is the hierarchical informations of forms in parent form tree.
If control type is non-forms, equally, utilize described non-form control to be subordinate to the handle of forms (Hwnd) executive system DLL (dynamic link library) function to obtain described non-form control and be subordinate to the application information being subordinate to application program in the identity information of forms; The described non-form control of Hwnd executive system DLL (dynamic link library) function acquisition utilizing described non-form control to be subordinate to forms is subordinate to the forms information in the identity information of forms;
WH_MOUSE_LL hook is installed, obtain the pressing of mouse, lift the operation information with mobile messaging, described operation information sends to the process of control annotation tool to obtain reference position and the end position of mouse input by described WH_MOUSE_LL hook, obtains described non-form control and is being subordinate to the area information in forms;
Wherein, described non-form control comprises upper left side point X-coordinate, upper left side point Y-coordinate, identifies the length of non-form control, identifies the width of non-form control being subordinate to the area information in forms.
Step 102: the initiation message obtaining input equipment operational motion, causes message, obtains the identity information of the source control of described initiation message according to the Functional Analysis of described initiation message call;
Here, the initiation message of described acquisition input equipment operational motion, causes message according to the Functional Analysis of described initiation message call, and the identity information obtaining the source control of described initiation message comprises:
System hook mechanism is utilized to obtain the initiation message of input equipment operational motion, source control handle is obtained according to described initiation message, perform corresponding hook call back function according to described source control handle, analyze described initiation message and obtain the identity information of the source control of described initiation message; Wherein,
The source control type of described initiation message comprises form control and non-form control;
If the source control of described initiation message is form control, then the identity information obtaining the source control of described initiation message comprises the source control causing message and is subordinate to the application information of application program and the identity information of the forms information of the source control of initiation message as the source control of described initiation message; Wherein,
The application information that the source control of described initiation message is subordinate to application program comprises the catalogue of application program, the title of application program;
The forms information of the source control of described initiation message comprises level count value, forms level titre, forms level class name, forms preorder, forms postorder;
If the source control of described initiation message is non-form control, then the source control of the application information being subordinate to application program and initiation message that the source control that the identity information obtaining the source control of described initiation message comprises initiation message is subordinate to forms is subordinate to the identity information of forms information as the source control of described initiation message of forms; Wherein,
What the application information being subordinate to application program that the source control of described initiation message is subordinate to forms comprised that described source control is subordinate to forms is subordinate to the application catalog of application program, the title of application program;
The forms information that the source control of described initiation message is subordinate to forms comprises level count value, forms level titre, forms level class name, forms preorder, the forms postorder that described source control is subordinate to forms.
Concrete, the initiation message of described acquisition input equipment operational motion realizes by Windows hook (Hooks) acquisition all kinds operational motion being caused to message; Wherein, hook type mainly comprises following several:
WH_CALLWNDPROC hook, obtains the message being sent to object window;
WH_GETMESSAGE hook, obtains the message returned from GetMessage function or PeekMessage function, namely obtains the message be sent in message queue;
WH_KEYBOARD hook, obtains the related news of the keyboard operation returned by GetMessage function or PeekMessage function, namely obtains the keyboard operation message be input in message queue;
WH_MOUSE hook, the related news of the mouse input that acquisition GetMessage function or PeekMessage function return, namely obtain the mouse input message be input in message queue;
WH_SHELL hook, obtains the message caused when Windowsshell application program activates and topic window is set up or closed;
WH_SYSMSGFILTER hook, obtains the message caused all operations of the dialog box in all application programs, message box, menu bar, scroll bar.
Wherein, select to install by Systematical control and all or wherein concentrate hook type, for the acquisition to operational motion corresponding to described hook type.
Further, corresponding with above-mentioned six kinds of hook types hook call back function comprises:
LRESULTCALLBACKCallWndProc(intnCode, WPARAMwParam, LPARAMlParam) function, perform this call back function, analyze the message being sent to object control;
LRESULTCALLBACKGetMsgPro(intnCode, WPARAMwParam, LPARAMlParam) function, perform this call back function, analyze the message returned from GetMessage function or PeekMessage function, namely analyze the message be sent in message queue;
LRESULTCALLBACKKeyboardProc(intncode, WPARAMwParam, LPARAMlParam) function, perform this call back function, analyze the related news of the keyboard operation returned by GetMessage function or PeekMessage function, namely analyze the keyboard operation message be input in message queue;
LRESULTCALLBACKMouseProc(intnCode, WPARAMwParam, LPARAMlParam) function, perform this call back function, analyze the related news of the mouse action returned by GetMessage function or PeekMessage function, namely analyze the message that the mouse action be input in message queue causes;
LRESULTCALLBACKShellPro(intnCode, WPARAMwParam, LPARAMlParam) function, perform this call back function, analyze Windowsshell application program and activate and the message that topic window is set up or closedown causes;
LRESULTCALLBACKSysMsgProc(intnCode, WPARAMwParam, LPARAMlParam) function, perform this call back function, analyze the message that all operations of dialog box, message box, menu bar, scroll bar in all application programs is caused.
Further, cause Message Opcode information for some, needing to send assistance messages to source control window could obtain.The such as operation information of RichEdit control, needs to send WM_GETTEXT message to source control window, just can return the text message be input in RichEdit control, obtain the content of operation causing message control;
Again such as, in order to obtain tree node information, needing to send TVM_GETITEM message to source control window, the tree node information that operational motion causes position could be obtained.
Step 103 ~ step 104: the identity information of source control causing message is mated with the identity information in interface database, if the match is successful, then obtain the auxiliary descriptor associated with the identity information of the source control of described initiation message in interface database, call function obtains the operation information of described initiation message, according to the operation information generating run record of described auxiliary descriptor and described initiation message;
Here, described by the identity information matching process that causes in the identity information of source control of message and interface database as shown in Figure 2, comprise the following steps:
Step 103a: mated with the application information in the application program table in interface database by the application information caused in the identity information of the source control of message, if the match is successful, performs step 103b;
Here, first mate the application information in identity information, if there is the information consistent with the application information in the identity information of the source control causing message in the application program table in interface database, then illustrate that the match is successful;
Wherein, the application information of described coupling comprises: the catalogue of application program, the title of application program.
Step 103b: by the forms information in the identity information of the source control of described initiation message and the identification control table information matches in interface database, if the forms information in the identity information of the source control of described initiation message and forms information matches success corresponding with described application information in identification control table, perform step 103c;
Here, if there is the information consistent with the forms information in the identity information of the source control causing message in forms information corresponding with described application information in the identification control table in interface database, then illustrate that the match is successful;
Wherein, described forms information comprises: level count value, forms title level, forms class name level, forms preorder, forms postorder.
Step 103c: whether the source control judging described initiation message is non-form control, if the result judged is yes, performs step 103d ~ step 103e; Otherwise, directly perform step 103e: terminate coupling process, the match is successful;
Step 103d: the positional information being obtained operational motion according to operational motion by calling system DLL (dynamic link library) function, by the mark control table information matches in described positional information and interface database, if in the area information that described positional information is corresponding with described forms information in described mark control table, perform step 103e: terminate coupling process, the match is successful;
Here, if the source control of described initiation message is non-form control, need the area information of the source control of the described initiation message of coupling further.
Concrete, according to the position of operational motion point, by in area information corresponding with described forms information in the mark control table of this point of calling system DLL (dynamic link library) PtInRect function validates whether in interface database, if this point illustrates that in described area information the match is successful.
Further, identity information in the identity information and interface database of the source control of described initiation message is after the match is successful, obtain the auxiliary descriptor associated with the identity information of the source control of described initiation message in interface database, call function obtains the operation information of described initiation message, and the operation information generating run record according to described auxiliary descriptor and described initiation message comprises:
Obtain the auxiliary descriptor associated with the identity information of the source control of described initiation message in interface database, wherein, described auxiliary descriptor comprises type and the title of the source control of described initiation message;
Call function obtains the operation information of described initiation message, wherein, the operation information of described initiation message comprises the time of operation generation, the IP address operating generation place terminal, the control operation causing message, the content of operation of initiation message control, the software information belonging to control;
According to the operation information generating run record of described auxiliary descriptor and described initiation message.
Concrete, following data layout can be adopted to form operation note and to obtain corresponding operation information, generating run record:
Concrete operation note can be as shown in Figure 3.
Wherein, the property value that the initiation message of different operational motions obtains is had nothing in common with each other, such as, for the formation of the operation note of the keyboard operation be input in message queue, by the property value that corresponding hook call back function obtains, in conjunction with the concrete assignment of above-mentioned data amount check be:
Attribute strIPAddr assignment is the IP address that place main frame occurs in operation;
Attribute m_time assignment is the time that operation occurs;
Attribute strWndObject assignment is " Window (strClassName) ", and wherein, variable strClassName is obtained by executive system DLL (dynamic link library) function G etClassName;
Attribute strEventID, strEventPara1, strObjectID and strObjPara1 respectively assignment are " KeyEvent ", " KeyEvent parameter 1 ", " keyboard target " and " keyboard target component 1 ".
Fig. 4 is the composition structural representation that the present invention operates acquisition system, and as shown in Figure 4, this system comprises information acquisition end 41, interface database 42 and operation collection terminal 43; Wherein,
Described information acquisition end 41, for obtaining the identity information of control and auxiliary descriptor, by described identity information and auxiliary descriptor write interface database 42;
Described interface database 42, for storing the described identity information of information acquisition end 41 transmission and auxiliary descriptor;
Described operation collection terminal 43, obtains the initiation message of input equipment operational motion, analyzes described initiation message, obtain the identity information of the source control of described initiation message according to described initiation message call System Programming interface function; The identity information of the source control causing message is mated with the identity information in interface database 42, if the match is successful, then obtain the auxiliary descriptor associated with the identity information of the source control of described initiation message in interface database 42, call function obtains the operation information of described initiation message, according to the operation information generating run record of described auxiliary descriptor and described initiation message.
Further, described information acquisition end 41 comprises information identification module 411, information labeling module 412 and information and arranges module 413; Wherein,
Described information identification module 411, for when described control type is form control, call function obtains the forms handle of described form control, utilizes the identity information of form control described in forms handle acquiring, by the identity information of described form control write interface database 42; When described control type is non-form control, call function obtains the forms handle that described non-form control is subordinate to forms, described in the handle acquiring utilizing control to be subordinate to forms, non-form control is subordinate to the identity information of forms, described non-form control is subordinate to the identity information write interface database 42 of forms; Wherein, the identity information of described form control comprises application information and the forms information that form control is subordinate to application program;
Described information labeling module 412, for when described control type is non-form control, mark described non-form control and be subordinate to the region in forms, obtain described non-form control and be subordinate to the area information in forms, described non-form control is being subordinate to the write of the area information in forms interface database 42, thus, in interface database 42, the described control of write is subordinate to the identity information of forms and control and is being subordinate to the area information in forms and forms the identity information of non-form control;
Described information arranges module 413, for arranging the auxiliary descriptor of described control, comprises type and the title of described control, by the auxiliary descriptor write interface database 42 of described control.
Further, described interface database 42, specifically for the auxiliary descriptor storing application program table, identify control table, mark control table and described control; Wherein,
Described application program table stores described application information;
Described identification control table stores described forms information;
Described mark control table stores described non-form control and is being subordinate to the area information in forms.
Further, described operation collection terminal 43 comprises operation information acquisition module 431, operation information analysis module 432, operation information matching module 433 and operation information generation module 434; Wherein,
Described operation information acquisition module 431, for obtaining the initiation message of input equipment operational motion, sends to operation information analysis module 432 by described initiation message;
Described operation information analysis module 432, message is caused for described in the initiation message call Functional Analysis of sending according to operation information acquisition module 431, obtain the identity information of the source control of described initiation message, and the identity information of described source control is sent to operation information matching module 433;
Described operation information matching module 433, identity information for the described source control sent by operation information analysis module 432 mates with the identity information in interface database 42, when the match is successful, send a notification message to operation information analysis module 432, and obtain the auxiliary descriptor associated with the identity information of the source control of described initiation message in interface database 42, described auxiliary descriptor is sent to operation information generation module 434;
Accordingly, described operation information analysis module 432, also for receive operation information matching module 433 send the match is successful notification message time, call function obtains the operation information of described initiation message, comprise the time of operation generation, the IP address of operation generation place terminal, the control operation causing message, the content of operation of initiation message control, the software information belonging to control, send to operation information generation module 434;
Described operation information generation module 434, for the operation information generating run record of the described initiation message that the auxiliary descriptor of the identity information association of the source control of described initiation message that sends according to operation information matching module 433 and operation information analysis module 432 send.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and scope of the present invention, equivalent replacement and improvement etc., be all included within protection scope of the present invention.

Claims (2)

1. operate an acquisition method, it is characterized in that, the method comprises:
Obtain the identity information of control and auxiliary descriptor, by the identity information of described control and auxiliary descriptor write interface database;
Obtain the initiation message of input equipment operational motion, according to the Functional Analysis of described initiation message call, cause message, obtain the identity information of the source control of described initiation message;
The identity information of source control causing message is mated with the identity information in interface database, if the match is successful, then obtain the auxiliary descriptor associated with the identity information of the source control of described initiation message in interface database, call function obtains the operation information of described initiation message, according to the operation information generating run record of described auxiliary descriptor and described initiation message;
Wherein, the identity information of described acquisition control and auxiliary descriptor comprise:
For form control, call function obtains the forms handle of described form control, utilizes the identity information of form control described in forms handle acquiring, comprises described form control and is subordinate to the application information of application program and the forms information of described form control;
For non-form control, call function obtains the forms handle that described non-form control is subordinate to forms, described in the forms handle acquiring utilizing described non-form control to be subordinate to forms, non-form control is subordinate to the identity information of forms, comprises described non-form control and is subordinate to the forms information that the application information being subordinate to application program of forms and described non-form control be subordinate to forms; Be subordinate to the region in forms by the described non-form control of control annotation tool mark, obtaining described non-form control and be subordinate to the area information in forms; Described non-form control is subordinate to the identity information of forms and described non-form control at the identity information being subordinate to the described non-form control of the composition of the area information in forms;
The auxiliary descriptor of described control is set, comprises type and the title of described control;
Wherein, described by the identity information of described control and auxiliary descriptor write interface database comprise:
By in the application program table in described application information write interface database;
By in the identification control table in described forms information write interface database;
For non-form control, further, described control is being subordinate in the mark control table in the write of the area information in forms interface database;
Wherein, describedly according to the Functional Analysis of described initiation message call, cause message, the identity information obtaining the source control of described initiation message comprises:
Described initiation message is analyzed according to described initiation message call System Programming interface function, if the source control of described initiation message is form control, then the source control obtaining described initiation message is subordinate to the identity information of forms information as the source control of described initiation message of the application information of application program and the source control of described initiation message;
If the source control of described initiation message is non-form control, then the source control of the application information being subordinate to application program and described initiation message that the source control obtaining described initiation message is subordinate to forms is subordinate to the identity information of forms information as the source control of described initiation message of forms;
Wherein, described coupling with the identity information in interface database by the identity information of source control of initiation message, comprises:
Application information in the identity information of the source control of described initiation message is mated with the application information in the application program table in interface database;
If the match is successful, then the forms information in the identity information of the source control of described initiation message is mated with the identification control table in interface database;
If the forms information in the identity information of the source control of described initiation message and forms information matches success corresponding with described application information in identification control table, whether the source control then judging described initiation message is non-form control, if the result judged is no, then terminate coupling process;
If the result judged is yes, then obtained the positional information of operational motion by calling system DLL (dynamic link library) function according to operational motion, described positional information is mated with the mark control table in interface database, if in the area information that described positional information is corresponding with described forms information in described mark control table, then the match is successful, terminates coupling process;
Wherein, the auxiliary descriptor associated with the identity information of the source control of described initiation message in described acquisition interface database, call function obtains the operation information of described initiation message, and the operation information generating run record according to described auxiliary descriptor and described initiation message comprises:
Obtain the auxiliary descriptor associated with the identity information of the source control of described initiation message in interface database, wherein, described auxiliary descriptor comprises type and the title of the source control of described initiation message;
Call function obtains the operation information of described initiation message, wherein, the operation information of described initiation message comprises the time of operation generation, the network interconnection Protocol IP address operating generation place terminal, the control operation causing message, the content of operation of initiation message control, the software information belonging to control;
According to the operation information generating run record of described auxiliary descriptor and described initiation message.
2. operate an acquisition system, it is characterized in that, this system comprises information acquisition end, interface database and operation collection terminal; Wherein,
Described information acquisition end, for obtaining the identity information of control and auxiliary descriptor, by described identity information and auxiliary descriptor write interface database;
Described interface database, for storing the described identity information of information acquisition end transmission and auxiliary descriptor;
Described operation collection terminal, obtains the initiation message of input equipment operational motion, causes message, obtain the identity information of the source control of described initiation message according to the Functional Analysis of described initiation message call; The identity information of source control causing message is mated with the identity information in interface database, if the match is successful, then obtain the auxiliary descriptor associated with the identity information of the source control of described initiation message in interface database, call function obtains the operation information of described initiation message, according to the operation information generating run record of described auxiliary descriptor and described initiation message;
Wherein, described information acquisition end comprises information identification module, information labeling module and information and arranges module; Wherein,
Described information identification module, for when described control type is form control, call function obtains the forms handle of described form control, utilizes the identity information of form control described in forms handle acquiring, by the identity information of described form control write interface database; When described control type is non-form control, call function obtains the forms handle that described non-form control is subordinate to forms, described in the handle acquiring utilizing control to be subordinate to forms, non-form control is subordinate to the identity information of forms, described non-form control is subordinate to the identity information write interface database of forms; Wherein, the identity information of described form control comprises application information and the forms information that form control is subordinate to application program;
Described information labeling module, for when described control type is non-form control, mark described non-form control and be subordinate to the region in forms, obtain described non-form control and be subordinate to the area information in forms, described non-form control is being subordinate to the write of the area information in forms interface database;
Described information arranges module, for arranging the auxiliary descriptor of described control, comprises type and the title of described control, by the auxiliary descriptor write interface database of described control;
Described interface database, specifically for the auxiliary descriptor storing application program table, identify control table, mark control table and described control; Wherein, described application program table stores described application information; Described identification control table stores described forms information; Described mark control table stores described non-form control and is being subordinate to the area information in forms;
Wherein, described operation collection terminal comprises operation information acquisition module, operation information analysis module, operation information matching module and operation information generation module; Wherein,
Described operation information acquisition module, for obtaining the initiation message of input equipment operational motion, sends to operation information analysis module by described initiation message;
Described operation information analysis module, message is caused for described in the initiation message call Functional Analysis of sending according to operation information acquisition module, obtain the identity information of the source control of described initiation message, and the identity information of described source control is sent to operation information matching module;
Described operation information matching module, identity information for the described source control sent by operation information analysis module mates with the identity information in interface database, when the match is successful, send a notification message to operation information analysis module, and obtain the auxiliary descriptor associated with the identity information of the source control of described initiation message in interface database, described auxiliary descriptor is sent to operation information generation module;
Accordingly, described operation information analysis module, also send for receiving operation information matching module the match is successful notification message, call function obtains the operation information of described initiation message, comprise the time of operation generation, the IP address of operation generation place terminal, the control operation causing message, the content of operation of initiation message control, the software information belonging to control, send to operation information generation module;
Described operation information generation module, for the operation information generating run record of the described initiation message that the auxiliary descriptor of the identity information association of the source control of described initiation message that sends according to operation information matching module and operation information analysis module send.
CN201310031157.6A 2013-01-25 2013-01-25 A kind of operation acquisition method and system Expired - Fee Related CN103135986B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310031157.6A CN103135986B (en) 2013-01-25 2013-01-25 A kind of operation acquisition method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310031157.6A CN103135986B (en) 2013-01-25 2013-01-25 A kind of operation acquisition method and system

Publications (2)

Publication Number Publication Date
CN103135986A CN103135986A (en) 2013-06-05
CN103135986B true CN103135986B (en) 2015-11-25

Family

ID=48495858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310031157.6A Expired - Fee Related CN103135986B (en) 2013-01-25 2013-01-25 A kind of operation acquisition method and system

Country Status (1)

Country Link
CN (1) CN103135986B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104881350B (en) * 2015-04-30 2019-03-19 百度在线网络技术(北京)有限公司 For determining user experience and assisting the method and apparatus for determining user experience

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241466A (en) * 2007-02-08 2008-08-13 深圳迈瑞生物医疗电子股份有限公司 Embedded software test method and system
CN101930399A (en) * 2010-08-16 2010-12-29 于秀山 Method for recording software test
CN102664910A (en) * 2012-03-07 2012-09-12 深圳市深信服电子科技有限公司 Method, client and server for correction of remote application user operation
CN102830958A (en) * 2011-06-16 2012-12-19 奇智软件(北京)有限公司 Method and system for obtaining interface control information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241466A (en) * 2007-02-08 2008-08-13 深圳迈瑞生物医疗电子股份有限公司 Embedded software test method and system
CN101930399A (en) * 2010-08-16 2010-12-29 于秀山 Method for recording software test
CN102830958A (en) * 2011-06-16 2012-12-19 奇智软件(北京)有限公司 Method and system for obtaining interface control information
CN102664910A (en) * 2012-03-07 2012-09-12 深圳市深信服电子科技有限公司 Method, client and server for correction of remote application user operation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于模型的软件测试》;杨朝红 等;《北京化工大学学报》;20071231;第34卷(第S1期);第85-88页 *

Also Published As

Publication number Publication date
CN103135986A (en) 2013-06-05

Similar Documents

Publication Publication Date Title
CN111930635B (en) Swagger-based rapid automatic testing method and system
CN107704395B (en) Cloud platform automation test implementation method and system based on Openstack
CN108351636B (en) Engineering design tool, system and module
CN108845940B (en) Enterprise-level information system automatic function testing method and system
CN105335293A (en) Automatic testing system and method based on parallel ports
US7926024B2 (en) Method and apparatus for managing complex processes
CN101025686A (en) Automation test system and test script generating and operating method
CN111126781A (en) RPA service flow establishing method and system
CN102609264A (en) Method and device for generating calling codes by calling application programming interfaces
CN101930399A (en) Method for recording software test
CN107480036A (en) Automatic test approach, device, storage medium and the terminal of iOS Mobile solutions
CN104199647A (en) Visualization system and implementation method based on IBM host
US8024706B1 (en) Techniques for embedding testing or debugging features within a service
CN109408763B (en) Method and system for managing resume of different templates
CN115658529A (en) Automatic testing method for user page and related equipment
CN113467771B (en) Model-based industrial edge cloud collaboration system and method
CN113612654A (en) Vehicle-mounted gateway function testing method based on database
CN102821211A (en) Automatic testing method and device for communication network elements
CN112464620A (en) Implementation method and implementation system of financial rule engine
JP2022541986A (en) Apparatus and method, equipment and medium for implementing a customized artificial intelligence production line
CN109445384B (en) Multi-device control system
CN111444109B (en) Mobile terminal UI automatic test method and system
CN111464350B (en) Method and system for managing heterogeneous brand network equipment
CN103135986B (en) A kind of operation acquisition method and system
CN115016960B (en) Configurable RPA robot full-flow information notification processing method and system

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
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: 20151125

Termination date: 20200125