CN109299011A - A kind of test method and system of application program - Google Patents

A kind of test method and system of application program Download PDF

Info

Publication number
CN109299011A
CN109299011A CN201811121813.0A CN201811121813A CN109299011A CN 109299011 A CN109299011 A CN 109299011A CN 201811121813 A CN201811121813 A CN 201811121813A CN 109299011 A CN109299011 A CN 109299011A
Authority
CN
China
Prior art keywords
test
testing
machine
application
target detection
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.)
Pending
Application number
CN201811121813.0A
Other languages
Chinese (zh)
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811121813.0A priority Critical patent/CN109299011A/en
Publication of CN109299011A publication Critical patent/CN109299011A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Landscapes

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

Abstract

The present invention is suitable for technical field of information processing, provides the test method and system of a kind of application program, comprising: testing and control terminal receives Application testing request;Destination application is downloaded from application library according to application identities, and obtains the operating status for being deployed in the corresponding test machine of device model in remote test computer room;The arbitrary target test machine being in idle condition to operating status sends the program file of test instruction and destination application;Target detection machine installation targets application program, and instruct corresponding testing process to test destination application according to test.The present invention need to be only communicatively coupled with the test machine in remote test computer room can be realized remote testing, different departments can share same set of test machine by time-multiplexed mode, reduce testing cost, and test machine is avoided to circulate between each department, caused by efficiency reduce the problem of.

Description

