CN108920352A - For obtaining the method and device of information - Google Patents

For obtaining the method and device of information Download PDF

Info

Publication number
CN108920352A
CN108920352A CN201810841997.1A CN201810841997A CN108920352A CN 108920352 A CN108920352 A CN 108920352A CN 201810841997 A CN201810841997 A CN 201810841997A CN 108920352 A CN108920352 A CN 108920352A
Authority
CN
China
Prior art keywords
data
application
tested
port
mentioned
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810841997.1A
Other languages
Chinese (zh)
Other versions
CN108920352B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810841997.1A priority Critical patent/CN108920352B/en
Publication of CN108920352A publication Critical patent/CN108920352A/en
Application granted granted Critical
Publication of CN108920352B publication Critical patent/CN108920352B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present application discloses the method and device for obtaining information.One specific embodiment of this method includes:The running state information of terminal device is obtained by data channel, wherein the data that above-mentioned data channel is used to carry out the data of specified data type with above-mentioned terminal device are transmitted;At least one process data of application to be tested is obtained from above-mentioned running state information;In response to the operational order of the above-mentioned application to be tested of correspondence monitored, the operating parameter of respective operations instruction is obtained according to above-mentioned at least one process data.This embodiment improves the accuracys and validity of the operating parameter for obtaining application to be tested.

Description

