CN104978276B - method, device and system for detecting software - Google Patents

method, device and system for detecting software Download PDF

Info

Publication number
CN104978276B
CN104978276B CN201510431976.9A CN201510431976A CN104978276B CN 104978276 B CN104978276 B CN 104978276B CN 201510431976 A CN201510431976 A CN 201510431976A CN 104978276 B CN104978276 B CN 104978276B
Authority
CN
China
Prior art keywords
terminal
test
server
driven
sent
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.)
Active
Application number
CN201510431976.9A
Other languages
Chinese (zh)
Other versions
CN104978276A (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
Iyuntian 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 Iyuntian Co ltd filed Critical Iyuntian Co ltd
Priority to CN201510431976.9A priority Critical patent/CN104978276B/en
Publication of CN104978276A publication Critical patent/CN104978276A/en
Application granted granted Critical
Publication of CN104978276B publication Critical patent/CN104978276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method, a device and a system for detecting software. One embodiment of the method comprises: receiving test operation information sent by an active terminal; sending a test operation instruction to the slave terminal based on the test operation information; receiving test data sent by the driving terminal and the driven terminal; determining a test result based on the test data of the active terminal and the slave terminal; and sending a test result to the active terminal. The implementation mode realizes the compatibility of the software products under different testing environments, tests the functions, the performance, the stability and the like of the software products, and improves the testing efficiency of the software products.

Description

Method, apparatus and system for inspection software
Technical field
This application involves field of computer technology, the more particularly, to method, apparatus and system of inspection software.
Background technology
With the continuous development of computer technology, computer is more and more applied to daily life and work In, meanwhile, also emerge more and more software products.Software product usually requires to be tested before listing.In existing skill In art, software product is tested, needs software product being installed on different test machines mostly, be tested respectively, nothing Method, which synchronizes, to be executed.Very big, waste of manpower is consumed for tester;If test script recorded in advance, then in other tests It is executed on machine, needs to consume the dual testing time, waste time.The defect of above-mentioned technology is:It can not be on different test machines Synchronization executes test, and the efficiency of test is low.
Invention content
This application provides a kind of method, apparatus and system for inspection software.Solving in the prior art can not be It is synchronous on different test machines to execute test, the low technical problem of the efficiency of test.
In a first aspect, this application provides a kind of method for inspection software, the method includes:Receive active terminal The test operation information of transmission;Test operation instruction is sent to driven terminal based on the test operation information, described in control Driven terminal executes test operation;Receive the test data that the active terminal and the driven terminal are sent;Based on described The test data of active terminal and the driven terminal determines test result;Test result is sent to the active terminal.
In some embodiments, the method further includes:Receive the test initiation command that active terminal is sent;Based on institute It states test initiation command and sends test request to the terminal that connection relation has been established;Part/whole terminals for replying response is true It is set to driven terminal;It controls the driven terminal and corresponding software to be tested is installed.
In some embodiments, referred to installation by sending the installation packet address of software to be tested to the driven terminal It enables, the control driven terminal installs corresponding software to be tested.
It is in some embodiments, described that test operation instruction is sent to driven terminal based on the test operation information, Including:Obtain the configuration information of the active terminal and the configuration information of the driven terminal;Based on the active terminal Configuration information, the configuration information of the driven terminal and the test operation information obtain and the driven terminal coupling Test operation instructs;The test operation instruction is sent to the driven terminal.
In some embodiments, the terminal of partial recovery response is determined as driven terminal, including:Response will be replied Configuration information and the configuration information similarity of the active terminal are determined as driven terminal more than the terminal of predetermined threshold in terminal; Or the terminal with predetermined configurations in the terminal for replying response is determined as driven terminal.
Second aspect, this application provides a kind of method for inspection software, the method includes:It is sent to server Test operation information sends test operation instruction so that the server is based on the test operation information to driven terminal;To The server sends test data, so that test data of the server based on the test data and driven terminal is true Location survey test result;Receive the test result that the server is sent.
In some embodiments, the method further includes:Test initiation command is sent to server, for the server Test request is sent to the terminal that connection relation has been established based on the test initiation command, with the driven terminal of determination.
The third aspect, this application provides a kind of method for inspection software, the method includes:Receive server hair The test operation instruction sent, test operation instruction by the server based on the test operation information that active terminal is sent and It sends;Test data is sent to the server, for survey of the server based on the test data and active terminal Examination data determine test result.
In some embodiments, the method further includes:Receive the test request that server is sent, the test request It is sent based on the test initiation command that active terminal is sent by the server;Response is replied to the server;Described Corresponding software to be tested is installed under the control of server.
Fourth aspect, this application provides a kind of device for inspection software, described device includes:First receives list Member, the test operation information for receiving the transmission of active terminal;First transmission unit, for based on the test operation information to Driven terminal sends test operation instruction;Second receiving unit, for receiving the active terminal and the driven terminal hair The test data sent;Determination unit is tested for being determined based on the test data of the active terminal and the driven terminal As a result;Second transmission unit, for sending test result to the active terminal.
In some embodiments, described device further includes:Third receiving unit, the survey for receiving the transmission of active terminal Experimental starting instructs;Third transmission unit is surveyed for being sent to the terminal that connection relation has been established based on the test initiation command Examination request;Driven terminal determination unit, for the terminal of part/all reply responses to be determined as driven terminal;Control unit, Corresponding software to be tested is installed for controlling the driven terminal.
In some embodiments, described control unit is configured to send the peace of software to be tested to the driven terminal Packet address and installation instruction are filled, the control driven terminal installs corresponding software to be tested.
In some embodiments, first transmission unit is configured to:Obtain the configuration information of the active terminal And the configuration information of the driven terminal;Based on the configuration information of the active terminal, the configuration information of the driven terminal And the test operation information, it obtains instructing with the test operation of the driven terminal coupling;It is sent to the driven terminal The test operation instruction.
In some embodiments, driven terminal determination unit is configured to:By configuration information in the terminal for replying response The terminal for being more than predetermined threshold with the configuration information similarity of the active terminal is determined as driven terminal;Or response will be replied Terminal in the terminals of predetermined configurations be determined as driven terminal.
5th aspect, this application provides a kind of device for inspection software, described device includes:First sends list Member, for sending test operation information to server, so that the server is based on the test operation information to driven terminal Send test operation instruction;Second transmission unit, for sending test data to the server, so that the server is based on The test data of the test data and driven terminal determines test result;Receiving unit, for receiving the server hair The test result sent.
In some embodiments, described device further includes:Third transmission unit, for sending test starting to server Instruction sends test request, with true based on the test initiation command for the server to the terminal that connection relation has been established Fixed driven terminal.
6th aspect, this application provides a kind of device for inspection software, described device includes:First receives list Member, the test operation instruction for receiving server transmission, the test operation instruction are based on active terminal by the server The test operation information of transmission and send;Transmission unit, for sending test data to the server, for the server Test result is determined based on the test data of the test data and active terminal.
In some embodiments, described device further includes:Second receiving unit, the test for receiving server transmission Request, the test request are sent by the server based on the test initiation command that active terminal is sent;Unit is replied, is used In to the server reply response;Installation unit, for installing corresponding software to be tested under the control of the server.
7th aspect, this application provides a kind of systems for inspection software, including:Fourth aspect or fourth aspect Any possible realization method institute of device and the 5th aspect or the 5th aspect described in any possible realization method Device described in the device stated and any possible realization method of the 6th aspect or the 6th aspect.
Method, apparatus and system provided by the present application for inspection software passes through the test that will be carried out in active terminal Operational order is sent in real time in driven terminal, executes test operation identical with active terminal by driven terminal, and based on master The test data of dynamic terminal and driven terminal determines test result.To realize software product under the different test environments of test Compatibility and test software product function, performance, stability etc., improve the efficiency of software product testing.
Description of the drawings
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 the flow chart of one embodiment of the method provided by the embodiments of the present application for inspection software;
Fig. 2 is the flow chart of another embodiment of the method provided by the embodiments of the present application for inspection software;
Fig. 3 is the flow chart of another embodiment of the method provided by the embodiments of the present application for inspection software;
Fig. 4 is the flow chart of another embodiment of the method provided by the embodiments of the present application for inspection software;
Fig. 5 is the flow chart of another embodiment of the method provided by the embodiments of the present application for inspection software;
Fig. 6 is the structural schematic diagram of one embodiment of the device provided by the embodiments of the present application for inspection software;
Fig. 7 is the structural schematic diagram of another embodiment of the device provided by the embodiments of the present application for inspection software;
Fig. 8 is the structural schematic diagram of another embodiment of the device provided by the embodiments of the present application for inspection software;
Fig. 9 is the structural schematic diagram of one embodiment of system provided by the embodiments of the present application;
Figure 10 is the exemplary system architecture figure that can apply the embodiment of the present application;
Figure 11 is adapted for showing for the structure of the computer system of the terminal device or server of realizing the embodiment of the present application It is intended to.
Specific implementation mode
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, is illustrated only in attached drawing and invent relevant part with related.
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.
Terminal involved by the application can include but is not limited to smart mobile phone, tablet computer, personal digital assistant, above-knee Type pocket computer and desktop computer etc..Purpose and for simplicity is described for example, in following discussion In, the exemplary embodiment of the application is described in conjunction with desktop computer.
Referring to FIG. 1, it illustrates the flows according to one embodiment of the method for inspection software of the application 100.This method can be executed by that can provide the server of shared test software service to third-party application.
As shown in Figure 1, in a step 101, receiving the test operation information that active terminal is sent.
In the present embodiment, active terminal is actively to initiate the terminal of test.First, it is equipped in active terminal for altogether The application program for enjoying test software, the application program that this is used to share test software opens operation, and is tested with for shared The server of software establishes communication connection.User can be by software installation to be tested to active terminal, and starts shared survey Try the software.
When starting shared test software, server receives the test operation information of active terminal transmission first.Wherein, it tests Operation information is the relevant operation performed when testing software to be tested of active terminal, which can be mouse action, It can be keyboard operation, can also be that other any form of operations, the application are unlimited to the concrete form of above-mentioned relevant operation It is fixed.
Then, in a step 102, it is based on above-mentioned test operation information and sends test operation instruction to driven terminal, with control It makes driven terminal and executes test operation.
In the present embodiment, since the configuration of active terminal and driven terminal may be different, so it is possible to active terminal Some operations can not be compatible with or cannot match in driven terminal.Server is in the test behaviour for receiving the transmission of active terminal After making information, need that first test operation information is analyzed and handled, to obtain the operation with driven terminal coupling Instruction.
Specifically, server can obtain the configuration information of active terminal and the configuration information of driven terminal first. Wherein, the configuration information of terminal includes but not limited to the operating system of terminal, the resolution ratio of display, the version of the software of installation Etc..Then, configuration information of the server based on active terminal, the test operation information sent to active terminal are analyzed, And based on the configuration information of driven terminal, the test operation information sent to active terminal is handled, to obtain with it is driven The test operation instruction that the configuration of terminal matches.Finally, server sends above-mentioned test operation instruction to driven terminal.
Then, in step 103, the test data that active terminal and dynamic terminal are sent is received.
In the present embodiment, after driven terminal receives the test operation instruction that server is sent, corresponding test is executed Operation.The implementing result of test operation can be digital information, can also be image information etc., and driven terminal will be held in real time The result (test data) of row test operation is sent to server.In addition, active terminal is when executing test operation, it also can be real-time The result (test data) for executing test operation is sent to server.Active terminal and dynamic terminal hair are received by server The test data sent.
Then, at step 104, test result is determined based on the test data of active terminal and driven terminal.
In the present embodiment, if software under testing is still not perfect, there is certain problems or bug, then these problems can be with From being embodied in the test data of active terminal and driven terminal.So server can be to active terminal and driven The test data of terminal is analyzed, to determine test result.
Finally, in step 105, test result is sent to active terminal.
The method for inspection software that above-described embodiment of the application provides, passes through the test that will be carried out in active terminal Operational order is sent in real time in driven terminal, executes test operation identical with active terminal by driven terminal, and based on master The test data of dynamic terminal and driven terminal determines test result.To realize software product under the different test environments of test Compatibility and test software product function, performance, stability etc., improve the efficiency of software product testing.
With further reference to Fig. 2, it illustrates the flows 200 of another embodiment of the method for inspection software.
As shown in Fig. 2, in step 201, receiving the test initiation command that active terminal is sent.
In the present embodiment, before being tested, test initiation command is sent by active terminal to server first, In, including but not limited to testing requirement, test script, the information (software such as to be tested of software to be tested in test initiation command Identification information, the download address etc. of software to be tested) etc..
Then, in step 202, test request is sent to the terminal that connection relation has been established based on test initiation command.
In the present embodiment, after server receives test initiation command, test initiation command is analyzed and is handled, Then test request is sent to the terminal that connection relation has been established with the server.Wherein, it is had been established with the server and connect pass The terminal of system refers to being installed and turned on the terminal of the application program for sharing test software, and the terminal passes through network It establishes and communicates to connect with the above-mentioned server for sharing test software.
Then, in step 203, the terminal by part/all reply responses is determined as driven terminal.
In the present embodiment, in the terminal that connection relation has been established with server, some terminals is might have and be in Use state can not execute the operation of software test, at this point, the terminal be connected to server transmission test request after, will not Reply response.The terminal being only in idle condition could execute the operation of software test, so, it can only execute software test Operation terminal be connected to server transmission test request after, response can be replied.
In a kind of realization of the present embodiment, it is to be measured that the personnel that may be tested are desirable for terminal-pair as much as possible Examination software is tested, and therefore, can the terminal for all replying response be determined as driven terminal.
Another in the present embodiment realizes that the personnel that may be tested are desirable for configuring same or similar More station terminals are treated test software and are tested, and therefore, can the terminal of partial recovery response be determined as driven terminal.Specifically For, the configuration information for the terminal for replying response can be obtained, above-mentioned configuration information and the configuration information of active terminal are calculated Similarity.Selected part or whole similarities are more than the terminal of predetermined threshold as driven terminal from the terminal for replying response.
In another realization of the present embodiment, the personnel that may be tested are desirable for more of certain specific configuration Terminal-pair software to be tested is tested.Specifically, the configuration information that can obtain the terminal for replying response, judges the configuration Whether information meets predetermined configurations.From reply response terminal in selected part or all meet predetermined configurations terminal be used as from Dynamic terminal.
Then, in step 204, control driven terminal and corresponding software to be tested is installed.
In the present embodiment, it is determined that after driven terminal, server sends the installation kit of software to be tested to driven terminal Address and installation instruction, directly download installation kit in driven terminal, and driven terminal is installed to be measured under the control of installation instruction Try software.
Then, in step 205, the test operation information that active terminal is sent is received.
Then, in step 206, it is based on above-mentioned test operation information and sends test operation instruction to driven terminal.
Then, in step 207, the test data that active terminal and dynamic terminal are sent is received.
Then, in a step 208, test result is determined based on the test data of active terminal and driven terminal.
Finally, in step 209, test result is sent to active terminal.
With further reference to Fig. 3, it illustrates according to another embodiment of the method for inspection software of the application Flow 300.This method can initiate the terminal of test to execute by active.
As shown in figure 3, in step 301, test operation information is sent to server, so that server is based on test operation Information sends test operation instruction to driven terminal.
In the present embodiment, first, the application program for sharing test software is installed in active terminal, this is used for The application program of shared test software opens operation, and establishes communication connection with the server for sharing test software.User Can be by software installation to be tested to active terminal, and start shared to test the software.It is main when starting shared test software Dynamic terminal sends test operation information to server first.
Then, in step 302, to above-mentioned server send test data, for server be based on test data and The test data of driven terminal determines test result.
In the present embodiment, when proceeding by test, active terminal can in real time (survey the result for executing test operation Examination data) it is sent to server.Wherein, the implementing result of test operation can be digital information, can also be image information etc. Deng.The application does not limit the concrete form of test data.
Finally, in step 303, the test result that server is sent is received.
In the present embodiment, if software under testing is still not perfect, there is certain problems or bug, then these problems can be with From being embodied in the test data of active terminal and driven terminal.So server can be to active terminal and driven The test data of terminal is analyzed, to determine test result.And test result is sent to active terminal, it is connect by active terminal Acceptance Tests result.
In some optional embodiments, the above method further includes:Test initiation command is sent to server, for server Test request is sent to the terminal that connection relation has been established based on above-mentioned test initiation command, with the driven terminal of determination.
In the present embodiment, before being tested, test initiation command is sent by active terminal to server first, In, including but not limited to testing requirement, test script, the information (software such as to be tested of software to be tested in test initiation command Identification information, the download address etc. of software to be tested) etc..After server receives test initiation command, to test starting Instruction is analyzed and is handled, and then sends test request to the terminal that connection relation has been established with the server.Then, it services The terminal of part/all reply responses is determined as driven terminal by device.
With further reference to Fig. 4, it illustrates according to another embodiment of the method for inspection software of the application Flow 400.
As shown in figure 4, in step 401, receiving the test operation instruction that server is sent, which instructs by taking Business device is sent based on the test operation information that active terminal is sent.
In the present embodiment, since the configuration of active terminal and driven terminal may be different, so it is possible to active terminal Some operations can not be compatible with or cannot match in driven terminal.Therefore, server needs first to the transmission of active terminal Test operation information is analyzed and is handled, to obtain, with the operational order of driven terminal coupling, then again referring to operation Order is sent to driven terminal.
Finally, in step 402, to server send test data, for server be based on above-mentioned test data and The test data of active terminal determines test result.
With further reference to Fig. 5, it illustrates according to another embodiment of the method for inspection software of the application Flow 500.This method can be executed by driven terminal.
As shown in figure 5, in step 501, receiving the test request that server is sent, which is based on by server Active terminal send test initiation command and send.
In the present embodiment, after server receives the test initiation command that active terminal is sent, to test initiation command It is analyzed and is handled, then send test request to the terminal that connection relation has been established with the server.
Then, in step 502, response is replied to server.
In the present embodiment, in the terminal that connection relation has been established with server, some terminals is might have and be in Use state can not execute the operation of software test, at this point, the terminal be connected to server transmission test request after, will not Reply response.The terminal being only in idle condition could execute the operation of software test, so, it can only execute software test Operation terminal be connected to server transmission test request after, response can be replied.
Then, in step 503, corresponding software to be tested is installed under the control of server.
In the present embodiment, driven terminal can install corresponding software to be tested under the control of server, specifically, Server sends the installation packet address and installation instruction of software to be tested to driven terminal, and installation is directly downloaded in driven terminal Packet, driven terminal install software to be tested under the control of installation instruction.
Then, in step 504, the test operation instruction that server is sent is received, which instructs by server It is sent based on the test operation information that active terminal is sent.
Finally, in step 505, to server send test data, for server be based on above-mentioned test data and The test data of active terminal determines test result.
It should be noted that although describing the operation of the method for the present invention with particular order in the accompanying drawings, this is not required that Or imply and must execute these operations according to the particular order, it could the realization phase or have to carry out operation shown in whole The result of prestige.On the contrary, the step of describing in flow chart, which can change, executes sequence.Additionally or alternatively, it is convenient to omit certain Multiple steps are merged into a step and executed, and/or a step is decomposed into execution of multiple steps by step.
With further reference to Fig. 6, it illustrates the knots according to one embodiment of the device for inspection software of the application Structure schematic diagram.
As shown in fig. 6, the device 600 of the present embodiment includes:First receiving unit 601, the first transmission unit 602, second Receiving unit 603, determination unit 604 and the second transmission unit 605.Wherein, acquiring unit 501 is used for obtaining in presumptive area The effective position data of family terminal.First receiving unit 601 is used to receive the test operation information of active terminal transmission.First hair Send unit 602 for sending test operation instruction to driven terminal based on above-mentioned test operation information.Second receiving unit 603 is used In the test data for receiving active terminal and the transmission of driven terminal.Determination unit 604 is used for based on active terminal and driven The test data of terminal determines test result.Second transmission unit 605 is used to send test result to active terminal.
In some optional embodiments, device 600 further includes:Third receiving unit, third transmission unit, driven terminal Determination unit, control unit (not shown).Third receiving unit is used to receive the test initiation command of active terminal transmission.Third Transmission unit is used to send test request to the terminal that connection relation has been established based on test initiation command.Driven terminal determines single Member by the terminal of part/all reply responses for being determined as driven terminal.Control unit is for controlling driven terminal installation pair The software to be tested answered.
In some optional embodiments, control unit is configured to send the installation kit of software to be tested to driven terminal Address and installation instruction control driven terminal and install corresponding software to be tested.
In some optional embodiments, the first transmission unit 602 is configured to:Obtain active terminal configuration information with And the configuration information of driven terminal.Based on the configuration information of active terminal, the configuration information and test operation of driven terminal are believed Breath obtains instructing with the test operation of driven terminal coupling.Test operation instruction is sent to driven terminal.
In some optional embodiments, driven terminal determination unit is configured to:It will be configured in the terminal for replying response The terminal that the configuration information similarity of information and active terminal is more than predetermined threshold is determined as driven terminal.Or response will be replied Terminal in the terminals of predetermined configurations be determined as driven terminal.
It should be appreciated that all units or module described in device 600 and each step in the method with reference to figure 1-2 descriptions It is corresponding.It is equally applicable to device 600 and unit wherein included above with respect to the operation and feature of method description as a result, This is repeated no more.Device 600 can be pre-set in the server, can also be loaded into server by modes such as downloads In.Corresponding units in device 600 can cooperate with the unit in server to realize the scheme for inspection software.
With further reference to Fig. 7, it illustrates according to another embodiment of the device for inspection software of the application Structural schematic diagram.
As shown in fig. 7, the device 700 of the present embodiment includes:First transmission unit 701, the second transmission unit 702 receive Unit 703.Wherein, the first transmission unit 701 is used to send test operation information to server, is grasped so that server is based on test Make information and sends test operation instruction to driven terminal.Second transmission unit 702 is used to send test data to server, for The server determines test result based on the test data of test data and driven terminal.Receiving unit 703 is for receiving The test result that server is sent.
In some optional embodiments, device 700 further includes:Third transmission unit, third transmission unit are used for clothes Business device sends test initiation command, and sending test to the terminal that connection relation has been established based on test initiation command for server asks It asks, with the driven terminal of determination.
It should be appreciated that all units or module described in device 700 and each step phase in the method that is described with reference to figure 3 It is corresponding.It is equally applicable to device 700 and unit wherein included above with respect to the operation and feature of method description as a result, herein It repeats no more.Device 700 can be pre-set in the terminal, can also be loaded into terminal by modes such as downloads.Device Corresponding units in 700 can cooperate with the unit in terminal to realize the scheme for inspection software.
With further reference to Fig. 8, it illustrates according to another embodiment of the device for inspection software of the application Structural schematic diagram.
As shown in figure 8, the device 800 of the present embodiment includes the first receiving unit 801, transmission unit 802.Wherein, first Receiving unit is used to receive the test operation instruction of server transmission, and test operation instruction is sent by server based on active terminal Test operation information and send.Transmission unit is used to send test data to server, so that server is based on test data And the test data of active terminal determines test result.
In some optional embodiments, device 800 further includes the second receiving unit, replys unit, installation unit.Second Receiving unit is used to receive the test request of server transmission, and the test that test request is sent by server based on active terminal is opened It moves instruction and sends.Unit is replied to be used to reply response to server.Installation unit is used for the installation pair under the control of server The software to be tested answered.
It should be appreciated that all units or module described in device 800 and each step phase in the method that is described with reference to figure 4 It is corresponding.It is equally applicable to device 800 and unit wherein included above with respect to the operation and feature of method description as a result, herein It repeats no more.Device 800 can be pre-set in the terminal, can also be loaded into terminal by modes such as downloads.Device Corresponding units in 500 can cooperate with the unit in terminal to realize the scheme for inspection software.
With further reference to Fig. 9, it illustrates the structural schematic diagrams of one embodiment of system provided by the embodiments of the present application.
As shown in figure 9, the system 900 for inspection software of the present embodiment includes:Device 600, device 700 and device 800, device 600 is used to receive the test operation information of active terminal transmission, is sent to driven terminal based on test operation information Test operation instructs, and receives the test data that active terminal and driven terminal are sent, and is based on active terminal and driven terminal Test data determine test result, to active terminal send test result.Device 700 is used to send test operation to server Information sends test operation instruction to driven terminal so that server is based on test operation information, test number is sent to server According to so that server determines that test result, reception server are sent based on the test data of test data and driven terminal Test result.Device 800 is used to receive the test operation instruction of server transmission, and test operation instruction is based on actively by server Terminal send test operation information and send, to server send test data, for server be based on test data and The test data of active terminal determines test result.
Figure 10 shows the exemplary system architecture 1000 that can apply the embodiment of the present application.
As shown in Figure 10, system architecture 1000 may include terminal device 1001,1002, network 1003 and server 1004.Network 1003 between terminal device 1001,1002 and server 1004 provide communication link medium.Network 1003 may include various connection types, such as wired, wireless communication link or fiber optic cables etc..
User 1010 can be interacted by network 1003 with server 1004 with using terminal equipment 1001,1002, to receive Or send information etc..Application program for sharing test software is installed on terminal device 1001,1002.
Terminal device 1001,1002 can be various electronic equipments, including but not limited to smart mobile phone, tablet computer, a Personal digital assistant, pocket computer on knee and intelligent wearable equipment etc..
Server 1004 can be to provide the server of shared test software service.Server can be to the data that receive It the processing such as stored, analyzed, and handling result is fed back into terminal device.
It should be understood that the number of the terminal device, network and server in Figure 10 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Below with reference to Figure 11, it illustrates the calculating suitable for terminal device or server for realizing the embodiment of the present application The structural schematic diagram of machine system 1100.
As shown in figure 11, computer system 1100 include central processing unit (CPU) 1101, can according to be stored in only It reads the program in memory (ROM) 1102 or is loaded into random access storage device (RAM) 1103 from storage section 1108 Program and execute various actions appropriate and processing.In RAM 1103, also it is stored with system 1100 and operates required various journeys Sequence and data.CPU 1101, ROM 1102 and RAM 1103 are connected with each other by bus 1104.Input/output (I/O) interface 1105 are also connected to bus 1104.
It is connected to I/O interfaces 1105 with lower component:Importation 1106 including keyboard, mouse etc.;Including such as cathode The output par, c 1107 of ray tube (CRT), liquid crystal display (LCD) etc. and loud speaker etc.;Storage section including hard disk etc. 1108;And the communications portion 1109 of the network interface card including LAN card, modem etc..Communications portion 1109 passes through Communication process is executed by the network of such as internet.Driver 1110 is also according to needing to be connected to I/O interfaces 1105.It is detachable to be situated between Matter 1111, such as disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on driver 1110 as needed, so as to In being mounted into storage section 1108 as needed from the computer program read thereon.
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 tangibly embodied in machine readable Computer program on medium, the computer program include the program code for method shown in execution flow chart.At this In the embodiment of sample, which can be downloaded and installed by communications portion 1109 from network, and/or from removable Medium 1111 is unloaded to be mounted.
Flow chart in attached drawing and block diagram, it is illustrated that according to the system of various embodiments of the invention, 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 for a part for one module, program segment, or code of table, the module, program segment, or code includes one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, this is depended on the functions involved.Also it wants It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yiyong The dedicated hardware based system of defined functions or operations is executed to realize, or can be referred to specialized hardware and computer The combination of order is realized.
Being described in unit module involved in the embodiment of the present application can be realized by way of software, can also be led to The mode of hardware is crossed to realize.Described unit module can also be arranged in the processor, for example, can be described as:It is a kind of Processor includes the first receiving unit, the first transmission unit, the second receiving unit, determination unit, the second transmission unit.Wherein, The title of these unit modules does not constitute the restriction to the unit module itself under certain conditions, for example, first receives list Member is also described as " unit of the test operation information for receiving the transmission of active terminal ".
As on the other hand, present invention also provides a kind of computer readable storage medium, the computer-readable storage mediums Matter can be computer readable storage medium included in device described in above-described embodiment;Can also be individualism, not The computer readable storage medium being fitted into terminal.There are one the computer-readable recording medium storages or more than one Program, described program are used for executing the side for inspection software for being described in the application by one or more than one processor Method.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art Member 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 the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature Other technical solutions of arbitrary combination and formation.Such as features described above has similar work(with (but not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (17)

1. a kind of method for inspection software, which is characterized in that the method includes:
Receive the test operation information that active terminal is sent;
Test operation instruction is sent to driven terminal based on the test operation information, test is executed to control the driven terminal Operation, wherein it is described that test operation instruction is sent to driven terminal based on the test operation information, including:Obtain the master The configuration information of dynamic terminal and the configuration information of the driven terminal;Based on the configuration information of the active terminal, it is described from The configuration information of dynamic terminal and the test operation information obtain instructing with the test operation of the driven terminal coupling;To The driven terminal sends the test operation instruction;
Receive the test data that the active terminal and the driven terminal are sent;
Test result is determined based on the test data of the active terminal and the driven terminal;
Test result is sent to the active terminal.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
Receive the test initiation command that active terminal is sent;
Based on the test initiation command test request is sent to the terminal that connection relation has been established;
The terminal of part/all reply responses is determined as driven terminal;
It controls the driven terminal and corresponding software to be tested is installed.
3. according to the method described in claim 2, it is characterized in that, peace by sending from software to be tested to the driven terminal Packet address and installation instruction are filled, the control driven terminal installs corresponding software to be tested.
4. according to the method described in claim 2, it is characterized in that, the terminal of partial recovery response is determined as driven terminal, Including:
The configuration information similarity of configuration information in the terminal for replying response and the active terminal is more than to the end of predetermined threshold End is determined as driven terminal;Or
Terminal with predetermined configurations in the terminal for replying response is determined as driven terminal.
5. a kind of method for inspection software, which is characterized in that the method includes:
Test operation information is sent to server, so that the server is sent based on the test operation information to driven terminal Test operation instructs, wherein and server is based on the test operation information and sends test operation instruction to driven terminal, including: Obtain the configuration information of active terminal and the configuration information of the driven terminal;Based on the configuration information of the active terminal, The configuration information of the driven terminal and the test operation information obtain referring to the test operation of the driven terminal coupling It enables;The test operation instruction is sent to the driven terminal;
Test data is sent to the server, for test of the server based on the test data and driven terminal Data determine test result;
Receive the test result that the server is sent.
6. according to the method described in claim 5, it is characterized in that, the method further includes:
Test initiation command is sent to server, the test initiation command is based on to connection relation has been established for the server Terminal send test request, with the driven terminal of determination.
7. a kind of method for inspection software, which is characterized in that the method includes:
The test operation instruction that server is sent is received, the test operation instruction is sent by the server based on active terminal Test operation information and send, wherein the test operation instructs the test sent based on active terminal by the server Operation information and send, including:Obtain the configuration information of the active terminal and the configuration information of driven terminal;Based on described The configuration information of active terminal, the configuration information of the driven terminal and the test operation information, obtain with it is described driven The test operation of terminal coupling instructs;The test operation instruction is sent to the driven terminal;
Test data is sent to the server, for test of the server based on the test data and active terminal Data determine test result.
8. the method according to the description of claim 7 is characterized in that the method further includes:
The test request that server is sent is received, the test that the test request is sent by the server based on active terminal is opened It moves instruction and sends;
Response is replied to the server;
Corresponding software to be tested is installed under the control of the server.
9. a kind of device for inspection software, which is characterized in that described device includes:
First receiving unit, the test operation information for receiving the transmission of active terminal;
First transmission unit instructs, described first for sending test operation to driven terminal based on the test operation information Transmission unit is configured to:Obtain the configuration information of the active terminal and the configuration information of the driven terminal;Based on institute State the configuration information of active terminal, the configuration information of the driven terminal and the test operation information, obtain with it is described from The test operation instruction of dynamic terminal coupling;The test operation instruction is sent to the driven terminal;
Second receiving unit, the test data sent for receiving the active terminal and the driven terminal;
Determination unit, for determining test result based on the test data of the active terminal and the driven terminal;
Second transmission unit, for sending test result to the active terminal.
10. device according to claim 9, which is characterized in that described device further includes:
Third receiving unit, the test initiation command for receiving the transmission of active terminal;
Third transmission unit, for sending test request to the terminal that connection relation has been established based on the test initiation command;
Driven terminal determination unit, for the terminal of part/all reply responses to be determined as driven terminal;
Control unit installs corresponding software to be tested for controlling the driven terminal.
11. device according to claim 10, which is characterized in that described control unit is configured to the driven terminal The installation packet address and installation instruction of software to be tested are sent, the control driven terminal installs corresponding software to be tested.
12. device according to claim 10, which is characterized in that driven terminal determination unit is configured to:
The configuration information similarity of configuration information in the terminal for replying response and the active terminal is more than to the end of predetermined threshold End is determined as driven terminal;Or
Terminal with predetermined configurations in the terminal for replying response is determined as driven terminal.
13. a kind of device for inspection software, which is characterized in that described device includes:
First transmission unit, for sending test operation information to server, so that the server is based on the test operation Information sends test operation instruction to driven terminal, wherein server is sent based on the test operation information to driven terminal Test operation instructs, including:Obtain the configuration information of active terminal and the configuration information of the driven terminal;Based on the master The configuration information of dynamic terminal, the configuration information of the driven terminal and the test operation information, obtain and the driven end Matched test operation is held to instruct;The test operation instruction is sent to the driven terminal;
Second transmission unit, for sending test data to the server, so that the server is based on the test data And the test data of driven terminal determines test result;
Receiving unit, the test result sent for receiving the server.
14. device according to claim 13, which is characterized in that described device further includes:
Third transmission unit is referred to for the server based on the test starting for sending test initiation command to server It enables to the terminal that connection relation has been established and sends test request, with the driven terminal of determination.
15. a kind of device for inspection software, which is characterized in that described device includes:
First receiving unit, the test operation instruction for receiving server transmission, the test operation instruction is by the service Device is sent based on the test operation information that active terminal is sent, wherein the test operation instruction is based on by the server Active terminal send test operation information and send, including:Obtain the configuration information of the active terminal and driven terminal Configuration information;Based on the configuration information of the active terminal, the configuration information and the test operation of the driven terminal Information obtains instructing with the test operation of the driven terminal coupling;The test operation instruction is sent to the driven terminal;
Transmission unit, for the server send test data, for the server be based on the test data and The test data of active terminal determines test result.
16. device according to claim 15, which is characterized in that described device further includes:
Second receiving unit, the test request for receiving server transmission, the test request are based on master by the server It moves the test initiation command that terminal is sent and sends;
Unit is replied, for replying response to the server;
Installation unit, for installing corresponding software to be tested under the control of the server.
17. a kind of system for inspection software, which is characterized in that the system comprises:Dress as described in claim 9-12 It sets and the device as described in claim 13-14 and the device as described in claim 15-16.
CN201510431976.9A 2015-07-21 2015-07-21 method, device and system for detecting software Active CN104978276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510431976.9A CN104978276B (en) 2015-07-21 2015-07-21 method, device and system for detecting software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510431976.9A CN104978276B (en) 2015-07-21 2015-07-21 method, device and system for detecting software

Publications (2)

Publication Number Publication Date
CN104978276A CN104978276A (en) 2015-10-14
CN104978276B true CN104978276B (en) 2018-09-14

Family

ID=54274805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510431976.9A Active CN104978276B (en) 2015-07-21 2015-07-21 method, device and system for detecting software

Country Status (1)

Country Link
CN (1) CN104978276B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335292A (en) * 2015-11-12 2016-02-17 广州华多网络科技有限公司 Application compatibility testing method and system
CN107515818B (en) * 2016-06-15 2021-02-05 阿里巴巴(中国)有限公司 Test software opening method, system and device
CN107193729B (en) * 2017-04-19 2020-07-31 北京云测信息技术有限公司 Application compatibility testing method and device
CN107885661A (en) * 2017-11-08 2018-04-06 百度在线网络技术(北京)有限公司 The terminal transparency method of testing and system of Mobile solution, equipment, medium
CN110188034A (en) * 2019-05-10 2019-08-30 广州高鸿信息科技有限公司 A kind of method for testing software based on information sharing
CN112181811B (en) * 2020-09-14 2024-05-10 麒麟软件有限公司 Application stability testing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262552A (en) * 2011-07-06 2011-11-30 惠州Tcl移动通信有限公司 Method and system for synchronizing application program of different equipment
CN103970650A (en) * 2014-04-09 2014-08-06 广州杰赛科技股份有限公司 Distributed testing method and device
CN104092715A (en) * 2013-11-28 2014-10-08 腾讯科技(深圳)有限公司 Synchronization application program method, server and system
CN104679659A (en) * 2015-03-24 2015-06-03 小米科技有限责任公司 Testing method and testing device of application program as well as electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201312340A (en) * 2011-09-09 2013-03-16 Askey Technology Jiangsu Ltd Handheld electronic device testing system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262552A (en) * 2011-07-06 2011-11-30 惠州Tcl移动通信有限公司 Method and system for synchronizing application program of different equipment
CN104092715A (en) * 2013-11-28 2014-10-08 腾讯科技(深圳)有限公司 Synchronization application program method, server and system
CN103970650A (en) * 2014-04-09 2014-08-06 广州杰赛科技股份有限公司 Distributed testing method and device
CN104679659A (en) * 2015-03-24 2015-06-03 小米科技有限责任公司 Testing method and testing device of application program as well as electronic equipment

Also Published As

Publication number Publication date
CN104978276A (en) 2015-10-14

Similar Documents

Publication Publication Date Title
CN104978276B (en) method, device and system for detecting software
CN110753089B (en) Method, device, medium and electronic equipment for managing client
CN106708537A (en) Application updating method and application updating device
CN108376061A (en) Method and apparatus for developing automatic driving vehicle application
CN113553257B (en) Test method, device, storage medium and electronic equipment
CN109995877A (en) Information-pushing method and device
CN109815105A (en) Applied program testing method and device based on Btrace
CN105205174A (en) File processing method and device for distributed system
CN105739970B (en) The method and apparatus that data are mapped as self defined class object
CN109309734B (en) Method and device for transmitting data
CN103678130A (en) Automated performance test method and platform
CN110619096B (en) Method and apparatus for synchronizing data
CN110007936A (en) Data processing method and device
CN107368407B (en) Information processing method and device
CN109818994A (en) Information processing method and device for agent side
CN109873732A (en) Test method and device for proxy server
CN111612135B (en) Method and device for information interaction
CN109218338A (en) Information processing system, method and apparatus
CN109120433B (en) Method and apparatus for containerized deployment of hosts
CN109144864B (en) Method and device for testing window
CN115033542A (en) File transmission method, file transmission device, electronic equipment and storage medium
CN113407229B (en) Method and device for generating offline scripts
CN112114845B (en) Gray message processing method and device, storage medium and computer equipment
CN111309367B (en) Method, device, medium and electronic equipment for managing service discovery
CN113704079B (en) Protobuf-based interface testing method and device

Legal Events

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

Effective date of registration: 20190826

Address after: 100085 Beijing, Haidian District, No. ten on the ground floor, No. 10 Baidu building, layer 2

Patentee after: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

Address before: 100091 Beijing, Haidian District, northeast Wang West Road, No. 4, Zhongguancun Software Park, building C, block, 1-03

Patentee before: Pacify a Heng Tong (Beijing) Science and Technology Ltd.