A kind of test method and system of application program
Technical field
The invention belongs to technical field of information processing more particularly to the test methods and system of a kind of application program.
Background technique
With the continuous development of terminal technology, in order to meet the various demands in user's use process, the number of application program Amount and renewal speed also constantly increase, and therefore, how efficiently to test application program, then directly affect application program Renewal speed.During due to test application program, generally requires to be installed on and carry out pressure test on test machine, it is existing The test method of application program needs to configure the test machine of different model for the developing department of application program, to determine that difference is answered Whether can be operated normally on the test machine of each model with program, when the department of the application program of exploitation is more, then be needed A large amount of test machine is bought, it is excessively high so as to cause testing cost;Alternatively, multiple public same set of test machines of department, but should Method then needs to circulate test machine between multiple departments, is easy to cause test machine to be easily damaged and lose, and circulate Process also more elapsed time, reduce testing efficiency.It can be seen that the test method of existing application program, it can not be very Preferable balance is obtained between testing cost and testing efficiency well.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of test method of application program and system, it is existing to solve The test method of application program can not obtain preferable the problem of balancing between testing cost and testing efficiency well.
The first aspect of the embodiment of the present invention provides a kind of test method of application program, the survey applied to application program Test system, the test macro of the application program include: testing and control terminal and are deployed at least the one of remote test computer room The test method of a test machine, the application program includes:
The testing and control terminal receives Application testing request;The Application testing request includes: to be tested Destination application application identities and the test machine for installing the destination application device model;
Destination application is downloaded from application library according to the application identities, and is obtained and be deployed in remote test machine The operating status of the corresponding test machine of device model described in room
The arbitrary target test machine being in idle condition to operating status sends test instruction and the target application journey The program file of sequence;
The target detection machine installs the destination application, and instructs corresponding testing process pair according to the test The destination application is tested.
The second aspect of the embodiment of the present invention provides a kind of test macro of application program, the test of the application program System includes: testing and control terminal and at least one test machine for being deployed in remote test computer room;
The testing and control terminal, for receiving Application testing request;Application testing request include: to The device model of the application identities of the destination application of test and the test machine for installing the destination application;
The testing and control terminal, for downloading destination application from application library according to the application identities, And obtain the operating status for being deployed in the corresponding test machine of device model described in remote test computer room
The testing and control terminal, the arbitrary target test machine for being in idle condition to operating status send test and refer to The program file of order and the destination application;
The target detection machine instructs corresponding test for installing the destination application, and according to the test Process tests the destination application.
The test method and system for implementing a kind of application program provided in an embodiment of the present invention have the advantages that
The embodiment of the present invention is by determining the target application tested needed for user when receiving Application testing request Program and test the destination application test machine device model, by be deployed in it is each in remote test computer room The operating status of test machine, it is determined whether there is test machine corresponding with the device model is the free time, can be used for test target and answers With program;If it exists with the test machine of the device model and free time, then destination application is sent to the test machine, and control It makes the target detection machine and the destination application is installed, complete corresponding test operation, realize remote progress application program survey The purpose of examination.Compared with the test method of existing application program, since the test machine of different model is deployed in remote test In computer room, when the developing department of a certain application program needs to test, it need to only be led to the test machine in the remote test computer room Remote testing can be realized in letter connection, and different departments can share same set of test machine by time-multiplexed mode, reduce Testing cost, and avoid test machine and circulate between each department, caused by efficiency the problem of reducing.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of interaction diagrams of the test method for application program that first embodiment of the invention provides;
Fig. 2 a is a kind of test method S104 specific implementation flow chart for application program that second embodiment of the invention provides;
Fig. 2 b is the structural block diagram of the test macro for the application program that the real-time example of the present invention one provides;
Fig. 3 is a kind of test method S104 specific implementation flow chart for application program that third embodiment of the invention provides;
Fig. 4 is a kind of test method S104 specific implementation flow chart for application program that fourth embodiment of the invention provides;
Fig. 5 is a kind of test method S102 specific implementation flow chart for application program that fifth embodiment of the invention provides;
Fig. 6 be another embodiment of the present invention provides a kind of application program test macro structural block diagram.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
The embodiment of the present invention is by determining the target application tested needed for user when receiving Application testing request Program and test the destination application test machine device model, by be deployed in it is each in remote test computer room The operating status of test machine, it is determined whether there is test machine corresponding with the device model is the free time, can be used for test target and answers With program;If it exists with the test machine of the device model and free time, then destination application is sent to the test machine, and control It makes the target detection machine and the destination application is installed, complete corresponding test operation, realize remote progress application program survey The purpose of examination solves the test method of existing application program, can not be well between testing cost and testing efficiency The problem of obtaining preferable balance.
In embodiments of the present invention, the executing subject of process is the test macro of application program.The test of the application program System includes at least one testing and control terminal and at least one is deployed in the test machine of remote test computer room, wherein should Testing and control terminal includes but is not limited to: the smart machines such as server, computer, smart phone and tablet computer, Ke Yitong It crosses communication interface or wireless network is connected with test machine, and test machine tests test machine according to testing process;Using Test machine in the test macro of program includes but is not limited to: PC, smart phone and tablet computer etc. are mountable simultaneously The equipment for running application program.Fig. 1 shows the interactive stream of the test method of the application program of first embodiment of the invention offer Cheng Tu, details are as follows:
In S101, the testing and control terminal receives Application testing request;The Application testing request packet It includes: the equipment type of the application identities of destination application to be tested and the test machine for installing the destination application Number.
In the present embodiment, testing and control terminal is deployed among different computer rooms from test machine, wherein test machine deployment In remote test computer room, and testing and control terminal disposition is in user side, and the two carries out data interaction by communication link, thus with The test machine that family can be located at remote test computer room by operating testing and control terminal control, completes corresponding test operation.It needs Illustrate, multiple test machines can be equipped in remote test computer room, and the device model between different test machines can phase With can also be different, i.e., the test machine of the same device model can have multiple, avoid multiple users to same device model When test machine initiates Application testing request, need to wait longer time, to further improve the efficiency of test.
In the present embodiment, remote test computer room can carry out communication linkage with the testing and control terminal of different user, i.e., Test machine in remote test computer room can respond the Application testing request that multiple and different testing and control terminals are initiated.No It can be carried out by test machine different in remote test computer room in the same testing and control terminal same time corresponding using journey The test operation of sequence realizes the purpose of synchronism detection.
In the present embodiment, user can send an Application testing request to testing and control terminal, in the application The application identities for the application program tested needed for being added in program test request, so that test macro passes through the application identities The program file of the application program is obtained, the device model for installing the test machine of the application program can also be added to this together In Application testing request, due to containing the test machine of distinct device model in point of presence, such as have with Android system For the mobile terminal of frame, there is the computer using microsoft system as frame, also using linux system as the server of frame, because This, user can carry from the test machine for choosing one or more particular device models, the test as required test application program Body equipment.It should be noted that selected application program in this case, can need for each application program to be multiple Specify the device model of the test machine of corresponding installation;The device model of selected test machine may be it is multiple, in the feelings Under condition, then it represents that the application program needs to be installed in the test machine of multiple equipment model, to test in distinct device model The compatibility of test machine.
Optionally, in the present embodiment, application program can generate an application program based on testable application program The page is selected, the page is selected by the application program, user can choose the required application program tested, and test macro is certainly The dynamic application identities for determining each application program according to the user's choice;Based on this, user can by it is required test answer It is uploaded in advance with program in the testing and control terminal, the application program update application that testing and control terminal is uploaded according to user The procedure selection page, to guarantee the real-time of the application program selection page.Certainly, the selection of test machine can also be referred to Above-mentioned mode generates a test machine selection page, and in this case, testing and control terminal obtains the survey that point of presence includes The number of test-run a machine and the corresponding facility information of each test machine show each testable test in the test machine selection page The facility information of machine chooses the test vehicle equipment of application program convenient for user.
In S102, the testing and control terminal downloads target application journey according to the application identities from application library Sequence, and obtain the operating status for being deployed in the corresponding test machine of device model described in remote test computer room.
In the present embodiment, testing and control terminal receive Application testing request after, can to the test request into Row parsing, obtains device identification and application identities.Testing and control terminal is communicatively coupled with remote test computer room, and to this The host computer of remote test computer room sends operating status acquisition instruction, and remote test computer room obtains each test by serial line interface The operating status of machine, and summarize to obtain operating status list and return to testing and control terminal, the testing and control terminal is according to the fortune Whether the state that row status list inquires the corresponding test machine of device model selected by user is idle state, if so, executing The relevant operation of S103.Optionally, if the corresponding test machine of the device model is occupied state in the operating status list, An equipment occupied information is returned to user, after the completion of other testing and control terminal tests of user waiting prompt, then is sent out again Play test request.
Optionally, in the present embodiment, if the number that operating status is empty test machine be it is multiple, obtain each test The runing time and resources occupation rate of machine calculate the priority of each test machine based on above-mentioned two parameter, choose priority A highest test machine executes the relevant operation of S103 as target detection machine.Due to the shorter test machine of runing time, Its cache in amount of redundant data it is smaller, therefore in the test process for carrying out application program, it is understood that there may be data collision Happening probability also can be less, to improve the test accuracy rate of application program;Similarly, resources occupation rate is lower, then Because the probability of test machine delay machine caused by data cached spilling is relatively low, the standard of Application testing can be also further increased True property.Based on above-mentioned two reason, testing and control terminal can determine the priority of each test machine before choosing test machine, and Choose target detection machine of the test machine of highest priority as application program.
In the present embodiment, testing and control terminal can also be marked while determining test machine operating status according to application Destination application is downloaded in knowledge from application library.Wherein, which can store in the sheet of testing and control terminal In ground storage unit, in this case, required destination application to be tested can be sent to testing and control in advance by user Terminal, so that testing and control terminal is stored.The application library can also be a database server, each for storing Hair opens the application program of staff development, in this case, user can the destination application first by required test be uploaded to this Database server is then instructed to testing and control terminal sending application program test after upload, and then testing and control is whole End can obtain the corresponding destination application of application identities from database server.
In S103, the arbitrary target test machine that the testing and control terminal is in idle condition to operating status, which is sent, to be surveyed The program file of examination instruction and the destination application.
In the present embodiment, if existence is that empty and device model and Application testing are requested in remote test computer room Matched test machine, then it is target detection machine that testing and control terminal, which can lock the test machine, and by the operation of the target detection machine State is adjusted to occupied state, so that other testing and control terminals can not request to carry out application program by the test machine simultaneously The case where being tested, avoiding repetitive requests generation.
In the present embodiment, testing and control terminal is surveyed in order to which the program file of application program to be tested is sent to distal end The target detection machine in test-run a machine room can first establish a communication link with the host computer of remote test computer room, and pass through the host computer In bridge, the serial link between above-mentioned communication link and host computer and test machine is bridged, to establish Communication linkage between testing and control terminal and test machine, and the application program acquired in S102 is passed through into the communication Link is sent to test machine.
In the present embodiment, testing and control terminal can also send test to target detection machine by the communication link and refer to It enables, so that target detection machine can complete corresponding testing process based on test instruction, exports corresponding test result.It needs Illustrate, test instruction and destination application can be sent simultaneously, can also be divided according to the testing requirement of user It is not sent to target detection machine.
In S104, the target detection machine installs the destination application, and corresponding according to test instruction Testing process tests the destination application.
In the present embodiment, testing and control terminal can be referred to by communication linkage to the installation of test machine sending application program It enables, controls test machine installation targets application program to realize, after the installation is completed, testing and control terminal can pass through program to be applied Activation instruction starts the destination application being installed on test machine, and executes subsequent test operation.Specifically, test control Terminal storage processed has an operating parameter acquisition module, and each operating parameter Xiang Jun is corresponding with one in the operating parameter acquisition module Test script, testing and control terminal can be run on a testing machine respectively based on the test script, to obtain needed for the test script The operating parameter of acquisition, and the data after test are imported into the operating parameter acquisition module, and after acquisition, it generates One test parameter collection result, and the test parameter collection result is exported to user, so that user consults relevant test As a result, judging whether application program is abnormal.
Optionally, in the present embodiment, testing and control terminal executes the detailed process of test operation to destination application It can be with are as follows: when needing to carry out pressure test to application program, i.e., test application program is higher in the resources occupation rate of test machine The stable case of Shi Yunhang, testing and control terminal can activate the other applications being installed on test machine, and by multiple applications Program cyclic activation is to front stage operation, to judge whether destination application the case where collapse is exited occurs.
Optionally, in the present embodiment, after the completion of test, testing and control terminal can control test machine by communication linkage, Destination application is unloaded, application program excessively influences subsequent test operation after multiple test to avoid test machine.
Above as can be seen that a kind of test method of application program provided in an embodiment of the present invention is by receiving application When program test is requested, determines the destination application of test needed for user and test the test machine of the destination application Device model passes through the operating status with each test machine being deployed in remote test computer room, it is determined whether exist and set with this The standby corresponding test machine of model is the free time, can be used for test target application program;If it exists with the device model and free time Destination application is then sent to the test machine by test machine, and is controlled the test machine and installed the destination application, and phase is completed The test operation answered realizes the remote purpose for carrying out Application testing.Compared with the test method of existing application program, Since the test machine of different model is deployed in remote test computer room, when the developing department of a certain application program needs to test, Need to only be communicatively coupled with the test machine in the remote test computer room can be realized remote testing, when different departments can pass through Divide the mode of multiplexing to share same set of test machine, reduces testing cost, and avoid test machine and flow between each department Turn, caused by efficiency reduce the problem of.
Fig. 2 a shows the specific implementation of the test method S104 of application program of second embodiment of the invention offer a kind of Flow chart.Referring to fig. 2 shown in a, embodiment is stated relative to Fig. 1, in a kind of test method of application program provided in this embodiment S104 includes: S201~S206, and specific details are as follows:
Further, the test macro of the application program further includes relay system and pseudo subscriber terminal, it is described after Electric installation is deployed in the serial link between the target detection machine and the pseudo subscriber terminal, to change the serial link On off operating mode, instruct corresponding testing process to test the destination application according to the test, comprising:
In S201, the testing and control terminal sends debugging enabled instruction to the pseudo subscriber terminal.
In the present embodiment, in the test process of destination application, in order to determine whether application program can receive And debugging instruction is responded, it can be used by the serial link established between pseudo subscriber terminal and target detection machine by simulation Family terminal carries out AccessPort operation to target detection machine, for example, if target detection machine is the terminal device for carrying Android system, Then the debugging instruction can be debugging bridge (Android Debug Bridge, ADB) instruction, be surveyed by ADB command detection target For test-run a machine during running the application program, whether each port can carry out data interaction with pseudo subscriber terminal.
Fig. 2 b is the structural block diagram of the test macro for the application program that one embodiment of the invention provides.Referring to fig. 2 shown in b, The test macro of the application program includes to be deployed in the testing and control terminal 21 of user's computer room and be deployed in remote test machine Target detection machine 22, pseudo subscriber terminal 23 and the relay system 24 in room.Wherein, testing and control terminal 21 passes through communication link It is connected with target detection machine 22, pseudo subscriber terminal 23 and relay system 24 respectively, it can be achieved that being carried out to above-mentioned three classes equipment Control.It is connected between target detection machine 22 and pseudo subscriber terminal 23 by serial line interface, on the two serial link Configured with relay system 24, the switch order which can send according to testing and control terminal controls the serial link On off operating mode, that is, the switching device of the serial link.
In the present embodiment, when the application program needs to carry out debugging testing process, then terminal control mechanism can be to simulation User terminal sends a debugging enabled instruction, and pseudo subscriber terminal can activate the mould after receiving the debugging enabled instruction Serial link between quasi- user terminal and target detection machine, and execute debugging testing process.
In S202, the pseudo subscriber terminal sends debugging in fact to the target detection machine by the serial link Example.
In S203, the target detection machine carries out the destination application based on the debugging example received Test, and the debugging result about the debugging example is returned to the pseudo subscriber terminal.
In the present embodiment, pseudo subscriber terminal can detect the debugging enabled instruction after receiving debugging enabled instruction In include destination application application identities and target detection machine device identification, then by device identification determine with Serial link between the target detection machine, and the serial link is activated, such as a debugging is sent by the serial link and is opened Target detection machine is given in dynamic instruction, after serial link is established, pseudo subscriber terminal can detect on the target detection machine whether It is already installed with destination application, if having installed, which is activated to front stage operation, so far, The debugging of application program prepares operation and then finishes, and can execute the relevant operation of S202.
In the present embodiment, pseudo subscriber terminal can extract debugging example out of preset test case library, and pass through The serial link sends debugging example to target detection machine.Target detection machine, can be according to debugging after receiving the debugging example Commissioning content in example obtains tune-up data of the destination application about each commissioning content, and in all commissioning contents After being performed both by, the debugging result of the debugging example is generated, and the debugging result is returned into user terminal.
In the present embodiment, since the data of debugging example can be multiple, and the process for executing debugging operations needs to protect The serial link held between pseudo subscriber terminal and target detection machine is in connected state, to receive the tune about debugging example Test result.Target detection machine can directly return to a test result to pseudo subscriber terminal after completing a debugging example, After can also running all debugging examples, the corresponding debugging result of each debugging example is encapsulated as data together Packet, returns to pseudo subscriber terminal by serial link.Preferably, pseudo subscriber terminal can be directly acquired by serial link The operation tune-up data of target detection machine output, and debugging result is generated in pseudo subscriber terminal side based on tune-up data.
In S204, if the testing and control terminal receives the link exception information of the pseudo subscriber terminal feedback, Then instruction is powered on again to relay system transmission.
In the present embodiment, if pseudo subscriber terminal and target detection machine are during being debugged, analog subscriber is whole End detect the serial link exception, such as data outage or request it is unresponsive, then can to test terminal return a link Exception information, so that testing and control terminal carries out exception response operation to the serial link.The link exception information includes mesh Mapping tries the device identification of terminal, can determine that the serial link is corresponding after Denso based on the device identification testing and control terminal It sets.
Optionally, which can be deployed on the serial link between multiple pseudo subscriber terminals and test machine, In this case, which includes multipair communications ports, and each pair of communications ports are configured with an on off operating mode switch, relay Device can be by controlling on off operating mode switch, to realize the on-off control to the serial link where the communications ports.? In this case, testing and control terminal is in addition to it needs to be determined that other than the device numbering of relay system, it is also necessary to determine opening for relay system Number is closed, instruction is powered on based on switch number and device numbering generation again.
In the present embodiment, test control device can store the mapping table of test machine and relay system, according to The device identification for including in the mapping table and link exception information determines the corresponding relay system of target detection machine, And it generates and powers on instruction again, and be sent to relay system.Optionally, testing and control terminal can by Internet Server with after The host computer of electric installation is communicated, and powers on instruction again to host computer transmission, which drives the bottom of relay system Machine heavy powers on instruction to respond this so that changing relay system correspondence switches on-off state.
In S205, the relay system response heavy instruction execution that powers on weighs power on operation, and re-establishes described The serial link of pseudo subscriber terminal and the target detection machine.
In the present embodiment, relay system receive on again with you instruct after, then change the on-off shape of the serial link State, specifically, which can be with are as follows: relay system opens the switch of serial link, to interrupt whole serial link Physical link, and the switch of the serial link is re-closed after preset time, with the physics chain for the serial link for being again Road connection.By above-mentioned heavy power on operation, then serial line interface can be simulated in target detection machine and carries out plug operation, so that Serial link can re-establish.
Due to it is provided in this embodiment be a kind of remote testing scheme, i.e., remote test computer room might not exist cooperation survey The entity user of examination, and existing serial line interface debugging process, it is existing when encountering serial link and needing to re-establish link extremely There is the plug operation for generally requiring that administrator is arranged to execute scene in technology, this is also required to waste biggish human cost and not Convenient for the realization of remote testing, for these reasons, the present embodiment between target detection machine and pseudo subscriber terminal by matching Relay system is set, problems of the prior art are solved, improve survey by control link on-off simulation plug operation Try efficiency.
In S206, the pseudo subscriber terminal passes through the serial link re-established and sends out to the target detection machine It send using debugging request, and re-executes described send to the target detection machine and debug example.
In the present embodiment, after physical link re-establishes, in order to execute debugging process again, it is also necessary to retransmit Using debugging request, the serial link is activated on software view with realizing.The serial link in physical layer and After being connected on software view, pseudo subscriber terminal, which can re-execute, carries out the destination application in target detection machine Process is debugged, therefore execution can be returned and send debugging example to the target detection machine, it should be noted that if partially debugging real Example has been completed, then without repeating to send, need to only send unfinished debugging example.
In embodiments of the present invention, by configuring relay on the serial link of pseudo subscriber terminal and target detection machine Device, the operation that serial line interface can be plugged with analog subscriber, thus solve by serial link to application program into The problem of going because of link exception when debugging, and needing developer to plug serial line interface manually, reduce testing efficiency, improves remote What journey was tested can test content.
Fig. 3 shows a kind of specific implementation flow of the test method of application program of third embodiment of the invention offer Figure.It is shown in Figure 3, relative to embodiment described in Fig. 1, S104 in a kind of test method of application program provided in this embodiment Include: S301~S303, specific details are as follows:
Further, described corresponding according to test instruction if test instruction includes face test instruction Testing process tests the destination application, comprising:
In S301, the testing and control terminal obtains the resolution information of photographing module built in the target detection machine.
In the present embodiment, it if target detection machine needs to respond face test instruction, needs to obtain facial image, with It will pass through the test content that the facial image responds face test instruction.For example, carrying out recognition of face judges that active user is No is legitimate user, or carries out face acquisition, when the test of the correlation functions such as face information of typing legitimate user, is then needed Facial image is acquired, for the above-mentioned functional item for needing to be tested by facial image, then corresponding face can be generated and survey Target detection machine is given in examination instruction, to determine whether above-mentioned function is normal.
In the present embodiment, testing and control terminal is when detecting that target detection machine needs to respond face test instruction, meeting Acquire the resolution information of photographing module built in the target detection machine.Since the point of presence where target detection machine might not There are entity users, it is therefore desirable to obtain facial image by other equipment, be based on this, need to adjust by resolution information The resolution ratio of the facial image of whole other equipment, so that the photographing module of the facial image transmitted and the target detection machine Match.
In S302, the testing and control terminal passes through the facial image that local photographing module obtains current operation user, And the resolution ratio of the facial image is adjusted based on the resolution information, and the facial image adjusted is sent to institute State target detection machine.
In the present embodiment, testing and control terminal can pass through survey after the resolution information that target detection machine has been determined The facial image that controlling terminal obtains current operation user in the photographing module of local disposition is tried, since testing and control terminal is placed In user's computer room, i.e., user's computer room memory is based on this, testing and control in the operation user for the test operation for initiating application program Terminal can acquire the facial image of current operation user by local photographing module, and be converted by the facial image Afterwards, target detection machine is sent to complete face test instruction.
Optionally, the communication link between the testing and control terminal and target detection machine can be real-time Data Transmission chain Road, the image data instantaneous transmission for being got testing and control terminal local photographing module by real-time transport protocol etc. is to target Test machine, to respond the test request that such as video calling test, direct broadcast function test need realtime image data.
In the present embodiment, testing and control terminal, can be according to the resolution ratio of target detection machine after obtaining facial image Information adjusts the resolution ratio of the facial image, so that the photographing module of facial image adjusted and target detection machine matches.
In S303, the target detection machine is based on the facial image adjusted and responds the face test instruction.
It in the present embodiment, can be by the face adjusted after target detection machine receives facial image adjusted Input signal of the image as face test instruction, and execute the test operation that face test instructs corresponding testing process.
In embodiments of the present invention, facial image is acquired by testing and control terminal, and according to the resolution of target detection machine Rate adjusts the resolution ratio of facial image, to respond face test instruction, even if so that there is no entities to use in remote test computer room Family can also complete the relevant test operation of face, thus improve can test content range, improve testing efficiency.
Fig. 4 shows the specific implementation stream of the test method S104 of application program of fourth embodiment of the invention offer a kind of Cheng Tu.It is shown in Figure 4, relative to embodiment described in Fig. 1-Fig. 3, a kind of test method of application program provided in this embodiment Middle S104 includes: S401~S402, and specific details are as follows:
Further, described to instruct corresponding testing process to survey the destination application according to the test Examination, comprising:
In S401, the testing and control terminal sends touch-control simulation program to the target detection machine, and described in control Target detection machine installs the touch-control simulation program.
In the present embodiment, during due to remote test, most clicking operation can be corresponding by sending Instruction is completed, but can not be simulated by control instruction for needing the test item for carrying out slide then.Based on this, Testing and control terminal can send a touch-control simulation program, such as monkey test program to target detection machine, and control test Machine installs the touch-control simulation program, so as to can simulate the function of sliding trace on target detection machine, is slided needed for completion The test operation of track.
In S402, the target detection machine activates the touch-control simulation journey in the interface of the destination application Sequence generates random touch command, and obtains operating parameter of the destination application under the random touch command.
In the present embodiment, the operation interface of testing and control terminal control test machine displaying target application program, and at this The touch-control simulation program installed in S1041 is activated on the basis of operation interface, and journey is being applied by the touch-control simulation program Touch control operation is simulated on the interface of sequence, and records the operating parameter of destination application under Imitating touch control operation, is based on the fortune Row parameter identifies whether the performance indicator of the destination application reaches preset test purpose, judges the survey of destination application Whether examination passes through.
In embodiments of the present invention, by installing touch-control simulation program, still may be used during remote test with realizing To carry out needing the test item of sliding trace, adaptation field and the scope of application of the test method of application program are improved.
Fig. 5 shows the specific implementation stream of the test method S102 of application program of fifth embodiment of the invention offer a kind of Cheng Tu.It is shown in Figure 5, relative to embodiment described in Fig. 1-Fig. 3, a kind of test method of application program provided in this embodiment Middle S102 includes: S1021~S1022, and specific details are as follows:
In S1021, each test machine of the testing and control terminal into remote test computer room, which sends to occupy, to be visited Survey frame.
In the present embodiment, if test machine is during being tested, serial line interface can be in occupied state, and with The interface of the testing and control terminal of other applications is connected, i.e., the test machine in occupied state can not reply other equipment hair The data sent.Based on this, in order to obtain the operating status of each test machine, the testing and control terminal of application program can be to remote termination Room sends an occupancy and detects frame, if test machine receives the occupancy, detection frame can be returned to the testing and control terminal of application program One acknowledgement frame, to then can determine whether the test machine is in test mode according to whether test machine returns to acknowledgement frame.
In S1022, the occupied state frame that the testing and control terminal is returned based on each test machine is determined each The operating status of the test machine.
In the present embodiment, if test machine can return to occupied state frame according to detection frame is occupied, then it represents that the test machine It being in idle condition, conversely, if the test machine can not reply test detection frame, then it represents that the test machine is in occupied state, from And the testing and control terminal of application program can identify to obtain the operating status of each test machine.
In embodiments of the present invention, detection frame is occupied by sending to test machine, detects the operating status of each test machine, Implementation is simple, improves the determination efficiency of test machine operating status.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Fig. 6 shows a kind of structural block diagram of the testing and control terminal of application program of one embodiment of the invention offer, should Each equipment that the test macro of application program includes is used to execute each step in the corresponding embodiment of Fig. 1.Referring specifically to Fig. 1 With the associated description in embodiment corresponding to Fig. 1.For ease of description, only the parts related to this embodiment are shown.
Referring to Fig. 6, the test macro 60 of the application program includes: testing and control terminal 61 and is deployed in remote test At least one test machine 620 of computer room;
The testing and control terminal 61, for receiving Application testing request;The Application testing is requested The device model of the application identities of destination application to be tested and the test machine for installing the destination application;
The testing and control terminal 61, for downloading target application journey from application library according to the application identities Sequence, and obtain the operating status for being deployed in the corresponding test machine 620 of device model described in remote test computer room;
The testing and control terminal 61, the arbitrary target test machine 621 for being in idle condition to operating status are sent The program file of test instruction and the destination application;
The target detection machine 621 instructs corresponding survey for installing the destination application, and according to the test Examination process tests the destination application.
Optionally, the test macro of the application program further includes relay system and pseudo subscriber terminal, the relay Device is deployed in the serial link between the target detection machine 621 and the pseudo subscriber terminal 61, described serial to change The on off operating mode of link;The target detection machine 621, for executing the test operation of the test instruction, comprising:
The testing and control terminal 61, for sending debugging enabled instruction to the pseudo subscriber terminal;
The pseudo subscriber terminal, for sending debugging example to the target detection machine 621 by the serial link;
The target detection machine 621 tests the destination application based on the debugging example received, And the debugging result about the debugging example is returned to the pseudo subscriber terminal;
The testing and control terminal 61, if the link exception information for receiving the pseudo subscriber terminal feedback, Instruction is powered on again to relay system transmission;
The relay system weighs power on operation for responding the heavy instruction execution that powers on, and re-establishes the simulation The serial link of user terminal and the target detection machine 621;
The pseudo subscriber terminal is sent out for the serial link by re-establishing to the target detection machine 621 It send using debugging request, and re-executes described send to the target detection machine 621 and debug example.
Optionally, if test instruction includes face test instruction, the target detection machine 621, for according to institute Stating test instructs corresponding testing process to test the destination application, comprising:
The testing and control terminal 61, for obtaining the resolution information of photographing module built in the target detection machine 621;
The testing and control terminal 61, for obtaining the facial image of current operation user by local photographing module, and It adjusts the resolution ratio of the facial image based on the resolution information, and the facial image adjusted is sent to described Target detection machine 621;
The target detection machine 621, for responding the face test instruction based on the facial image adjusted.
Optionally, the target detection machine 621, for executing the test operation of the test instruction, comprising:
The testing and control terminal 61, for sending touch-control simulation program to the target detection machine 621, and described in control Target detection machine 621 installs the touch-control simulation program;
The target detection machine 621, for activating the touch-control simulation program in the interface of the destination application, Random touch command is generated, and obtains operating parameter of the destination application under the random touch command.
Optionally, the testing and control terminal 61 is deployed in device model pair described in remote test computer room for obtaining The operating status for the test machine 620 answered, comprising:
The testing and control terminal 61 sends to occupy and visit for each test machine 620 into remote test computer room Survey frame;
The testing and control terminal 61, the occupied state frame for being returned based on each test machine 620, is determined each The operating status of the test machine.
Therefore, the testing and control terminal of application program provided in an embodiment of the present invention equally can only need to be with the remote test Test machine in computer room, which is communicatively coupled, can be realized remote testing, and different departments can be shared by time-multiplexed mode Same set of test machine reduces testing cost, and avoids test machine and circulate between each department, caused by efficiency drop Low problem.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of test method of application program, the test macro applied to application program, which is characterized in that the application program Test macro include: testing and control terminal and at least one test machine for being deployed in remote test computer room, it is described to apply journey The test method of sequence includes:
The testing and control terminal receives Application testing request;The Application testing request includes: mesh to be tested Mark the application identities of application program and the device model of the test machine for installing the destination application;
Destination application is downloaded from application library according to the application identities, and is obtained and be deployed in remote test computer room The operating status of the corresponding test machine of the device model;
The arbitrary target test machine that is in idle condition to operating status sends test instruction and the destination application The program file of program file;
The target detection machine installs the destination application, and instructs corresponding testing process to described according to the test Destination application is tested.
2. test method according to claim 1, which is characterized in that the test macro of the application program further includes relay Device and pseudo subscriber terminal, the relay system are deployed between the target detection machine and the pseudo subscriber terminal Serial link, it is described to instruct corresponding testing process to institute according to the test to change the on off operating mode of the serial link Destination application is stated to be tested, comprising:
The testing and control terminal sends debugging enabled instruction to the pseudo subscriber terminal;
The pseudo subscriber terminal sends debugging example to the target detection machine by the serial link;
The target detection machine tests the destination application based on the debugging example received, and to described Pseudo subscriber terminal returns to the debugging result about the debugging example;
If the testing and control terminal receives the link exception information of the pseudo subscriber terminal feedback, to described after Denso It sets transmission and powers on instruction again;
Relay system response it is described it is heavy power on instruction execution weight power on operation, and re-establish the pseudo subscriber terminal with The serial link of the target detection machine;
The pseudo subscriber terminal passes through the serial link re-established asks to target detection machine sending application debugging It asks, and re-executes described send to the target detection machine and debug example.
3. test method according to claim 1, which is characterized in that if test instruction includes face test instruction, It is then described to instruct corresponding testing process to test the destination application according to the test, comprising:
The testing and control terminal obtains the resolution information of photographing module built in the target detection machine;
The testing and control terminal passes through local photographing module and obtains the facial image of current operation user, and is based on the resolution Rate information adjusts the resolution ratio of the facial image, and the facial image adjusted is sent to the target detection machine;
The target detection machine is based on the facial image adjusted and responds the face test instruction.
4. test method according to claim 1-3, which is characterized in that instruct corresponding survey according to the test Examination process tests the destination application, comprising:
The testing and control terminal sends touch-control simulation program to the target detection machine, and controls the target detection machine installation The touch-control simulation program;
The target detection machine activates the touch-control simulation program in the interface of the destination application, generates random touch-control Instruction, and obtain operating parameter of the destination application under the random touch command.
5. test method according to claim 1-3, which is characterized in that the testing and control terminal obtains deployment The operating status of the corresponding test machine of the device model described in remote test computer room, comprising:
The each test machine of the testing and control terminal into remote test computer room, which is sent, occupies detection frame;
The occupied state frame that the testing and control terminal is returned based on each test machine, determines the fortune of each test machine Row state.
6. a kind of test macro of application program, which is characterized in that the test macro of the application program includes: testing and control end Hold and be deployed at least one test machine of remote test computer room;
The testing and control terminal, for receiving Application testing request;The Application testing request includes: to be tested Destination application application identities and the test machine for installing the destination application device model;
The testing and control terminal for downloading destination application from application library according to the application identities, and obtains Take the operating status for being deployed in the corresponding test machine of device model described in remote test computer room
The testing and control terminal, arbitrary target test machine for being in idle condition to operating status send test instruction with And the program file of the destination application;
The target detection machine instructs corresponding testing process for installing the destination application, and according to the test The destination application is tested.
7. test macro according to claim 6, which is characterized in that the test macro of the application program further includes relay Device and pseudo subscriber terminal, the relay system are deployed between the target detection machine and the pseudo subscriber terminal Serial link, to change the on off operating mode of the serial link;The target detection machine, for executing the survey of the test instruction Examination operation, comprising:
The testing and control terminal, for sending debugging enabled instruction to the pseudo subscriber terminal;
The pseudo subscriber terminal, for sending debugging example to the target detection machine by the serial link;
The target detection machine, for being tested based on the debugging example received the destination application, and The debugging result about the debugging example is returned to the pseudo subscriber terminal;
The testing and control terminal, if the link exception information for receiving pseudo subscriber terminal feedback, to described Relay system transmission powers on instruction again;
The relay system weighs power on operation for responding the heavy instruction execution that powers on, and re-establishes the analog subscriber The serial link of terminal and the target detection machine;
The pseudo subscriber terminal, for passing through the serial link re-established to the target detection machine sending application tune Examination request, and re-execute described send to the target detection machine and debug example.
8. test macro according to claim 6, which is characterized in that if test instruction includes face test instruction, The then target detection machine, for instructing corresponding testing process to survey the destination application according to the test Examination, comprising:
The testing and control terminal, for obtaining the resolution information of photographing module built in the target detection machine;
The testing and control terminal for obtaining the facial image of current operation user by local photographing module, and is based on institute The resolution ratio that resolution information adjusts the facial image is stated, and the facial image adjusted is sent to the target and is surveyed Test-run a machine;
The target detection machine, for responding the face test instruction based on the facial image adjusted.
9. according to the described in any item test macros of claim 6-8, which is characterized in that the target detection machine, for executing The test operation of the test instruction, comprising:
The testing and control terminal for sending touch-control simulation program to the target detection machine, and controls the target detection Machine installs the touch-control simulation program;
The target detection machine, for activating the touch-control simulation program in the interface of the destination application, generate with Machine touch command, and obtain operating parameter of the destination application under the random touch command.
10. according to the described in any item test macros of claim 6-8, which is characterized in that the testing and control terminal, for obtaining Take the operating status for being deployed in the corresponding test machine of device model described in remote test computer room, comprising:
The testing and control terminal sends for each test machine into remote test computer room and occupies detection frame;
The testing and control terminal, the occupied state frame for being returned based on each test machine, determines each test The operating status of machine.
CN201811121813.0A 2018-09-26 2018-09-26 A kind of test method and system of application program Pending CN109299011A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811121813.0A CN109299011A (en) 2018-09-26 2018-09-26 A kind of test method and system of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811121813.0A CN109299011A (en) 2018-09-26 2018-09-26 A kind of test method and system of application program