For obtaining the method and device of information
Technical field
The invention relates to technical field of data processing, and in particular to for obtaining the method and device of information.
Background technique
With the development of science and technology, the data-handling capacity of intelligent terminal is stronger and stronger.User can pass through intelligent terminal The corresponding information handling task of various application executions of upper installation greatly improves the information processing effect of user job and life Rate.In order to preferably provide services to the user, before and after application publication, technical staff needs to being mounted in different intelligent equipment Application tested, with eliminate application there are the problem of.
Summary of the invention
The embodiment of the present application proposes a kind of for obtaining the method and device of information.
In a first aspect, the embodiment of the present application provides a kind of method for obtaining information, this method includes:Pass through data Channel obtains the running state information of above-mentioned terminal device, wherein above-mentioned data channel with above-mentioned terminal device for being referred to Determine the data transmission of the data of data type;At least one process number of application to be tested is obtained from above-mentioned running state information According to;In response to the operational order of the above-mentioned application to be tested of correspondence monitored, according to the acquisition pair of above-mentioned at least one process data Answer the operating parameter of operational order.
In some embodiments, above-mentioned data channel is constructed by following steps:It is surveyed to above-mentioned terminal device sending port Try data, wherein above-mentioned port test data are used to detect the port of the data of above-mentioned terminal device output specified data type; In response to detecting the port information of corresponding above-mentioned port test data, specified data type and the corresponding specified data class are established Corresponding relationship between the port information of type;Based on above-mentioned corresponding relationship, the data channel between above-mentioned terminal device is established.
In some embodiments, the above-mentioned at least one process number that application to be tested is obtained from above-mentioned running state information According to, including:According to the attribute information of above-mentioned application to be tested, above-mentioned application to be tested is filtered out from above-mentioned running state information At least one process data, wherein above-mentioned attribute information includes at least one of following:It is the title of application to be tested, to be tested The data type of application, the runing time of application to be tested.
In some embodiments, the above-mentioned operational order in response to the above-mentioned application to be tested of correspondence monitored, according to upper The operating parameter that at least one process data obtains respective operations instruction is stated, including:The operational attribute of inquiry operation instruction, it is above-mentioned Operational attribute includes at least one of following:The title of operational order, operational order issue the time;It is determined according to aforesaid operations attribute The changed process data of data in above-mentioned at least one process data;According to the changed process data of above-mentioned data The output data of at least one port of above-mentioned terminal device is obtained with operational attribute;For the end at least one above-mentioned port Mouthful, the data type of output data corresponding with the port is inquired according to above-mentioned corresponding relationship and the port information of the port;It is logical Cross the operating parameter of the data type building respective operations instruction of output data and corresponding output data.
In some embodiments, the above method further includes:The test number of above-mentioned application to be tested is constructed according to operating parameter According to.
Second aspect, the embodiment of the present application provide a kind of for obtaining the device of information, which includes:Operating status Information acquisition unit is configured to obtain the running state information of above-mentioned terminal device by data channel, wherein above-mentioned data The data that channel is used to carry out the data of specified data type with above-mentioned terminal device are transmitted;Process data acquiring unit is matched It is set at least one process data that application to be tested is obtained from above-mentioned running state information;Operating parameter acquiring unit, quilt It is configured to the operational order of the above-mentioned application to be tested of the correspondence monitored, is obtained according to above-mentioned at least one process data The operating parameter of respective operations instruction.
In some embodiments, above-mentioned apparatus includes data channel construction unit, is configured to construct data channel, above-mentioned Data channel construction unit includes:Port test data transmission sub-unit is configured to survey to above-mentioned terminal device sending port Try data, wherein above-mentioned port test data are used to detect the port of the data of above-mentioned terminal device output specified data type; Corresponding relationship constructs subelement, in response to detecting the port information of corresponding above-mentioned port test data, is configured to foundation and refers to Determine the corresponding relationship between data type and the port information of the corresponding specified data type;Data channel constructs subelement, quilt It is configured to establish the data channel between above-mentioned terminal device based on above-mentioned corresponding relationship.
In some embodiments, above-mentioned process data acquiring unit includes:Process data obtains subelement, is configured to root According to the attribute information of above-mentioned application to be tested, at least one of above-mentioned application to be tested is filtered out from above-mentioned running state information Process data, wherein above-mentioned attribute information includes at least one of following:The title of application to be tested, the data of application to be tested Type, the runing time of application to be tested.
In some embodiments, above-mentioned operating parameter acquiring unit includes:Operational attribute inquires subelement, is configured to look into The operational attribute of operational order is ask, aforesaid operations attribute includes at least one of following:The title of operational order, operational order issue Time;Process data identifies subelement, is configured to be determined in above-mentioned at least one process data according to aforesaid operations attribute The changed process data of data;Output data obtains subelement, is configured to according to the changed process of above-mentioned data Data and operational attribute obtain the output data of at least one port of above-mentioned terminal device;Data type inquires subelement, right Port at least one above-mentioned port is configured to according to above-mentioned corresponding relationship and the inquiry of the port information of the port and is somebody's turn to do The data type of the corresponding output data in port;Operating parameter obtains subelement, is configured to defeated by output data and correspondence The operating parameter of the data type building respective operations instruction of data out.
In some embodiments, above-mentioned apparatus further includes:Test data construction unit is configured to according to operating parameter structure Build the test data of above-mentioned application to be tested.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including:One or more processors;Memory, One or more programs are stored thereon with, when said one or multiple programs are executed by said one or multiple processors, are made It obtains said one or multiple processors executes the method for obtaining information of above-mentioned first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, It is characterized in that, which realizes the method for obtaining information of above-mentioned first aspect when being executed by processor.
The method and device provided by the embodiments of the present application for being used to obtain information, obtains above-mentioned end by data channel first The running state information of end equipment;Then, at least one process data of application to be tested is obtained from running state information;Most Afterwards, in the operational order of the correspondence application to be tested monitored, respective operations instruction is obtained according at least one process data Operating parameter, improve the accuracy and validity for obtaining the operating parameter of application to be tested.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the application can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for obtaining information of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the method for obtaining information of the application;
Fig. 4 is the flow chart according to another embodiment of the method for obtaining information of the application;
Fig. 5 is the structural schematic diagram according to one embodiment of the device for obtaining information of the application;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can the method for obtaining information using the embodiment of the present application or the device for obtaining information Exemplary system architecture 100.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out Send message etc..Various applications to be tested can be installed, such as web browser to be tested is answered on terminal device 101,102,103 With, shopping class to be tested application, searching class to be tested application, instant messaging tools to be tested, mailbox client to be tested, to be measured Try social platform software etc..
Terminal device 101,102,103 can be hardware, be also possible to software.When terminal device 101,102,103 is hard When part, it can be the various electronic equipments for being equipped with application to be tested and data being supported to transmit, including but not limited to intelligent hand Machine, tablet computer, E-book reader, pocket computer on knee and desktop computer etc..When terminal device 101,102, 103 when being software, may be mounted in above-mentioned cited electronic equipment.Multiple softwares or software module may be implemented into it (such as providing Distributed Services), also may be implemented into single software or software module.It is not specifically limited herein.
Server 105 can be to provide the server of various services, such as to installing on terminal device 101,102,103 The server that application to be tested is tested.The running state information of the available terminal device 101,102,103 of server, and The operating parameter of application to be tested on terminal device 101,102,103 is obtained according to running state information.
It should be noted that the method provided by the embodiment of the present application for obtaining information is generally held by server 105 Row, correspondingly, the device for obtaining information is generally positioned in server 105.
It should be noted that server can be hardware, it is also possible to software.When server is hardware, may be implemented At the distributed server cluster that multiple servers form, individual server also may be implemented into.It, can when server is software To be implemented as multiple softwares or software module (such as providing Distributed Services), single software or software also may be implemented into Module.It is not specifically limited herein.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the process of one embodiment of the method for obtaining information according to the application is shown 200.The method for being used to obtain information includes the following steps:
Step 201, the running state information of terminal device is obtained by data channel.
It in the present embodiment, can be with for obtaining the executing subject (such as server 105 shown in FIG. 1) of the method for information It carries out receiving operating status letter using the terminal of test using it from user by wired connection mode or radio connection Breath.Wherein, running state information may include at least one of following:Hardware status information, application state information, data processing shape State information.It should be pointed out that above-mentioned radio connection can include but is not limited to 3G/4G connection, WiFi connection, bluetooth company Connect, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection and other it is currently known or in the future exploitation Radio connection.
When existing method is treated test application and is tested, not only need to establish by various data lines be equipped with it is to be tested Data connection between the smart machine of application and the server of test application to be tested, it is also necessary to obtain the port of smart machine Information.On the one hand, various data lines limit the distance between smart machine and server higher;Smart machine and server it Between hardware interface it is limited, influence is also constituted on the quantity of data line;In addition, before each test, it is also necessary to data line Connection status is checked.On the other hand, in order to guarantee the safety of intelligent terminal, the manufacturer of intelligent terminal is usually to intelligent end The logic port at end etc. has carried out safe handling (do not inform or hide etc.), to prevent virus attack or by other means to intelligence The illegal use of energy terminal.Therefore, existing method is not easy to obtain the accurately and effectively operation ginseng of application to be tested on intelligent terminal Number is unfavorable for treating test application and be tested.
For this purpose, the executing subject of the application can establish wired or wireless connection with terminal device first.Then pass through again Data channel obtains the running state information of terminal device.Wherein, data channel can be used for being specified with terminal device The data of the data of data type are transmitted.Specified data type according to it is actual it is to be tested application and test purpose depending on, this Place no longer repeats one by one.
In some optional implementations of the present embodiment, above-mentioned data channel is constructed by following steps:
The first step, to above-mentioned terminal device sending port test data.
The executing subject of the application is tested to the application to be tested being mounted on terminal device 101,102,103 Before, connection can be established by wired or wireless mode and terminal device 101,102,103 first.In practice, it is same to Test application is possibly mounted on the terminal device 101,102,103 of different operating system or different brands.And different terminal The operating system and/or system application of different type or different editions can be installed, this is allowed in equipment 101,102,103 The manufacturer of terminal device 101,102,103 is logical to the setting of the port (such as logic port) of terminal device 101,102,103 It is often different.For this purpose, the executing subject of the application is after establishing connection with terminal device 101,102,103, it can be to terminal 101,102,103 sending port test data of equipment.Wherein, above-mentioned port test data can be used for detecting above-mentioned terminal device Export the port of the data of specified data type.For example, executing subject can send a certain spy to terminal device 101,102,103 Determine the data of type, the certain types of data can only a certain specified data type of (or main) output (such as can be battery Temperature data) data.So that executing subject monitoring exports the port of the data of the specified data type.
Second step, in response to detecting the port information of corresponding above-mentioned port test data, establish specified data type with Corresponding relationship between the port information of the corresponding specified data type.
In general, after terminal device 101,102,103 receives above-mentioned port test data, it can be by port test data pair The data for the specified data type answered are exported from a certain (a little) ports.Executing subject can detecte output specified data type The port of data and port information.Later, executing subject can also pass through other port test data acquisitions to corresponding end Message breath.Finally, executing subject can establish between specified data type and the port information of the corresponding specified data type Corresponding relationship.Wherein, port information may include the information such as port name, port numbering, port position.In general, corresponding relationship It can be stored in executing subject by forms such as mapping tables.
Third step is based on above-mentioned corresponding relationship, establishes the data channel between above-mentioned terminal device.
After obtaining above-mentioned corresponding relationship, executing subject can establish executing subject and terminal device according to corresponding relationship 101, the data channel on 102,103 between corresponding ports.
Step 202, at least one process data of application to be tested is obtained from above-mentioned running state information.
After the running state information for getting terminal device 101,102,103, executing subject can be from running state information In get at least one process data of application to be tested on terminal device 101,102,103.
It is above-mentioned that be tested answer is obtained from above-mentioned running state information in some optional implementations of the present embodiment At least one process data may include:According to the attribute information of above-mentioned application to be tested, from above-mentioned running state information In filter out at least one process data of above-mentioned application to be tested.
In general, there is the attribute different from other application to believe for each application being mounted on terminal device 101,102,103 Breath.Wherein, the attribute information of above-mentioned application to be tested may include at least one of following:It is the title of application to be tested, to be tested The data type of application, the runing time of application to be tested.Corresponding, executing subject can be believed according to the attribute of application to be tested Breath filters out at least one process data of the application to be tested from running state information.
Step 203, in response to the operational order of the above-mentioned application to be tested of the correspondence monitored, according to above-mentioned at least one into The operating parameter of journey data acquisition respective operations instruction.
It is tested to treat the properties of test application, user can open on terminal device 101,102,103 After moving application to be tested, treats test application and carry out various operations.Executing subject can monitor the corresponding operation of every kind of operation Instruction.In addition, executing subject can also be answered independently to be tested in the case where no user treats test application and operates With operational order is sent, so that application to be tested carries out corresponding data processing.Terminal device 101,102,103 can pass through The corresponding data that the operational order received treats test application carries out data processing, and passes through the process data of application to be tested It embodies.Executing subject can obtain the operating parameter of respective operations instruction according to the process data of application to be tested.Its In, operating parameter may include at least one of following:Processor utilization rate, EMS memory occupation amount etc..It to be tested is answered according to actual With herein operating parameter can be other parameters, no longer repeat one by one.
In some optional implementations of the present embodiment, the above-mentioned above-mentioned application to be tested of correspondence in response to monitoring Operational order, according to above-mentioned at least one process data obtain respective operations instruction operating parameter may include following step Suddenly:
The first step, the operational attribute of inquiry operation instruction.
After operational order issues, executing subject can inquire the operational attribute of operational order.Wherein, aforesaid operations category Property may include at least one of following:The title of operational order, operational order issue the time.For example, when user treats survey manually When trying application operating, application to be tested can determine corresponding operational order depending on the user's operation.Executing subject can monitor The time of user's operation, and further monitor and execute the behaviour such as title of operational order in the time terminal device 101,102,103 Make attribute.When executing subject issues operational order, executing subject can be directly obtained the operational attribute of operational order.
Second step determines the changed process of data in above-mentioned at least one process data according to aforesaid operations attribute Data.
Application to be tested can be corresponding at least one process data.Terminal device 101,102,103 refers in execution operation When enabling, one or more process data in the process data of corresponding application to be tested can change.For this purpose, executing subject can Changed process data is determined to issue the operational attributes such as time according to the title of operational order, operational order.These hairs The process data for changing, which can consider, has corresponding relationship with operational order.
Third step obtains above-mentioned terminal device at least according to the changed process data of above-mentioned data and operational attribute The output data of a port.
Seen from the above description, executing subject can get port according to the port of the data of output specified data type Information.The data of the specified data type of terminal device 101,102,103 can be transferred to executing subject by data channel.When true After having determined the changed process data of data and operational attribute, executing subject can monitor terminal device by data channel 101, the data of 102,103 corresponding ports output.In practice, the usually operation simultaneously of terminal device 101,102,103 has multiple Using.When only running to be tested in application, the operating system on terminal device 101,102,103 may also be exported and be answered with to be tested The same or similar output data of operational order.For this purpose, the executing subject of the application can be changed according to data Whether process data and operational attribute are corresponding with the operational order of application to be tested come the data for determining port output, and obtain in turn Get the output data of at least one port.For example, executing subject can be determined according to the changed process data of data Which data is changed;Then, executing subject can issue the time according to the operational order of operational attribute and/or operation refers to The information such as the title of order filter out output data corresponding with the operational order of application to be tested from corresponding port.
4th step believes the port at least one above-mentioned port according to the port of above-mentioned corresponding relationship and the port Breath inquires the data type of output data corresponding with the port.
After getting the output data of port, executing subject can inquire corresponding relationship, and the determining end with output data The corresponding data type of mouth.
5th step is joined by the operation that the data type of output data and corresponding output data constructs respective operations instruction Number.
Executing subject can will construct respective operations instruction by the data type of output data and corresponding output data Operating parameter.For example, port A outputs data 20, the data type of corresponding ports A is that internal storage data is (single in mapping table Million) position can be.Then executing subject can construct operating parameter " 20,000,000 " by " 20 " and " internal storage data ".Illustrate, it is corresponding whole End equipment 101,102,103 occupies the memory headroom of " 20,000,000 " when executing the operational order of application to be tested.
With continued reference to the signal that Fig. 3, Fig. 3 are according to the application scenarios of the method for obtaining information of the present embodiment Figure.In the application scenarios of Fig. 3, server 105 (executing subject) can be led to by the data realized by wireless network 104 first The running state information of road acquisition terminal device 102;Then, server 105 can get terminal from running state information At least one process data of the application to be tested in equipment 102;Finally, server 105 can be by data channel to be measured Examination application sends operational order, and the operating parameter instructed according to the respective operations that process data gets application to be tested.Fig. 3 In, operating parameter includes parameter A and parameter B, and the unit of parameter A and parameter B can be million (M).Server 105 is available to be arrived Parameter A and parameter B versus time curve, time can be the second (t).
The method provided by the above embodiment of the application passes through the operation shape that data channel obtains above-mentioned terminal device first State information;Then, at least one process data of application to be tested is obtained from running state information;Finally, monitoring When the operational order of corresponding application to be tested, the operating parameter of respective operations instruction is obtained according at least one process data, is mentioned The high accuracy and validity of the operating parameter of acquisition application to be tested.
With continued reference to Fig. 4, the process of one embodiment of the method for obtaining information according to the application is shown 400.The method for being used to obtain information includes the following steps:
Step 401, the running state information of terminal device is obtained by data channel.
The content of step 401 is identical as the content of above-mentioned steps 201, and details are not described herein again.
Step 402, at least one process data of application to be tested is obtained from above-mentioned running state information.
The content of step 402 is identical as the content of above-mentioned steps 202, and details are not described herein again.
Step 403, in response to the operational order of the above-mentioned application to be tested of the correspondence monitored, according to above-mentioned at least one into The operating parameter of journey data acquisition respective operations instruction.
The content of step 403 is identical as the content of above-mentioned steps 203, and details are not described herein again.
Step 404, the test data of above-mentioned application to be tested is constructed according to operating parameter.
After getting the corresponding operating parameter of operational order of application to be tested, executing subject can pass through operating parameter structure Build test data.It can be more according to factors, test datas such as actual application, operational order and test targets to be tested Kind, it no longer repeats one by one herein.
Due to constructing data channel, establish specified data type and the port information of the corresponding specified data type it Between corresponding relationship.A series of operational order can be locally located in executing subject in executing subject, so that this is a series of Operational order is in a certain order or incidence relation is automatically transmitted on terminal device 101,102,103 by data channel Application to be tested.Later, the operating parameter that executing subject can be got by data channel constructs test data automatically, realizes The automatic test for treating test application, substantially increases the testing efficiency for treating test application.Meanwhile data channel can be direct The output data of the operational order of corresponding application to be tested is returned to, executing subject can construct respective operations according to output data and refer to The operating parameter of order, and test data is constructed in turn, improve the accuracy for obtaining test data.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides one kind for obtaining letter One embodiment of the device of breath, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer For in various electronic equipments.
As shown in figure 5, the device 500 for obtaining information of the present embodiment may include:Running state information obtains single Member 501, process data acquiring unit 502 and operating parameter acquiring unit 503.Wherein, 501 quilt of running state information acquiring unit It is configured to obtain the running state information of terminal device by data channel, wherein above-mentioned data channel is used for and above-mentioned terminal Equipment carries out the data transmission of the data of specified data type;Process data acquiring unit 502 is configured to from above-mentioned operation shape At least one process data of application to be tested is obtained in state information;Operating parameter acquiring unit 503 is configured in response to supervise The operational order of the above-mentioned application to be tested of the correspondence measured obtains respective operations instruction according to above-mentioned at least one process data Operating parameter.
In some optional implementations of the present embodiment, the device 500 for obtaining information may include that data are logical Road construction unit (not shown), is configured to construct data channel, and above-mentioned data channel construction unit may include:Port Test data transmission sub-unit (not shown), corresponding relationship building subelement (not shown) and data channel building Unit (not shown).Wherein, port test data transmission sub-unit is configured to survey to above-mentioned terminal device sending port Try data, wherein above-mentioned port test data are used to detect the port of the data of above-mentioned terminal device output specified data type; Corresponding relationship constructs subelement, in response to detecting the port information of corresponding above-mentioned port test data, is configured to foundation and refers to Determine the corresponding relationship between data type and the port information of the corresponding specified data type;Data channel building subelement is matched It is set to based on above-mentioned corresponding relationship, establishes the data channel between above-mentioned terminal device.
In some optional implementations of the present embodiment, above-mentioned process data acquiring unit 502 may include:Process Data acquisition subelement (not shown) is configured to the attribute information according to above-mentioned application to be tested, from above-mentioned operation shape At least one process data of above-mentioned application to be tested is filtered out in state information, wherein above-mentioned attribute information include it is following at least One:The title of application to be tested, the data type of application to be tested, the runing time of application to be tested.
In some optional implementations of the present embodiment, above-mentioned operating parameter acquiring unit 503 may include:Operation Attribute query subelement (not shown), process data identification subelement (not shown), output data obtain subelement (not shown), data type inquiry subelement (not shown) and operating parameter obtain subelement (not shown). Wherein, operational attribute inquiry subelement be configured to inquiry operation instruction operational attribute, aforesaid operations attribute include with down toward One item missing:The title of operational order, operational order issue the time;Process data identification subelement is configured to according to aforesaid operations Attribute determines the changed process data of data in above-mentioned at least one process data;Output data obtains subelement and is matched It is set at least one port that above-mentioned terminal device is obtained according to the changed process data of above-mentioned data and operational attribute Output data;Data type inquiry subelement is configured to according to above-mentioned correspondence the port at least one above-mentioned port The port information of relationship and the port inquires the data type of output data corresponding with the port;Operating parameter obtains subelement It is configured to construct the operating parameter of respective operations instruction by the data type of output data and corresponding output data.
In some optional implementations of the present embodiment, the device 500 for obtaining information can also include:Test Data construction unit (not shown) is configured to construct the test number of above-mentioned application to be tested according to above-mentioned operating parameter According to.
The present embodiment additionally provides a kind of electronic equipment, including:One or more processors;Memory is stored thereon with One or more programs, when said one or multiple programs are executed by said one or multiple processors, so that said one Or multiple processors execute the above-mentioned method for obtaining information.
The present embodiment additionally provides a kind of computer-readable medium, is stored thereon with computer program, and the program is processed Device realizes the above-mentioned method for obtaining information when executing.
Below with reference to Fig. 6, it illustrates the electronic equipments for being suitable for being used to realize the embodiment of the present application (for example, the clothes in Fig. 1 Be engaged in device 105) computer system 600 structural schematic diagram.Electronic equipment shown in Fig. 6 is only an example, should not be to this The function and use scope for applying for embodiment bring any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interface 605 is connected to lower component:Importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.; And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon Computer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media 611 are mounted.When the computer program is executed by central processing unit (CPU) 601, limited in execution the present processes Above-mentioned function.
It should be noted that the above-mentioned computer-readable medium of the application can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to:Electrical connection with one or more conducting wires, just Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this application, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In application, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to:Wirelessly, electric wire, optical cable, RF etc. or above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as:A kind of processor packet Include running state information acquiring unit, process data acquiring unit and operating parameter acquiring unit.Wherein, the title of these units The restriction to the unit itself is not constituted under certain conditions, for example, operating parameter acquiring unit is also described as " using In obtaining the unit of operating parameter according to process data ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should Device:The running state information of above-mentioned terminal device is obtained by data channel, wherein above-mentioned data channel is used for and above-mentioned end End equipment carries out the data transmission of the data of specified data type;Obtained from above-mentioned running state information application to be tested to A few process data;In response to the operational order of the above-mentioned application to be tested of correspondence monitored, according to above-mentioned at least one into The operating parameter of journey data acquisition respective operations instruction.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (12)

