WO2017067441A1 - Method, device and system for testing application, and non-transient machine-readable storage medium - Google Patents

Method, device and system for testing application, and non-transient machine-readable storage medium Download PDF

Info

Publication number
WO2017067441A1
WO2017067441A1 PCT/CN2016/102418 CN2016102418W WO2017067441A1 WO 2017067441 A1 WO2017067441 A1 WO 2017067441A1 CN 2016102418 W CN2016102418 W CN 2016102418W WO 2017067441 A1 WO2017067441 A1 WO 2017067441A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
application
terminal
test terminal
script
Prior art date
Application number
PCT/CN2016/102418
Other languages
French (fr)
Chinese (zh)
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 广州爱九游信息技术有限公司
Publication of WO2017067441A1 publication Critical patent/WO2017067441A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Definitions

  • the present application relates to the field of computers, and in particular, to a test method, apparatus, system, and non-transitory machine readable storage medium for an application.
  • the essence of the stability test is to collect the running data of the application by running the application on the test terminal, and analyze whether the running of the application is stable according to the running data.
  • the stability test scheme applicable to mobile phone applications on the market mainly corresponds to manual operation to observe whether an abnormal phenomenon such as application crash, card frequency, etc. is wasted, labor is wasted, and test efficiency is low.
  • the present invention provides the following technical solutions:
  • test method for an application comprising:
  • the step of sending a pre-stored test script for controlling the running of the application to the test terminal may include:
  • a pre-stored test script for controlling the running of the application is sent to the successfully connected test terminal through the preset interface.
  • test instructions may include code submission instructions for the application.
  • the step of sending the pre-stored test script for controlling the running of the application to the test terminal according to the test instruction may include:
  • the code submission instruction of the application When the code submission instruction of the application is detected, it is determined whether the interval between the current time and the time of the last test is greater than a preset time interval. If the determination is yes, the test script is sent to the test terminal.
  • the step of controlling the test script to run on the test terminal to control the operation of the application on the test terminal may include:
  • the test startup instruction is used to start the test script in the test terminal to start running, so that the running test script starts monitoring software on the test terminal, And launching and running the application through the monitoring software.
  • the step of sending a test start command to the test terminal may include:
  • test start command In the case that the application is already installed on the test terminal, after the version of the application on the test terminal is consistent with the version indicated by the code submitted by the code submission instruction corresponding to the application, the test is performed.
  • the terminal sends a test start command; or
  • the application If the application is not installed on the test terminal, send an installation package of the application and an installation instruction to the test terminal, where the installation instruction is used to instruct the test terminal to install using an installation package of the application.
  • the application sends a test start command to the test terminal after the version of the application on the test terminal matches the version indicated by the code submitted by the code submission instruction of the application.
  • the method may further include:
  • test script is generated by receiving and compiling a code input by a user, wherein the test script includes instructions for controlling the application to run on the test terminal.
  • test method of another application which is applied to a test terminal, the method comprising:
  • the step of running the application on the test terminal in response to the control of the test script by the control terminal may include:
  • the step of running the test script to control the running of the application on the test terminal according to the test start command sent by the control terminal may include:
  • the step of starting and running the application by using the monitoring software may include: starting the application by the monitoring software and controlling execution business logic of the application.
  • the step of collecting the operation data for use in the test terminal may include: collecting, by the monitoring software, an execution log of the application execution service logic; and/or collecting, by the monitoring software Apply performance data during the run.
  • the method may further include: collecting, by the monitoring software, data indicating whether the test terminal is successfully connected to the control terminal, data indicating whether the monitoring software is successfully installed, and indicating whether the test script is started. Successful data, data indicating whether the monitoring software is successfully started, and data indicating whether the application is successfully started.
  • test instructions can include code submission instructions for the application.
  • the method may further include:
  • the version of the installed application is consistent with the version indicated by the code submitted by the code submission instruction corresponding to the application;
  • the application If the application is not installed on the test terminal, receiving an installation package of the application and an installation instruction sent by the control terminal, and installing the application by using an installation package of the application according to the installation instruction. .
  • an application testing apparatus comprising:
  • a sending module configured to send, to the test terminal, a pre-stored test script for controlling the running of the application according to the test instruction;
  • control module configured to run on the test terminal by controlling the test script to control operation of the application on the test terminal;
  • a receiving module configured to receive operation data of the application sent by the test terminal in the test terminal.
  • the device may further include:
  • An obtaining module configured to obtain a list of pre-selected test terminals, where the list of test terminals includes at least one test terminal, and the sending module performs a test in a list with the test terminal by using a preset connection manner
  • the preset interface of the terminal is connected, and the pre-stored test script for controlling the running of the application is sent to the successfully connected test terminal through the preset interface.
  • test instructions can include code submission instructions for the application.
  • the device may further include: a determining module, configured to determine, when the code submission instruction of the application is detected, whether the interval between the current time and the time of the last test is greater than a preset time interval, When the module determines to be YES, the transmitting module transmits the test script to the test terminal.
  • a determining module configured to determine, when the code submission instruction of the application is detected, whether the interval between the current time and the time of the last test is greater than a preset time interval
  • control module may be configured to send a test start instruction to the test terminal, where the test start command is used to start the test script in the test terminal to start running, so that the running The test script starts monitoring software on the test terminal, and starts and runs the application through the monitoring software.
  • the sending module is further configured to send a monitoring software installation package to the testing terminal to send the monitoring software in the testing terminal before the control module sends a test startup command to the testing terminal.
  • the application is installed on the test terminal
  • An installation instruction the installation instruction is used to instruct the test terminal to install the application by using an installation package of the application, and the version of the application on the test terminal is submitted with a code submission instruction corresponding to the application.
  • the sending module sends a test start command to the test terminal.
  • the device may further include:
  • test script generating module configured to record an operation process of the application by software installed in the terminal device, and generate the test script according to the recorded content; or generate a test script by receiving and compiling a code input by the user,
  • the test script includes instructions for controlling the application to run on the test terminal.
  • an application testing apparatus comprising:
  • a receiving module configured to receive a pre-stored test script for controlling operation of the application sent by the control terminal according to the test instruction
  • a running module configured to run the application on the testing device in response to control of the test script by the control terminal;
  • a collection module configured to collect operation data of the application in the testing device
  • the uploading module is configured to upload the running data to the control terminal.
  • the receiving module receives a test start command sent by the control terminal, and the running module runs the test script according to the test start command received by the receiving module to control the application in the test Operation on the device.
  • the receiving module further receives the monitoring software installation package sent by the control terminal
  • the device may further include an installation module, configured to install the monitoring software on the testing device by using a monitoring software installation package, where the operating module And executing the test script according to the test start instruction received by the receiving module, so that the running test script starts the monitoring software on the testing device, and starts and runs the application through the monitoring software.
  • the running module further controls execution business logic of the application by using the monitoring software.
  • the collecting module collects an execution log of execution business logic of the application by using the monitoring software, and/or the collecting module collects performance data during running of the application by using the monitoring software.
  • the collecting module further collects, by the monitoring software, data indicating whether the testing device is successfully connected to the control terminal, data indicating whether the monitoring software is successfully installed, and indicating whether the testing script is successfully started. Data, data indicating whether the monitoring software is successfully started, and data indicating whether the application is successfully started.
  • the test instruction includes a code submission instruction of the application.
  • the device may further include: a version maintenance module, before the receiving module receives the test start command sent by the control terminal,
  • the version maintenance module guarantees that the version of the local application is consistent with the version indicated by the code submitted by the code submission instruction corresponding to the application, or
  • the receiving module receives an installation package of the application and an installation instruction sent by the control terminal, and the version maintenance module utilizes the installation instruction according to the installation instruction.
  • the application's installation package installs the application.
  • an application testing system comprising:
  • the control end is configured to send, to the test terminal, a pre-stored test script for controlling the running of the application according to the test instruction; and control the test script to run on the test terminal to control the application to be Running on the test terminal;
  • the test terminal is configured to collect and upload operation data of the application in the test terminal to the control terminal.
  • control end sends a test start instruction to the test terminal
  • the test terminal runs the test script according to the received test start command sent by the control terminal to control the operation of the application on the test terminal.
  • control terminal sends a monitoring software installation package to the test terminal, where the test terminal installs the monitoring software by using the monitoring software installation package, and the testing terminal sends the monitoring software according to the received control terminal.
  • testing a startup command, running the test script, so that the running test script starts monitoring software on the test terminal, and starts and runs through the monitoring software The application.
  • the test instruction includes a code submission instruction of the application.
  • test terminal is further configured to: before the control terminal sends the test start command to the test terminal, if the application is installed on the test terminal, the version of the installed application is The version of the code indicated by the code submission instruction corresponding to the application is guaranteed to be consistent, or
  • the control terminal is further configured to send, when the application is not installed on the test terminal, an installation package of the application and an installation instruction to the test terminal, where the test terminal is further configured to use the installation instruction according to the installation instruction.
  • the application is installed using the installation package of the application.
  • a non-transitory machine readable storage medium having stored thereon executable code that, when executed by a processor, causes the processor to execute The test method described in the text.
  • the testing method and device, the system and the non-transitory machine readable storage medium of the application according to the present invention send a pre-stored test script for controlling the running of the application to the test terminal according to the test instruction, and control the test.
  • a script runs on the test terminal to control the operation of the application on the test terminal and collect operational data of the application in the test terminal. Therefore, the invention uses the test command as a trigger condition, which can trigger the test process of the application, and improves the efficiency of the application test compared with the existing method of relying on the manual test.
  • FIG. 3 is a flowchart of still another application testing method disclosed in the embodiment of the present application.
  • FIG. 5 is a flowchart of still another application testing method disclosed in the embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an application testing apparatus according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of another testing apparatus according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of an application testing system disclosed in an embodiment of the present application.
  • the developer can write and submit the code for the application on the development platform, or modify the code multiple times and submit the modified code.
  • the testing method, device and system of the application disclosed in the embodiments of the present application aim at realizing the automatic execution of the test.
  • the method and the device in the embodiments of the present application may be applied to the Android platform, and may also be applied to other platforms, which are not limited herein.
  • FIG. 1 is a schematic flowchart of a test method of an application disclosed in an embodiment of the present application.
  • the execution body of this embodiment may be a control terminal.
  • step S101 a pre-stored test script for controlling the operation of the application is sent to the test terminal according to the test command.
  • the test instruction may be an instruction issued by a (third party) tester to test the application to be tested, or may be a code submission instruction of the application submitted by the application developer.
  • the developer can submit the code of the developed/updated application after completing the development of the code of the new application, or after updating or maintaining the code of the existing application, in response to the developer.
  • the code of the submitted application sends the corresponding test script to the test terminal.
  • step S102 the control test script is run on the test terminal to control the operation of the application on the test terminal.
  • step S103 the running data of the application sent by the test terminal in the test terminal is received.
  • the application test process is triggered by the test command, and the test process can be automatically started and the test data in the test process can be collected without human intervention test process, thereby greatly Save manpower and increase test efficiency.
  • the application testing process may use the code submission instruction as a trigger condition, that is, after the developer submits the application code, the application may be automatically collected.
  • the data generated by the operation of the terminal is tested, so that the stability result of the application running in the test terminal can be obtained according to the running data. Therefore, in this embodiment, the development process of the application can be "seamlessly" coupled with the testing process of the application. Further, based on the testing process described in this embodiment, the test process of the latest code after submission can be automatically triggered regardless of the number of code modifications made by the researcher to the application.
  • the method of testing the stability of the application by simulating the process of using the application on the terminal by the existing R&D personnel (for example, the R&D personnel can manually operate the application on the terminal, experience the stability of the application, or on the terminal. Automatically running the application and recording the running process of the application, and observing the stability of the application by playing back.
  • the test process can be manually triggered without the developer, and in the case of modifying the code multiple times, It does not require the user to manually trigger the test process repeatedly, which can improve the efficiency of the test.
  • FIG. 2 is a schematic flow chart of a test method of an application according to another embodiment of the present invention.
  • the application to be tested is installed on the test terminal (the cause of the situation may be that the test application is tested before, and the test process after the update version). Control terminal.
  • step S201 it is monitored whether there is an application code submission instruction.
  • step S201 is continued, and if the monitoring result is yes, step S202 is performed.
  • the code corresponding to the code submission instruction in this embodiment may be the code submitted after the original application is updated.
  • step S202 a list of test terminals selected in advance is acquired, and the list of test terminals includes at least one test terminal.
  • the list of test terminals can be selected in advance by the developer. From the perspective of the accuracy of the test results, the more test terminals, the more test data is collected, and the more accurate the test results are based on the collected data.
  • step S203 a preset connection mode is used to connect with a preset interface of the test terminal in the list of the test terminals.
  • connection method and combination can be selected according to the actual selected test terminal. Connect with the appropriate preset interface.
  • TCP can be used as a connection method through the WIFI network, and an attempt is made to connect with the interface of the Android mobile phone service.adb.tcp.port.
  • step S204 the pre-stored test script and the monitoring software installation package are sent to the successfully connected test terminal through the preset interface.
  • step S205 after the version of the application on the test terminal is consistent with the version indicated by the code submission instruction of the application (in the case of having multiple code submission instructions, the version indicated by the last submitted code submission instruction is a test start command is sent to the test terminal, and the test start command is used to instruct the test terminal to start the test script to start running, so that the test script in operation starts the monitoring software on the test terminal, and passes the monitoring software. Start and run the app.
  • the version of the application installed on the test terminal is 1.0, and the submitted code has been upgraded to 2.0.
  • the application in the test terminal can automatically upgrade the version, specific version identification and trigger upgrade. The process can be referred to the prior art and will not be described here.
  • the startup command is sent to the test terminal, the test script is started, the monitoring software is started by the test script, and the application to be tested is started by the monitoring software, and the application execution logic is controlled by the application to be tested.
  • step S206 an execution log of the application execution service logic is received from the test terminal, and performance data during the application operation process is collected by the monitoring software.
  • step S207 the execution log is displayed in real time.
  • the existing application test method after submitting the application installation package, is unable to know the specific test content, and only obtains some report data in the end, and the data is mainly for simple installation and uninstallation.
  • the application running business logic can be controlled, and the execution log of the business logic is collected and displayed in real time, so the developer can grasp the running status of the application in real time, and the developer can also adjust the test according to the execution log.
  • the policy for example, the adjusted test script can be sent to the test terminal through the control terminal according to the execution log), so that the test process is closer to the actual use situation, so that the stability test data is more reliable.
  • the application testing method described in this embodiment can not only realize the integration of the process of the testing process and the application development process, but also deeply obtain the application business. Execute logical execution logs to improve the credibility of the testing process and results.
  • FIG. 3 is a schematic flowchart of a test method of an application according to another embodiment of the present invention.
  • the execution body of this embodiment is a control terminal.
  • step S301 a test script is generated.
  • the operation process of the application running on the terminal device can be recorded by installing corresponding software on the terminal device, and a test script is generated according to the recorded content.
  • the developer can customize the test script so that the test script has different test functions to achieve the diversity of the test.
  • terminal device mentioned herein may be a test terminal or other terminals.
  • step S303 it is determined whether the interval between the current time and the time of the last test is greater than the preset time interval. If the determination result is yes, step S304 is performed, and if the determination result is no, the process returns to step S302.
  • the purpose of the determining step of step S303 is to prevent the test process from being triggered too frequently to save resources.
  • developers may frequently modify the code of an application. Sometimes the code is submitted only to save the written code, not the completion of the code. Therefore, in practical applications, development The personnel can set the test start cycle according to actual needs.
  • step S304 a pre-stored test script, monitoring software, and an installation package of the application are transmitted to the test terminal.
  • step S305 an installation instruction for instructing the test terminal to install the application using the installation package of the application is sent to the test terminal.
  • step S306 after the version of the application on the test terminal is consistent with the version indicated by the code submission instruction, a test for instructing the test terminal to start the test script test is sent to the test terminal.
  • the instruction is started so that the test script starts the monitoring software on the test terminal, and the application is started and run by the monitoring software.
  • the installation command and the test startup instruction can be sent to the test terminal through the debug bridge Debug Bridge.
  • the version of the installation package of the application may be inconsistent with the version indicated by the code submitted corresponding to the code submission instruction, that is, the installation package is a low version, and the code submitted corresponding to the code submission instruction indicates a high version, in which case After the test terminal completes the application installation, the application will automatically upgrade to the new version.
  • the code submitted corresponding to the code submission instruction may be all or part of the code of the application after the developer develops or updates the application.
  • the version indicated by the code corresponding to the last code commit instruction may be used.
  • step S307 various types of data sent by the test terminal are received.
  • test terminal collects relevant data during the running process of the application to be tested, and sends the data to the control terminal.
  • the test terminal may collect an execution log of the application execution service logic, collect performance data during the application running process by using the monitoring software, collect data indicating whether the test terminal indicates successful connection, and indicate the test package. Whether to install successful data, data indicating whether the test script starts successfully, data indicating whether the monitoring software is successfully started, and data indicating whether the application is successfully started.
  • the installation and startup data of the application to be tested, and the startup data of the test script and the monitoring software may be collected to further Comprehensively grasp the situation during the test.
  • step S308 a report is generated using the collected data, and the report is displayed.
  • the application testing method described in this embodiment can test the application by using a developer-defined test script, and present the test result in the form of a report. Therefore, not only has high test efficiency, but also greatly facilitates developers. usage of.
  • FIG. 4 is a schematic flow chart of a test method of an application according to another embodiment of the present invention.
  • this embodiment is based on the test terminal.
  • the main body of the line describes it.
  • the details mentioned in the embodiment have been described in detail above, and only the steps performed by the test terminal are described herein. For the details, reference may be made to the related description.
  • step S402 the application is run on the test terminal in response to the control end controlling the test script.
  • the test terminal can receive the test start instruction sent by the control end, and run the test script according to the test start instruction to control the operation of the application on the test terminal.
  • step S403 operational data applied in the test terminal is collected.
  • the test terminal can also receive the monitoring software installation package sent by the control terminal, and install the monitoring software on the test terminal by using the software installation package, so that the running test script can start the monitoring software on the test terminal, and is started by the monitoring software. Run the application to be monitored. That is to say, the application can be launched by the monitoring software and control the execution business logic of the application.
  • the execution log of the application execution business logic and the performance data during the application running process may also be collected through the monitoring software.
  • the monitoring software collects data indicating whether the test terminal indicates successful connection with the control terminal, data indicating whether the monitoring software is successfully installed, data indicating whether the test script is successfully started, data indicating whether the monitoring software is successfully started, and indicating whether the application is started. Successful data.
  • step S404 the collected operational data is uploaded to the control terminal.
  • test terminal can run the application, collect the operation data, and upload the operation data under the control of the control terminal.
  • test command the test command
  • test script the test script
  • test start command the monitoring software installation package
  • the test terminal can match the version of the locally applied application with the version guarantee indicated by the code submission instruction of the application.
  • the test terminal may receive an installation package of the application sent by the control terminal and an installation instruction, and install the application by using an installation package of the application according to the installation instruction.
  • FIG. 5 is a schematic flowchart of a test method of an application according to another embodiment of the present invention. Different from the above embodiments, in this embodiment, the focus is on the description between the control terminal and the test terminal. Interaction process.
  • step S501 the control terminal sends a pre-stored test script for controlling the running of the application and a monitoring software installation package to the test terminal according to the test instruction.
  • step S502 the test terminal installs the monitoring software using the monitoring software installation package.
  • step S503 in the case that the application is installed on the test terminal, the test terminal agrees that the version of the local application is consistent with the version indicated by the code submitted by the application last time.
  • step S504 if the application is not installed on the test terminal, the control terminal sends the installation package of the application and the installation instruction to the test terminal.
  • step S506 the control terminal controls the test script to run on the test terminal to control the operation of the application on the test terminal.
  • control terminal controls the test script to run on the test terminal can be implemented by the interaction between the control terminal and the test terminal, that is, the control terminal sends a test start command to the test terminal, and the test terminal according to the test start command Run a test script to control the operation of the application on the test terminal.
  • test terminal runs the test script according to the test start command sent by the control end, so that the running test script starts the monitoring software on the test terminal, and starts and runs the application through the monitoring software.
  • step S507 the test terminal collects and uploads the operation data of the application in the test terminal to the control terminal.
  • control end interacts with the test terminal to automatically trigger the test process of the application without manually simulating the application process on the test terminal, thereby improving the test efficiency.
  • it is convenient to test the user's use.
  • FIG. 6 is a schematic block diagram showing the structure of an application test apparatus according to an embodiment of the present invention.
  • the application testing device of the embodiment corresponds to the method described in the above-mentioned FIGS. 1 to 3. Therefore, the functional modules in the application testing device of the present embodiment can be used to perform the relevant steps in the methods described in FIGS. 1-3. In the following, only the structure of the application test device will be described. For the details, reference may be made to the related description above in conjunction with FIGS.
  • the application testing device of this embodiment includes a sending module 601 and a control module 602. And a receiving module 603.
  • the sending module 601 can send a pre-stored test script for controlling the running of the application to the test terminal according to the test instruction.
  • the control module 602 can control the test script to run on the test terminal to control the operation of the application on the test terminal.
  • the application testing device of this embodiment may further include an obtaining module 604.
  • the obtaining module 604 can obtain a list of test terminals selected in advance, and the list of test terminals includes at least one test terminal.
  • the sending module 601 can connect with the preset interface of the test terminal in the list of the test terminal by using a preset connection manner, and send the test script to the test terminal with successful connection through the preset interface.
  • the application testing device of this embodiment may further include a test script generating module 606.
  • the test script generation module 606 can record the operation process of the application by software installed in the terminal device, and generate a test script according to the recorded content; or generate a test script by receiving and compiling the code input by the user.
  • the application testing device of this embodiment may further include a determining module 605.
  • the determining module 605 can determine whether the interval between the current time and the time of the last test is greater than a preset time interval, if the test instruction (which may be the code submission instruction of the application) is detected, and if the determination result is yes, then the test is performed.
  • the terminal sends a pre-stored test script.
  • the specific implementation manner of the control module 602 controlling the test script to run on the test terminal to control the operation of the application on the test terminal may be: sending a test start command to the test terminal, where The test startup command is used to start the test script in the test terminal to start running, so that the test script in operation starts monitoring software on the test terminal, and starts and runs the monitoring software through the monitoring software.
  • the sending module 601 is further configured to: before the control module 602 sends a test start command to the test terminal, send a monitoring software installation package to the test terminal, to install in the test terminal. The monitoring software.
  • control module 602 sending the test startup command to the test terminal may be: when the application is installed on the test terminal, the version of the application on the test terminal a generation submitted with a code submission instruction corresponding to the application After the version of the code indication is consistent, the sending module 601 sends a test start command to the test terminal; or, if the application is not installed on the test terminal, the sending module 601 sends the test command to the test terminal.
  • An installation package of the application, and an installation instruction, the installation instruction is used to instruct the test terminal to install the application by using an installation package of the application, where the version of the application and the code corresponding to the application are on the test terminal
  • the sending module 601 sends a test start instruction to the test terminal.
  • test script is that after the start of the running, the running test script starts the monitoring software on the testing terminal, and the monitoring software starts the application and controls the application to execute the business logic.
  • the receiving module 603 may receive an execution log of the application execution service logic sent by the test terminal, and collect performance data during the running of the application by using the monitoring software.
  • the receiving module 603 is further configured to receive, by the test terminal, data indicating whether the connection is successful, data indicating whether the test package is successfully installed, data indicating whether the test script is successfully started, and indicating whether the monitoring software is Start successful data and data indicating whether the application started successfully.
  • the device described in this embodiment can not only integrate the process of the test process and the application development process, but also deeply obtain the execution log of the application execution logic of the application, thereby improving the credibility of the test process and the result.
  • the apparatus in this embodiment may be integrated on the development platform of the code as a part of the background of the development platform, and the execution logic thereof may be referred to the foregoing embodiment.
  • FIG. 7 is a schematic block diagram showing the structure of an application test apparatus according to an embodiment of the present invention.
  • the application testing device of the present embodiment corresponds to the method described above in connection with FIG. Therefore, the functional modules in the application testing device of the present embodiment can be used to perform the relevant steps in the method described in FIG. In the following, only the structure of the application test device will be described, and for the details thereof, reference may be made to the related description in conjunction with FIG. 4 above.
  • the application testing device of this embodiment includes a receiving module 701, an operating module 702, a collecting module 703, and an uploading module 704.
  • the receiving module 701 can receive a pre-stored test script for controlling the running of the application sent by the control terminal according to the test instruction.
  • the running module 702 can operate on the testing device in response to the control end controlling the test script. use.
  • the collection module 703 can collect operational data that is applied in the testing device.
  • the uploading module 704 can upload the running data collected by the collecting module 703 to the control terminal.
  • the receiving module 701 can receive the test startup command sent by the control terminal, and the running module 702 can run the test script according to the test startup command received by the receiving module 701 to control the operation of the application on the testing device.
  • the running module 702 can run the test script according to the test start instruction received by the receiving module, so that the running test script starts the monitoring software on the testing device, and starts and runs the application through the monitoring software.
  • FIG. 8 is a schematic block diagram showing the structure of an application test system according to an embodiment of the present invention.
  • the application test system includes a control terminal 801 and one or more test terminals 802.
  • control terminal 801 is configured to send, to the test terminal 802, a pre-stored test script for controlling the running of the application according to the test instruction; and control the test script to run on the test terminal to control the The application is applied to the test terminal 802.
  • the test terminal 802 is configured to collect and upload the operation data of the application in the test terminal 802 to the control terminal 801.
  • control terminal 801 controls the test script to run on the test terminal 802 may be: the control terminal 801 sends a test start command to the test terminal 802, and the test terminal 802 sends the test terminal 802 according to the control terminal 801.
  • the test launch command runs the test script to control the operation of the application on the test terminal 802.
  • the test terminal 802 is further configured to: before the control terminal 801 sends a test start command to the test terminal 802, if the application is installed on the test terminal 802, the application is locally The version of the version is consistent with the version of the code indicated by the code submission instruction corresponding to the application.
  • the control terminal 801 is further configured to: when the application is not installed on the test terminal 802, send an installation package of the application and an installation instruction to the test terminal 802; and the test terminal 802 is further configured to: The installation instruction installs the application by using an installation package of the application.
  • the above technical idea of the present invention can also be embodied as a computer program product including executable code.
  • the processor When the executable code is executed by the processor, the processor is caused to perform the method described above.

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)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided are a method, device and system for testing an application, and a non-transient machine-readable storage medium. The method comprises: transmitting a test script, which is pre-stored and is used for controlling the running of an application, to a test terminal according to a test instruction (S101); controlling the test script to run on the test terminal, so as to control the running of the application on the test terminal (S102); and receiving running data, which is transmitted by the test terminal, of the application in the test terminal (S103). It can be seen that the method takes a test instruction as a trigger condition to trigger a test process of an application. Therefore, the testing process can be automatically triggered; and compared with an existing method of testing in dependence on manpower, the test efficiency of the application is improved.