Publications (1)

Publication Number Publication Date
CN109299011A true CN109299011A (en) 2019-02-01

Family

ID=65164087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811121813.0A Pending CN109299011A (en) 2018-09-26 2018-09-26 A kind of test method and system of application program

Country Status (1)

Country Link
CN (1) CN109299011A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159019A (en) * 2019-12-18 2020-05-15 平安国际智慧城市科技股份有限公司 Application program testing method, testing control terminal and testing terminal
CN112348462A (en) * 2020-10-29 2021-02-09 岭东核电有限公司 Process processing method, apparatus, computer device, and storage medium
CN114328272A (en) * 2022-03-02 2022-04-12 北京新氧科技有限公司 Application testing method, device and system and electronic equipment
CN116610511A (en) * 2023-07-18 2023-08-18 合肥康芯威存储技术有限公司 Storage test equipment and test method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5600790A (en) * 1995-02-10 1997-02-04 Research In Motion Limited Method and system for loading and confirming correct operation of an application program in a target system
US20130019242A1 (en) * 2011-07-13 2013-01-17 Institute For Information Industry Cloud-Based Test System and Method and Computer-Readable Storage Medium with Computer Program to Execute the Method
CN105095062A (en) * 2014-05-09 2015-11-25 腾讯科技(深圳)有限公司 Application testing method and system
CN105787364A (en) * 2014-12-23 2016-07-20 深圳市腾讯计算机系统有限公司 Automated testing method, device and system for task
CN107092555A (en) * 2016-08-05 2017-08-25 北京小度信息科技有限公司 A kind of method and system of test application program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5600790A (en) * 1995-02-10 1997-02-04 Research In Motion Limited Method and system for loading and confirming correct operation of an application program in a target system
US20130019242A1 (en) * 2011-07-13 2013-01-17 Institute For Information Industry Cloud-Based Test System and Method and Computer-Readable Storage Medium with Computer Program to Execute the Method
CN105095062A (en) * 2014-05-09 2015-11-25 腾讯科技(深圳)有限公司 Application testing method and system
CN105787364A (en) * 2014-12-23 2016-07-20 深圳市腾讯计算机系统有限公司 Automated testing method, device and system for task
CN107092555A (en) * 2016-08-05 2017-08-25 北京小度信息科技有限公司 A kind of method and system of test application program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159019A (en) * 2019-12-18 2020-05-15 平安国际智慧城市科技股份有限公司 Application program testing method, testing control terminal and testing terminal
CN111159019B (en) * 2019-12-18 2023-04-21 深圳赛安特技术服务有限公司 Application program testing method, testing control terminal and testing terminal
CN112348462A (en) * 2020-10-29 2021-02-09 岭东核电有限公司 Process processing method, apparatus, computer device, and storage medium
CN114328272A (en) * 2022-03-02 2022-04-12 北京新氧科技有限公司 Application testing method, device and system and electronic equipment
CN114328272B (en) * 2022-03-02 2022-06-21 北京新氧科技有限公司 Application testing method, device and system and electronic equipment
CN116610511A (en) * 2023-07-18 2023-08-18 合肥康芯威存储技术有限公司 Storage test equipment and test method thereof
CN116610511B (en) * 2023-07-18 2024-04-05 合肥康芯威存储技术有限公司 Storage test equipment and test method thereof