1. a kind of method for obtaining information, including:
The running state information of terminal device is obtained by data channel, wherein the data channel with the terminal for setting The data transmission of the standby data for carrying out specified data type;
At least one process data of application to be tested is obtained from the running state information;
In response to the operational order of the correspondence application to be tested monitored, according at least one process data acquisition pair Answer the operating parameter of operational order.
2. according to the method described in claim 1, wherein, the data channel is constructed by following steps:
To the terminal device sending port test data, wherein the port test data are for detecting the terminal device Export the port of the data of specified data type;
In response to detecting the port information of the corresponding port test data, specified data type and the corresponding specified number are established According to the corresponding relationship between the port information of type;
Based on the corresponding relationship, the data channel between the terminal device is established.
3. according to the method described in claim 2, wherein, it is described obtained from the running state information application to be tested to A few process data, including:
According to the attribute information of the application to be tested, filtered out from the running state information application to be tested to A few process data, wherein the attribute information includes at least one of following:The title of application to be tested, application to be tested Data type, the runing time of application to be tested.
4. according to the method described in claim 3, wherein, the operation in response to the correspondence application to be tested monitored Instruction obtains the operating parameter of respective operations instruction according at least one process data, including:
The operational attribute of inquiry operation instruction, the operational attribute include at least one of following:The title of operational order, operation refer to It enables and issues the time;
The changed process data of data at least one process data is determined according to the operational attribute;
At least one port of the terminal device is obtained according to the changed process data of the data and operational attribute Output data;
For the port at least one described port, according to the corresponding relationship and the inquiry of the port information of the port and the end The data type of the corresponding output data of mouth;
The operating parameter of respective operations instruction is constructed by the data type of output data and corresponding output data.
5. the method according to claim 1, wherein the method also includes:
The test data of the application to be tested is constructed according to the operating parameter.
6. it is a kind of for obtaining the device of information, including:
Running state information acquiring unit is configured to obtain the running state information of terminal device by data channel, wherein The data that the data channel is used to carry out the data of specified data type with the terminal device are transmitted;
Process data acquiring unit is configured to obtain at least one process of application to be tested from the running state information Data;
Operating parameter acquiring unit is configured in response to the operational order of the correspondence monitored the application to be tested, according to At least one process data obtains the operating parameter of respective operations instruction.
7. device according to claim 6, wherein described device includes data channel construction unit, is configured to construct Data channel, the data channel construction unit include:
Port test data transmission sub-unit is configured to the terminal device sending port test data, wherein the end Mouth test data is used to detect the port of the data of the terminal device output specified data type;
Corresponding relationship constructs subelement, in response to detecting the port information of the corresponding port test data, is configured to build Corresponding relationship between vertical specified data type and the port information of the corresponding specified data type;
Data channel constructs subelement, is configured to establish the data between the terminal device based on the corresponding relationship Channel.
8. device according to claim 7, wherein the process data acquiring unit includes:
Process data obtains subelement, is configured to the attribute information according to the application to be tested, believes from the operating status At least one process data of the application to be tested is filtered out in breath, wherein the attribute information includes at least one of following: The title of application to be tested, the data type of application to be tested, the runing time of application to be tested.
9. device according to claim 8, wherein the operating parameter acquiring unit includes:
Operational attribute inquire subelement, be configured to inquiry operation instruction operational attribute, the operational attribute include with down toward One item missing:The title of operational order, operational order issue the time;
Process data identifies subelement, is configured to determine the number at least one process data according to the operational attribute According to changed process data;
Output data obtains subelement, is configured to obtain institute according to the changed process data of the data and operational attribute State the output data of at least one port of terminal device;
Data type inquiry subelement is configured to according to the corresponding relationship port at least one described port The data type of output data corresponding with the port is inquired with the port information of the port;
Operating parameter obtains subelement, is configured to the corresponding behaviour of data type building by output data and corresponding output data Make the operating parameter instructed.
10. according to device described in claim 6 to 9 any one, wherein described device further includes:
Test data construction unit is configured to construct the test data of the application to be tested according to the operating parameter.
11. a kind of electronic equipment, including:
One or more processors;
Memory is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors Perform claim requires any method in 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that the program is executed by processor Method of the Shi Shixian as described in any in claim 1 to 5.
CN201810841997.1A 2018-07-27 2018-07-27 Method and device for acquiring information Active CN108920352B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810841997.1A CN108920352B (en) 2018-07-27 2018-07-27 Method and device for acquiring information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810841997.1A CN108920352B (en) 2018-07-27 2018-07-27 Method and device for acquiring information

