CN104461897B - A kind of method and apparatus of Application testing - Google Patents

A kind of method and apparatus of Application testing Download PDF

Info

Publication number
CN104461897B
CN104461897B CN201410795784.1A CN201410795784A CN104461897B CN 104461897 B CN104461897 B CN 104461897B CN 201410795784 A CN201410795784 A CN 201410795784A CN 104461897 B CN104461897 B CN 104461897B
Authority
CN
China
Prior art keywords
terminal
test
nodal
mark
platform
Prior art date
Application number
CN201410795784.1A
Other languages
Chinese (zh)
Other versions
CN104461897A (en
Inventor
孔庆云
黄庆兵
刘潇
Original Assignee
网易(杭州)网络有限公司
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 网易(杭州)网络有限公司 filed Critical 网易(杭州)网络有限公司
Priority to CN201410795784.1A priority Critical patent/CN104461897B/en
Publication of CN104461897A publication Critical patent/CN104461897A/en
Application granted granted Critical
Publication of CN104461897B publication Critical patent/CN104461897B/en

Links

Abstract

Embodiments of the present invention provide a kind of method of Application testing.This method includes:Nodal terminal is connected to the nodal terminal in response to test terminal, calls the node procedure being pre-installed on the nodal terminal to obtain the mark of test terminal and is sent to test platform, has been connected so that test platform recognizes the test terminal with nodal terminal;Nodal terminal instructs in response to receiving the Application testing that test platform is sent based on the mark, calls node procedure that its application program is attached into the test terminal and carries out Application testing in the test terminal.Communication interaction is carried out with test platform, test terminal by the node procedure on nodal terminal respectively, the method of the present invention causes each test terminal all to realize Application testing without installation software can in advance, so as to simplify the operation of Application testing for technical staff and reduce workload.In addition, embodiments of the present invention provide a kind of equipment of Application testing.

Description

A kind of method and apparatus of Application testing

Technical field

Embodiments of the present invention are related to testing field, more specifically, embodiments of the present invention, which are related to one kind, applies journey The method and apparatus of sequence test.

Background technology

This part is it is intended that the embodiments of the present invention stated in claims provide background or context.Herein Description recognizes it is prior art not because not being included in this part.

Generally, after application program is developed, it is necessary to the compatibility of test application program and actual motion environment, So as to which technical staff understands running situation of the application program in actual motion environment by test result, to be tied according to test Fruit improves application program in the case where running situation is bad.With the development of the development of various terminals, especially mobile terminal, SDK versions that great amount of terminals uses, resolution ratio, ROM etc. are often otherwise varied, and application program is on various different terminals Actual motion environment vary, therefore, application program needs to be tested respectively in a large amount of different terminals.

The content of the invention

Due to needing in the manually installed application program to be tested of each test terminal and testing one by one in the prior art, lead Technical staff's complex operation in Application testing is caused, causes the larger workload of technical staff.

Therefore, a kind of method and apparatus of the Application testing of automation is highly desirable to, to cause each test terminal Without manually installed application program to be tested and manual test, so that technical staff operates letter in Application testing Change, the workload burden of mitigation technique personnel.

In the present context, embodiments of the present invention it is expected to provide a kind of method and apparatus of Application testing.

In the first aspect of embodiment of the present invention, there is provided a kind of method of Application testing, applied to node Terminal, including:The nodal terminal is connected in response to test terminal, calls the node being pre-installed on the nodal terminal Program obtains the mark of the test terminal and is sent to the test platform, so that the test platform recognizes the test Terminal has been connected with the nodal terminal;The application program sent in response to receiving the test platform based on the mark Test instruction, call the node procedure that described application program is attached to corresponding to the mark and test terminal and described Corresponding to mark Application testing is carried out in test terminal.

In the second aspect of embodiment of the present invention, there is provided a kind of method of Application testing, applied to test Platform, including:In response to the mark for the test terminal for receiving nodal terminal transmission, identify that the test terminal is already connected to institute State nodal terminal;Wherein, that to be the nodal terminal be connected to the mark of the test terminal in response to the test terminal is described What the node procedure that nodal terminal and calling is pre-installed on the nodal terminal obtained;Identified based on described to the node Terminal sends Application testing instruction, so that the nodal terminal calls the node procedure to install described application program Application testing is carried out to test terminal corresponding to the mark and being tested corresponding to the mark in terminal.

In the third aspect of embodiment of the present invention, there is provided a kind of equipment of Application testing, be configured at node end End, including:First calling module, for being connected to the nodal terminal in response to test terminal, calling is pre-installed in described Node procedure on nodal terminal obtains the mark of the test terminal and is sent to the test platform, so that the test is flat Platform recognizes the test terminal and has been connected with the nodal terminal;Second calling module, in response to receiving the survey The Application testing instruction that platform is sent based on the mark is tried, calls the node procedure to pacify described application program It is filled to test terminal corresponding to the mark and carries out Application testing being tested corresponding to the mark in terminal.

In the fourth aspect of embodiment of the present invention, there is provided a kind of equipment of Application testing, it is flat to be configured at test Platform, including:Identification module, for the mark of the test terminal in response to receiving nodal terminal transmission, identify the test eventually End is already connected to the nodal terminal;Wherein, the mark of the test terminal is that the nodal terminal is whole in response to the test End is connected to the nodal terminal and calls what the node procedure being pre-installed on the nodal terminal obtained;First sends mould Block, for sending Application testing instruction based on described identify to the nodal terminal, so that the nodal terminal calls institute State node procedure and described application program is attached to test terminal corresponding to the mark and in test corresponding to the mark Application testing is carried out in terminal.

It is used for the method and apparatus of Application testing according to embodiment of the present invention, section is connected in response to test terminal Point terminal, the nodal terminal can call its preassembled node procedure to obtain the mark of the test terminal and be sent to test Platform, it has been connected so that the test platform recognizes the test terminal with the nodal terminal, and in response to receiving this The Application testing instruction that test platform is sent based on the mark, the nodal terminal can call its node procedure by described in Application program be attached to test terminal corresponding to the mark and application program survey carried out in terminal being tested corresponding to the mark Examination, it can be seen that, it is only necessary to it is provided with advance on nodal terminal for carrying out communication interaction with test platform, test terminal Node procedure, each test terminal call node procedure to be put down respectively with testing when being connected to nodal terminal, by nodal terminal Platform, test terminal carry out communication interaction, it is possible to Application testing of the test platform to test terminal are realized, without artificial Application program is seriatim installed to each test terminal, all installed in advance even without each test terminal for being put down with testing Platform carries out the software of communication interaction, so as to simplify operation of the technical staff in Application testing, and significantly decreases The workload of technical staff, more preferable experience is brought for user.

Brief description of the drawings

Detailed description below, above-mentioned and other mesh of exemplary embodiment of the invention are read by reference to accompanying drawing , feature and advantage will become prone to understand.In the accompanying drawings, if showing the present invention's by way of example, and not by way of limitation Dry embodiment, wherein:

Fig. 1 schematically shows the block schematic illustration of an exemplary application scene of embodiments of the present invention;

Fig. 2 schematically shows the flow chart of the embodiment of method one of Application testing in the present invention;

Fig. 3 schematically shows the flow chart of another embodiment of method of Application testing in the present invention;

Fig. 4 is schematically shown to be led between a kind of nodal terminal and test platform in the embodiment of the present invention, test terminal The schematic diagram of letter mode example;

Fig. 5 schematically shows the flow chart of the another embodiment of method of Application testing in the present invention;

Fig. 6 schematically shows the flow chart of the embodiment of equipment one of Application testing in the present invention;

Fig. 7 schematically shows the flow chart of another embodiment of equipment of Application testing in the present invention;

In the accompanying drawings, identical or corresponding label represents identical or corresponding part.

Embodiment

The principle and spirit of the present invention is described below with reference to some illustrative embodiments.It should be appreciated that provide this A little embodiments are not with any just for the sake of better understood when those skilled in the art and then realize the present invention Mode limits the scope of the present invention.On the contrary, these embodiments are provided so that the disclosure is more thorough and complete, and energy It is enough that the scope of the present disclosure is intactly communicated to those skilled in the art.

One skilled in the art will appreciate that embodiments of the present invention can be implemented as a kind of system, device, equipment, method Or computer program product.Therefore, the disclosure can be implemented as following form, i.e.,:Complete hardware, complete software (including firmware, resident software, microcode etc.), or the form that hardware and software combines.

According to the embodiment of the present invention, it is proposed that a kind of method and apparatus of Application testing.

Herein, it is to be understood that what involved term " nodal terminal " represented is provided with node procedure Terminal device, it can be attached with test terminal, and can be by node procedure respectively with test platform and being connected Test terminal is communicated.For example, nodal terminal can be PC equipment, test terminal can be mobile terminal device, and test is eventually End can be connected to nodal terminal by USB.Put down in addition, " test platform " is the network that can provide Application testing service Platform, such as cloud test platform, the user as technical staff can access test platform by arbitrary equipment, and by flat to testing The access of platform is operated to control test platform to carry out Application testing to the test terminal connected.Wherein, user is to test The access of platform, such as can be by the web terminal in arbitrary equipment, can also be and for example by the client in arbitrary equipment Program, the present invention are not limited this.In addition, any number of elements in accompanying drawing is used to example and unrestricted and any Name is only used for distinguishing, without any restrictions implication.

Below with reference to the principle and spirit of some representative embodiments of the present invention, in detail the explaination present invention.

Summary of the invention

The inventors discovered that during using prior art, why technical staff complex operation, work in Application testing Work amount is big, and reason is to be required for manually installed application program to be tested in each test terminal in the prior art and surveyed by hand Examination.

It is based on one of above-mentioned analysis, basic thought of the invention:In order that technical staff is obtained in Application testing When operation simplify, reduce workload, each test terminal can be made all to be connected to test platform by nodal terminal, it is whole by node End is communicated with test terminal, test platform respectively, so need to only be installed on nodal terminal for respectively with test terminal, Test platform carries out the node procedure of communication interaction, without application program to be manually seriatim installed to each test terminal, Even each test terminal all carries out the software of communication interaction without installation and checkout platform, exists so as to just simplify technical staff Operation during Application testing, and the workload of technical staff is also significantly reduced, bring more preferable body for user Test.

After the general principle of the present invention is described, lower mask body introduces the various non-limiting embodiment party of the present invention Formula.

Application scenarios overview

With reference first to Fig. 1, Fig. 1 is the block schematic illustration of an exemplary application scene of embodiments of the present invention.Its In, test terminal 101 is interacted by the nodal terminal 102 being connected to test platform 103.In more general terms, test is eventually End 101 is interacted by preassembled node procedure on nodal terminal 103 with test platform 103.Those skilled in the art Member is it should be understood that in addition, it will be understood by those skilled in the art that the block schematic illustration shown in Fig. 1 is only the embodiment party of the present invention The example that formula can be achieved wherein.The scope of application of embodiment of the present invention is not by any aspect of the framework Limitation.

It should be noted that test terminal 101 and nodal terminal 102 herein can be it is existing, researching and developing or In the future research and development, can pass through it is any type of it is wired or wireless connection (for example, Wi-Fi, LAN, WAN, internet etc.) with survey Any interactive device that platform 103 interacts is tried, is included but is not limited to:Existing, researching and developing or research and development in the future, desk-top meters Calculation machine, laptop computer, mobile terminal (including smart mobile phone, non-smart mobile phone, various tablet personal computers) etc..

It is also to be noted that test platform 103 herein is only existing, researching and developing or research and development in the future, energy Enough provide a user an example of the network equipment of any one Application testing service.Embodiments of the present invention are herein Aspect is unrestricted.

In the exemplary application scene shown in Fig. 1, nodal terminal 102 can be connected to institute in response to test terminal 101 Nodal terminal 102 is stated, calls the node procedure being pre-installed on the nodal terminal 102 to obtain the test terminal 101 Identify and be sent to the test platform 103, so that the test platform 103 recognizes the test terminal 101 and the section Point terminal 102 has connected;Then, nodal terminal 102 can in response to receive the test platform 103 be based on it is described mark and The Application testing instruction of transmission, calls the node procedure that described application program is attached into survey corresponding to the mark Examination terminal 101 simultaneously carries out Application testing being tested corresponding to the mark in terminal 101.

Illustrative methods

With reference to Fig. 1 application scenarios, describe to be used for according to exemplary embodiment of the invention with reference to figure 2~5 The method of Application testing.It should be noted that above-mentioned application scenarios, which are for only for ease of, understands that the present invention's is spiritual and former Manage and show, embodiments of the present invention are unrestricted in this regard.On the contrary, embodiments of the present invention can apply to Applicable any scene.

Referring to Fig. 2, the flow chart of the embodiment of method one of Application testing in the present invention is shown.The present embodiment is for example Nodal terminal is can apply to, such as specifically may include steps of:

Step 201, in response to test terminal it is connected to the nodal terminal, calling is pre-installed on the nodal terminal Node procedure obtain it is described test terminal mark and be sent to test platform, so that the test platform recognizes the survey Examination terminal has been connected with the nodal terminal.

During specific implementation, node procedure can be to all connections on nodal terminal during being run on nodal terminal Interface is monitored, and when needing to carry out Application testing to test terminal, the test terminal can be connected to section by user In a certain connecting interface of point terminal, the node procedure can run on such nodal terminal monitors that the test terminal has connected Nodal terminal is connected to, now node procedure can carry out communication interaction to obtain the mark of test terminal with test terminal, then Node procedure can carry out communication interaction so that the mark for testing terminal is sent into test platform, test platform with test platform again Test terminal can be recognized according to the mark received to be connected with nodal terminal, can now be tested this using the mark Terminal label is presence, and can views the test in presence during such technician access test platform Terminal, and by accessing to operate the test terminal can be selected to carry out Application testing.

It is understood that the node procedure on nodal terminal obtains the mark of test terminal and is sent to test platform, Test platform is recognized test terminal and be already connected to nodal terminal, be in order that technical staff can be understood by test platform The test terminal is in presence, just can be by test platform in the survey available for Application testing, such technical staff Application testing is carried out in examination terminal.Wherein, it is contemplated that Application testing is mainly test application program in different operations Running situation in environment, the mark for testing terminal can be used to indicate that the running environment that test terminal is provided, for example, test The mark of terminal can be the version number that the model of test terminal or test terminal use system.If on a nodal terminal Be connected to the same test terminal of two station identifications, then have node procedure and tested to select suitably to test terminal, select according to According to can be according to the test task status of terminal, historical record, residual memory space etc..

It should be noted that in the present embodiment, in order to avoid test terminal directly carries out communication interaction with test platform When need that the software for carrying out communication interaction for testing terminal and test platform, test are all installed in advance in each test terminal Terminal is to carry out communication interaction by nodal terminal and test platform, and installs on nodal terminal and set for realization in advance The node procedure to communicate between standby, so allow for testing any soft without installing in advance for Application testing in terminal Part.Wherein, node procedure is particularly used for carrying out communication interaction with test terminal, test platform respectively, specifically, on the one hand, Node procedure needs obtain the information such as the mark of test terminal, test result from test terminal and are then forwarded to test platform, another Aspect, node procedure be also required to receive carry out the application program installation file to be tested of test platform, Application testing refers to The test such as order relevant information sends the test such as application program installation file and Application testing control instruction to test terminal again Relevant information.

In some embodiments of the present embodiment, in order that node procedure can be realized respectively with testing terminal and test Platform carries out communication interaction, and a kind of possible node procedure example is, the node procedure can for example include test terminal Driver and test platform driver.Wherein, the test platform driver, can be used for the nodal terminal and institute Realization communicates between stating test platform.Specifically, test platform driver for example can be Java SDK.In addition, the survey Final drive program is tried, can be used for the test terminal that the nodal terminal identification has connected, and, it can be used for described Realize and communicate between nodal terminal and the test terminal.Specifically, it is assumed that the targeted test terminal of node procedure is Android device, then it for example can be Android SDK to test final drive program, when nodal terminal needs to obtain Android During the mark of equipment, adb devices instructions can be run to obtain;Assuming that the targeted test terminal of node procedure is IOS Equipment, then it for example can be libimobiledevice to test final drive program, when nodal terminal needs to obtain ios device During mark, idevice_id-l instructions can be run to obtain.Certainly, it is contemplated that above two test terminal may be required for connecing Enter test platform to be tested, the test final drive program in node procedure for example can also both include Android SDK or Including libimobiledevice.

It is understood that a test platform can generally correspond to multiple nodal terminals, each nodal terminal is at any time There may be test terminal connection.In order that must be connected to the test terminal of nodal terminal can be tested land identification in time Arrive, so that technical staff can understand the test terminal that can carry out Application testing in real time, the one of the present embodiment In a little embodiments, node procedure can be established with test platform and communicated to connect in advance, so that test platform passes through the communication link The situation of connecting test terminal on automatic regular polling its nodal terminal is connect, has been connected so that test platform can recognize in time Connect the test terminal of nodal terminal.Specifically, the present embodiment is before step 201, such as can also include:Nodal terminal calls The node procedure is established with the test platform and communicated to connect;Nodal terminal passes through described in response to the reception test platform The test terminal inquiry request that timing is sent is communicated to connect, calls the node procedure inquiry whether there is and is already connected to the section The test terminal of point terminal;Nodal terminal performs in response to inquiring in the presence of the test terminal for being already connected to the nodal terminal Step 201.For example, situations of the Java SDK as the test platform driver in node procedure is installed in nodal terminal Under, nodal terminal can download JNLP file while test platform is directed to its newly-built node from test platform, download Into afterwards, user can run JNLP file on nodal terminal, the Jenkins service cans disposed on such test platform Communicated using JNLP agreements with nodal terminal.And can also be disposed on test platform between Jenkins services has The background service of communication and, background service can to Jenkins service transmission timing poll triggering command, Jenkins service Plug-in unit then can connecting test on the nodal terminal that automatic regular polling JNLP file is run under the triggering command of automatic regular polling The situation of terminal.

Step 202, the Application testing sent in response to receiving the test platform based on the mark are instructed, Call the node procedure that described application program is attached to corresponding to the mark to test terminal and correspond in the mark Test terminal on carry out Application testing.

During specific implementation, recognized and each section in each application program and test platform for having uploaded to test platform In each test terminal that point terminal has connected, technical staff can select to need the application journey tested by accessing test platform Sequence and test terminal, the application program and survey that test platform can be selected according to the access operation of technical staff based on technical staff Examination terminal generation Application testing instructs and is sent to the nodal terminal that the test terminal is connected, wherein Application testing Instruction can include to be needed to perform in the mark of the test terminal, the installation file of the application program and Application testing Action or order etc., when nodal terminal receives Application testing instruction, can call node procedure should answer to perform Instructed with program test, specifically, node procedure can recognize according to the mark of the test terminal needs Application testing Equipment be the test terminal, and the application program can be installed to the test terminal, then control the test terminal to transport again The row application program, to complete to need the action or order performed in Application testing, and obtains test result and returns to survey Try platform.

In some embodiments of the present embodiment, in order to avoid having completed in the application program engaged test terminal of test The system resources such as memory space, application program can be unloaded from test terminal after Application testing terminates, so that The system resource shared by the application program for having completed test is obtained to be released.Specifically, the present embodiment after step 202, example It can also such as include:Nodal terminal calls the section in response to detecting that the test terminal completes the Application testing Point program unloads the application program from the test terminal.

In other embodiments of the present embodiment, in order that the terminal of connecting test that is identified of test platform with The test terminal that nodal terminal is actually connected keeps synchronous, and test platform can disconnect in test terminal to be connected with nodal terminal When remove the mark of the test terminal, to cause technical staff to recognize, the test terminal is not at presence, so as to avoid Technical staff carries out Application testing to not connected test terminal and causes Application testing to fail.Specifically, this reality Applying example can also for example include:Nodal terminal disconnects the connection with the nodal terminal in response to the test terminal, calls institute State mark of the node procedure based on the test terminal and send removal request to the test platform, so that the test platform is deleted Except the mark of the test terminal.

By the technical scheme of the present embodiment, each test terminal can be made all to be connected to test by nodal terminal flat Platform, communicated, so need to only be installed on nodal terminal for distinguishing with test terminal, test platform respectively by nodal terminal The node procedure of communication interaction is carried out with test terminal, test platform, and each test terminal is all without installation and checkout platform The software of communication interaction is carried out, so as to just simplify operation of the technical staff in Application testing, and is also significantly subtracted The workload of technical staff is lacked.

Referring to Fig. 3, the flow chart of another embodiment of method of Application testing in the present invention is shown.The present embodiment example Test platform is such as can apply to, such as specifically may include steps of:

The mark of step 301, the test terminal sent in response to receiving nodal terminal, identify that the test terminal has connected It is connected to the nodal terminal;Wherein, the mark of the test terminal is the nodal terminal in response to the test terminal connection Call what the node procedure being pre-installed on the nodal terminal obtained to the nodal terminal.

It is understood that a test platform can generally correspond to multiple nodal terminals, each nodal terminal is at any time There may be test terminal connection.In order that must be connected to the test terminal of nodal terminal can be tested land identification in time Arrive, so that technical staff can understand the test terminal that can carry out Application testing in real time, the one of the present embodiment In a little embodiments, node procedure can be established with test platform and communicated to connect in advance, so that test platform passes through the communication link The situation of connecting test terminal on automatic regular polling its nodal terminal is connect, has been connected so that test platform can recognize in time Connect the test terminal of nodal terminal.Specifically, the present embodiment is before step 301, such as can also include:It is whole in the node In the case that communication connection has been established in end with the test platform, the test platform timing is sent to the nodal terminal to be tested Terminal inquiry is asked, so that the nodal terminal calls node procedure inquiry with the presence or absence of the survey for being already connected to the nodal terminal Terminal is tried, and in response to inquiring in the presence of the test terminal for being already connected to the nodal terminal, performs calling installation in advance Node procedure on the nodal terminal obtains the mark of the test terminal and is sent to the test platform.

Step 302, Application testing instruction sent based on described identify to the nodal terminal, so that the node is whole Call the node procedure that described application program is attached to corresponding to the mark and test terminal and in the mark pair in end Application testing is carried out in the test terminal answered.

In some embodiments of the present embodiment, in order that obtaining the terminal of connecting test and the section that test platform is identified The test terminal that point terminal is actually connected keeps synchronous, and test platform can be when test terminal disconnects and is connected with nodal terminal The mark of the test terminal is removed, the test terminal is not at presence to cause technical staff to recognize, so as to avoid skill Art personnel carry out Application testing to not connected test terminal and cause Application testing to fail.Specifically, this implementation Example can also for example include:Test platform is sent in response to receiving mark of the nodal terminal based on the test terminal Request is removed, deletes the mark of the test terminal;Wherein, the removal request is that the nodal terminal calls the node journey What sequence was sent.

By the technical scheme of the present embodiment, each test terminal can be made all to be connected to test by nodal terminal flat Platform, communicated, so need to only be installed on nodal terminal for distinguishing with test terminal, test platform respectively by nodal terminal The node procedure of communication interaction is carried out with test terminal, test platform, and each test terminal is all without installation and checkout platform The software of communication interaction is carried out, so as to just simplify operation of the technical staff in Application testing, and is also significantly subtracted The workload of technical staff is lacked.

The illustrative methods of the present invention are carried out from two angles of nodal terminal and test platform respectively in previous embodiment On the basis of introducing, in order that those skilled in the art more understand the application of embodiment of the present invention, handed over below from information Mutual angle is simultaneously aided with exemplified by a specific application scenarios, and embodiment of the present invention is introduced.

In the application scenarios, nodal terminal first runs preassembled node procedure and established and leading between test platform Letter connection is connected to nodal terminal so as to the automatic regular polling of acceptance test platform, afterwards user or technical staff by terminal is tested On, technical staff recognizes selection when the test terminal has been connected with nodal terminal in test platform again and the test terminal is carried out Application testing, then complete nodal terminal after test in the test terminal and delete the application program tested in terminal, End user or technical staff disconnect the connection of the test terminal and nodal terminal.Wherein, nodal terminal is for example specifically as follows PC, test terminal are for example specifically as follows mobile device, and mobile device for example can be that USB data transmission line is connected on PC , nodal terminal can for example be communicated by JNLP agreements with test platform, as shown in Figure 4.It should be noted that it should answer It is only to cause those skilled in the art to more clearly understand the present invention with scene, but embodiments of the present invention are not limited to the application Scene.

Referring to Fig. 5, the flow chart of the another embodiment of method of Application testing in the present invention is shown.In the present embodiment In, such as specifically may include steps of:

Step 501, PC call node procedure and test platform to establish and communicate to connect;

Step 502, test platform send test terminal inquiry to PC timings by the communication connection and asked;

Step 503, PC call node procedure inquiry with the presence or absence of the mobile device for being already connected to the PC;If it is, into Step 504.

It is understood that if node procedure inquiry has the mobile device connected less than PC, now need not show The mark of mobile device is obtained, node procedure also need not just return to the mark of mobile device to test platform, and test platform exists PC feedback is not received in the default time, it is possible to test terminal inquiry request is sent to PC again, so as to complete to realize Mobile device situation is connected on automatic regular polling PC.

Step 504, PC call node procedure to obtain the mark for the mobile device for being already connected to the PC and are sent to test and put down Platform.

Step 505, test platform receive the mark of mobile device, identify that the mobile device has been connected with PC.

Now, test platform can provide the mark that the mobile device is in presence, be somebody's turn to do so that technical staff understands Mobile device can be used for Application testing.

The mark generation Application testing of step 506, test platform based on the mobile device instructs and is sent to PC.

Wherein, test platform can according to the selection operation of technical staff, the mobile device chosen based on technical staff, Application program is uploaded and has needed test action or test command that the application program performs on the mobile device, generation should Instructed with program test.

Step 507, PC call node procedure that the application program is installed into the mobile device, and entered in the mobile device Row Application testing.

Step 508, PC call the test result that is obtained from the mobile device of node procedure and are sent to test platform.

Step 509, PC detect that the mobile device completes the test of the application program, call node procedure that this is applied into journey Sequence unloads from the mobile device.

Step 510, PC detect that the mobile device disconnects the connection with PC, call node procedure based on the mobile device Identify to send to test platform and remove request.

Step 511, test platform receive removal request, delete the mark of the mobile device.

Now, test platform deletes the mark that the mobile device is in presence, can be used for so that technical staff understands Do not include the mobile device in the equipment of Application testing.

By the technical scheme of the present embodiment, each test terminal can be made all to be connected to test by nodal terminal flat Platform, communicated, so need to only be installed on nodal terminal for distinguishing with test terminal, test platform respectively by nodal terminal The node procedure of communication interaction is carried out with test terminal, test platform, and each test terminal is all without installation and checkout platform The software of communication interaction is carried out, so as to just simplify operation of the technical staff in Application testing, and is also significantly subtracted The workload of technical staff is lacked.

Example devices

After the method for exemplary embodiment of the invention is described, next, with reference to 6~7 pairs of examples of the present invention of figure Property embodiment, be introduced for the equipment of Application testing.

Referring to Fig. 6, the structure chart of the embodiment of equipment one of Application testing in the present invention is shown.The present embodiment is set It is standby to be configured at nodal terminal, such as can specifically include:

First calling module 601, for being connected to the nodal terminal in response to test terminal, calling is pre-installed in institute State the node procedure on nodal terminal to obtain the mark of the test terminal and be sent to test platform, so as to the test platform The test terminal is recognized to be connected with the nodal terminal;

Second calling module 602, for the application sent in response to receiving the test platform based on the mark Program test instruct, call the node procedure by described application program be attached to corresponding to the mark test terminal and Corresponding to the mark Application testing is carried out in test terminal.

In some embodiments of the present embodiment, optionally, the equipment can also for example include:

3rd calling module, communicated to connect for calling the node procedure to be established with the test platform;

4th calling module, for the test sent in response to receiving the test platform by the communication connection timing Terminal inquiry is asked, and calls the node procedure inquiry with the presence or absence of the test terminal for being already connected to the nodal terminal;

Trigger module, it is whole in the presence of the test for being already connected to the nodal terminal for being inquired in the 4th calling module In the case of end, first calling module is triggered.

In other embodiments of the present embodiment, optionally, the node procedure can for example include test terminal Driver and test platform driver;The test final drive program, such as can be used for the nodal terminal identification The test terminal connected, and, such as can be used between the nodal terminal and the test terminal realizing and communicate; The test platform driver, such as can be used for realizing between the nodal terminal and the test platform and communicate.

In the other embodiment of the present embodiment, optionally, the equipment can also for example include:

6th calling module, in response to detecting that the test terminal completes the Application testing, calling institute Node procedure is stated to unload the application program from the test terminal.

In some other embodiments of the present embodiment, optionally, the equipment can also for example include:

7th calling module, in response to the test terminal disconnect with the connection of the nodal terminal, described in calling Mark of the node procedure based on the test terminal is sent to the test platform removes request, so that the test platform is deleted The mark of the test terminal.

The structure chart of another embodiment of the equipment of Application testing in the present invention is shown referring to Fig. 7.The present embodiment Equipment can be configured at test platform, such as can specifically include:

Identification module 701, for the mark of the test terminal in response to receiving nodal terminal transmission, identify the test Terminal is already connected to the nodal terminal;Wherein, the mark of the test terminal is the nodal terminal in response to the test Terminal is connected to the nodal terminal and calls what the node procedure being pre-installed on the nodal terminal obtained;

First sending module 702, for sending Application testing instruction based on described identify to the nodal terminal, with Toilet states nodal terminal and calls the node procedure that described application program is attached into test terminal corresponding to the mark simultaneously Application testing is carried out being tested corresponding to the mark in terminal.

In some embodiments of the present embodiment, optionally, the equipment can also for example include:

Second sending module, in the case of having established communication connection in the nodal terminal and the test platform, Timing sends test terminal inquiry request to the nodal terminal, so that the nodal terminal calls whether node procedure inquiry deposits The test terminal of the nodal terminal is being already connected to, and in response to inquiring in the presence of the test for being already connected to the nodal terminal Terminal, the mark for performing the node procedure acquisition test terminal that the calling is pre-installed on the nodal terminal are concurrent It is sent to the test platform;

In other embodiments of the present embodiment, optionally, the equipment can also for example include:

Removing module, for the removal in response to receiving mark of the nodal terminal based on the test terminal and sending Request, delete the mark of the test terminal;

Wherein, described remove asks to be that the nodal terminal calls the node procedure to send.

By the technical scheme of present device embodiment, each test terminal can be made all to be connected to by nodal terminal Test platform, communicated respectively with test terminal, test platform by nodal terminal, use so need to be only installed on nodal terminal In the node procedure for carrying out communication interaction with test terminal, test platform respectively, and each test terminal all without installation and is surveyed The software that platform carries out communication interaction is tried, so as to just simplify operation of the technical staff in Application testing, and is also shown Writing ground reduces the workload of technical staff.

If it should be noted that although be referred in above-detailed the equipment for Application testing equipment for drying or Sub-device, but this division is only not enforceable.In fact, according to the embodiment of the present invention, above-described two The feature and function of individual or more device can embody in one apparatus.Conversely, the feature of an above-described device It can be further divided into being embodied by multiple devices with function.

In addition, although the operation of the inventive method is described with particular order in the accompanying drawings, still, this do not require that or Hint must perform these operations according to the particular order, or the operation having to carry out shown in whole could realize it is desired As a result.Additionally or alternatively, it is convenient to omit some steps, multiple steps are merged into a step and performed, and/or by one Step is decomposed into execution of multiple steps.

Although describe spirit and principles of the present invention by reference to some embodiments, it should be appreciated that, this Invention is not limited to disclosed embodiment, and the division to each side does not mean that the feature in these aspects can not yet Combination is to be benefited, and this division is merely to the convenience of statement.It is contemplated that cover appended claims spirit and In the range of included various modifications and equivalent arrangements.

Claims (9)

1. a kind of method of Application testing, applied to nodal terminal, including:
The nodal terminal is connected in response to test terminal, calls the node procedure being pre-installed on the nodal terminal to obtain It is described test terminal mark and be sent to test platform, so as to the test platform recognize it is described test terminal with it is described Nodal terminal has connected;
The Application testing sent in response to receiving the test platform based on the mark is instructed, and calls the node Described application program is attached to corresponding to the mark by program tests terminal and is being tested corresponding to the mark in terminal Carry out Application testing;
Wherein, the node procedure includes test final drive program and test platform driver;
The test final drive program, the test terminal connected for nodal terminal identification, and, for institute State and realize and communicate between nodal terminal and the test terminal;
The test platform driver, communicated for being realized between the nodal terminal and the test platform.
2. the method according to claim 11, in addition to:
Call the node procedure to establish with the test platform to communicate to connect;
The test terminal inquiry sent in response to receiving the test platform by the communication connection timing is asked, described in calling Node procedure inquiry is with the presence or absence of the test terminal for being already connected to the nodal terminal;
It is pre-installed in described in the presence of the test terminal for being already connected to the nodal terminal, the execution calling in response to inquiring Node procedure on nodal terminal obtains the mark of the test terminal and is sent to the test platform.
3. the method according to claim 11, in addition to:
In response to detecting that the test terminal completes the Application testing, the node procedure is called to apply journey by described Sequence unloads from the test terminal.
4. the method according to claim 11, in addition to:
The connection with the nodal terminal is disconnected in response to the test terminal, calls the node procedure to be based on the test eventually The mark at end sends to the test platform and removes request, so that the test platform deletes the mark of the test terminal.
5. a kind of method of Application testing, applied to test platform, including:
In response to the mark for the test terminal for receiving nodal terminal transmission, identify that the test terminal is already connected to the node Terminal;Wherein, the mark of the test terminal is that the nodal terminal is connected to the node end in response to the test terminal Hold and call what the node procedure being pre-installed on the nodal terminal obtained;
Application testing instruction is sent based on described identify to the nodal terminal, so that the nodal terminal calls the section Described application program is attached to corresponding to the mark by point program tests terminal and is testing terminal corresponding to the mark Upper carry out Application testing;
Wherein, the node procedure includes test final drive program and test platform driver;
The test final drive program, the test terminal connected for nodal terminal identification, and, for institute State and realize and communicate between nodal terminal and the test terminal;
The test platform driver, communicated for being realized between the nodal terminal and the test platform.
6. the method according to claim 11, in addition to:
In the case where the nodal terminal and the test platform have established communication connection, regularly sent to the nodal terminal Terminal inquiry request is tested, the nodal terminal is already connected to so that the nodal terminal calls node procedure inquiry whether there is Test terminal, and in response to inquiring in the presence of the test terminal of the nodal terminal is already connected to, perform it is described call it is advance Node procedure on the nodal terminal obtains the mark of the test terminal and is sent to the test platform.
7. the method according to claim 11, in addition to:
Asked in response to the removal for receiving mark of the nodal terminal based on the test terminal and sending, delete the test The mark of terminal;
Wherein, described remove asks to be that the nodal terminal calls the node procedure to send.
8. a kind of equipment of Application testing, is configured at nodal terminal, including:
First calling module, for being connected to the nodal terminal in response to test terminal, calling is pre-installed in the node Node procedure in terminal obtains the mark of the test terminal and is sent to test platform, so that the test platform recognizes The test terminal has been connected with the nodal terminal;
Second calling module, for the Application testing sent in response to receiving the test platform based on the mark Instruction, call the node procedure that described application program is attached to corresponding to the mark and test terminal and in the mark Application testing is carried out in corresponding test terminal;
Wherein, the node procedure includes test final drive program and test platform driver;
The test final drive program, the test terminal connected for nodal terminal identification, and, for institute State and realize and communicate between nodal terminal and the test terminal;
The test platform driver, communicated for being realized between the nodal terminal and the test platform.
9. a kind of equipment of Application testing, is configured at test platform, including:
Identification module, for the mark of the test terminal in response to receiving nodal terminal transmission, the test terminal is identified It is connected to the nodal terminal;Wherein, the mark of the test terminal is that the nodal terminal connects in response to the test terminal It is connected to the nodal terminal and calls what the node procedure being pre-installed on the nodal terminal obtained;
First sending module, for sending Application testing instruction based on described identify to the nodal terminal, so as to described Nodal terminal calls the node procedure that described application program is attached to corresponding to the mark and tests terminal and described Corresponding to mark Application testing is carried out in test terminal;
Wherein, the node procedure includes test final drive program and test platform driver;
The test final drive program, the test terminal connected for nodal terminal identification, and, for institute State and realize and communicate between nodal terminal and the test terminal;
The test platform driver, communicated for being realized between the nodal terminal and the test platform.
CN201410795784.1A 2014-12-18 2014-12-18 A kind of method and apparatus of Application testing CN104461897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410795784.1A CN104461897B (en) 2014-12-18 2014-12-18 A kind of method and apparatus of Application testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410795784.1A CN104461897B (en) 2014-12-18 2014-12-18 A kind of method and apparatus of Application testing

Publications (2)

Publication Number Publication Date
CN104461897A CN104461897A (en) 2015-03-25
CN104461897B true CN104461897B (en) 2017-12-12

Family

ID=52907986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410795784.1A CN104461897B (en) 2014-12-18 2014-12-18 A kind of method and apparatus of Application testing

Country Status (1)

Country Link
CN (1) CN104461897B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106330595B (en) * 2015-07-02 2020-01-21 阿里巴巴集团控股有限公司 Heartbeat detection method and device for distributed platform
CN105338110A (en) * 2015-11-23 2016-02-17 小米科技有限责任公司 Remote debugging method, platform and server
CN105573883B (en) * 2015-12-11 2018-02-06 小米科技有限责任公司 Apparatus control method and device
CN105426195A (en) * 2015-12-14 2016-03-23 网易(杭州)网络有限公司 Effect verification processing method and device based on software development
CN106502905A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 A kind of method of testing of application program, apparatus and system
CN108337125A (en) * 2017-01-19 2018-07-27 杭州老板电器股份有限公司 Intelligent hardware devices test method, cloud platform and background controller
CN106844213A (en) * 2017-01-21 2017-06-13 江苏千米网络科技股份有限公司 A kind of front end method of testing and device
CN108628735B (en) * 2017-03-22 2020-12-18 腾讯科技(深圳)有限公司 Automatic test method and system for application
CN107634851A (en) * 2017-08-11 2018-01-26 珠海金山网络游戏科技有限公司 A kind of method of mobile terminal dynamic configuration server
CN110135168A (en) * 2019-05-16 2019-08-16 北京字节跳动网络技术有限公司 Detection method, device, system, terminal device and the storage medium of application program

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877867A (en) * 2009-04-28 2010-11-03 深圳富泰宏精密工业有限公司 Server and method used for mobile phone remote testing
KR20110019508A (en) * 2009-08-20 2011-02-28 골드피처 주식회사 A test and history management system for mobile station applications using test libraries and the method thereof
CN102495799A (en) * 2011-12-02 2012-06-13 刘伟 Automatic test system and method of movable terminal
CN102594962A (en) * 2012-03-05 2012-07-18 东莞市每通电子科技有限公司 Testing system for mobile terminal and testing method thereof
CN103312850A (en) * 2013-05-10 2013-09-18 江苏科技大学 Mobile phone automation testing system and work method
CN104021077A (en) * 2014-06-10 2014-09-03 广州市久邦数码科技有限公司 Mobile terminal software test system and method
CN104063305A (en) * 2013-03-18 2014-09-24 腾讯科技(深圳)有限公司 Pressure testing method, device and system for intelligent terminal software

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877867A (en) * 2009-04-28 2010-11-03 深圳富泰宏精密工业有限公司 Server and method used for mobile phone remote testing
KR20110019508A (en) * 2009-08-20 2011-02-28 골드피처 주식회사 A test and history management system for mobile station applications using test libraries and the method thereof
CN102495799A (en) * 2011-12-02 2012-06-13 刘伟 Automatic test system and method of movable terminal
CN102594962A (en) * 2012-03-05 2012-07-18 东莞市每通电子科技有限公司 Testing system for mobile terminal and testing method thereof
CN104063305A (en) * 2013-03-18 2014-09-24 腾讯科技(深圳)有限公司 Pressure testing method, device and system for intelligent terminal software
CN103312850A (en) * 2013-05-10 2013-09-18 江苏科技大学 Mobile phone automation testing system and work method
CN104021077A (en) * 2014-06-10 2014-09-03 广州市久邦数码科技有限公司 Mobile terminal software test system and method

Also Published As

Publication number Publication date
CN104461897A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
US10863022B2 (en) Using automatically collected device problem information to route and guide users' requests
CN105164644B (en) Hook frame
CN103812726B (en) Automated testing method and device for data communication equipment
CN102141962B (en) Safety distributed test framework system and test method thereof
CN105765923B (en) The method of the connection of client to non-managed service is provided in client-server remote access system
JP5485201B2 (en) Analysis device, acceptance test method, and acceptance test device
CN103298016B (en) the test system of mobile terminal
CN103838665B (en) A kind of RFID automatic test device and method
Ott et al. Orbit testbed software architecture: Supporting experiments as a service
US5774695A (en) Protocol interface gateway and method of connecting an emulator to a network
EP0888678B1 (en) Unix open systems interconnection layer testing
CN104699616B (en) The method of a kind of application test, Apparatus and system
CN105512029B (en) A kind of method, server and system for testing intelligent terminal
US9146837B2 (en) Automated build, deploy, and testing environment for firmware
CN104978258B (en) Automatic software test method and system
CN104077162B (en) Renewal, dissemination method and the device of mobile terminal application template
CN104281518B (en) Terminal applies test method, device, system, platform and mobile terminal
CN103685458A (en) System for managing home appliances and push service method thereof
CN104065528A (en) Method And Apparatus For Analyzing And Verifying Functionality Of Multiple Network Devices
CN106528432A (en) Construction method and apparatus for test scene data, and buried point test method
CN101478449B (en) Protocol automatic test method and system thereof
CN105260315B (en) A kind of method of the debugging log in embedded system process
CN101022375B (en) Centralizing automatic testing device and method for testing radio local network
MX2007010846A (en) Apparatus and methods for determining voice and/or data processing performance of a wireless device.
CN104394191A (en) Method, control terminal, and system for remotely controlling mobile terminal

Legal Events

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