Similar Documents

Publication Publication Date Title
CN109299011A (en) A kind of test method and system of application program
Kemp et al. Cuckoo: a computation offloading framework for smartphones
US6188975B1 (en) Programmatic use of software debugging to redirect hardware related operations to a hardware simulator
CN105450463B (en) Adjustment method, the device and system of hardware device
CN109740222B (en) Testing device and system for automobile networking scene
US20110191787A1 (en) System and method for providing sensor data from embedded device to software development environment
CN108614767A (en) A kind of remote debugging method and device
CN103178996A (en) Distributed packet-switching chip model verification system and method
CN109324962A (en) A kind of test method and equipment of the application program based on cloud internet of things technology
Ahmed et al. A flexible testbed architecture for VANET
CN111859834B (en) UVM-based verification platform development method, system, terminal and storage medium
CN113722020A (en) Interface calling method, device and computer readable storage medium
CN116681013B (en) Simulation verification method, platform, device, equipment and medium of network chip
CN109857391A (en) Processing method and processing device, storage medium and the electronic device of data
CN111159019A (en) Application program testing method, testing control terminal and testing terminal
CN111522727A (en) Simulation object test method, device and system
CN103092676A (en) Analog input output method, device and system of virtual machine cluster
Fu et al. A configurable context-aware simulator for smart home systems
Boers et al. Developing wireless sensor network applications in a virtual environment
CN117041111A (en) Vehicle cloud function test method and device, electronic equipment and storage medium
CN103576667A (en) Main control panel test method, device and system
CN114253823A (en) Distributed test method and related equipment
CN101969442B (en) Process running environment perception and migration based network analog framework implementation method
CN112559336B (en) Method, device and system for self-adaptively debugging heterogeneous computing chip and main board chip
CN109460280A (en) Run method, the terminal of program

Legal Events

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