Publications (2)

Publication Number Publication Date
CN108920352A true CN108920352A (en) 2018-11-30
CN108920352B CN108920352B (en) 2022-06-28

Family

ID=64417426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810841997.1A Active CN108920352B (en) 2018-07-27 2018-07-27 Method and device for acquiring information

Country Status (1)

Country Link
CN (1) CN108920352B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6934934B1 (en) * 1999-08-30 2005-08-23 Empirix Inc. Method and system for software object testing
CN103235753A (en) * 2013-04-09 2013-08-07 国家电网公司 Method and device for monitoring information server
CN104461899A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 Method and system for analyzing resource consumption in testing process and testing terminal
CN103873369B (en) * 2012-12-17 2017-02-08 中国科学院沈阳自动化研究所 Gateway and method for supporting interaction of heterogeneous network
CN107832117A (en) * 2017-11-15 2018-03-23 北京东土科技股份有限公司 A kind of virtual machine state information synchronous method and electronic equipment
CN108111369A (en) * 2017-12-22 2018-06-01 北京奇虎科技有限公司 The test method and device of a kind of webpage performance of mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6934934B1 (en) * 1999-08-30 2005-08-23 Empirix Inc. Method and system for software object testing
CN103873369B (en) * 2012-12-17 2017-02-08 中国科学院沈阳自动化研究所 Gateway and method for supporting interaction of heterogeneous network
CN103235753A (en) * 2013-04-09 2013-08-07 国家电网公司 Method and device for monitoring information server
CN104461899A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 Method and system for analyzing resource consumption in testing process and testing terminal
CN107832117A (en) * 2017-11-15 2018-03-23 北京东土科技股份有限公司 A kind of virtual machine state information synchronous method and electronic equipment
CN108111369A (en) * 2017-12-22 2018-06-01 北京奇虎科技有限公司 The test method and device of a kind of webpage performance of mobile terminal