Description

一种应用的测试方法、装置、系统以及非暂时性机器可读存储介质Test method, device, system and non-transitory machine readable storage medium for an application 技术领域Technical field
本申请涉及计算机领域,尤其涉及一种应用的测试方法、装置、系统以及非暂时性机器可读存储介质。The present application relates to the field of computers, and in particular, to a test method, apparatus, system, and non-transitory machine readable storage medium for an application.
背景技术Background technique
随着智能手机的发展,对于适用于智能手机的应用的开发日益增多。在应用交付用户使用之前,开发人员需要对应用的稳定性进行测试。稳定性测试的本质为:通过在测试终端上运行应用,收集应用的运行数据,依据运行数据分析出应用的运行是否稳定。With the development of smart phones, the development of applications for smart phones is increasing. Before the application is delivered to the user, the developer needs to test the stability of the application. The essence of the stability test is to collect the running data of the application by running the application on the test terminal, and analyze whether the running of the application is stable according to the running data.
目前市场上适用于手机应用的稳定性测试方案主要是人工对应于进行操作,以观察是否出现应用崩溃、卡频等异常现象,浪费人力且测试效率较低。At present, the stability test scheme applicable to mobile phone applications on the market mainly corresponds to manual operation to observe whether an abnormal phenomenon such as application crash, card frequency, etc. is wasted, labor is wasted, and test efficiency is low.
由此,需要一种能够提高应用测试的效率的应用测试方案。Thus, there is a need for an application testing solution that can increase the efficiency of application testing.
发明内容Summary of the invention
鉴于上述技术问题,本发明的目的是提供一种应用的测试方法、装置、系统以及非暂时性机器可读存储介质,其能够提高应用的测试效率。In view of the above technical problems, it is an object of the present invention to provide a test method, apparatus, system and non-transitory machine readable storage medium for an application which can improve the test efficiency of an application.
为了实现上述目的,本发明提供了以下技术方案:In order to achieve the above object, the present invention provides the following technical solutions:
根据本发明的一个方面,提供了一种应用的测试方法,包括:According to an aspect of the present invention, a test method for an application is provided, comprising:
依据测试指令向测试终端发送预先存储的、用于控制所述应用的运行的测试脚本;Sending a pre-stored test script for controlling the running of the application to the test terminal according to the test instruction;
控制所述测试脚本在所述测试终端上运行,以控制所述应用在所述测试终端上的运行;Controlling the test script to run on the test terminal to control operation of the application on the test terminal;
接收所述测试终端发送的所述应用在所述测试终端中的运行数据。Receiving operation data of the application sent by the test terminal in the test terminal.
可选地,所述向测试终端发送预先存储的、用于控制所述应用的运行的测试脚本的步骤可以包括: Optionally, the step of sending a pre-stored test script for controlling the running of the application to the test terminal may include:
获取预先被选定的测试终端的列表,所述测试终端的列表中包括至少一个测试终端;Obtaining a list of pre-selected test terminals, the list of test terminals including at least one test terminal;
通过预设的连接方式,与所述测试终端的列表中的测试终端的预设接口进行连接;Connecting with a preset interface of the test terminal in the list of the test terminals by using a preset connection manner;
通过所述预设接口向连接成功的测试终端发送预先存储的、用于控制所述应用的运行的测试脚本。A pre-stored test script for controlling the running of the application is sent to the successfully connected test terminal through the preset interface.
可选地,所述测试指令可以包括所述应用的代码提交指令。Optionally, the test instructions may include code submission instructions for the application.
可选地,所述依据测试指令向测试终端发送预先存储的、用于控制所述应用的运行的测试脚本的步骤可以包括:Optionally, the step of sending the pre-stored test script for controlling the running of the application to the test terminal according to the test instruction may include:
在检测到所述应用的代码提交指令的情况下,判断当前时刻距离上一次测试的时刻间的间隔是否大于预设时间间隔,在判定为是的情况下,向测试终端发送所述测试脚本。When the code submission instruction of the application is detected, it is determined whether the interval between the current time and the time of the last test is greater than a preset time interval. If the determination is yes, the test script is sent to the test terminal.
可选地,所述控制所述测试脚本在所述测试终端上运行以控制所述应用在所述测试终端上的运行的步骤可以包括:Optionally, the step of controlling the test script to run on the test terminal to control the operation of the application on the test terminal may include:
向所述测试终端发送监控软件安装包,以在所述测试终端中安装所述监控软件;Sending a monitoring software installation package to the testing terminal to install the monitoring software in the testing terminal;
向所述测试终端发送测试启动指令,所述测试启动指令用于启动所述测试终端中的所述测试脚本开始运行,以使得运行中的所述测试脚本在所述测试终端上启动监控软件,并通过所述监控软件启动并运行所述应用。可选地,所述向所述测试终端发送测试启动指令的步骤可以包括:Sending a test startup instruction to the test terminal, the test startup instruction is used to start the test script in the test terminal to start running, so that the running test script starts monitoring software on the test terminal, And launching and running the application through the monitoring software. Optionally, the step of sending a test start command to the test terminal may include:
在所述测试终端上已安装所述应用的情况下,在所述测试终端上所述应用的版本与对应于所述应用的代码提交指令而提交的代码指示的版本一致后,向所述测试终端发送测试启动指令;或者In the case that the application is already installed on the test terminal, after the version of the application on the test terminal is consistent with the version indicated by the code submitted by the code submission instruction corresponding to the application, the test is performed. The terminal sends a test start command; or
在所述测试终端上未安装所述应用的情况下,向所述测试终端发送所述应用的安装包以及安装指令,所述安装指令用于指示所述测试终端使用所述应用的安装包安装所述应用,在所述测试终端上所述应用的版本与对应于所述应用的代码提交指令而提交的代码指示的版本一致后,向所述测试终端发送测试启动指令。If the application is not installed on the test terminal, send an installation package of the application and an installation instruction to the test terminal, where the installation instruction is used to instruct the test terminal to install using an installation package of the application. The application sends a test start command to the test terminal after the version of the application on the test terminal matches the version indicated by the code submitted by the code submission instruction of the application.
可选地,该方法还可以包括:Optionally, the method may further include:
通过安装于终端设备的软件录制对所述应用的操作过程,并依据录制内容生成所述测试脚本;或者 Recording an operation process on the application by software installed in the terminal device, and generating the test script according to the recorded content; or
通过接收并编译用户输入的代码,生成测试脚本,其中,所述测试脚本中包括用于控制所述应用在所述测试终端上运行的指令。A test script is generated by receiving and compiling a code input by a user, wherein the test script includes instructions for controlling the application to run on the test terminal.
根据本发明的另一个方面,还提供了另一种应用的测试方法,应用于测试终端,该方法包括:According to another aspect of the present invention, there is also provided a test method of another application, which is applied to a test terminal, the method comprising:
接收控制端依据测试指令发送的预先存储的、用于控制所述应用的运行的测试脚本;Receiving, by the control terminal, a pre-stored test script for controlling the running of the application according to the test instruction;
响应于所述控制端对所述测试脚本的控制,在所述测试终端上运行所述应用;Running the application on the test terminal in response to the control end controlling the test script;
收集所述应用在所述测试终端中的运行数据;Collecting operation data of the application in the test terminal;
向所述控制端上传所述运行数据。Uploading the running data to the control terminal.
可选地,响应于所述控制端对所述测试脚本的控制在所述测试终端上运行所述应用的步骤可以包括:Optionally, the step of running the application on the test terminal in response to the control of the test script by the control terminal may include:
接收所述控制端发送的测试启动指令;Receiving a test start command sent by the control terminal;
依据所述控制端发送的测试启动指令,运行所述测试脚本,以控制所述应用在所述测试终端上的运行。And executing the test script according to the test start command sent by the control terminal to control the operation of the application on the test terminal.
可选地,依据所述控制端发送的测试启动指令运行所述测试脚本以控制所述应用在所述测试终端上的运行的步骤可以包括:Optionally, the step of running the test script to control the running of the application on the test terminal according to the test start command sent by the control terminal may include:
接收所述控制端发送的监控软件安装包;Receiving a monitoring software installation package sent by the control terminal;
使用所述监控软件安装包在所述测试终端上安装所述监控软件;Installing the monitoring software on the test terminal by using the monitoring software installation package;
依据所述控制端发送的测试启动指令,运行所述测试脚本,以使得运行中的测试脚本在所述测试终端上启动监控软件,并通过所述监控软件启动并运行所述应用。And executing the test script according to the test startup command sent by the control terminal, so that the running test script starts the monitoring software on the test terminal, and starts and runs the application through the monitoring software.
可选地,通过所述监控软件启动并运行所述应用的步骤可以包括:通过所述监控软件启动所述应用并控制所述应用的执行业务逻辑。Optionally, the step of starting and running the application by using the monitoring software may include: starting the application by the monitoring software and controlling execution business logic of the application.
可选地,收集所述用于在所述测试终端中的运行数据的步骤可以包括:通过所述监控软件收集所述应用执行业务逻辑的执行日志;并且/或者通过所述监控软件收集所述应用运行过程中的性能数据。Optionally, the step of collecting the operation data for use in the test terminal may include: collecting, by the monitoring software, an execution log of the application execution service logic; and/or collecting, by the monitoring software Apply performance data during the run.
可选地,该方法还可以包括:通过所述监控软件收集所述测试终端指示是否与所述控制端连接成功的数据、指示所述监控软件是否安装成功的数据、指示所述测试脚本是否启动成功的数据、指示所述监控软件是否启动成功的数据以及指示所述应用是否启动成功的数据。 Optionally, the method may further include: collecting, by the monitoring software, data indicating whether the test terminal is successfully connected to the control terminal, data indicating whether the monitoring software is successfully installed, and indicating whether the test script is started. Successful data, data indicating whether the monitoring software is successfully started, and data indicating whether the application is successfully started.
可选地,测试指令可以包括所述应用的代码提交指令。Optionally, the test instructions can include code submission instructions for the application.
可选地,在所述测试终端接收所述控制端发送的测试启动指令的步骤之前,该方法还可以包括:Optionally, before the step of the test terminal receiving the test start command sent by the control terminal, the method may further include:
在所述测试终端上已安装所述应用的情况下,将所安装的应用的版本与对应于所述应用的代码提交指令而提交的代码指示的版本保证一致;或者In a case where the application is installed on the test terminal, the version of the installed application is consistent with the version indicated by the code submitted by the code submission instruction corresponding to the application; or
在所述测试终端上未安装所述应用的情况下,接收所述控制端发送的所述应用的安装包以及安装指令,并依据所述安装指令,利用所述应用的安装包安装所述应用。If the application is not installed on the test terminal, receiving an installation package of the application and an installation instruction sent by the control terminal, and installing the application by using an installation package of the application according to the installation instruction. .
根据本发明的另一个方面,还提供了一种应用的测试装置,包括:According to another aspect of the present invention, there is also provided an application testing apparatus comprising:
发送模块,用于依据测试指令向测试终端发送预先存储的、用于控制所述应用的运行的测试脚本;a sending module, configured to send, to the test terminal, a pre-stored test script for controlling the running of the application according to the test instruction;
控制模块,用于在控制所述测试脚本在所述测试终端上运行,以控制所述应用在所述测试终端上的运行;a control module, configured to run on the test terminal by controlling the test script to control operation of the application on the test terminal;
接收模块,用于接收所述测试终端发送的所述应用在所述测试终端中的运行数据。And a receiving module, configured to receive operation data of the application sent by the test terminal in the test terminal.
可选地,该装置还可以包括:Optionally, the device may further include:
获取模块,用于获取预先被选定的测试终端的列表,所述测试终端的列表中包括至少一个测试终端,所述发送模块通过预设的连接方式,与所述测试终端的列表中的测试终端的预设接口进行连接,并通过所述预设接口向连接成功的测试终端发送预先存储的、用于控制所述应用的运行的测试脚本。An obtaining module, configured to obtain a list of pre-selected test terminals, where the list of test terminals includes at least one test terminal, and the sending module performs a test in a list with the test terminal by using a preset connection manner The preset interface of the terminal is connected, and the pre-stored test script for controlling the running of the application is sent to the successfully connected test terminal through the preset interface.
可选地,测试指令可以包括应用的代码提交指令。Alternatively, the test instructions can include code submission instructions for the application.
可选地,该装置还可以包括:判断模块,用于在检测到所述应用的代码提交指令的情况下,判断当前时刻距离上一次测试的时刻间的间隔是否大于预设时间间隔,在判断模块判定为是的情况下,发送模块向测试终端发送所述测试脚本。Optionally, the device may further include: a determining module, configured to determine, when the code submission instruction of the application is detected, whether the interval between the current time and the time of the last test is greater than a preset time interval, When the module determines to be YES, the transmitting module transmits the test script to the test terminal.
可选地,所述控制模块可以具体用于,向所述测试终端发送测试启动指令,所述测试启动指令用于启动所述测试终端中的所述测试脚本开始运行,以使得运行中的所述测试脚本在所述测试终端上启动监控软件,并通过所述监控软件启动并运行所述应用, Optionally, the control module may be configured to send a test start instruction to the test terminal, where the test start command is used to start the test script in the test terminal to start running, so that the running The test script starts monitoring software on the test terminal, and starts and runs the application through the monitoring software.
所述发送模块还用于在所述控制模块向所述测试终端发送测试启动指令之前,向所述测试终端发送监控软件安装包,以在所述测试终端中安装所述监控软件。The sending module is further configured to send a monitoring software installation package to the testing terminal to send the monitoring software in the testing terminal before the control module sends a test startup command to the testing terminal.
可选地,在所述测试终端上已安装所述应用的情况下,在所述测试终端上所述应用的版本与对应于所述应用的代码提交指令而提交的代码指示的版本一致后,由所述发送模块向所述测试终端发送测试启动指令,或者,在所述测试终端上未安装所述应用的情况下,由所述发送模块向所述测试终端发送所述应用的安装包以及安装指令,所述安装指令用于指示所述测试终端使用所述应用的安装包安装所述应用,在所述测试终端上所述应用的版本与对应于所述应用的代码提交指令而提交的代码指示的版本一致后,由所述发送模块向所述测试终端发送测试启动指令。Optionally, in a case that the application is installed on the test terminal, after the version of the application on the test terminal is consistent with a version indicated by a code submitted by a code submission instruction corresponding to the application, Sending, by the sending module, a test start instruction to the test terminal, or sending the application installation package to the test terminal by the sending module if the application is not installed on the test terminal; An installation instruction, the installation instruction is used to instruct the test terminal to install the application by using an installation package of the application, and the version of the application on the test terminal is submitted with a code submission instruction corresponding to the application. After the versions indicated by the code are consistent, the sending module sends a test start command to the test terminal.
可选地,该装置还可以包括:Optionally, the device may further include:
测试脚本生成模块,用于通过安装于终端设备的软件录制对所述应用的操作过程,并依据录制内容生成所述测试脚本;或者,通过接收并编译用户输入的代码,生成测试脚本,所述测试脚本中包括用于控制所述应用在所述测试终端上运行的指令。a test script generating module, configured to record an operation process of the application by software installed in the terminal device, and generate the test script according to the recorded content; or generate a test script by receiving and compiling a code input by the user, The test script includes instructions for controlling the application to run on the test terminal.
根据本发明的另一个方面,还提供了一种应用的测试装置,包括:According to another aspect of the present invention, there is also provided an application testing apparatus comprising:
接收模块,用于接收控制端依据测试指令发送的预先存储的、用于控制所述应用的运行的测试脚本;a receiving module, configured to receive a pre-stored test script for controlling operation of the application sent by the control terminal according to the test instruction;
运行模块,用于响应于所述控制端对所述测试脚本的控制,在所述测试装置上运行所述应用;a running module, configured to run the application on the testing device in response to control of the test script by the control terminal;
收集模块,用于收集所述应用在所述测试装置中的运行数据;a collection module, configured to collect operation data of the application in the testing device;
上传模块,用于向所述控制端上传所述运行数据。The uploading module is configured to upload the running data to the control terminal.
可选地,所述接收模块接收所述控制端发送的测试启动指令,所述运行模块依据所述接收模块接收到的测试启动指令,运行所述测试脚本,以控制所述应用在所述测试装置上的运行。Optionally, the receiving module receives a test start command sent by the control terminal, and the running module runs the test script according to the test start command received by the receiving module to control the application in the test Operation on the device.
可选地,接收模块还接收所述控制端发送的监控软件安装包,该装置还可以包括安装模块,用于使用监控软件安装包在所述测试装置上安装所述监控软件,所述运行模块依据所述接收模块接收到的测试启动指令,运行所述测试脚本,以使得运行中的测试脚本在所述测试装置上启动监控软件,并通过所述监控软件启动并运行所述应用。 Optionally, the receiving module further receives the monitoring software installation package sent by the control terminal, and the device may further include an installation module, configured to install the monitoring software on the testing device by using a monitoring software installation package, where the operating module And executing the test script according to the test start instruction received by the receiving module, so that the running test script starts the monitoring software on the testing device, and starts and runs the application through the monitoring software.
可选地,运行模块还通过所述监控软件控制所述应用的执行业务逻辑。Optionally, the running module further controls execution business logic of the application by using the monitoring software.
可选地,所述收集模块通过所述监控软件收集所述应用的执行业务逻辑的执行日志,并且/或者所述收集模块通过所述监控软件收集所述应用运行过程中的性能数据。Optionally, the collecting module collects an execution log of execution business logic of the application by using the monitoring software, and/or the collecting module collects performance data during running of the application by using the monitoring software.
可选地,所述收集模块还通过所述监控软件收集所述测试装置指示是否与所述控制端连接成功的数据、指示所述监控软件是否安装成功的数据、指示所述测试脚本是否启动成功的数据、指示所述监控软件是否启动成功的数据以及指示所述应用是否启动成功的数据。Optionally, the collecting module further collects, by the monitoring software, data indicating whether the testing device is successfully connected to the control terminal, data indicating whether the monitoring software is successfully installed, and indicating whether the testing script is successfully started. Data, data indicating whether the monitoring software is successfully started, and data indicating whether the application is successfully started.
可选地,所述测试指令包括所述应用的代码提交指令。Optionally, the test instruction includes a code submission instruction of the application.
可选地,该装置还可以包括:版本维护模块,在所述接收模块接收所述控制端发送的测试启动指令之前,Optionally, the device may further include: a version maintenance module, before the receiving module receives the test start command sent by the control terminal,
在所述测试终端上已安装所述应用的情况下,所述版本维护模块将本地所述应用的版本与对应于所述应用的代码提交指令而提交的代码指示的版本保证一致,或者In a case where the application is installed on the test terminal, the version maintenance module guarantees that the version of the local application is consistent with the version indicated by the code submitted by the code submission instruction corresponding to the application, or
在所述测试终端上未安装所述应用的情况下,所述接收模块接收所述控制端发送的所述应用的安装包以及安装指令,所述版本维护模块依据所述安装指令,利用所述应用的安装包安装所述应用。In the case that the application is not installed on the test terminal, the receiving module receives an installation package of the application and an installation instruction sent by the control terminal, and the version maintenance module utilizes the installation instruction according to the installation instruction. The application's installation package installs the application.
根据本发明的另一个方面,还提供了一种应用的测试系统,包括:According to another aspect of the present invention, there is also provided an application testing system comprising:
控制端和测试终端;Control terminal and test terminal;
所述控制端用于,依据测试指令向测试终端发送预先存储的、用于控制所述应用的运行的测试脚本;并控制所述测试脚本在所述测试终端上运行,以控制所述应用在所述测试终端上的运行;The control end is configured to send, to the test terminal, a pre-stored test script for controlling the running of the application according to the test instruction; and control the test script to run on the test terminal to control the application to be Running on the test terminal;
所述测试终端用于收集并向所述控制端上传所述应用在所述测试终端中的运行数据。The test terminal is configured to collect and upload operation data of the application in the test terminal to the control terminal.
可选地,所述控制端向所述测试终端发送测试启动指令,Optionally, the control end sends a test start instruction to the test terminal,
所述测试终端依据接收到的所述控制端发送的测试启动指令,运行所述测试脚本,以控制所述应用在所述测试终端上的运行。The test terminal runs the test script according to the received test start command sent by the control terminal to control the operation of the application on the test terminal.
可选地,所述控制端向所述测试终端发送监控软件安装包,所述测试终端使用所述监控软件安装包安装所述监控软件,所述测试终端依据接收到的所述控制端发送的测试启动指令,运行所述测试脚本,以使得运行中的测试脚本在所述测试终端上启动监控软件,并通过所述监控软件启动并运行 所述应用。Optionally, the control terminal sends a monitoring software installation package to the test terminal, where the test terminal installs the monitoring software by using the monitoring software installation package, and the testing terminal sends the monitoring software according to the received control terminal. Testing a startup command, running the test script, so that the running test script starts monitoring software on the test terminal, and starts and runs through the monitoring software The application.
可选地,所述测试指令包括所述应用的代码提交指令。Optionally, the test instruction includes a code submission instruction of the application.
可选地,所述测试终端还用于在所述控制端向所述测试终端发送测试启动指令之前,在所述测试终端上已安装所述应用的情况下,将所安装的应用的版本与对应于所述应用的代码提交指令而提交的代码指示的版本保证一致,或者,Optionally, the test terminal is further configured to: before the control terminal sends the test start command to the test terminal, if the application is installed on the test terminal, the version of the installed application is The version of the code indicated by the code submission instruction corresponding to the application is guaranteed to be consistent, or
所述控制端还用于在所述测试终端上未安装所述应用的情况下,向所述测试终端发送所述应用的安装包以及安装指令,所述测试终端还用于依据所述安装指令,利用所述应用的安装包安装所述应用。The control terminal is further configured to send, when the application is not installed on the test terminal, an installation package of the application and an installation instruction to the test terminal, where the test terminal is further configured to use the installation instruction according to the installation instruction. The application is installed using the installation package of the application.
根据本发明的另一个方面,还提供了一种非暂时性机器可读存储介质,其上存储有可执行代码,当所述可执行代码被处理器执行时,使所述处理器执行根据上文述及的测试方法。According to another aspect of the present invention, there is also provided a non-transitory machine readable storage medium having stored thereon executable code that, when executed by a processor, causes the processor to execute The test method described in the text.
本发明所述的应用的测试方法及装置、系统以及非暂时性机器可读存储介质,依据测试指令向测试终端发送预先存储的、用于控制所述应用的运行的测试脚本,控制所述测试脚本在所述测试终端上运行,以控制所述应用在所述测试终端上的运行,并收集此应用在测试终端中的运行数据。由此,本发明以测试指令作为触发条件,可以触发应用的测试过程,与现有的依赖人工进行测试的方式相比,提高了应用测试的效率。The testing method and device, the system and the non-transitory machine readable storage medium of the application according to the present invention send a pre-stored test script for controlling the running of the application to the test terminal according to the test instruction, and control the test. A script runs on the test terminal to control the operation of the application on the test terminal and collect operational data of the application in the test terminal. Therefore, the invention uses the test command as a trigger condition, which can trigger the test process of the application, and improves the efficiency of the application test compared with the existing method of relying on the manual test.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments will be briefly described below. It should be understood that the following drawings show only certain embodiments of the present invention, and therefore It should be seen as a limitation on the scope, and those skilled in the art can obtain other related drawings according to these drawings without any creative work.
图1为本申请实施例公开的一种应用的测试方法的流程图;1 is a flowchart of a test method of an application disclosed in an embodiment of the present application;
图2为本申请实施例公开的又一种应用的测试方法的流程图;2 is a flowchart of a test method of still another application disclosed in an embodiment of the present application;
图3为本申请实施例公开的又一种应用的测试方法的流程图;FIG. 3 is a flowchart of still another application testing method disclosed in the embodiment of the present application;
图4为本申请实施例公开的又一种应用的测试方法的流程图;4 is a flowchart of a test method of still another application disclosed in an embodiment of the present application;
图5为本申请实施例公开的又一种应用的测试方法的流程图;FIG. 5 is a flowchart of still another application testing method disclosed in the embodiment of the present application;
图6为本申请实施例公开的一种应用的测试装置的结构示意图;FIG. 6 is a schematic structural diagram of an application testing apparatus according to an embodiment of the present disclosure;
图7为本申请实施例公开的又一种应用的测试装置的结构示意图; FIG. 7 is a schematic structural diagram of another testing apparatus according to an embodiment of the present disclosure;
图8为本申请实施例公开的一种应用的测试系统的结构示意图。FIG. 8 is a schematic structural diagram of an application testing system disclosed in an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
在应用的开发过程中,研发人员可以在开发平台上编写并提交此应用的代码,也可能多次修改代码并提交修改后的代码。本申请实施例公开的应用的测试方法及装置、系统,目的在于实现测试的自动执行。本申请实施例所述的方法及装置,可以应用在安卓平台,也可以应用在其它平台,这里不做限定。During the development of the application, the developer can write and submit the code for the application on the development platform, or modify the code multiple times and submit the modified code. The testing method, device and system of the application disclosed in the embodiments of the present application aim at realizing the automatic execution of the test. The method and the device in the embodiments of the present application may be applied to the Android platform, and may also be applied to other platforms, which are not limited herein.
图1为本申请实施例公开的一种应用的测试方法的示意性流程图。本实施例的执行主体可以为控制端。FIG. 1 is a schematic flowchart of a test method of an application disclosed in an embodiment of the present application. The execution body of this embodiment may be a control terminal.
参见图1,在步骤S101,依据测试指令向测试终端发送预先存储的、用于控制所述应用的运行的测试脚本。Referring to FIG. 1, in step S101, a pre-stored test script for controlling the operation of the application is sent to the test terminal according to the test command.
其中,测试指令可以是由(第三方)测试人员下发的用来对待测试应用进行测试的指令,也可以是由应用的开发人员提交的应用的代码提交指令。例如,开发人员在完成新应用的代码的开发,或者在对已有的应用的代码的全部或部分进行更新、维护后,可以提交开发/更新后的应用的代码,此时可以响应于开发人员提交的应用的代码,向测试终端发送相应的测试脚本。The test instruction may be an instruction issued by a (third party) tester to test the application to be tested, or may be a code submission instruction of the application submitted by the application developer. For example, the developer can submit the code of the developed/updated application after completing the development of the code of the new application, or after updating or maintaining the code of the existing application, in response to the developer. The code of the submitted application sends the corresponding test script to the test terminal.
在步骤S102,控制测试脚本在测试终端上运行,以控制应用在测试终端上的运行。In step S102, the control test script is run on the test terminal to control the operation of the application on the test terminal.
在步骤S103,接收测试终端发送的所述应用在测试终端中的运行数据。In step S103, the running data of the application sent by the test terminal in the test terminal is received.
从上述步骤可以看出,对于本实施例所述的测试方法,应用的测试过程以测试指令为触发,可以自动启动测试过程并收集测试过程中的测试数据,无需人为介入测试过程,从而可以大大节省人力,并提高测试效率。It can be seen from the above steps that, for the test method described in this embodiment, the application test process is triggered by the test command, and the test process can be automatically started and the test data in the test process can be collected without human intervention test process, thereby greatly Save manpower and increase test efficiency.
进一步地,本实施例中,应用的测试过程可以以代码提交指令为触发条件,也就是说,在开发人员提交应用的代码后,即可自动收集此应用在 测试终端运行产生的数据,从而可以依据运行数据获得应用在测试终端运行的稳定性结果。所以,本实施例中,可以将应用的开发过程与应用的测试过程“无缝”衔接。进一步地,基于本实施例所述的测试过程,无论研究人员对于应用进行几次代码修改,均可自动触发对于提交后的最新代码的测试过程。Further, in this embodiment, the application testing process may use the code submission instruction as a trigger condition, that is, after the developer submits the application code, the application may be automatically collected. The data generated by the operation of the terminal is tested, so that the stability result of the application running in the test terminal can be obtained according to the running data. Therefore, in this embodiment, the development process of the application can be "seamlessly" coupled with the testing process of the application. Further, based on the testing process described in this embodiment, the test process of the latest code after submission can be automatically triggered regardless of the number of code modifications made by the researcher to the application.
与现有的研发人员通过模拟用户在终端上使用应用的过程,对应用的稳定性进行测试的方式(例如、研发人员可以在终端上手动操作此应用,体验应用的稳定性,或者在终端上自动运行应用,并录制应用的运行过程,通过回放观察应用的稳定性)相比,本实施例所述的方法,可以无需研发人员手动触发测试过程,并且,在多次修改代码的情况下,无需用户反复手动触发测试过程,从而能够提高测试的效率。The method of testing the stability of the application by simulating the process of using the application on the terminal by the existing R&D personnel (for example, the R&D personnel can manually operate the application on the terminal, experience the stability of the application, or on the terminal. Automatically running the application and recording the running process of the application, and observing the stability of the application by playing back. Compared with the method described in this embodiment, the test process can be manually triggered without the developer, and in the case of modifying the code multiple times, It does not require the user to manually trigger the test process repeatedly, which can improve the efficiency of the test.
至此,结合图1简要说明了本发明的应用于控制端的测试方法的流程,下面分别结合图2、图3对图1所示的测试方法的一种具体可行的实现过程进行详细说明。So far, the flow of the test method applied to the control end of the present invention is briefly described with reference to FIG. 1, and a specific feasible implementation process of the test method shown in FIG. 1 will be described in detail below with reference to FIG. 2 and FIG. 3 respectively.
图2为根据本发明另一实施例的应用的测试方法的示意性流程。本实施例中,假设测试终端上均已安装待测应用(导致此情况的原因可以为待测应用之前进行过测试,此次为更新版本后的测试过程),本实施例的执行主体可以为控制端。2 is a schematic flow chart of a test method of an application according to another embodiment of the present invention. In this embodiment, it is assumed that the application to be tested is installed on the test terminal (the cause of the situation may be that the test application is tested before, and the test process after the update version). Control terminal.
如图2所示,在步骤S201,监测是否有应用的代码提交指令。As shown in FIG. 2, in step S201, it is monitored whether there is an application code submission instruction.
如果监测结果为否,继续执行步骤S201,如果监测结果为有,则执行步骤S202。If the monitoring result is no, step S201 is continued, and if the monitoring result is yes, step S202 is performed.
如前所述,本实施例中的代码提交指令所对应的代码可以为对原有应用更新后提交的代码。As described above, the code corresponding to the code submission instruction in this embodiment may be the code submitted after the original application is updated.
在步骤S202,获取预先被选定的测试终端的列表,所述测试终端的列表中包括至少一个测试终端。In step S202, a list of test terminals selected in advance is acquired, and the list of test terminals includes at least one test terminal.
测试终端的列表可以由研发人员提前选定,从测试结果的准确性角度而言,测试终端越多,收集的测试数据也就越多,基于收集的数据得到的测试结果也就越准确。The list of test terminals can be selected in advance by the developer. From the perspective of the accuracy of the test results, the more test terminals, the more test data is collected, and the more accurate the test results are based on the collected data.
在步骤S203,通过预设的连接方式,与所述测试终端的列表中的测试终端的预设接口进行连接。In step S203, a preset connection mode is used to connect with a preset interface of the test terminal in the list of the test terminals.
其中,可以根据实际所选定的测试终端,来选取合适的连接方式和合 适的预设接口进行连接。例如,在测试终端为安卓手机时,可以通过WIFI网络使用TCP作为连接方式,尝试与安卓手机的接口service.adb.tcp.port进行连接。Among them, the appropriate connection method and combination can be selected according to the actual selected test terminal. Connect with the appropriate preset interface. For example, when the test terminal is an Android mobile phone, TCP can be used as a connection method through the WIFI network, and an attempt is made to connect with the interface of the Android mobile phone service.adb.tcp.port.
在步骤S204,通过所述预设接口向连接成功的测试终端发送预先存储的测试脚本和监控软件安装包。In step S204, the pre-stored test script and the monitoring software installation package are sent to the successfully connected test terminal through the preset interface.
在步骤S205,在测试终端上所述应用的版本与应用的代码提交指令所指示的版本一致后(在具有多个代码提交指令的情况下,以最后一次提交的代码提交指令所指示的版本为准),向测试终端发送测试启动指令,测试启动指令用于指示测试终端启动测试脚本开始运行,以使得运行中的所述测试脚本在所述测试终端上启动监控软件,并通过所述监控软件启动并运行所述应用。In step S205, after the version of the application on the test terminal is consistent with the version indicated by the code submission instruction of the application (in the case of having multiple code submission instructions, the version indicated by the last submitted code submission instruction is a test start command is sent to the test terminal, and the test start command is used to instruct the test terminal to start the test script to start running, so that the test script in operation starts the monitoring software on the test terminal, and passes the monitoring software. Start and run the app.
假设测试终端上安装的应用的版本为1.0,而提交的代码已经将应用升级为2.0,则在与研发平台连接后,测试终端中的应用可以自动进行版本的升级,具体的版本鉴别和触发升级的过程可以参见现有技术,这里不再赘述。Assume that the version of the application installed on the test terminal is 1.0, and the submitted code has been upgraded to 2.0. After connecting with the R&D platform, the application in the test terminal can automatically upgrade the version, specific version identification and trigger upgrade. The process can be referred to the prior art and will not be described here.
具体地,本实施例中,在版本升级之后,向测试终端发送启动指令,启动测试脚本,由测试脚本启动监控软件,并通过监控软件启动待测应用,并控制待测应用执行业务逻辑。Specifically, in this embodiment, after the version is upgraded, the startup command is sent to the test terminal, the test script is started, the monitoring software is started by the test script, and the application to be tested is started by the monitoring software, and the application execution logic is controlled by the application to be tested.
在步骤S206,从测试终端接收所述应用执行业务逻辑的执行日志以及通过所述监控软件收集所述应用运行过程中的性能数据。In step S206, an execution log of the application execution service logic is received from the test terminal, and performance data during the application operation process is collected by the monitoring software.
在步骤S207,实时显示执行日志。In step S207, the execution log is displayed in real time.
现有的应用测试方式,提交应用安装包之后并无法获知具体的测试内容,只能在最终获得一些报告数据,并且这些数据主要是针对简单的安装与卸载等行为。The existing application test method, after submitting the application installation package, is unable to know the specific test content, and only obtains some report data in the end, and the data is mainly for simple installation and uninstallation.
相比之下,本实施例中,可以控制应用运行业务逻辑,以及收集并实时展示业务逻辑的执行日志,所以开发人员可以实时掌握应用的运行情况,并且,开发人员还可以依据执行日志调整测试策略(例如,可以根据执行日志通过控制端向测试终端发送调整后的测试脚本),从而使得测试过程更加接近实际使用情况,使得稳定性测试数据更可靠。In contrast, in this embodiment, the application running business logic can be controlled, and the execution log of the business logic is collected and displayed in real time, so the developer can grasp the running status of the application in real time, and the developer can also adjust the test according to the execution log. The policy (for example, the adjusted test script can be sent to the test terminal through the control terminal according to the execution log), so that the test process is closer to the actual use situation, so that the stability test data is more reliable.
从上述步骤可以看出,本实施例所述的应用测试方法,不仅能够实现测试过程与应用开发过程的流程衔接一体化,还能够深入获取应用的业务 执行逻辑的执行日志,从而提高测试过程及结果的可信性。It can be seen from the above steps that the application testing method described in this embodiment can not only realize the integration of the process of the testing process and the application development process, but also deeply obtain the application business. Execute logical execution logs to improve the credibility of the testing process and results.
图3为根据本发明另一实施例的应用的测试方法的示意性流程图。FIG. 3 is a schematic flowchart of a test method of an application according to another embodiment of the present invention.
本实施例中,假设测试终端上未安装待测应用(导致此情况的原因可以为待测应用之前没有被测试过,或者,在测试列表中新加入的测试终端没有测试过待测应用)。本实施例的执行主体为控制端。In this embodiment, it is assumed that the application to be tested is not installed on the test terminal (the cause of the situation may be that the application to be tested has not been tested before, or the test terminal newly added in the test list has not tested the application to be tested). The execution body of this embodiment is a control terminal.
参见图3,在步骤S301,生成测试脚本。Referring to FIG. 3, in step S301, a test script is generated.
这里,可以通过在终端设备上安装相应的软件来录制对运行在终端设备上的所述应用的操作过程,并依据录制内容生成测试脚本。另外,也可以通过接收并编译用户输入的代码,生成测试脚本。Here, the operation process of the application running on the terminal device can be recorded by installing corresponding software on the terminal device, and a test script is generated according to the recorded content. Alternatively, you can generate a test script by receiving and compiling the code entered by the user.
基于通过接收并编译用户输入的代码生成测试脚本的方式,研发人员可以自定义测试脚本,使得测试脚本具备不同的测试功能,从而实现测试的多样性。Based on the way the test script is generated by receiving and compiling the user-entered code, the developer can customize the test script so that the test script has different test functions to achieve the diversity of the test.
需要说明的是,这里述及的终端设备可以为测试终端,也可以为其它终端。It should be noted that the terminal device mentioned herein may be a test terminal or other terminals.
在步骤S302,检测是否有应用的代码提交指令,如果检测结果为是,执行步骤S303,如果检测结果为否,则继续检测是否有应用的代码提交指令。In step S302, it is detected whether there is an application code submission instruction. If the detection result is yes, step S303 is performed, and if the detection result is no, it is continuously detected whether there is an application code submission instruction.
在步骤S303,判断当前时刻距离上一次测试的时刻间的间隔是否大于预设时间间隔,如果判定结果为是,执行步骤S304,如果判定结果为否,返回执行步骤S302。In step S303, it is determined whether the interval between the current time and the time of the last test is greater than the preset time interval. If the determination result is yes, step S304 is performed, and if the determination result is no, the process returns to step S302.
本实施例中,设定步骤S303的判断步骤的目的在于,防止测试过程过于频繁地被触发,以节省资源。例如,开发人员在进行代码开发的过程中,可能会频繁地一个应用的修改代码,有时候的代码提交只是为了保存已写好的代码,而非完成代码的编写,所以,实际应用中,开发人员可以依据实际需要,设定测试启动的周期。In this embodiment, the purpose of the determining step of step S303 is to prevent the test process from being triggered too frequently to save resources. For example, in the process of code development, developers may frequently modify the code of an application. Sometimes the code is submitted only to save the written code, not the completion of the code. Therefore, in practical applications, development The personnel can set the test start cycle according to actual needs.
在步骤S304,向测试终端发送预先存储的测试脚本、监控软件和应用的安装包。In step S304, a pre-stored test script, monitoring software, and an installation package of the application are transmitted to the test terminal.
在步骤S305,向测试终端发送用于指示测试终端使用应用的安装包安装所述应用的安装指令。In step S305, an installation instruction for instructing the test terminal to install the application using the installation package of the application is sent to the test terminal.
在步骤S306,在测试终端上所述应用的版本与代码提交指令所指示的版本一致后,向测试终端发送用于指示测试终端启动测试脚本测试的测试 启动指令,以便于测试脚本在测试终端上启动监控软件,并通过监控软件启动并运行所述应用。In step S306, after the version of the application on the test terminal is consistent with the version indicated by the code submission instruction, a test for instructing the test terminal to start the test script test is sent to the test terminal. The instruction is started so that the test script starts the monitoring software on the test terminal, and the application is started and run by the monitoring software.
具体地,可以通过调试桥Debug Bridge向测试终端发送安装指令和测试启动指令。Specifically, the installation command and the test startup instruction can be sent to the test terminal through the debug bridge Debug Bridge.
需要说明的是,应用的安装包的版本可能与对应于代码提交指令而提交的代码指示的版本不一致,即安装包为低版本,对应于代码提交指令而提交的代码指示高版本,此情况下,测试终端完成应用安装后,应用会自动升级到新版本。It should be noted that the version of the installation package of the application may be inconsistent with the version indicated by the code submitted corresponding to the code submission instruction, that is, the installation package is a low version, and the code submitted corresponding to the code submission instruction indicates a high version, in which case After the test terminal completes the application installation, the application will automatically upgrade to the new version.
其中,如上文所述,对应于代码提交指令而提交的代码可以是开发人员对应用进行开发或更新后的应用的全部或部分代码。在提交多次代码提交指令的情况下,可以以对应于最后一次代码提交指令而提交的代码所指示的版本为准。Wherein, as described above, the code submitted corresponding to the code submission instruction may be all or part of the code of the application after the developer develops or updates the application. In the case of submitting multiple code commit instructions, the version indicated by the code corresponding to the last code commit instruction may be used.
在步骤S307,接收测试终端发送的各类数据。In step S307, various types of data sent by the test terminal are received.
这里,可以由测试终端收集与待测试应用在运行过程中的相关数据,并将该数据发送给控制端。Here, the test terminal collects relevant data during the running process of the application to be tested, and sends the data to the control terminal.
例如,可以由测试终端收集所述应用执行业务逻辑的执行日志、通过所述监控软件收集所述应用运行过程中的性能数据、收集所述测试终端指示是否连接成功的数据、指示所述测试包是否安装成功的数据、指示所述测试脚本是否启动成功的数据、指示所述监控软件是否启动成功的数据以及指示所述应用是否启动成功的数据。For example, the test terminal may collect an execution log of the application execution service logic, collect performance data during the application running process by using the monitoring software, collect data indicating whether the test terminal indicates successful connection, and indicate the test package. Whether to install successful data, data indicating whether the test script starts successfully, data indicating whether the monitoring software is successfully started, and data indicating whether the application is successfully started.
与上述实施例不同的是,本实施例中,除了收集待测应用的运行数据之外,还可以收集待测应用的安装与启动数据,以及测试脚本的和监控软件的启动数据等,以更加全面地掌握测试过程中的情况。Different from the above embodiment, in this embodiment, in addition to collecting the running data of the application to be tested, the installation and startup data of the application to be tested, and the startup data of the test script and the monitoring software may be collected to further Comprehensively grasp the situation during the test.
在步骤S308,利用收集到的数据生成报表,并显示所述报表。In step S308, a report is generated using the collected data, and the report is displayed.
本实施例所述的应用测试方法,可以使用开发人员自定义的测试脚本对应用进行测试,并将测试结果以报表的形式呈现,因此,不仅具有较高的测试效率,还能够大大方便开发人员的使用。The application testing method described in this embodiment can test the application by using a developer-defined test script, and present the test result in the form of a report. Therefore, not only has high test efficiency, but also greatly facilitates developers. usage of.
至此,结合图1-图3详细说明了本发明的应用的测试方法实现为控制端时的具体流程。So far, the specific flow when the test method of the application of the present invention is implemented as the control end is described in detail with reference to FIGS.
图4为根据本发明另一实施例的应用的测试方法的示意性流程图。4 is a schematic flow chart of a test method of an application according to another embodiment of the present invention.
与上文结合图1-图3描述的实施例不同,本实施例是以测试终端为执 行主体进行描述的。其中,本实施例中述及的细节部分已在上文做了详细说明,这里仅就测试终端执行的步骤进行说明,对于其中的细节部分可以参照上相关描述。Different from the embodiment described above in connection with FIG. 1 to FIG. 3, this embodiment is based on the test terminal. The main body of the line describes it. The details mentioned in the embodiment have been described in detail above, and only the steps performed by the test terminal are described herein. For the details, reference may be made to the related description.
如图4所示,在步骤S401,接收控制端依据测试指令发送的预先存储的、用于控制所述应用的运行的测试脚本。As shown in FIG. 4, in step S401, the pre-stored test script for controlling the operation of the application sent by the control terminal according to the test command is received.
在步骤S402,响应于所述控制端对所述测试脚本的控制,在所述测试终端上运行所述应用。In step S402, the application is run on the test terminal in response to the control end controlling the test script.
这里,测试终端可以接收控制端发送的测试启动指令,依据测试启动指令来运行测试脚本,以控制应用在测试终端上的运行。Here, the test terminal can receive the test start instruction sent by the control end, and run the test script according to the test start instruction to control the operation of the application on the test terminal.
在步骤S403,收集应用在所述测试终端中的运行数据。In step S403, operational data applied in the test terminal is collected.
这里,测试终端还可以接收控制端发送的监控软件安装包,使用软件安装包在测试终端上安装监控软件,以使得运行中的测试脚本可以在测试终端上启动监控软件,并通过监控软件启动并运行待监控的应用。也就是说,可以通过监控软件启动应用并控制应用的执行业务逻辑。Here, the test terminal can also receive the monitoring software installation package sent by the control terminal, and install the monitoring software on the test terminal by using the software installation package, so that the running test script can start the monitoring software on the test terminal, and is started by the monitoring software. Run the application to be monitored. That is to say, the application can be launched by the monitoring software and control the execution business logic of the application.
其中,还可以通过监控软件收集应用执行业务逻辑的执行日志以及应用运行过程中的性能数据。The execution log of the application execution business logic and the performance data during the application running process may also be collected through the monitoring software.
并且还可以通过监控软件收集测试终端指示是否与控制端连接成功的数据、指示监控软件是否安装成功的数据、指示测试脚本是否启动成功的数据、指示监控软件是否启动成功的数据以及指示应用是否启动成功的数据。And the monitoring software collects data indicating whether the test terminal indicates successful connection with the control terminal, data indicating whether the monitoring software is successfully installed, data indicating whether the test script is successfully started, data indicating whether the monitoring software is successfully started, and indicating whether the application is started. Successful data.
在步骤S404,向所述控制端上传收集到的运行数据。In step S404, the collected operational data is uploaded to the control terminal.
由此,测试终端可以在控制端的控制下,自行运行应用、收集运行数据并上传运行数据。Thus, the test terminal can run the application, collect the operation data, and upload the operation data under the control of the control terminal.
另外,本实施例中述及的测试指令、测试脚本、测试启动指令以及监控软件安装包的概念可以参见上文的相关描述,这里不再赘述。In addition, the concepts of the test command, the test script, the test start command, and the monitoring software installation package described in this embodiment can be referred to the related description above, and details are not described herein again.
在测试终端上已安装待检测的应用的情况下,测试终端可以将本地所述应用的版本与所述应用的代码提交指令所指示的版本保证一致。In the case that the application to be detected has been installed on the test terminal, the test terminal can match the version of the locally applied application with the version guarantee indicated by the code submission instruction of the application.
在测试终端上未安装所述应用的情况下,测试终端可以接收控制端发送的应用的安装包以及安装指令,并依据安装指令,利用应用的安装包安装所述应用。In the case that the application is not installed on the test terminal, the test terminal may receive an installation package of the application sent by the control terminal and an installation instruction, and install the application by using an installation package of the application according to the installation instruction.
图5为根据本发明另一实施例的应用的测试方法的示意性流程图。与上述实施例不同的是,本实施例中,重点在于说明控制端和测试终端间的 交互过程。FIG. 5 is a schematic flowchart of a test method of an application according to another embodiment of the present invention. Different from the above embodiments, in this embodiment, the focus is on the description between the control terminal and the test terminal. Interaction process.
如图5所示,在步骤S501,控制端依据测试指令向测试终端发送预先存储的、用于控制所述应用的运行的测试脚本以及监控软件安装包。As shown in FIG. 5, in step S501, the control terminal sends a pre-stored test script for controlling the running of the application and a monitoring software installation package to the test terminal according to the test instruction.
在步骤S502,测试终端使用监控软件安装包安装监控软件。In step S502, the test terminal installs the monitoring software using the monitoring software installation package.
在步骤S503,在测试终端上已安装应用的情况下,测试终端将本地应用的版本与应用最后一次提交的代码指示的版本保证一致。In step S503, in the case that the application is installed on the test terminal, the test terminal agrees that the version of the local application is consistent with the version indicated by the code submitted by the application last time.
在步骤S504,在测试终端上未安装应用的情况下,控制端向测试终端发送应用的安装包以及安装指令。In step S504, if the application is not installed on the test terminal, the control terminal sends the installation package of the application and the installation instruction to the test terminal.
在步骤S505,测试终端依据安装指令,利用应用的安装包安装应用。In step S505, the test terminal installs the application by using the installation package of the application according to the installation instruction.
在步骤S506,控制端控制测试脚本在所述测试终端上运行,以控制应用在测试终端上的运行。In step S506, the control terminal controls the test script to run on the test terminal to control the operation of the application on the test terminal.
具体地,控制端控制所述测试脚本在所述测试终端上运行的具体实现方式可以通过控制端与测试终端的交互实现,即:控制端向测试终端发送测试启动指令,测试终端依据测试启动指令,运行测试脚本,以控制应用在测试终端上的运行。Specifically, the specific implementation manner in which the control terminal controls the test script to run on the test terminal can be implemented by the interaction between the control terminal and the test terminal, that is, the control terminal sends a test start command to the test terminal, and the test terminal according to the test start command Run a test script to control the operation of the application on the test terminal.
进一步地,测试终端依据控制端发送的测试启动指令,运行测试脚本,以使得运行中的测试脚本在测试终端上启动监控软件,并通过监控软件启动并运行应用。Further, the test terminal runs the test script according to the test start command sent by the control end, so that the running test script starts the monitoring software on the test terminal, and starts and runs the application through the monitoring software.
在步骤S507,测试终端收集并向控制端上传应用在测试终端中的运行数据。In step S507, the test terminal collects and uploads the operation data of the application in the test terminal to the control terminal.
从本实施例所述的步骤可以看出,控制端与测试终端通过交互,可以实现自动触发对应用的测试过程,而无需用户手动在测试终端上模拟应用的使用过程,从而能够提高测试的效率,同时方便测试用户的使用。It can be seen from the steps in this embodiment that the control end interacts with the test terminal to automatically trigger the test process of the application without manually simulating the application process on the test terminal, thereby improving the test efficiency. At the same time, it is convenient to test the user's use.
与上述方法实施例相对应地,本申请实施例还公开了一种应用的测试装置。Corresponding to the above method embodiment, the embodiment of the present application also discloses an application testing device.
图6为根据本发明一实施例的应用测试装置的结构的示意性方框图。6 is a schematic block diagram showing the structure of an application test apparatus according to an embodiment of the present invention.
其中,本实施例的应用测试装置对应于上文述及的图1-图3所描述的方法。因此,本实施例的应用测试装置中的功能模块可以用来执行图1-图3所述的方法中的相关步骤。下面仅就应用测试装置的结构做以说明,对于其中的细节部分可以参见上文结合图1-图3的相关描述。Wherein, the application testing device of the embodiment corresponds to the method described in the above-mentioned FIGS. 1 to 3. Therefore, the functional modules in the application testing device of the present embodiment can be used to perform the relevant steps in the methods described in FIGS. 1-3. In the following, only the structure of the application test device will be described. For the details, reference may be made to the related description above in conjunction with FIGS.
参见图6,本实施例的应用测试装置包括发送模块601、控制模块602 以及接收模块603。Referring to FIG. 6, the application testing device of this embodiment includes a sending module 601 and a control module 602. And a receiving module 603.
其中,发送模块601可以依据测试指令向测试终端发送预先存储的、用于控制所述应用的运行的测试脚本。The sending module 601 can send a pre-stored test script for controlling the running of the application to the test terminal according to the test instruction.
控制模块602可以控制所述测试脚本在所述测试终端上运行,以控制所述应用在所述测试终端上的运行。The control module 602 can control the test script to run on the test terminal to control the operation of the application on the test terminal.
接收模块603可以接收测试终端发送的所述应用在所述测试终端中的运行数据。The receiving module 603 can receive the running data of the application sent by the testing terminal in the testing terminal.
可选地,本实施例的应用测试装置还可以包括获取模块604。获取模块604可以获取预先被选定的测试终端的列表,测试终端的列表中包括至少一个测试终端。Optionally, the application testing device of this embodiment may further include an obtaining module 604. The obtaining module 604 can obtain a list of test terminals selected in advance, and the list of test terminals includes at least one test terminal.
发送模块601可以通过预设的连接方式与测试终端的列表中的测试终端的预设接口进行连接,并通过预设接口向连接成功的测试终端发送测试脚本。The sending module 601 can connect with the preset interface of the test terminal in the list of the test terminal by using a preset connection manner, and send the test script to the test terminal with successful connection through the preset interface.
可选地,本实施例的应用测试装置还可以包括测试脚本生成模块606。Optionally, the application testing device of this embodiment may further include a test script generating module 606.
测试脚本生成模块606可以通过安装于在终端设备的软件录制对所述应用的操作过程,并依据录制内容生成测试脚本;或者,通过接收并编译用户输入的代码,生成测试脚本。The test script generation module 606 can record the operation process of the application by software installed in the terminal device, and generate a test script according to the recorded content; or generate a test script by receiving and compiling the code input by the user.
可选地,本实施例的应用测试装置还可以包括判断模块605。Optionally, the application testing device of this embodiment may further include a determining module 605.
判断模块605可以在检测到测试指令(可以是应用的代码提交指令)的情况下,判断当前时刻距离上一次测试的时刻间的间隔是否大于预设时间间隔,如果判定结果为是,则向测试终端发送预先存储的测试脚本。The determining module 605 can determine whether the interval between the current time and the time of the last test is greater than a preset time interval, if the test instruction (which may be the code submission instruction of the application) is detected, and if the determination result is yes, then the test is performed. The terminal sends a pre-stored test script.
具体地,控制模块602控制所述测试脚本在所述测试终端上运行,以控制所述应用在所述测试终端上的运行的具体实现方式可以为:向所述测试终端发送测试启动指令,所述测试启动指令用于启动所述测试终端中的所述测试脚本开始运行,以使得运行中的所述测试脚本在所述测试终端上启动监控软件,并通过所述监控软件启动并运行所述应用;在此情况下,发送模块601还用于:在所述控制模块602向所述测试终端发送测试启动指令之前,向所述测试终端发送监控软件安装包,以在所述测试终端中安装所述监控软件。Specifically, the specific implementation manner of the control module 602 controlling the test script to run on the test terminal to control the operation of the application on the test terminal may be: sending a test start command to the test terminal, where The test startup command is used to start the test script in the test terminal to start running, so that the test script in operation starts monitoring software on the test terminal, and starts and runs the monitoring software through the monitoring software. In this case, the sending module 601 is further configured to: before the control module 602 sends a test start command to the test terminal, send a monitoring software installation package to the test terminal, to install in the test terminal. The monitoring software.
进一步地,所述控制模块602向所述测试终端发送测试启动指令的具体实现方式可以为:在所述测试终端上已安装所述应用的情况下,在所述测试终端上所述应用的版本与对应于所述应用的代码提交指令而提交的代 码指示的版本一致后,由发送模块601向所述测试终端发送测试启动指令;或者,在所述测试终端上未安装所述应用的情况下,由发送模块601向所述测试终端发送所述应用的安装包以及安装指令,所述安装指令用于指示所述测试终端使用所述应用的安装包安装所述应用,在所述测试终端上所述应用的版本与对应于所述应用的代码提交指令而提交的代码指示的版本一致后,由发送模块601向所述测试终端发送测试启动指令。Further, the specific implementation manner of the control module 602 sending the test startup command to the test terminal may be: when the application is installed on the test terminal, the version of the application on the test terminal a generation submitted with a code submission instruction corresponding to the application After the version of the code indication is consistent, the sending module 601 sends a test start command to the test terminal; or, if the application is not installed on the test terminal, the sending module 601 sends the test command to the test terminal. An installation package of the application, and an installation instruction, the installation instruction is used to instruct the test terminal to install the application by using an installation package of the application, where the version of the application and the code corresponding to the application are on the test terminal After the version indicated by the code submitted by the instruction is identical, the sending module 601 sends a test start instruction to the test terminal.
进一步地,测试脚本的作用为,开始运行后,使得运行中的所述测试脚本在所述测试终端上启动监控软件,通过所述监控软件启动所述应用并控制所述应用执行业务逻辑。Further, the function of the test script is that after the start of the running, the running test script starts the monitoring software on the testing terminal, and the monitoring software starts the application and controls the application to execute the business logic.
具体地,接收模块603可以接收测试终端发送的所述应用执行业务逻辑的执行日志、以及通过所述监控软件收集所述应用运行过程中的性能数据。Specifically, the receiving module 603 may receive an execution log of the application execution service logic sent by the test terminal, and collect performance data during the running of the application by using the monitoring software.
进一步地,接收模块603还可以用于接收所述测试终端指示是否连接成功的数据、指示所述测试包是否安装成功的数据、指示所述测试脚本是否启动成功的数据、指示所述监控软件是否启动成功的数据以及指示所述应用是否启动成功的数据。Further, the receiving module 603 is further configured to receive, by the test terminal, data indicating whether the connection is successful, data indicating whether the test package is successfully installed, data indicating whether the test script is successfully started, and indicating whether the monitoring software is Start successful data and data indicating whether the application started successfully.
本实施例所述的装置,不仅能够实现测试过程与应用开发过程的流程衔接一体化,还能够深入获取应用的业务执行逻辑的执行日志,从而提高测试过程及结果的可信性。The device described in this embodiment can not only integrate the process of the test process and the application development process, but also deeply obtain the execution log of the application execution logic of the application, thereby improving the credibility of the test process and the result.
需要说明的是,本实施例所述的装置可以集成在代码的开发平台上,作为开发平台的后台的一部分,其执行逻辑可以参见上述实施例所示。It should be noted that the apparatus in this embodiment may be integrated on the development platform of the code as a part of the background of the development platform, and the execution logic thereof may be referred to the foregoing embodiment.
图7为根据本发明一实施例的应用测试装置的结构的示意性方框图。FIG. 7 is a schematic block diagram showing the structure of an application test apparatus according to an embodiment of the present invention.
其中,本实施例的应用测试装置对应于上文结合图4所描述的方法。因此,本实施例的应用测试装置中的功能模块可以用来执行图4所述的方法中的相关步骤。下面仅就应用测试装置的结构做以说明,对于其中的细节部分可以参见上文结合图4的相关描述。Wherein, the application testing device of the present embodiment corresponds to the method described above in connection with FIG. Therefore, the functional modules in the application testing device of the present embodiment can be used to perform the relevant steps in the method described in FIG. In the following, only the structure of the application test device will be described, and for the details thereof, reference may be made to the related description in conjunction with FIG. 4 above.
参见图7,本实施例的应用测试装置包括接收模块701、运行模块702、收集模块703以及上传模块704。Referring to FIG. 7, the application testing device of this embodiment includes a receiving module 701, an operating module 702, a collecting module 703, and an uploading module 704.
接收模块701可以接收控制端依据测试指令发送的预先存储的、用于控制应用的运行的测试脚本。The receiving module 701 can receive a pre-stored test script for controlling the running of the application sent by the control terminal according to the test instruction.
运行模块702可以响应于控制端对测试脚本的控制,在测试装置上运行应 用。The running module 702 can operate on the testing device in response to the control end controlling the test script. use.
收集模块703可以收集应用在测试装置中的运行数据。The collection module 703 can collect operational data that is applied in the testing device.
上传模块704可以向控制端上传收集模块703收集到的运行数据。The uploading module 704 can upload the running data collected by the collecting module 703 to the control terminal.
具体地,接收模块701可以接收控制端发送的测试启动指令,运行模块702可以依据接收模块701接收到的测试启动指令,运行测试脚本,以控制应用在测试装置上的运行。Specifically, the receiving module 701 can receive the test startup command sent by the control terminal, and the running module 702 can run the test script according to the test startup command received by the receiving module 701 to control the operation of the application on the testing device.
进一步地,运行模块702可以依据接收模块接收到的测试启动指令,运行测试脚本,以使得运行中的测试脚本在测试装置上启动监控软件,并通过监控软件启动并运行应用,Further, the running module 702 can run the test script according to the test start instruction received by the receiving module, so that the running test script starts the monitoring software on the testing device, and starts and runs the application through the monitoring software.
可选地,收集模块703还可以通过所述监控软件收集所述测试装置指示是否与所述控制端连接成功的数据、指示所述监控软件是否安装成功的数据、指示所述测试脚本是否启动成功的数据、指示所述监控软件是否启动成功的数据以及指示所述应用是否启动成功的数据。Optionally, the collecting module 703 may further collect, by using the monitoring software, data indicating whether the testing device is successfully connected to the control terminal, data indicating whether the monitoring software is successfully installed, and indicating whether the testing script is successfully started. Data, data indicating whether the monitoring software is successfully started, and data indicating whether the application is successfully started.
可选地,本实施例的应用测试装置还可以包括安装模块705。接收模块701可以接收控制端发送的监控软件安装包,安装模块705可以使用监控软件安装包在测试装置上安装监控软件,运行模块702依据测试启动指令,运行测试脚本,以使得运行中的测试脚本在测试装置上启动监控软件,并通过监控软件启动并运行应用。Optionally, the application testing device of this embodiment may further include an installation module 705. The receiving module 701 can receive the monitoring software installation package sent by the control terminal, the installation module 705 can install the monitoring software on the testing device by using the monitoring software installation package, and the running module 702 runs the testing script according to the test startup instruction to make the running test script Start the monitoring software on the test device and start and run the application through the monitoring software.
可选地,本实施例的应用测试装置还可以包括版本维护模块706。在接收模块701接收控制端发送的测试启动指令之前,在测试装置上已安装应用的情况下,版本维护模块706可以将本地应用的版本与对应于应用的代码提交指令而提交的代码指示的版本保证一致,在测试装置上未安装应用的情况下,可以由接收模块701接收控制端发送的应用的安装包以及安装指令,然后可以由版本维护模块706依据安装指令,利用应用的安装包安装应用。Optionally, the application testing device of this embodiment may further include a version maintenance module 706. Before the receiving module 701 receives the test start command sent by the control terminal, in the case that the application is installed on the test device, the version maintenance module 706 may change the version of the local application with the code indicated by the code submission instruction corresponding to the application. To ensure consistency, in the case that the application is not installed on the testing device, the receiving module 701 can receive the installation package and the installation instruction of the application sent by the control terminal, and then the version maintenance module 706 can use the installation package of the application to install the application according to the installation instruction. .
图8为根据本发明一实施例的应用测试系统的结构的示意性方框图。FIG. 8 is a schematic block diagram showing the structure of an application test system according to an embodiment of the present invention.
如图8所示,应用测试系统包括控制端801和一个或多个测试终端802。As shown in FIG. 8, the application test system includes a control terminal 801 and one or more test terminals 802.
具体地,控制端801用于,依据测试指令向测试终端802发送预先存储的、用于控制所述应用的运行的测试脚本;并控制所述测试脚本在所述测试终端上运行,以控制所述应用在所述测试终端802上的运行;测试终端802用于收集并向所述控制端801上传所述应用在所述测试终端802中的运行数据。 Specifically, the control terminal 801 is configured to send, to the test terminal 802, a pre-stored test script for controlling the running of the application according to the test instruction; and control the test script to run on the test terminal to control the The application is applied to the test terminal 802. The test terminal 802 is configured to collect and upload the operation data of the application in the test terminal 802 to the control terminal 801.
具体地,控制端801控制所述测试脚本在所述测试终端802上运行的具体实现方式可以为:控制端801向所述测试终端802发送测试启动指令,测试终端802依据所述控制端801发送的测试启动指令,运行所述测试脚本,以控制所述应用在所述测试终端802上的运行。Specifically, the specific implementation manner in which the control terminal 801 controls the test script to run on the test terminal 802 may be: the control terminal 801 sends a test start command to the test terminal 802, and the test terminal 802 sends the test terminal 802 according to the control terminal 801. The test launch command runs the test script to control the operation of the application on the test terminal 802.
进一步地,测试终端802依据所述控制端801发送的测试启动指令,运行所述测试脚本,以控制所述应用在所述测试终端802上的运行的具体实现方式可以为:依据所述控制端801发送的测试启动指令,运行所述测试脚本,以使得运行中的测试脚本在所述测试终端802上启动监控软件,并通过所述监控软件启动并运行所述应用;在此情况下,控制端801还用于:在所述测试终端802依据所述控制端801发送的测试启动指令,运行所述测试脚本之前,向所述测试终端802发送监控软件安装包;测试终端802还用于:使用所述监控软件安装包安装所述监控软件。Further, the specific implementation manner of the test terminal 802 running the test script to control the operation of the application on the test terminal 802 according to the test start command sent by the control terminal 801 may be: according to the control end a test start command sent by 801, running the test script, so that the running test script starts monitoring software on the test terminal 802, and starts and runs the application through the monitoring software; in this case, the control The terminal 801 is further configured to: before the test script is sent according to the test start command sent by the control terminal 801, send the monitoring software installation package to the test terminal 802; the test terminal 802 is further configured to: The monitoring software is installed using the monitoring software installation package.
可选地,测试终端802还用于:在所述控制端801向所述测试终端802发送测试启动指令之前,在所述测试终端802上已安装所述应用的情况下,将本地所述应用的版本与对应于所述应用的代码提交指令而提交的代码指示的版本保证一致。或者,控制端801还用于:在所述测试终端802上未安装所述应用的情况下,向所述测试终端802发送所述应用的安装包以及安装指令;测试终端802还用于:依据所述安装指令,利用所述应用的安装包安装所述应用。Optionally, the test terminal 802 is further configured to: before the control terminal 801 sends a test start command to the test terminal 802, if the application is installed on the test terminal 802, the application is locally The version of the version is consistent with the version of the code indicated by the code submission instruction corresponding to the application. Alternatively, the control terminal 801 is further configured to: when the application is not installed on the test terminal 802, send an installation package of the application and an installation instruction to the test terminal 802; and the test terminal 802 is further configured to: The installation instruction installs the application by using an installation package of the application.
本实施例所述的应用测试系统,通过控制端801与测试终端802之间的交互,可以提升应用测试的效率。The application testing system in this embodiment can improve the efficiency of application testing through the interaction between the control terminal 801 and the test terminal 802.
本申请实施例方法所述的功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算设备可读取存储介质中。基于这样的理解,本申请实施例对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一台计算设备(可以是个人计算机,服务器,移动计算设备或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions described in the methods of the embodiments of the present application, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computing device readable storage medium. Based on such understanding, a portion of the embodiments of the present application that contributes to the prior art or a portion of the technical solution may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a The computing device (which may be a personal computer, server, mobile computing device, or network device, etc.) performs all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
因此,本发明的上述技术构思还可以被实施为一种非暂时性机器可读 存储介质,其上存储有可执行代码。当该可执行代码被处理器执行时,使该处理器执行上文所述的方法。Therefore, the above technical idea of the present invention can also be implemented as a non-transitory machine readable A storage medium on which executable code is stored. When the executable code is executed by the processor, the processor is caused to perform the method described above.
另一方面,本发明的上述技术构思还可以被实施为一种计算设备,该计算设备包括处理器和非暂时性机器可读存储介质。该非暂时性机器可读存储介质上存储有可执行代码。当该可执行代码被该处理器执行时,使该处理器执行上文所述的方法。In another aspect, the above technical concept of the present invention can also be embodied as a computing device including a processor and a non-transitory machine readable storage medium. The non-transitory machine readable storage medium stores executable code thereon. When the executable code is executed by the processor, the processor is caused to perform the method described above.
另外,本发明的上述技术构思还可以被实施为一种计算机程序产品,该计算机程序产品包括可执行代码。当该可执行代码被处理器执行时,使该处理器执行上文所述的方法。Further, the above technical idea of the present invention can also be embodied as a computer program product including executable code. When the executable code is executed by the processor, the processor is caused to perform the method described above.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts of the respective embodiments may be referred to each other.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。 The above description of the disclosed embodiments enables those skilled in the art to make or use the application. Various modifications to these embodiments are obvious to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the application is not limited to the embodiments shown herein, but is to be accorded the broadest scope of the principles and novel features disclosed herein.

Claims (36)

  1. 一种应用的测试方法,应用于控制端,该方法包括:An application test method is applied to the control end, and the method includes:
    依据测试指令向测试终端发送预先存储的、用于控制所述应用的运行的测试脚本;Sending a pre-stored test script for controlling the running of the application to the test terminal according to the test instruction;
    控制所述测试脚本在所述测试终端上运行,以控制所述应用在所述测试终端上的运行;Controlling the test script to run on the test terminal to control operation of the application on the test terminal;
    接收所述测试终端发送的所述应用在所述测试终端中的运行数据。Receiving operation data of the application sent by the test terminal in the test terminal.
  2. 根据权利要求1所述的测试方法,其中,所述向测试终端发送预先存储的、用于控制所述应用的运行的测试脚本的步骤包括:The testing method according to claim 1, wherein the step of transmitting a pre-stored test script for controlling the running of the application to the test terminal comprises:
    获取预先被选定的测试终端的列表,所述测试终端的列表中包括至少一个测试终端;Obtaining a list of pre-selected test terminals, the list of test terminals including at least one test terminal;
    通过预设的连接方式,与所述测试终端的列表中的测试终端的预设接口进行连接;Connecting with a preset interface of the test terminal in the list of the test terminals by using a preset connection manner;
    通过所述预设接口向连接成功的测试终端发送预先存储的、用于控制所述应用的运行的测试脚本。A pre-stored test script for controlling the running of the application is sent to the successfully connected test terminal through the preset interface.
  3. 根据权利要求1所述的测试方法,其中,The test method according to claim 1, wherein
    所述测试指令包括所述应用的代码提交指令。The test instructions include code submission instructions for the application.
  4. 根据权利要求3所述的测试方法,其中,所述依据测试指令向测试终端发送预先存储的、用于控制所述应用的运行的测试脚本的步骤包括:The testing method according to claim 3, wherein the step of transmitting a pre-stored test script for controlling the running of the application to the test terminal according to the test instruction comprises:
    在检测到所述应用的代码提交指令的情况下,判断当前时刻距离上一次测试的时刻间的间隔是否大于预设时间间隔,在判定为是的情况下,向所述测试终端发送所述测试脚本。When the code submission instruction of the application is detected, it is determined whether the interval between the current time and the time of the last test is greater than a preset time interval, and if the determination is yes, the test is sent to the test terminal. script.
  5. 根据权利要求1至4任一项所述的测试方法,其中,所述控制所述测试脚本在所述测试终端上运行以控制所述应用在所述测试终端上的运行的步骤包括:The testing method according to any one of claims 1 to 4, wherein the step of controlling the test script to run on the test terminal to control the operation of the application on the test terminal comprises:
    向所述测试终端发送监控软件安装包,以在所述测试终端中安装所述监控 软件;Sending a monitoring software installation package to the test terminal to install the monitoring in the test terminal software;
    向所述测试终端发送测试启动指令,所述测试启动指令用于启动所述测试终端中的所述测试脚本开始运行,以使得运行中的所述测试脚本在所述测试终端上启动所述监控软件,并通过所述监控软件启动并运行所述应用。Sending a test startup instruction to the test terminal, the test startup instruction is used to start the test script in the test terminal to start running, so that the running test script starts the monitoring on the test terminal Software and launches and runs the application through the monitoring software.
  6. 根据权利要求5所述的测试方法,其中,所述向所述测试终端发送测试启动指令的步骤包括:The testing method according to claim 5, wherein the step of transmitting a test start command to the test terminal comprises:
    在所述测试终端上已安装所述应用的情况下,在所述测试终端上所述应用的版本与对应于所述应用的代码提交指令而提交的代码指示的版本一致后,向所述测试终端发送测试启动指令;或者In the case that the application is already installed on the test terminal, after the version of the application on the test terminal is consistent with the version indicated by the code submitted by the code submission instruction corresponding to the application, the test is performed. The terminal sends a test start command; or
    在所述测试终端上未安装所述应用的情况下,向所述测试终端发送所述应用的安装包以及安装指令,所述安装指令用于指示所述测试终端使用所述应用的安装包安装所述应用,在所述测试终端上所述应用的版本与对应于所述应用的代码提交指令而提交的代码指示的版本一致后,向所述测试终端发送测试启动指令。If the application is not installed on the test terminal, send an installation package of the application and an installation instruction to the test terminal, where the installation instruction is used to instruct the test terminal to install using an installation package of the application. The application sends a test start command to the test terminal after the version of the application on the test terminal matches the version indicated by the code submitted by the code submission instruction of the application.
  7. 根据权利要求1所述的测试方法,还包括:The testing method according to claim 1, further comprising:
    通过安装于所述终端设备的软件录制对所述应用的操作过程,并依据录制内容生成所述测试脚本;或者Recording an operation process of the application by software installed in the terminal device, and generating the test script according to the recorded content; or
    通过接收并编译用户输入的代码,生成测试脚本,Generate test scripts by receiving and compiling code entered by the user.
    其中,所述测试脚本中包括用于控制所述应用在所述测试终端上运行的指令。The test script includes instructions for controlling the application to run on the test terminal.
  8. 一种应用的测试方法,应用于测试终端,该方法包括:An application test method is applied to a test terminal, the method comprising:
    接收控制端依据测试指令发送的预先存储的、用于控制所述应用的运行的测试脚本;Receiving, by the control terminal, a pre-stored test script for controlling the running of the application according to the test instruction;
    响应于所述控制端对所述测试脚本的控制,在所述测试终端上运行所述应用;Running the application on the test terminal in response to the control end controlling the test script;
    收集所述应用在所述测试终端中的运行数据;Collecting operation data of the application in the test terminal;
    向所述控制端上传所述运行数据。 Uploading the running data to the control terminal.
  9. 根据权利要求8所述的测试方法,其中,所述响应于所述控制端对所述测试脚本的控制在所述测试终端上运行所述应用的步骤包括:The testing method according to claim 8, wherein the step of running the application on the test terminal in response to the control of the test script by the control terminal comprises:
    接收所述控制端发送的测试启动指令;Receiving a test start command sent by the control terminal;
    依据所述测试启动指令,运行所述测试脚本,以控制所述应用在所述测试终端上的运行。The test script is run to control the operation of the application on the test terminal according to the test start command.
  10. 根据权利要求9所述的测试方法,其中,所述依据所述测试启动指令运行所述测试脚本以控制所述应用在所述测试终端上的运行的步骤包括:The testing method according to claim 9, wherein the step of running the test script to control the operation of the application on the test terminal according to the test start instruction comprises:
    接收所述控制端发送的监控软件安装包;Receiving a monitoring software installation package sent by the control terminal;
    使用所述监控软件安装包在所述测试终端上安装所述监控软件;Installing the monitoring software on the test terminal by using the monitoring software installation package;
    依据所述测试启动指令,运行所述测试脚本,以使得运行中的测试脚本在所述测试终端上启动监控软件,并通过所述监控软件启动并运行所述应用。And executing the test script according to the test start instruction, so that the running test script starts the monitoring software on the test terminal, and starts and runs the application through the monitoring software.
  11. 根据权利要求10所述的测试方法,其中,所述通过所述监控软件启动并运行所述应用的步骤包括:The testing method according to claim 10, wherein the step of starting and running the application by the monitoring software comprises:
    通过所述监控软件启动所述应用并控制所述应用的执行业务逻辑。The application is launched by the monitoring software and controls the execution business logic of the application.
  12. 根据权利要求11所述的测试方法,其中,所述收集所述用于在所述测试终端中的运行数据的步骤包括:The test method according to claim 11, wherein said collecting said operational data for use in said test terminal comprises:
    通过所述监控软件收集所述应用执行业务逻辑的执行日志;并且/或者Collecting, by the monitoring software, an execution log of the application execution business logic; and/or
    通过所述监控软件收集所述应用运行过程中的性能数据。The performance data during the running of the application is collected by the monitoring software.
  13. 根据权利要求10所述的测试方法,还包括:The testing method according to claim 10, further comprising:
    通过所述监控软件收集所述测试终端指示是否与所述控制端连接成功的数据、指示所述监控软件是否安装成功的数据、指示所述测试脚本是否启动成功的数据、指示所述监控软件是否启动成功的数据以及指示所述应用是否启动成功的数据。Collecting, by the monitoring software, data indicating whether the test terminal is successfully connected to the control terminal, data indicating whether the monitoring software is successfully installed, data indicating whether the test script is successfully started, and indicating whether the monitoring software is Start successful data and data indicating whether the application started successfully.
  14. 根据权利要求9所述的测试方法,其中,The test method according to claim 9, wherein
    所述测试指令包括所述应用的代码提交指令。 The test instructions include code submission instructions for the application.
  15. 根据权利要求14所述的测试方法,其中,在所述接收所述控制端发送的测试启动指令的步骤之前,还包括:The test method according to claim 14, wherein before the step of receiving the test start command sent by the control terminal, the method further comprises:
    在所述测试终端上已安装所述应用的情况下,将所安装的应用的版本与对应于所述应用的代码提交指令而提交的代码指示的版本保证一致;或者In a case where the application is installed on the test terminal, the version of the installed application is consistent with the version indicated by the code submitted by the code submission instruction corresponding to the application; or
    在所述测试终端上未安装所述应用的情况下,接收所述控制端发送的所述应用的安装包以及安装指令,并依据所述安装指令,利用所述应用的安装包安装所述应用。If the application is not installed on the test terminal, receiving an installation package of the application and an installation instruction sent by the control terminal, and installing the application by using an installation package of the application according to the installation instruction. .
  16. 一种应用的测试装置,包括:An application testing device comprising:
    发送模块,用于依据测试指令向测试终端发送预先存储的、用于控制所述应用的运行的测试脚本;a sending module, configured to send, to the test terminal, a pre-stored test script for controlling the running of the application according to the test instruction;
    控制模块,用于控制所述测试脚本在所述测试终端上运行,以控制所述应用在所述测试终端上的运行;a control module, configured to control the test script to run on the test terminal, to control operation of the application on the test terminal;
    接收模块,用于接收所述测试终端发送的所述应用在所述测试终端中的运行数据。And a receiving module, configured to receive operation data of the application sent by the test terminal in the test terminal.
  17. 根据权利要求16所述的测试装置,还包括:The testing device of claim 16 further comprising:
    获取模块,用于获取预先被选定的测试终端的列表,所述测试终端的列表中包括至少一个测试终端,An obtaining module, configured to obtain a list of pre-selected test terminals, where the list of test terminals includes at least one test terminal,
    所述发送模块通过预设的连接方式与所述测试终端的列表中的测试终端的预设接口进行连接,并通过所述预设接口向连接成功的测试终端发送预先存储的、用于控制所述应用的运行的测试脚本。The sending module is connected to the preset interface of the test terminal in the list of the test terminal by using a preset connection manner, and sends the pre-stored control unit to the test terminal with successful connection through the preset interface. A test script that runs the application.
  18. 根据权利要求16所述的测试装置,其中,The test apparatus according to claim 16, wherein
    所述测试指令包括所述应用的代码提交指令。The test instructions include code submission instructions for the application.
  19. 根据权利要求18所述的测试装置,还包括:The testing device of claim 18, further comprising:
    判断模块,用于在检测到所述应用的代码提交指令的情况下,判断当前时刻距离上一次测试的时刻间的间隔是否大于预设时间间隔,a determining module, configured to determine, when the code submission instruction of the application is detected, whether the interval between the current time and the time of the last test is greater than a preset time interval,
    在所述判断模块判定为是的情况下,所述发送模块向所述测试终端发送所述测试脚本。 When the determining module determines to be YES, the sending module sends the test script to the testing terminal.
  20. 根据权利要求18所述的测试装置,其中,The test apparatus according to claim 18, wherein
    所述控制模块具体用于,向所述测试终端发送测试启动指令,所述测试启动指令用于启动所述测试终端中的所述测试脚本开始运行,以使得运行中的所述测试脚本在所述测试终端上启动监控软件,并通过所述监控软件启动并运行所述应用,The control module is specifically configured to send a test start instruction to the test terminal, where the test start command is used to start the test script in the test terminal to start running, so that the test script in operation is in the The monitoring software is started on the test terminal, and the application is started and run by the monitoring software.
    所述发送模块还用于在所述控制模块向所述测试终端发送测试启动指令之前,向所述测试终端发送监控软件安装包,以在所述测试终端中安装所述监控软件。The sending module is further configured to send a monitoring software installation package to the testing terminal to send the monitoring software in the testing terminal before the control module sends a test startup command to the testing terminal.
  21. 根据权利要求20所述的测试装置,其中,The test apparatus according to claim 20, wherein
    在所述测试终端上已安装所述应用的情况下,在所述测试终端上所述应用的版本与对应于所述应用的代码提交指令而提交的代码指示的版本一致后,由所述发送模块向所述测试终端发送所述测试启动指令,或者In the case that the application is installed on the test terminal, after the version of the application on the test terminal is consistent with the version indicated by the code submitted by the code submission instruction corresponding to the application, the sending is performed by the sending The module sends the test start command to the test terminal, or
    在所述测试终端上未安装所述应用的情况下,由所述发送模块向所述测试终端发送所述应用的安装包以及安装指令,所述安装指令用于指示所述测试终端使用所述应用的安装包安装所述应用,在所述测试终端上所述应用的版本与对应于所述应用的代码提交指令而提交的代码指示的版本一致后,由所述发送模块向所述测试终端发送所述测试启动指令。If the application is not installed on the test terminal, the sending module sends an installation package of the application and an installation instruction to the test terminal, where the installation instruction is used to instruct the test terminal to use the The installation package of the application installs the application, and after the version of the application on the test terminal is consistent with the version indicated by the code submitted by the code submission instruction corresponding to the application, the sending module sends the test module to the test terminal. Send the test start command.
  22. 根据权利要求16所述的测试装置,还包括:测试脚本生成模块,用于:The testing device according to claim 16, further comprising: a test script generating module, configured to:
    通过安装于终端设备的软件录制对所述应用的操作过程,并依据录制内容生成所述测试脚本;或者Recording an operation process on the application by software installed in the terminal device, and generating the test script according to the recorded content; or
    通过接收并编译用户输入的代码,生成所述测试脚本,Generating the test script by receiving and compiling the code entered by the user,
    其中,所述测试脚本中包括用于控制所述应用在所述测试终端上运行的指令。The test script includes instructions for controlling the application to run on the test terminal.
  23. 一种应用的测试装置,包括:An application testing device comprising:
    接收模块,用于接收控制端依据测试指令发送的预先存储的、用于控制所述应用的运行的测试脚本; a receiving module, configured to receive a pre-stored test script for controlling operation of the application sent by the control terminal according to the test instruction;
    运行模块,用于响应于所述控制端对所述测试脚本的控制,在所述测试装置上运行所述应用;a running module, configured to run the application on the testing device in response to control of the test script by the control terminal;
    收集模块,用于收集所述应用在所述测试装置中的运行数据;a collection module, configured to collect operation data of the application in the testing device;
    上传模块,用于向所述控制端上传所述运行数据。The uploading module is configured to upload the running data to the control terminal.
  24. 根据权利要求23所述的测试装置,其中,The test apparatus according to claim 23, wherein
    所述接收模块接收所述控制端发送的测试启动指令,Receiving, by the receiving module, a test startup instruction sent by the control terminal,
    所述运行模块依据所述接收模块接收到的测试启动指令,运行所述测试脚本,以控制所述应用在所述测试装置上的运行。The running module runs the test script according to the test start instruction received by the receiving module to control the running of the application on the testing device.
  25. 根据权利要求24所述的测试装置,其中,所述接收模块还接收所述控制端发送的监控软件安装包,该装置还包括:The test apparatus according to claim 24, wherein the receiving module further receives a monitoring software installation package sent by the control terminal, the device further comprising:
    安装模块,用于使用所述监控软件安装包在所述测试装置上安装所述监控软件,Installing a module for installing the monitoring software on the testing device using the monitoring software installation package,
    所述运行模块依据所述测试启动指令,运行所述测试脚本,以使得运行中的测试脚本在所述测试装置上启动监控软件,并通过所述监控软件启动并运行所述应用。The running module runs the test script according to the test start command, so that the running test script starts monitoring software on the testing device, and starts and runs the application through the monitoring software.
  26. 根据权利要求25所述的测试装置,其中,The test apparatus according to claim 25, wherein
    所述运行模块还通过所述监控软件控制所述应用的执行业务逻辑。The running module further controls execution business logic of the application through the monitoring software.
  27. 根据权利要求26所述的测试装置,其中,The test apparatus according to claim 26, wherein
    所述收集模块通过所述监控软件收集所述应用的执行业务逻辑的执行日志,并且/或者Collecting, by the monitoring module, an execution log of execution business logic of the application, and/or
    所述收集模块通过所述监控软件收集所述应用运行过程中的性能数据。The collecting module collects performance data during the running of the application by using the monitoring software.
  28. 根据权利要求24所述的测试装置,其中,The test apparatus according to claim 24, wherein
    所述收集模块还通过所述监控软件收集所述测试装置指示是否与所述控制端连接成功的数据、指示所述监控软件是否安装成功的数据、指示所述测试脚本是否启动成功的数据、指示所述监控软件是否启动成功的数据以及指示所述应用是否启动成功的数据。 The collecting module further collects, by the monitoring software, data indicating whether the testing device is successfully connected to the control terminal, data indicating whether the monitoring software is successfully installed, data indicating whether the testing script is successfully started, and indication Whether the monitoring software starts successful data and data indicating whether the application is successfully started.
  29. 根据权利要求23所述的测试装置,其中,The test apparatus according to claim 23, wherein
    所述测试指令包括所述应用的代码提交指令。The test instructions include code submission instructions for the application.
  30. 根据权利要求29所述的测试装置,其中,还包括:版本维护模块,在所述接收模块接收所述控制端发送的测试启动指令之前,The testing device according to claim 29, further comprising: a version maintenance module, before the receiving module receives the test start command sent by the control terminal,
    在所述测试装置上已安装所述应用的情况下,所述版本维护模块将所安装的应用的版本与对应于所述应用的代码提交指令而提交的代码指示的版本保证一致,或者In a case where the application is installed on the test device, the version maintenance module guarantees that the version of the installed application is consistent with the version indicated by the code submitted by the code submission instruction corresponding to the application, or
    在所述测试装置上未安装所述应用的情况下,所述接收模块接收所述控制端发送的所述应用的安装包以及安装指令,所述版本维护模块依据所述安装指令,利用所述应用的安装包安装所述应用。In the case that the application is not installed on the testing device, the receiving module receives an installation package of the application and an installation instruction sent by the control terminal, and the version maintenance module utilizes the installation instruction according to the installation instruction. The application's installation package installs the application.
  31. 一种应用的测试系统,包括:控制端和测试终端,An application test system comprising: a control terminal and a test terminal,
    所述控制端用于,依据测试指令向测试终端发送预先存储的、用于控制所述应用的运行的测试脚本;并控制所述测试脚本在所述测试终端上运行,以控制所述应用在所述测试终端上的运行;The control end is configured to send, to the test terminal, a pre-stored test script for controlling the running of the application according to the test instruction; and control the test script to run on the test terminal to control the application to be Running on the test terminal;
    所述测试终端用于收集并向所述控制端上传所述应用在所述测试终端中的运行数据。The test terminal is configured to collect and upload operation data of the application in the test terminal to the control terminal.
  32. 根据权利要求31所述的测试系统,其中,The test system according to claim 31, wherein
    所述控制端向所述测试终端发送测试启动指令,The control end sends a test start instruction to the test terminal,
    所述测试终端依据接收到的所述控制端发送的测试启动指令,运行所述测试脚本,以控制所述应用在所述测试终端上的运行。The test terminal runs the test script according to the received test start command sent by the control terminal to control the operation of the application on the test terminal.
  33. 根据权利要求32所述的测试系统,其中,The test system according to claim 32, wherein
    所述控制端向所述测试终端发送监控软件安装包,The control end sends a monitoring software installation package to the test terminal,
    所述测试终端使用所述监控软件安装包安装所述监控软件,The test terminal installs the monitoring software by using the monitoring software installation package,
    所述测试终端依据接收到的所述控制端发送的测试启动指令,运行所述测试脚本,以使得运行中的测试脚本在所述测试终端上启动监控软件,并通过所述监控软件启动并运行所述应用。 The test terminal runs the test script according to the received test start command sent by the control terminal, so that the running test script starts the monitoring software on the test terminal, and is started and run by the monitoring software. The application.
  34. 根据权利要求31所述的测试系统,其中,The test system according to claim 31, wherein
    所述测试指令包括所述应用的代码提交指令。The test instructions include code submission instructions for the application.
  35. 根据权利要求34所述的测试系统,其中,在所述控制端向所述测试终端发送测试启动指令之前,The test system according to claim 34, wherein before said control terminal sends a test start command to said test terminal,
    在所述测试终端上已安装所述应用的情况下,所述测试终端还用于将所安装的应用的版本与对应于所述应用的代码提交指令而提交的代码指示的版本保证一致;或者In the case that the application is installed on the test terminal, the test terminal is further configured to ensure that the version of the installed application is consistent with the version indicated by the code submitted by the code submission instruction corresponding to the application; or
    在所述测试终端上未安装所述应用的情况下,所述控制端向所述测试终端发送所述应用的安装包以及安装指令,所述测试终端还用于依据所述安装指令,利用所述应用的安装包安装所述应用。In the case that the application is not installed on the test terminal, the control terminal sends an installation package of the application and an installation instruction to the test terminal, and the test terminal is further configured to use the installation instruction according to the installation instruction. The installation package of the application installs the application.
  36. 一种非暂时性机器可读存储介质,其上存储有可执行代码,当所述可执行代码被处理器执行时,使所述处理器执行根据权利要求1至15中任一项所述的方法。 A non-transitory machine-readable storage medium having stored thereon executable code that, when executed by a processor, causes the processor to perform the method of any one of claims 1 to method.
PCT/CN2016/102418 2015-10-19 2016-10-18 Method, device and system for testing application, and non-transient machine-readable storage medium WO2017067441A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510680186.4 2015-10-19
CN201510680186.4A CN106598835B (en) 2015-10-19 2015-10-19 Application testing method, device and system

Publications (1)

Publication Number Publication Date
WO2017067441A1 true WO2017067441A1 (en) 2017-04-27

Family

ID=58555037

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/102418 WO2017067441A1 (en) 2015-10-19 2016-10-18 Method, device and system for testing application, and non-transient machine-readable storage medium

Country Status (2)

Country Link
CN (1) CN106598835B (en)
WO (1) WO2017067441A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052451A (en) * 2017-12-26 2018-05-18 网易(杭州)网络有限公司 Test method, system, test server, test terminal and storage medium
CN109213642A (en) * 2017-06-29 2019-01-15 国民技术股份有限公司 Data synchronizer, test macro and test method
CN109684196A (en) * 2018-11-01 2019-04-26 北京中清龙图网络技术有限公司 A kind of test method and device
CN109918314A (en) * 2019-04-08 2019-06-21 网易(杭州)网络有限公司 Test method and device on mobile terminal, electronic equipment, storage medium
CN110221958A (en) * 2019-04-15 2019-09-10 阿里巴巴集团控股有限公司 Application testing method, calculates equipment and computer readable storage medium at device
CN111045893A (en) * 2019-12-12 2020-04-21 网银在线(北京)科技有限公司 Method, device and system for executing monitoring task, storage medium and electronic device
CN111400166A (en) * 2020-02-20 2020-07-10 香港乐蜜有限公司 Real-time communication service testing method, device and system and electronic equipment
CN111581073A (en) * 2020-02-20 2020-08-25 香港乐蜜有限公司 Application testing method, device and system and storage medium
CN112202952A (en) * 2020-10-22 2021-01-08 Tcl通讯(宁波)有限公司 Mobile terminal testing method and device, storage medium and mobile terminal
CN112260882A (en) * 2019-07-02 2021-01-22 北京融核科技有限公司 Mobile application and network service integrated test device capable of being deployed rapidly and method thereof

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10572361B2 (en) * 2017-04-28 2020-02-25 The Boeing Company Concurrent production use of a production enterprise system and testing of a modified enterprise system
CN109684112B (en) * 2018-12-29 2021-06-29 北京小米移动软件有限公司 Program file operation method, device, terminal and storage medium
CN110298195A (en) * 2019-07-03 2019-10-01 中国工商银行股份有限公司 Access control method, object control device, managing device and electronic equipment
CN112711536A (en) * 2020-12-30 2021-04-27 广东粤云工业互联网创新科技有限公司 Automatic dial testing method and system, and computer readable storage medium
CN112905417A (en) * 2021-02-24 2021-06-04 广东南电智控系统有限公司 Business performance monitoring design method based on Jmeter

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060262729A1 (en) * 2005-05-17 2006-11-23 Chau Man Chun S Method and system for testing communication protocols in network communication
US20070168745A1 (en) * 2005-11-29 2007-07-19 Alam Mohammed D Automation test systems
CN103365770A (en) * 2012-04-09 2013-10-23 陆兵 Mobile terminal software testing system and software testing method
CN103455416A (en) * 2013-07-18 2013-12-18 北京航空航天大学 Pressure test method based on Android system intelligent device memory usage and CPU
CN104765678A (en) * 2014-01-08 2015-07-08 阿里巴巴集团控股有限公司 Method and device for testing applications on mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7870504B1 (en) * 2003-10-01 2011-01-11 TestPlant Inc. Method for monitoring a graphical user interface on a second computer display from a first computer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060262729A1 (en) * 2005-05-17 2006-11-23 Chau Man Chun S Method and system for testing communication protocols in network communication
US20070168745A1 (en) * 2005-11-29 2007-07-19 Alam Mohammed D Automation test systems
CN103365770A (en) * 2012-04-09 2013-10-23 陆兵 Mobile terminal software testing system and software testing method
CN103455416A (en) * 2013-07-18 2013-12-18 北京航空航天大学 Pressure test method based on Android system intelligent device memory usage and CPU
CN104765678A (en) * 2014-01-08 2015-07-08 阿里巴巴集团控股有限公司 Method and device for testing applications on mobile terminal

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213642A (en) * 2017-06-29 2019-01-15 国民技术股份有限公司 Data synchronizer, test macro and test method
CN109213642B (en) * 2017-06-29 2023-09-15 国民技术股份有限公司 Data synchronization device, test system and test method
CN108052451A (en) * 2017-12-26 2018-05-18 网易(杭州)网络有限公司 Test method, system, test server, test terminal and storage medium
CN109684196A (en) * 2018-11-01 2019-04-26 北京中清龙图网络技术有限公司 A kind of test method and device
CN109684196B (en) * 2018-11-01 2024-01-09 北京中清龙图网络技术有限公司 Test method and device
CN109918314A (en) * 2019-04-08 2019-06-21 网易(杭州)网络有限公司 Test method and device on mobile terminal, electronic equipment, storage medium
CN110221958A (en) * 2019-04-15 2019-09-10 阿里巴巴集团控股有限公司 Application testing method, calculates equipment and computer readable storage medium at device
CN110221958B (en) * 2019-04-15 2023-06-06 创新先进技术有限公司 Application testing method, device, computing equipment and computer readable storage medium
CN112260882A (en) * 2019-07-02 2021-01-22 北京融核科技有限公司 Mobile application and network service integrated test device capable of being deployed rapidly and method thereof
CN112260882B (en) * 2019-07-02 2022-06-24 北京融核科技有限公司 Mobile application and network service integrated test device capable of being deployed rapidly and method thereof
CN111045893B (en) * 2019-12-12 2023-09-22 网银在线(北京)科技有限公司 Method, device and system for executing monitoring task, storage medium and electronic device
CN111045893A (en) * 2019-12-12 2020-04-21 网银在线(北京)科技有限公司 Method, device and system for executing monitoring task, storage medium and electronic device
CN111581073A (en) * 2020-02-20 2020-08-25 香港乐蜜有限公司 Application testing method, device and system and storage medium
CN111400166A (en) * 2020-02-20 2020-07-10 香港乐蜜有限公司 Real-time communication service testing method, device and system and electronic equipment
CN112202952A (en) * 2020-10-22 2021-01-08 Tcl通讯(宁波)有限公司 Mobile terminal testing method and device, storage medium and mobile terminal

Also Published As

Publication number Publication date
CN106598835A (en) 2017-04-26
CN106598835B (en) 2019-12-20

Similar Documents

Publication Publication Date Title
WO2017067441A1 (en) Method, device and system for testing application, and non-transient machine-readable storage medium
US9940225B2 (en) Automated error checking system for a software application and method therefor
US10606739B2 (en) Automated program code analysis and reporting
CN111399873B (en) Model updating method and device
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
CN110032507B (en) Application program testing method, device and system, electronic equipment and storage medium
CN111382048B (en) Management method and device for mobile equipment on true machine test platform
WO2018108041A1 (en) Remote debugging method and device, and computer storage medium
CN109388569B (en) Method for remotely detecting environmental anomaly of client, test server and storage medium
WO2017028574A1 (en) Router testing method and testing device
CN110781085A (en) Game automatic testing method, device, terminal and computer storage medium
US11994972B2 (en) System and method for testing applications
WO2018076969A1 (en) Software upgrade method, computing device, and channel control device
CN107967207B (en) Method and device for testing user interface interaction function
CN106648762B (en) Method and device for building development environment
CN109614311A (en) Applied program testing method and device, electronic equipment, storage medium
WO2014179731A1 (en) Program testing service
CN112306857A (en) Method and apparatus for testing applications
CN113709243A (en) Equipment remote control method and device, electronic equipment and storage medium
CN110928787B (en) Automatic test script recording and playback method, device, equipment and storage medium
CN111128139A (en) Non-invasive voice test method and device
US20150067854A1 (en) Apparatus and method for multi-checking for mobile malware
CN110795330A (en) Monkey pressure testing method and device
CN109871288B (en) Method, device, equipment and medium for executing Android system command
EP3379409B1 (en) Automated program code analysis and reporting

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16856872

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16856872

Country of ref document: EP

Kind code of ref document: A1