Also Published As

Publication number Publication date
CN108920352B (en) 2022-06-28

Similar Documents

Publication Publication Date Title
CN109241141A (en) The training data treating method and apparatus of deep learning
CN108804402A (en) Report generating system based on big data platform and method
CN107766040A (en) A kind of method, apparatus and computer-readable recording medium for generating interface document
CN103078759B (en) The management method and device of calculate node, system
CN109408205A (en) Method for scheduling task and device based on hadoop cluster
CN107958035A (en) Method and apparatus for sending information
CN108846753A (en) Method and apparatus for handling data
CN109871693A (en) Method and apparatus for detecting loophole
CN110149298A (en) A kind of method and apparatus for kidnapping detection
CN109376534A (en) Method and apparatus for detecting application
CN109634833A (en) A kind of Software Defects Predict Methods and device
CN108776692A (en) Method and apparatus for handling information
CN109684188A (en) Test method and device
CN108900319A (en) Fault detection method and device
CN110493341A (en) Method and device for controlling devices
CN109634853A (en) Data test method, system, electronic device and computer readable storage medium
CN109818994A (en) Information processing method and device for agent side
CN109614549B (en) Method and apparatus for pushed information
CN109814957A (en) A kind of label addition method and device for IOS system
CN109446384A (en) For generating the method and system of personnel arrangement Schema information
CN106874371A (en) A kind of data processing method and device
CN109885564A (en) Method and apparatus for sending information
CN109828830A (en) Method and apparatus for managing container
CN109614327A (en) Method and apparatus for output information
CN108920352A (en) For obtaining the method and device of information

Legal Events

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