WO2017049893A1 - Application program testing method, testing apparatus, and mobile terminal - Google Patents

Application program testing method, testing apparatus, and mobile terminal Download PDF

Info

Publication number
WO2017049893A1
WO2017049893A1 PCT/CN2016/078972 CN2016078972W WO2017049893A1 WO 2017049893 A1 WO2017049893 A1 WO 2017049893A1 CN 2016078972 W CN2016078972 W CN 2016078972W WO 2017049893 A1 WO2017049893 A1 WO 2017049893A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration
output
parameter
test
input
Prior art date
Application number
PCT/CN2016/078972
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 WO2017049893A1 publication Critical patent/WO2017049893A1/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 invention relates to the field of mobile Internet technologies, and in particular, to the field of processing technologies for applications in the mobile Internet, and more particularly to an application testing method, a testing device, and a mobile terminal.
  • Operating systems herein may include, but are not limited to, Andorid (Android, a mobile operating system) system, IOS (a mobile operating system) system, and the like.
  • Andorid Android, a mobile operating system
  • IOS a mobile operating system
  • a mobile terminal-based operating system requires a developer to test two or two scenarios of the same application (such as multiple scenarios generated by adjusting test values for one or some input parameters).
  • Develop corresponding function codes for each solution compile them into different installation packages of the same application, and install different installation packages in the mobile terminal for comparison test.
  • Such a test scheme is cumbersome and inefficient.
  • the embodiment of the invention provides a testing method, a testing device and a mobile terminal of an application program, which can simplify the testing process of the application program and improve the testing efficiency.
  • a first aspect of the embodiments of the present invention provides a testing method for an application, which may include:
  • test configuration information includes an input configuration and an output configuration, the input configuration including at least one input parameter and a test value of each input parameter; the output configuration includes at least one Output parameters;
  • the test result of the target application is displayed according to the output configuration.
  • the method further includes:
  • the identifier of the application to be tested selected from the list of applications is determined as the identity of the target application.
  • the obtaining a test configuration of the target application to be tested in the mobile terminal includes:
  • test configuration interface includes a parameter list and a parameter list
  • the parameter list includes a name of multiple input parameters involved in the target application and at least one test value of each input parameter
  • the parameter list includes a name of a plurality of output parameters involved in the target application and a valid interval of each output parameter
  • test configuration including an input configuration and an output configuration
  • the input configuration includes a name of at least one input parameter selected from the input parameter list and a test value of each input parameter; the output configuration includes at least one output parameter selected from the output parameter list The name.
  • the invoking the input configuration during the running of the target application includes:
  • the modified at least one object code is run.
  • the displaying the test result of the target application according to the output configuration comprises:
  • An operational value of the at least one output parameter is displayed.
  • the displaying the running value of the at least one output parameter comprises:
  • An operating value of the at least one output parameter is displayed in real time in the floating layer window.
  • the output configuration further includes an effective interval of each of the at least one output parameter
  • the method further includes:
  • an alarm prompt is output.
  • a second aspect of the embodiments of the present invention provides a testing apparatus, which may include:
  • test configuration obtaining unit configured to acquire a test configuration of a target application to be tested in the mobile terminal, where the test configuration information includes an input configuration and an output configuration, where the input configuration includes at least one input parameter and a test value of each input parameter;
  • the output configuration includes at least one output parameter;
  • a program running unit configured to run the target application in the mobile terminal
  • test result display unit configured to display a test result of the target application according to the output configuration.
  • the device further includes:
  • a program list output unit configured to: when it is detected that an API for testing in the mobile terminal is invoked, output an application list, where the application list includes an identifier of at least one application;
  • the test target determining unit is configured to select, from the list of applications, an identifier of the application to be tested as an identifier of the target application.
  • test configuration obtaining unit includes:
  • a configuration interface output unit configured to output a test configuration interface, where the test configuration interface includes an input parameter list and an output parameter list, where the input parameter list includes names of each of the input parameters involved in the target application and each Entering at least one test value of the parameter, where the parameter list includes a name of a plurality of output parameters involved in the target application and a valid interval of each output parameter;
  • test configuration generating unit configured to detect a root when a configuration operation is detected in the test configuration interface Generating a test configuration of the target application according to the configuring operation, the test configuration including an input configuration and an output configuration;
  • the input configuration includes a name of at least one input parameter selected from the input parameter list and a test value of each input parameter; the output configuration includes at least one output parameter selected from the output parameter list The name.
  • the input configuration calling unit includes:
  • An object code positioning unit configured to locate at least one object code in the target application according to a name of the at least one input parameter
  • variable modification unit configured to modify a corresponding variable value in the at least one object code by using a test value of the at least one input parameter
  • the target code execution unit is configured to execute the modified at least one object code when the target application runs to the at least one object code.
  • test result display unit includes:
  • a running value monitoring unit configured to monitor, according to the name of the at least one output parameter, an operating value of the at least one output parameter generated by the target application during operation
  • a running value display unit for displaying an operating value of the at least one output parameter.
  • the running value display unit includes:
  • a window output unit for outputting a floating layer window at a running interface of the target application
  • a floating display unit configured to display an operating value of the at least one output parameter in real time in the floating layer window.
  • test result display unit further includes:
  • the effective determining unit is configured to determine whether the running value of each of the at least one output parameter is located in a corresponding valid interval
  • the alarm prompting unit is configured to output an alarm prompt when there is an output parameter in which the running value exceeds the corresponding valid interval in the at least one output parameter.
  • a third aspect of the embodiments of the present invention provides a mobile terminal, which may include the testing apparatus according to the second aspect.
  • the target application to be tested in the mobile terminal can be tested and matched.
  • the internal variables of the APP application
  • real-time display of the output parameters during the debugging operation It can timely understand the performance index of the test APP, making the test process of the application simple and convenient, and effectively improving the test efficiency.
  • FIG. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure
  • FIG. 2 is a schematic structural diagram of a testing apparatus according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for testing an application according to an embodiment of the present invention.
  • FIG. 5a is a schematic diagram of a test interface according to an embodiment of the present invention.
  • FIG. 5b is another schematic diagram of a test interface according to an embodiment of the present invention.
  • FIG. 5c is a schematic diagram of a test configuration interface according to an embodiment of the present invention.
  • FIG. 5 is another schematic diagram of a test configuration interface according to an embodiment of the present invention.
  • FIG. 5e is still another schematic diagram of a test configuration interface according to an embodiment of the present invention.
  • FIG. 5f is still another schematic diagram of a test configuration interface according to an embodiment of the present invention.
  • FIG. 5g is a schematic diagram of a suspension layer window according to an embodiment of the present invention.
  • FIG. 5h is a schematic diagram of an alarm prompt interface according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention.
  • FIG. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention
  • the mobile terminal may be a mobile phone, a PAD (tablet computer), a portable smart wearable device, or the like.
  • the mobile terminal is equipped with a mobile operating system, which may include, but is not limited to, an Android system, an IOS system, and the like; and the mobile terminal may install multiple APPs, such as APP-1, APP-2 to APP- shown in FIG. 5.
  • the mobile terminal can include a test device, which can be applied to test each APP in the mobile terminal.
  • the test device can debug and run each APP, and can dynamically modify the variable data of the APP, and can output the output through the display. Parameters to view internal and external performance indicators during the running of the APP, and so on.
  • the test device shown in FIG. 1 may be an SDK (Software Development Kit) developed for an operating system of a mobile terminal, and the test device is embedded in an operating system of the mobile terminal as an application.
  • SDK Software Development Kit
  • the developer provides two types of interface methods used in the APP project. One type is used to transfer the input parameters configured by the developer for the APP to the running APP for immediate use by the APP, so as to achieve the purpose of modifying the internal variables of the APP in real time; The other type is used to display the running value of the internal variable (output parameter) of the running APP in real time to achieve the purpose of testing the performance index of the APP.
  • the testing device can also provide some optimization mechanisms for the testing process, including a floating output mechanism and an alarm prompting mechanism.
  • the floating output mechanism provides a floating layer window suspended in the APP running interface, and the input and output parameters are displayed in real time through the floating layer window, which can facilitate the developer to view the performance of each UI (User Interface) of the APP running interface.
  • the internal variables of the APP running process are viewed in real time through the floating layer window, which makes the testing process more intuitive and convenient.
  • the alarm prompting mechanism can generate an alarm to alert the developer when the output parameter exceeds the abnormal range such as the effective interval, so that the testing process is more intelligent.
  • the testing apparatus may be a testing apparatus in the mobile terminal shown in FIG. 1.
  • the test apparatus may include: a test configuration acquisition unit 101, a program execution unit 102, an output configuration invoking unit 103, and a test result display unit 104.
  • the testing device may further include: a program list output unit 105 and a test target determining unit 106.
  • test configuration obtaining unit 101 may include: a configuration interface output unit 1001 and The configuration generation unit 1002 is tested.
  • the output configuration invoking unit 103 may include an object code positioning unit 2001, a variable modification unit 2002, and an object code execution unit 2003.
  • the test result display unit 104 may include an operation value monitoring unit 3001, an operation value display unit 3002, an effective determination unit 3003, and an alarm prompting unit 3004.
  • FIG. 3 is a flowchart of a method for testing an application according to an embodiment of the present invention; the process of the method shown in this embodiment may be performed by the mobile terminal shown in FIG.
  • the test device in the mobile terminal shown in 2 is executed.
  • the method can include the following steps S101-S104.
  • Step S101 is performed by the test configuration unit 101.
  • the step is: acquiring a test configuration of a target application to be tested in the mobile terminal, where the test configuration information includes an input configuration and an output configuration, where the input configuration includes at least one input parameter and a test value for each input parameter; the output configuration includes at least one output parameter.
  • the input parameter refers to a parameter that needs to be delivered to the target APP and is called by the target APP during the running process.
  • the output parameter refers to the parameter that needs to be obtained from the running target APP and displayed.
  • the test configuration unit 101 may output a test configuration interface in the screen of the mobile terminal, allowing the developer of the target APP to perform parameter configuration according to the development needs in the test configuration interface, including configuring the target APP. Enter the test values of the parameters and input parameters, configure some output parameters of the target APP that you want to pay attention to during the running process, etc.; when the developer of the target APP completes the parameter configuration in the test configuration interface and confirms the submission, the test configuration unit 101.
  • the configuration of the developer of the target APP is read from the test configuration interface to generate a test configuration of the target APP.
  • Step S102 is performed by the program execution unit 102, which is to run the target application in the mobile terminal.
  • all the function codes of the target APP can be run, that is, all functions of the target APP are used in the mobile terminal; of course, part of the function code of the target APP can also be run according to the test requirement, that is, Some functions that need to be tested in the mobile terminal using the target APP; for example, for an instant messaging application, including a text chat function, a screenshot function, and an audio and video chat function, all the function codes can be run in this step, or only according to the test requirements. Run the screenshot function code.
  • Step S103 is performed by the output configuration invoking unit 103, the step comprising: invoking the input configuration during the running of the target application.
  • the calling the input configuration means that the test value of the at least one input parameter is passed to the inside of the running target APP, and the value of the corresponding variable in the target APP is modified by using the test value of the at least one input parameter, so that the at least one input parameter can
  • the target APP that is being run is used immediately.
  • Step S104 is performed by the test result display unit 104, and the step includes: displaying the test result of the target application according to the output configuration.
  • the test result of the target APP may include an operation value of at least one output parameter required by the output configuration, where the running value of the at least one output parameter may be displayed in an interface manner, or according to a floating output mechanism provided by the testing device.
  • the running value of at least one output parameter can also be displayed by using a floating layer window.
  • the test result of the target APP may further include an alert prompt generated when the running value of the at least one output parameter exceeds the effective interval.
  • FIG. 4 is a flowchart of another method for testing an application according to an embodiment of the present invention; the process of the method shown in this embodiment may be performed by a specific unit of a test device in the mobile terminal shown in FIG. .
  • the method can include the following steps S201-S212.
  • Step S201 is executed by the program list output unit 105.
  • the application list is output.
  • the application list contains the identity of at least one application.
  • the test device can provide the APP developer with an API interface used by the APP project, and the developer can call the API interface to test the APP. If it is detected in the step that the API interface for testing in the mobile terminal is called, indicating that the developer wants to test the APP, the program list output unit 105 may output an application list for the developer to select to test.
  • the application that contains at least one application's identity in the application list. It should be noted that at least one application in the application list herein may be all or part of an application already installed in the mobile terminal, and at least one application identifier or even a function code may be pre-written into the test device. To facilitate testing.
  • Step S202 is performed by the test target determining unit 106, and the step is: selecting an identifier of the application to be tested from the application list to determine an identifier of the target application.
  • the developer may select an identifier of the application to be tested in the identifier of at least one application in the application list, and then the test target determining unit 106 determines the application selected by the developer as the target APP.
  • FIG. 5a-5b which is a schematic diagram of a test interface provided by an embodiment of the present invention
  • the main interface shown in FIG. 5a may refer to a main interface where the test device provides a test for the APP, in which the developer can click "select"
  • the APP to be tested can enter the interface shown in FIG. 5b, and the APP list is displayed in the interface shown in FIG. 5b, and the APP list includes the identifiers of APP-1, APP-2 to APP-5, etc., developer Select APP-1 from this list to determine that APP-1 is the target APP that needs to be tested.
  • Steps S203-S204 are performed by the test configuration obtaining unit 101, specifically:
  • Step S203 is performed by the configuration interface output unit 1001.
  • the step is: outputting a test configuration interface, where the test configuration interface includes an input parameter list and an output parameter list, where the target parameter application includes the target application The name of the plurality of input parameters and the at least one test value of each of the input parameters, the parameter list includes a name of the plurality of output parameters involved in the target application and a valid interval of each output parameter.
  • Step S204 is performed by the test configuration generating unit 1002, the step is: when a configuration operation is detected in the test configuration interface, generating a test configuration of the target application according to the configuration operation, the test configuration Includes input configuration and output configuration.
  • the input configuration includes a name of at least one input parameter selected from the input parameter list and a test value of each input parameter; the output configuration includes at least one output parameter selected from the output parameter list The name.
  • the configuration interface output unit 1001 may perform step S203 to output a test configuration interface for enabling the developer to perform the target APP in the test configuration interface. Test the configuration.
  • the test configuration generation unit 1002 may perform the step S204 to read the test configuration of the developer's configuration of the target APP from the test configuration interface to generate the test configuration of the target APP.
  • the test configuration interface of the embodiment of the present invention can provide an input parameter list and a parameter list, and the input parameter list can use all the input parameters involved in the target APP and each input parameter.
  • test configuration interface of the embodiment of the present invention can also support new parameters, that is, support new input parameters and test values input by the developer, and newly added output parameters. And the effective range.
  • the test apparatus in the embodiment of the present invention can also maintain a history of all input parameters and output parameters, and supports saving the history record to the text, or supporting the display of the history in a curved manner for the developer to call.
  • the input parameter list shown in FIG. 5c may include a timeout (read timeout), a cache, a KA (Keep Alive), and an INTE ( Interval, an attribute of the time control) and other input parameters, the developer selects an input parameter such as timeout (read timeout) to enter the interface shown in Figure 5d, and the interface shown in Figure 5d shows the selected timeout (read timeout). Enter a list of commonly used test values for the parameters from which the developer can select test values for the target APP.
  • the output list shown in Figure 5e may include output parameters such as CPU (Central Processing Unit), power consumption, time consumption, bandwidth, etc.
  • the test configuration generation unit 1002 may generate a test configuration of the target APP.
  • Step S205 is performed by the program execution unit 102, the step of: running the target application in the mobile terminal.
  • step S102 shown in FIG. 3, and details are not described herein.
  • Steps S206-S208 are performed by the input configuration invoking unit 103, specifically:
  • Step S206 is performed by the target code locating unit 2001, the step of locating at least one object code in the target application according to the name of the at least one input parameter.
  • the positioning process here is actually determining which target code in the target APP involves the configured input parameters, for example, if the name of the input parameter is timeout (read timeout) and the test value is 15, then the target code positioning is performed in this step.
  • Unit 2001 looks up all the target code related to the timeout (read timeout) parameter from all the function codes of the target APP, and locates the found target code line.
  • Step S207 is performed by the variable modification unit 2002, which is to modify the corresponding variable value in the at least one object code by using the test value of the at least one input parameter.
  • the modification process here is to replace the corresponding variable value in the target code with the test value of the input parameter, as in the previous example, After the target code line is located, the variable value of the timeout (read timeout) in the target code line is directly replaced with the test value 15 of the timeout (read timeout) in the input parameter.
  • Step S208 is performed by the target code execution unit 2003, which is: when the target application runs to the at least one object code, runs with the modified at least one object code. Steps S206-S208 enable the at least one input parameter to be used immediately by the running target APP, thereby achieving the purpose of modifying the target APP internal variable in real time.
  • Steps S209-S212 are performed by the test result display unit 104, specifically:
  • Step S209 is performed by the operation value monitoring unit 3001, the step of: monitoring an operation value of the at least one output parameter generated by the target application during operation according to the name of the at least one output parameter.
  • the monitoring process here is actually obtaining the running value of the at least one output parameter of the target APP during operation in real time, as in the previous example, assuming that the output parameter is CPU, indicating that the developer pays attention to the target APP during the running process.
  • the running value monitoring unit 3001 needs to acquire the running value of the CPU in real time during the running of the target APP, and submit the real-time display to the running value display unit 3002.
  • Step S210 is performed by the operation value display unit 3002, which is to display an operation value of the at least one output parameter.
  • the running value of at least one output parameter is displayed in real time, which enables the developer to know the performance index of the running target APP in time.
  • the running value display unit 3002 performs the following steps when performing this step:
  • FIG. 5g a schematic diagram of a suspension layer window according to an embodiment of the present invention
  • a floating layer window shown in FIG. 5g displays an operation value of at least one output parameter, and at the same time, at least one corresponding input may be displayed.
  • the steps (1)-(2) are implemented based on the floating output mechanism provided by the test device.
  • the floating layer window is located at the running interface of the target APP, and the input and output parameters can be displayed in real time through the floating layer window, which can be beneficial for the developer to view. While the UI performance of the target APP running interface is displayed, the internal performance index of the target APP during the running process is viewed in real time through the floating layer window, which makes the testing process more intuitive and convenient.
  • the floating layer window will be updated in real time or periodically according to the change of the running value of the displayed output parameter, thereby ensuring timely display of the real performance of the internal variable of the target APP.
  • the number of output parameters that need attention is large, or the amount of information of the displayed output parameters is large, or the input parameters are simultaneously displayed.
  • you can limit the number of parameters displayed in the floating layer window as shown in Figure 5g, the number of input parameters and output parameters are 3).
  • the developer can select the parameters to be displayed in the floating layer window. The selected intersection is displayed by the floating layer window, and other unselected parameters can be displayed in the test interface of the target APP and the running interface of the target APP.
  • Step S211 is performed by the valid determining unit 3003, and the step is: determining whether the running value of each output parameter in the at least one output parameter is located in a corresponding valid interval.
  • Each output parameter can correspond to its effective interval. If the running value of the output parameter is within its corresponding valid interval, it indicates that the performance index of the target APP is normal and reaches the expected level.
  • Step S212 is performed by the alarm prompting unit 3004.
  • the step is: when there is an output parameter in the at least one output parameter that exceeds the corresponding valid interval, an alarm prompt is output.
  • the alarm prompting unit 3004 needs The alarm prompt is generated to remind the developer that the user needs to pay attention; for details, please refer to FIG. 5h, which is a schematic diagram of the alarm prompt interface provided by the embodiment of the present invention; and the alarm prompt interface shown in FIG. 5h displays the name of the output parameter with an abnormality.
  • the running value and the minimum and maximum values of the effective interval and also support the display of the corresponding running value and corresponding curve of the output parameter at different times, so as to facilitate the developer to view.
  • the target application to be tested in the mobile terminal can be tested and configured, including input configuration and output configuration, and the input is invoked in real time during the debugging operation of the target application.
  • the input parameters and the corresponding test values in the configuration, and the test results of the output parameters of the output parameters in the output configuration are displayed in real time; the internal variables of the APP can be modified in real time by dynamically invoking the input parameters and the test values during the debugging operation. Avoid the new code development and compilation process; through the real-time display of the output parameters during the debugging operation, you can understand the test APP performance indicators in time, making the application test process simple and convenient, and effectively improving the test efficiency.
  • FIG. 6 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention.
  • the terminal may include components such as a processor 11, a memory 12, a communication unit 13, and the like. These components communicate over one or more buses.
  • the structure of the terminal shown in FIG. 6 does not constitute a limitation of the present invention, and it may be a bus-shaped structure or a star-shaped structure, and may further include more structures than those shown in FIG. Or fewer parts, or combine some parts, or different parts.
  • the processor 11 is a control center of the terminal, and connects various parts of the entire terminal by using various interfaces and lines, by running or executing program codes and/or modules stored in the memory 12, and calling the memory stored in the memory. Data within 12, performing various functions of the terminal and/or processing data.
  • the processor 11 may be composed of an integrated circuit (IC), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs having the same function or different functions.
  • the processor 11 may include only a central processing unit (CPU), or may be a CPU, a digital signal processor (DSP), or a graphics processing unit (Graphic Processing Unit, Referred to as GPU) and a combination of control chips (eg, baseband chips) in the communication unit.
  • the CPU may be a single operation core, and may also include multiple operation cores.
  • the memory 12 can be used to store program code and modules, and the processor 11 executes various functional applications of the terminal and implements data processing by running program code and modules stored in the memory 12.
  • the memory 12 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, program code required for at least one function, such as program code for testing; and the data storage area can be stored according to the use of the terminal. Created data.
  • the processor 11 can call the program code stored in the memory 12 to perform the following operations:
  • test configuration information including an input configuration and an output configuration, the input configuration including at least one input parameter and a test value of each input parameter; the output configuration including at least one output parameter;
  • the test result of the target application is displayed according to the output configuration.
  • the program code is further executed to: output an application list when detecting that an application programming interface API for testing is invoked,
  • the application list contains an identification of at least one application; and an identifier of the application to be tested selected from the application list is determined as an identification of the target application.
  • the test configuration of the target application to be tested includes: outputting a test configuration interface, where the test configuration interface includes an input parameter list and an output parameter list, where the input parameter list includes Determining, by the target application, a name of the plurality of input parameters and at least one test value of each input parameter, where the parameter list includes the names of the plurality of output parameters involved in the target application and the effective of each output parameter An interval; when a configuration operation is detected in the test configuration interface, generating a test configuration of the target application according to the configuration operation, the test configuration including an input configuration and an output configuration; wherein the input configuration includes a name of the at least one input parameter selected in the parameter list and a test value of each input parameter; the output configuration includes a name of at least one output parameter selected from the list of parameters.
  • the invoking the input configuration during the running of the target application includes: locating at least one object code in the target application according to a name of the at least one input parameter; using the at least one input The test value of the parameter modifies a corresponding variable value in the at least one object code; and when the target application runs to the at least one object code, operates with the modified at least one object code.
  • the displaying the test result of the target application according to the output configuration comprising: monitoring, according to the name of the at least one output parameter, the operation of the at least one output parameter generated by the target application during operation a value; and displaying an operational value of the at least one output parameter.
  • the operating value of the at least one output parameter is displayed, including: an output floating layer window at an operation interface of the target application; and displaying the operation of the at least one output parameter in real time in the floating layer window value.
  • the output configuration further includes an effective interval of each of the at least one output parameter.
  • the program code is further configured to: determine whether an operating value of each of the at least one output parameter is within a corresponding valid interval; When there is an output parameter in the at least one output parameter that exceeds the corresponding valid interval, an alarm prompt is output.
  • the storage medium may be a magnetic disk, an optical disk, or a read-only memory (Read-Only Memory, ROM) or random access memory (RAM).

Abstract

An application program testing method, testing apparatus, and a mobile terminal. The method comprises: obtaining testing configuration of a to-be-tested target application program in a mobile terminal, wherein information about the testing configuration comprises an input configuration and an output configuration (S101), the input configuration comprising at least one input parameter and a testing value of each input parameter, and the output configuration comprising at least one output parameter; running the target application program in the mobile terminal (S102); calling the input configuration in the running process of the target application program (S103); and displaying a testing result of the target application program according to the output configuration (S104). The method can simplify the application program testing process and improve the testing efficiency.

Description

一种应用程序的测试方法、测试装置及移动终端Application test method, test device and mobile terminal
本发明要求2015年9月22日递交的发明名称为“一种应用程序的测试方法、测试装置及移动终端”的申请号201510608954.5的在先申请优先权, 述在先申请的内容以引入的方式并入本文本中。The present invention claims the priority of the prior application of the application No. 201510608954.5, entitled "A Test Method, Test Device, and Mobile Terminal for an Application", filed on September 22, 2015, the content of which is incorporated herein by reference. Incorporated into this text.
技术领域Technical field
本发明涉及一种移动互联网技术领域,具体涉及移动互联网中应用程序的处理技术领域,尤其涉及一种应用程序的测试方法、测试装置及移动终端。The present invention relates to the field of mobile Internet technologies, and in particular, to the field of processing technologies for applications in the mobile Internet, and more particularly to an application testing method, a testing device, and a mobile terminal.
背景技术Background technique
随着移动互联网技术的发展,移动终端侧出现越来越多的应用程序,例如:手游应用程序、即时通信应用程序、SNS(Social Networking Services,社会性网络服务)应用程序等等。这些应用程序搭建在移动终端的操作系统之,用户在移动终端下载并安装各应用程序的安装包文件,即可在移动终端中使用这些应用程序。此处的操作系统可包括但不限于Andorid(安卓,一种移动操作系统)系统、IOS(一种移动操作系统)系统等等。目前,基于移动终端的操作系统若要对同一应用程序的两种或两种以方案(如针对某个或某些输入参数的测试值进行调整产生的多个方案)进行测试时,需要开发者针对每种方案开发对应功能代码,并编译为同一应用程序的不同安装包,在移动终端中安装不同安装包进行对比测试。这样的测试方案比较繁琐,效率低。With the development of mobile internet technology, more and more applications appear on the mobile terminal side, such as mobile game applications, instant messaging applications, SNS (Social Networking Services) applications, and the like. These applications are built on the operating system of the mobile terminal, and the user can download and install the installation package files of each application on the mobile terminal, and the applications can be used in the mobile terminal. Operating systems herein may include, but are not limited to, Andorid (Android, a mobile operating system) system, IOS (a mobile operating system) system, and the like. Currently, a mobile terminal-based operating system requires a developer to test two or two scenarios of the same application (such as multiple scenarios generated by adjusting test values for one or some input parameters). Develop corresponding function codes for each solution, compile them into different installation packages of the same application, and install different installation packages in the mobile terminal for comparison test. Such a test scheme is cumbersome and inefficient.
发明内容Summary of the invention
本发明实施例提供一种应用程序的测试方法、测试装置及移动终端,可简化应用程序的测试流程,提升测试效率。The embodiment of the invention provides a testing method, a testing device and a mobile terminal of an application program, which can simplify the testing process of the application program and improve the testing efficiency.
本发明实施例第一方面提供一种应用程序的测试方法,可包括:A first aspect of the embodiments of the present invention provides a testing method for an application, which may include:
获取移动终端中待测试的目标应用程序的测试配置,所述测试配置信息包括输入配置及输出配置,所述输入配置包括至少一个输入参数及各输入参数的测试值;所述输出配置包括至少一个输出参数;Obtaining a test configuration of a target application to be tested in the mobile terminal, where the test configuration information includes an input configuration and an output configuration, the input configuration including at least one input parameter and a test value of each input parameter; the output configuration includes at least one Output parameters;
在所述移动终端中运行所述目标应用程序,并在所述目标应用程序的运行 过程中调用所述输入配置;Running the target application in the mobile terminal and running on the target application Calling the input configuration during the process;
按照所述输出配置显示所述目标应用程序的测试结果。The test result of the target application is displayed according to the output configuration.
进一步,所述获取移动终端中待测试的目标应用程序的测试配置之前,还包括:Further, before the obtaining the test configuration of the target application to be tested in the mobile terminal, the method further includes:
当检测到所述移动终端中用于测试的API(Application Programming Interface,应用程序编程接口)被调用时,输出应用程序列表,所述应用程序列表中包含至少一个应用程序的标识;When it is detected that an API (Application Programming Interface) for testing in the mobile terminal is invoked, outputting an application list, where the application list includes an identifier of at least one application;
从所述应用程序列表中选择待测试的应用程序的标识确定为目标应用程序的标识。The identifier of the application to be tested selected from the list of applications is determined as the identity of the target application.
进一步,所述获取移动终端中待测试的目标应用程序的测试配置,包括:Further, the obtaining a test configuration of the target application to be tested in the mobile terminal includes:
输出测试配置界面,所述测试配置界面中包括入参列表和出参列表,所述入参列表中包含所述目标应用程序涉及的多个输入参数的名称及每个输入参数的至少一个测试值,所述出参列表中包含所述目标应用程序涉及的多个输出参数的名称及每个输出参数的有效区间;And outputting a test configuration interface, where the test configuration interface includes a parameter list and a parameter list, where the parameter list includes a name of multiple input parameters involved in the target application and at least one test value of each input parameter The parameter list includes a name of a plurality of output parameters involved in the target application and a valid interval of each output parameter;
当在所述测试配置界面中检测到配置操作时,根据所述配置操作生成所述目标应用程序的测试配置,所述测试配置包括输入配置和输出配置;Generating a test configuration of the target application according to the configuration operation when a configuration operation is detected in the test configuration interface, the test configuration including an input configuration and an output configuration;
其中,所述输入配置包括从所述入参列表中所选择的至少一个输入参数的名称及各输入参数的测试值;所述输出配置包括从所述出参列表中所选择的至少一个输出参数的名称。The input configuration includes a name of at least one input parameter selected from the input parameter list and a test value of each input parameter; the output configuration includes at least one output parameter selected from the output parameter list The name.
进一步,所述在所述目标应用程序的运行过程中调用所述输入配置,包括:Further, the invoking the input configuration during the running of the target application includes:
按照所述至少一个输入参数的名称在所述目标应用程序中定位至少一个目标代码;Locating at least one object code in the target application according to the name of the at least one input parameter;
采用所述至少一个输入参数的测试值修改所述至少一个目标代码中的相应变量值;Modifying, by the test value of the at least one input parameter, a corresponding variable value in the at least one object code;
当所述目标应用程序运行至所述至少一个目标代码时,采用修改后的至少一个目标代码运行。When the target application runs to the at least one object code, the modified at least one object code is run.
进一步,所述按照所述输出配置显示所述目标应用程序的测试结果,包括:Further, the displaying the test result of the target application according to the output configuration comprises:
按照所述至少一个输出参数的名称监测所述目标应用程序在运行过程中生成的所述至少一个输出参数的运行值;Monitoring, according to the name of the at least one output parameter, an operational value of the at least one output parameter generated by the target application during operation;
显示所述至少一个输出参数的运行值。 An operational value of the at least one output parameter is displayed.
进一步,所述显示所述至少一个输出参数的运行值,包括:Further, the displaying the running value of the at least one output parameter comprises:
在所述目标应用程序的运行界面之输出悬浮层窗口;An output floating layer window at a running interface of the target application;
在所述悬浮层窗口中实时显示所述至少一个输出参数的运行值。An operating value of the at least one output parameter is displayed in real time in the floating layer window.
进一步,所述输出配置还包括所述至少一个输出参数中各输出参数的有效区间;Further, the output configuration further includes an effective interval of each of the at least one output parameter;
所述显示所述至少一个输出参数的运行值之后,还包括:After the displaying the running value of the at least one output parameter, the method further includes:
判断所述至少一个输出参数中各输出参数的运行值是否位于对应的有效区间内;Determining whether the running value of each output parameter of the at least one output parameter is located in a corresponding valid interval;
当所述至少一个输出参数中存在运行值超出对应的有效区间的输出参数时,输出告警提示。When there is an output parameter in the at least one output parameter that exceeds the corresponding valid interval, an alarm prompt is output.
本发明实施例第二方面提供一种测试装置,可包括:A second aspect of the embodiments of the present invention provides a testing apparatus, which may include:
测试配置获取单元,用于获取移动终端中待测试的目标应用程序的测试配置,所述测试配置信息包括输入配置及输出配置,所述输入配置包括至少一个输入参数及各输入参数的测试值;所述输出配置包括至少一个输出参数;a test configuration obtaining unit, configured to acquire a test configuration of a target application to be tested in the mobile terminal, where the test configuration information includes an input configuration and an output configuration, where the input configuration includes at least one input parameter and a test value of each input parameter; The output configuration includes at least one output parameter;
程序运行单元,用于在所述移动终端中运行所述目标应用程序;a program running unit, configured to run the target application in the mobile terminal;
输入配置调用单元,用于在所述目标应用程序的运行过程中调用所述输入配置;Inputting a configuration invoking unit for invoking the input configuration during operation of the target application;
测试结果显示单元,用于按照所述输出配置显示所述目标应用程序的测试结果。a test result display unit configured to display a test result of the target application according to the output configuration.
进一步,所述装置还包括:Further, the device further includes:
程序列表输出单元,用于当检测到所述移动终端中用于测试的API被调用时,输出应用程序列表,所述应用程序列表中包含至少一个应用程序的标识;a program list output unit, configured to: when it is detected that an API for testing in the mobile terminal is invoked, output an application list, where the application list includes an identifier of at least one application;
测试目标确定单元,用于从所述应用程序列表中选择待测试的应用程序的标识确定为目标应用程序的标识。The test target determining unit is configured to select, from the list of applications, an identifier of the application to be tested as an identifier of the target application.
进一步,所述测试配置获取单元包括:Further, the test configuration obtaining unit includes:
配置界面输出单元,用于出测试配置界面,所述测试配置界面中包括入参列表和出参列表,所述入参列表中包含所述目标应用程序涉及的多个输入参数的名称及每个输入参数的至少一个测试值,所述出参列表中包含所述目标应用程序涉及的多个输出参数的名称及每个输出参数的有效区间;a configuration interface output unit, configured to output a test configuration interface, where the test configuration interface includes an input parameter list and an output parameter list, where the input parameter list includes names of each of the input parameters involved in the target application and each Entering at least one test value of the parameter, where the parameter list includes a name of a plurality of output parameters involved in the target application and a valid interval of each output parameter;
测试配置生成单元,用于当在所述测试配置界面中检测到配置操作时,根 据所述配置操作生成所述目标应用程序的测试配置,所述测试配置包括输入配置和输出配置;a test configuration generating unit, configured to detect a root when a configuration operation is detected in the test configuration interface Generating a test configuration of the target application according to the configuring operation, the test configuration including an input configuration and an output configuration;
其中,所述输入配置包括从所述入参列表中所选择的至少一个输入参数的名称及各输入参数的测试值;所述输出配置包括从所述出参列表中所选择的至少一个输出参数的名称。The input configuration includes a name of at least one input parameter selected from the input parameter list and a test value of each input parameter; the output configuration includes at least one output parameter selected from the output parameter list The name.
进一步,所述输入配置调用单元包括:Further, the input configuration calling unit includes:
目标代码定位单元,用于按照所述至少一个输入参数的名称在所述目标应用程序中定位至少一个目标代码;An object code positioning unit, configured to locate at least one object code in the target application according to a name of the at least one input parameter;
变量修改单元,用于采用所述至少一个输入参数的测试值修改所述至少一个目标代码中的相应变量值;a variable modification unit, configured to modify a corresponding variable value in the at least one object code by using a test value of the at least one input parameter;
目标代码运行单元,用于当所述目标应用程序运行至所述至少一个目标代码时,采用修改后的至少一个目标代码运行。The target code execution unit is configured to execute the modified at least one object code when the target application runs to the at least one object code.
进一步,所述测试结果显示单元包括:Further, the test result display unit includes:
运行值监测单元,用于按照所述至少一个输出参数的名称监测所述目标应用程序在运行过程中生成的所述至少一个输出参数的运行值;a running value monitoring unit, configured to monitor, according to the name of the at least one output parameter, an operating value of the at least one output parameter generated by the target application during operation;
运行值显示单元,用于显示所述至少一个输出参数的运行值。And a running value display unit for displaying an operating value of the at least one output parameter.
进一步,所述运行值显示单元包括:Further, the running value display unit includes:
窗口输出单元,用于在所述目标应用程序的运行界面之输出悬浮层窗口;a window output unit for outputting a floating layer window at a running interface of the target application;
悬浮显示单元,用于在所述悬浮层窗口中实时显示所述至少一个输出参数的运行值。And a floating display unit, configured to display an operating value of the at least one output parameter in real time in the floating layer window.
进一步,所述测试结果显示单元还包括:Further, the test result display unit further includes:
有效判断单元,用于判断所述至少一个输出参数中各输出参数的运行值是否位于对应的有效区间内;The effective determining unit is configured to determine whether the running value of each of the at least one output parameter is located in a corresponding valid interval;
告警提示单元,用于当所述至少一个输出参数中存在运行值超出对应的有效区间的输出参数时,输出告警提示。The alarm prompting unit is configured to output an alarm prompt when there is an output parameter in which the running value exceeds the corresponding valid interval in the at least one output parameter.
本发明实施例第三方面提供一种移动终端,可包括如述第二方面所述的测试装置。A third aspect of the embodiments of the present invention provides a mobile terminal, which may include the testing apparatus according to the second aspect.
实施本发明实施例,具有如下有益效果:Embodiments of the present invention have the following beneficial effects:
本发明实施例中,可以对移动终端中待测试的目标应用程序进行测试配 置,包括输入配置及输出配置,在对目标应用程序进行调试运行的过程中实时调用输入配置中的输入参数及对应的测试值,并实时显示输出配置中的输出参数的运行值等测试结果;通过在调试运行过程中对输入参数及测试值的动态调用,可实时修改APP(Application,应用程序)内部变量,避免进行新的代码开发编译过程;通过在调试运行过程中对输出参数的实时显示,可以及时了解测试APP性能指标,使得应用程序的测试过程简单化、便捷化,有效提升测试效率。In the embodiment of the present invention, the target application to be tested in the mobile terminal can be tested and matched. Set, including the input configuration and the output configuration, in the process of debugging and running the target application, the input parameter and the corresponding test value in the input configuration are called in real time, and the test result such as the running value of the output parameter in the output configuration is displayed in real time; By dynamically calling the input parameters and test values during the debugging operation, the internal variables of the APP (application) can be modified in real time to avoid the new code development and compilation process; real-time display of the output parameters during the debugging operation It can timely understand the performance index of the test APP, making the test process of the application simple and convenient, and effectively improving the test efficiency.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明实施例提供的一种移动终端的结构示意图;FIG. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure;
图2为本发明实施例提供的一种测试装置的结构示意图;2 is a schematic structural diagram of a testing apparatus according to an embodiment of the present invention;
图3为本发明实施例提供的一种应用程序的测试方法的流程图;FIG. 3 is a flowchart of a method for testing an application according to an embodiment of the present invention;
图4为本发明实施例提供的另一种应用程序的测试方法的流程图;4 is a flowchart of another method for testing an application according to an embodiment of the present invention;
图5a为本发明实施例提供的测试界面的一个示意图;FIG. 5a is a schematic diagram of a test interface according to an embodiment of the present invention; FIG.
图5b为本发明实施例提供的测试界面的另一个示意图;FIG. 5b is another schematic diagram of a test interface according to an embodiment of the present invention;
图5c为本发明实施例提供的测试配置界面的一个示意图;FIG. 5c is a schematic diagram of a test configuration interface according to an embodiment of the present invention;
图5d为本发明实施例提供的测试配置界面的另一个示意图;FIG. 5 is another schematic diagram of a test configuration interface according to an embodiment of the present invention;
图5e为本发明实施例提供的测试配置界面的又一个示意图;FIG. 5e is still another schematic diagram of a test configuration interface according to an embodiment of the present invention; FIG.
图5f为本发明实施例提供的测试配置界面的又一个示意图;FIG. 5f is still another schematic diagram of a test configuration interface according to an embodiment of the present invention;
图5g为本发明实施例提供的悬浮层窗口的示意图;FIG. 5g is a schematic diagram of a suspension layer window according to an embodiment of the present invention; FIG.
图5h为本发明实施例提供的告警提示界面的示意图;以及FIG. 5h is a schematic diagram of an alarm prompt interface according to an embodiment of the present invention;
图6为本发明另一实施例提供的一种移动终端的结构示意图。FIG. 6 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solution in the embodiment of the present invention will be clarified in the following with reference to the accompanying drawings in the embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS It is apparent that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
请参见图1,为本发明实施例提供的一种移动终端的结构示意图;该移动终端可以为手机、PAD(平板电脑)、便携式智能可穿戴设备等等。该移动终端内搭载移动操作系统,可包括但不限于:Android系统、IOS系统等等;并且,该移动终端可安装多个APP,例如图1所示的APP-1、APP-2至APP-5。该移动终端可包含一个测试装置,该测试装置可被应用于对移动终端中的各APP进行测试,例如:该测试装置可以调试运行各APP,允许动态修改APP的变量数据,并且可通过显示输出参数来查看APP运行过程中的内外部性能指标等等。FIG. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention; the mobile terminal may be a mobile phone, a PAD (tablet computer), a portable smart wearable device, or the like. The mobile terminal is equipped with a mobile operating system, which may include, but is not limited to, an Android system, an IOS system, and the like; and the mobile terminal may install multiple APPs, such as APP-1, APP-2 to APP- shown in FIG. 5. The mobile terminal can include a test device, which can be applied to test each APP in the mobile terminal. For example, the test device can debug and run each APP, and can dynamically modify the variable data of the APP, and can output the output through the display. Parameters to view internal and external performance indicators during the running of the APP, and so on.
实际应用中,图1所示的测试装置可以为一个针对移动终端的操作系统所开发的SDK(Software Development Kit,软件开发工具包),该测试装置被嵌入至移动终端的操作系统中以为应用程序的开发者提供APP工程中使用的两类接口方法,一类用于将开发者为APP配置的输入参数实时传递至运行中的APP内部被APP即刻使用,以达到实时修改APP内部变量的目的;而另一类用于实时展示运行中的APP的内部变量(输出参数)的运行值,以达到测试APP性能指标的目的。进一步,测试装置还可针对测试过程提供一些优化机制,包括悬浮输出机制和告警提示机制。其中,悬浮输出机制提供悬浮于APP运行界面之 的悬浮层窗口,通过悬浮层窗口实时显示输入输出参数,这样可以有利于开发者在查看APP运行界面的各UI(User Interface,用户界面)表现的同时,通过悬浮层窗口实时查看APP运行过程中内部变量,使得测试过程更为直观方便。其中,告警提示机制可以在输出参数出现超出有效区间等异常情况时,产生告警提醒开发者关注,使得测试过程更为智能。In practical applications, the test device shown in FIG. 1 may be an SDK (Software Development Kit) developed for an operating system of a mobile terminal, and the test device is embedded in an operating system of the mobile terminal as an application. The developer provides two types of interface methods used in the APP project. One type is used to transfer the input parameters configured by the developer for the APP to the running APP for immediate use by the APP, so as to achieve the purpose of modifying the internal variables of the APP in real time; The other type is used to display the running value of the internal variable (output parameter) of the running APP in real time to achieve the purpose of testing the performance index of the APP. Further, the testing device can also provide some optimization mechanisms for the testing process, including a floating output mechanism and an alarm prompting mechanism. The floating output mechanism provides a floating layer window suspended in the APP running interface, and the input and output parameters are displayed in real time through the floating layer window, which can facilitate the developer to view the performance of each UI (User Interface) of the APP running interface. At the same time, the internal variables of the APP running process are viewed in real time through the floating layer window, which makes the testing process more intuitive and convenient. The alarm prompting mechanism can generate an alarm to alert the developer when the output parameter exceeds the abnormal range such as the effective interval, so that the testing process is more intelligent.
请一并参见图2,为本发明实施例提供的一种测试装置的结构示意图;该测试装置可以为图1所示的移动终端内的测试装置。如图2所示,该测试装置可包括:测试配置获取单元101、程序运行单元102、输出配置调用单元103和测试结果显示单元104。可选地,该测试装置还可包括:程序列表输出单元105和测试目标确定单元106。2 is a schematic structural diagram of a testing apparatus according to an embodiment of the present invention; the testing apparatus may be a testing apparatus in the mobile terminal shown in FIG. 1. As shown in FIG. 2, the test apparatus may include: a test configuration acquisition unit 101, a program execution unit 102, an output configuration invoking unit 103, and a test result display unit 104. Optionally, the testing device may further include: a program list output unit 105 and a test target determining unit 106.
进一步,所述测试配置获取单元101可包括:配置界面输出单元1001和 测试配置生成单元1002。所述输出配置调用单元103可包括:目标代码定位单元2001、变量修改单元2002和目标代码运行单元2003。所述测试结果显示单元104可包括:运行值监测单元3001、运行值显示单元3002、有效判断单元3003和告警提示单元3004。Further, the test configuration obtaining unit 101 may include: a configuration interface output unit 1001 and The configuration generation unit 1002 is tested. The output configuration invoking unit 103 may include an object code positioning unit 2001, a variable modification unit 2002, and an object code execution unit 2003. The test result display unit 104 may include an operation value monitoring unit 3001, an operation value display unit 3002, an effective determination unit 3003, and an alarm prompting unit 3004.
请参见图3,为本发明实施例提供的一种应用程序的测试方法的流程图;本实施例所示方法的流程可以由图1所示的移动终端所执行,具体可以由图1-图2所示的移动终端内的测试装置所执行。该方法可包括以下步骤S101-S104。FIG. 3 is a flowchart of a method for testing an application according to an embodiment of the present invention; the process of the method shown in this embodiment may be performed by the mobile terminal shown in FIG. The test device in the mobile terminal shown in 2 is executed. The method can include the following steps S101-S104.
步骤S101由测试配置单元101所执行,该步骤为:获取移动终端中待测试的目标应用程序的测试配置,所述测试配置信息包括输入配置及输出配置,所述输入配置包括至少一个输入参数及各输入参数的测试值;所述输出配置包括至少一个输出参数。Step S101 is performed by the test configuration unit 101. The step is: acquiring a test configuration of a target application to be tested in the mobile terminal, where the test configuration information includes an input configuration and an output configuration, where the input configuration includes at least one input parameter and a test value for each input parameter; the output configuration includes at least one output parameter.
其中,其中的输入参数是指需要被传递至目标APP中,并且被目标APP在运行过程中所调用的参数。输出参数是指需要从运行的目标APP中获取并进行显示的参数。测试装置在对目标APP进行测试之前,测试配置单元101可以在移动终端的屏幕中输出测试配置界面,允许目标APP的开发者在该测试配置界面中按照开发需要进行参数配置,包括配置目标APP的输入参数及输入参数的测试值,配置想要关注的目标APP在运行过程中的一些输出参数,等等;待目标APP的开发者在测试配置界面中完成参数配置并确认提交时,测试配置单元101从测试配置界面中读取目标APP的开发者的配置生成目标APP的测试配置。Wherein, the input parameter refers to a parameter that needs to be delivered to the target APP and is called by the target APP during the running process. The output parameter refers to the parameter that needs to be obtained from the running target APP and displayed. Before the test device tests the target APP, the test configuration unit 101 may output a test configuration interface in the screen of the mobile terminal, allowing the developer of the target APP to perform parameter configuration according to the development needs in the test configuration interface, including configuring the target APP. Enter the test values of the parameters and input parameters, configure some output parameters of the target APP that you want to pay attention to during the running process, etc.; when the developer of the target APP completes the parameter configuration in the test configuration interface and confirms the submission, the test configuration unit 101. The configuration of the developer of the target APP is read from the test configuration interface to generate a test configuration of the target APP.
步骤S102由程序运行单元102所执行,该步骤为:在所述移动终端中运行所述目标应用程序。Step S102 is performed by the program execution unit 102, which is to run the target application in the mobile terminal.
其中,在移动终端中运行目标APP时,可运行目标APP的全部功能代码,也就是在移动终端中使用目标APP的所有功能;当然,也可按照测试需要运行目标APP的部分功能代码,也就是在移动终端中使用目标APP需要进行测试的部分功能;例如:针对某即时通信APP,包含文本聊天功能、截图功能及音视频聊天功能,本步骤中可以运行全部功能代码,也可以根据测试需要仅运行截图功能代码。 Wherein, when the target APP is run in the mobile terminal, all the function codes of the target APP can be run, that is, all functions of the target APP are used in the mobile terminal; of course, part of the function code of the target APP can also be run according to the test requirement, that is, Some functions that need to be tested in the mobile terminal using the target APP; for example, for an instant messaging application, including a text chat function, a screenshot function, and an audio and video chat function, all the function codes can be run in this step, or only according to the test requirements. Run the screenshot function code.
步骤S103由所述输出配置调用单元103所执行,该步骤包括:在所述目标应用程序的运行过程中调用所述输入配置。Step S103 is performed by the output configuration invoking unit 103, the step comprising: invoking the input configuration during the running of the target application.
调用所述输入配置也就是指将至少一个输入参数的测试值传递至运行的目标APP内部,采用该至少一个输入参数的测试值修改目标APP内部相应变量的值,从而使得该至少一个输入参数能被运行的目标APP即刻使用。The calling the input configuration means that the test value of the at least one input parameter is passed to the inside of the running target APP, and the value of the corresponding variable in the target APP is modified by using the test value of the at least one input parameter, so that the at least one input parameter can The target APP that is being run is used immediately.
步骤S104由所述测试结果显示单元104所执行,该步骤包括:按照所述输出配置显示所述目标应用程序的测试结果。Step S104 is performed by the test result display unit 104, and the step includes: displaying the test result of the target application according to the output configuration.
目标APP的测试结果可以包含所述输出配置所要求的至少一个输出参数的运行值,此处,至少一个输出参数的运行值可以采用界面方式进行显示,或者,按照测试装置所提供的悬浮输出机制,至少一个输出参数的运行值还可以采用悬浮层窗口的方式进行显示。按照测试装置所提供的告警提示机制,目标APP的测试结果还可以包含当至少一个输出参数的运行值超出有效区间时所产生的告警提示。The test result of the target APP may include an operation value of at least one output parameter required by the output configuration, where the running value of the at least one output parameter may be displayed in an interface manner, or according to a floating output mechanism provided by the testing device. The running value of at least one output parameter can also be displayed by using a floating layer window. According to the alarm prompting mechanism provided by the testing device, the test result of the target APP may further include an alert prompt generated when the running value of the at least one output parameter exceeds the effective interval.
请参见图4,为本发明实施例提供的另一种应用程序的测试方法的流程图;本实施例所示方法的流程可以由图2所示的移动终端内的测试装置的具体单元所执行。该方法可包括以下步骤S201-S212。FIG. 4 is a flowchart of another method for testing an application according to an embodiment of the present invention; the process of the method shown in this embodiment may be performed by a specific unit of a test device in the mobile terminal shown in FIG. . The method can include the following steps S201-S212.
步骤S201由所述程序列表输出单元105所执行,该步骤为:当检测到所述移动终端中用于测试的API(Application Programming Interface,应用程序编程接口)被调用时,输出应用程序列表,所述应用程序列表中包含至少一个应用程序的标识。Step S201 is executed by the program list output unit 105. When the API (Application Programming Interface) for testing in the mobile terminal is detected, the application list is output. The application list contains the identity of at least one application.
由图1所示实施例可知,测试装置(SDK)在嵌入至移动终端的操作系统之后,可以为APP开发者提供APP工程使用的API接口,开发者调用该API接口即可对APP进行测试。本步骤中如果检测到移动终端中用于测试的API接口被调用时,表明开发者想要对APP进行测试,那么,所述程序列表输出单元105可以输出应用程序列表提供给开发者选择要测试的应用程序,该应用程序列表中包含至少一个应用程序的标识。需要说明的是,此处的应用程序列表中的至少一个应用程序可以是移动终端中已经安装的全部或部分应用程序,这至少一个应用程序的标识甚至功能代码均可被预先写入测试装置内部,以方便进行测试。 It can be seen from the embodiment shown in FIG. 1 that after the embedded device is embedded in the operating system of the mobile terminal, the test device (SDK) can provide the APP developer with an API interface used by the APP project, and the developer can call the API interface to test the APP. If it is detected in the step that the API interface for testing in the mobile terminal is called, indicating that the developer wants to test the APP, the program list output unit 105 may output an application list for the developer to select to test. The application that contains at least one application's identity in the application list. It should be noted that at least one application in the application list herein may be all or part of an application already installed in the mobile terminal, and at least one application identifier or even a function code may be pre-written into the test device. To facilitate testing.
步骤S202由所述测试目标确定单元106所执行,该步骤为:从所述应用程序列表中选择待测试的应用程序的标识确定为目标应用程序的标识。Step S202 is performed by the test target determining unit 106, and the step is: selecting an identifier of the application to be tested from the application list to determine an identifier of the target application.
开发者可以在应用程序列表中的至少一个应用程序的标识中选择要测试的应用程序的标识,那么,所述测试目标确定单元106则将开发者所选择的应用程序确定为目标APP。The developer may select an identifier of the application to be tested in the identifier of at least one application in the application list, and then the test target determining unit 106 determines the application selected by the developer as the target APP.
请一并参见图5a-5b,为本发明实施例提供的测试界面的示意图;图5a所示的主界面可以指测试装置为APP提供测试的主界面,在此界面中开发者可以点击“选择要测试的APP”,则可进入图5b所示的界面,在图5b所示的界面中显示APP列表,该APP列表中包含APP-1、APP-2至APP-5等的标识,开发者从该列表中选择APP-1那么可确定APP-1为需要进行测试的目标APP。5a-5b, which is a schematic diagram of a test interface provided by an embodiment of the present invention; the main interface shown in FIG. 5a may refer to a main interface where the test device provides a test for the APP, in which the developer can click "select" The APP to be tested can enter the interface shown in FIG. 5b, and the APP list is displayed in the interface shown in FIG. 5b, and the APP list includes the identifiers of APP-1, APP-2 to APP-5, etc., developer Select APP-1 from this list to determine that APP-1 is the target APP that needs to be tested.
步骤S203-S204由所述测试配置获取单元101所执行,具体为:Steps S203-S204 are performed by the test configuration obtaining unit 101, specifically:
步骤S203由所述配置界面输出单元1001所执行,该步骤为:输出测试配置界面,所述测试配置界面中包括入参列表和出参列表,所述入参列表中包含所述目标应用程序涉及的多个输入参数的名称及每个输入参数的至少一个测试值,所述出参列表中包含所述目标应用程序涉及的多个输出参数的名称及每个输出参数的有效区间。Step S203 is performed by the configuration interface output unit 1001. The step is: outputting a test configuration interface, where the test configuration interface includes an input parameter list and an output parameter list, where the target parameter application includes the target application The name of the plurality of input parameters and the at least one test value of each of the input parameters, the parameter list includes a name of the plurality of output parameters involved in the target application and a valid interval of each output parameter.
步骤S204由所述测试配置生成单元1002所执行,该步骤为:当在所述测试配置界面中检测到配置操作时,根据所述配置操作生成所述目标应用程序的测试配置,所述测试配置包括输入配置和输出配置。其中,所述输入配置包括从所述入参列表中所选择的至少一个输入参数的名称及各输入参数的测试值;所述输出配置包括从所述出参列表中所选择的至少一个输出参数的名称。Step S204 is performed by the test configuration generating unit 1002, the step is: when a configuration operation is detected in the test configuration interface, generating a test configuration of the target application according to the configuration operation, the test configuration Includes input configuration and output configuration. The input configuration includes a name of at least one input parameter selected from the input parameter list and a test value of each input parameter; the output configuration includes at least one output parameter selected from the output parameter list The name.
当确定目标APP之后,即确定需要对哪个APP进行测试之后,所述配置界面输出单元1001即可执行步骤S203输出测试配置界面,以用于使开发者可以在该测试配置界面中对目标APP进行测试配置。待开发者在测试配置界面中完成参数配置并确认提交时,所述测试配置生成单元1002则可执行步骤S204从测试配置界面中读取目标APP的开发者的配置生成目标APP的测试配置。为了方便开发者进行有效便捷的配置过程,本发明实施例的测试配置界面中可以提供入参列表及出参列表,入参列表可将目标APP所涉及的所有输入参数及每个输入参数的常用测试值均收纳其中,开发者通过选择即可完成入参配置。同理,出参列表也可以将目标APP所涉及的所有输出参数及每个输出 参数的有效区间均收纳其中,那么,开发者通过选择即可完成出参配置。可以理解的是,为了满足用户兼容性,本发明实施例的测试配置界面还可支持新增参数,即支持由开发者自主输入的新增输入参数及测试值,以及自主输入的新增输出参数及有效区间。另外,本发明实施例中测试装置还可以维护所有输入参数和输出参数的历史记录,并支持将历史记录保存至文本中,或者支持以曲线方式进行历史记录的展示,以便于开发者调用。After determining the target APP, that is, determining which APP needs to be tested, the configuration interface output unit 1001 may perform step S203 to output a test configuration interface for enabling the developer to perform the target APP in the test configuration interface. Test the configuration. When the developer completes the parameter configuration in the test configuration interface and confirms the submission, the test configuration generation unit 1002 may perform the step S204 to read the test configuration of the developer's configuration of the target APP from the test configuration interface to generate the test configuration of the target APP. In order to facilitate the effective and convenient configuration process of the developer, the test configuration interface of the embodiment of the present invention can provide an input parameter list and a parameter list, and the input parameter list can use all the input parameters involved in the target APP and each input parameter. The test values are stored in it, and the developer can complete the configuration by selecting. Similarly, the output list can also take all the output parameters involved in the target APP and each output. The valid intervals of the parameters are stored therein, then the developer can complete the parameter configuration by selecting. It can be understood that, in order to meet user compatibility, the test configuration interface of the embodiment of the present invention can also support new parameters, that is, support new input parameters and test values input by the developer, and newly added output parameters. And the effective range. In addition, the test apparatus in the embodiment of the present invention can also maintain a history of all input parameters and output parameters, and supports saving the history record to the text, or supporting the display of the history in a curved manner for the developer to call.
请一并参见图5c-图5f,为本发明实施例提供的测试配置界面的示意图;图5c所示的入参列表中可包含超时(读超时)、缓存、KA(Keep Alive)、INTE(Interval,时间控件的一个属性)等输入参数,开发者选择某个输入参数如超时(读超时)可进入图5d所示的界面,图5d所示界面显示所选择的超时(读超时)这一输入参数的常用测试值列表,开发者可从中选择用于目标APP的测试值。图5e所示的出参列表可包含CPU(Central Processing Unit,中央处理器)、电量、耗时、带宽等输出参数,当开发者在选择框中勾选即选中该输出参数,表明开发者关注该输出参数的运行值,那么目标APP在调试运行过程中则需要显示该输出参数的运行值;进一步,开发者点选某个输出参数如CPU,可进入图5f所示界面,此界面中开发者可以输入该输出参数CPU的运行值对应的有效区间。在开发者在图5c-图5f所示的测试配置界面中完成参数配置并确认时,所述测试配置生成单元1002可生成目标APP的测试配置。5c-5f, which is a schematic diagram of a test configuration interface according to an embodiment of the present invention; the input parameter list shown in FIG. 5c may include a timeout (read timeout), a cache, a KA (Keep Alive), and an INTE ( Interval, an attribute of the time control) and other input parameters, the developer selects an input parameter such as timeout (read timeout) to enter the interface shown in Figure 5d, and the interface shown in Figure 5d shows the selected timeout (read timeout). Enter a list of commonly used test values for the parameters from which the developer can select test values for the target APP. The output list shown in Figure 5e may include output parameters such as CPU (Central Processing Unit), power consumption, time consumption, bandwidth, etc. When the developer selects the output parameter in the selection box, the developer attention is indicated. The running value of the output parameter, then the target APP needs to display the running value of the output parameter during the debugging operation; further, the developer clicks on an output parameter such as the CPU, and can enter the interface shown in Figure 5f, which is developed in the interface. You can enter the valid interval corresponding to the running value of the output parameter CPU. When the developer completes the parameter configuration and confirms in the test configuration interface shown in FIGS. 5c-5f, the test configuration generation unit 1002 may generate a test configuration of the target APP.
步骤S205由所述程序运行单元102所执行,该步骤为:在所述移动终端中运行所述目标应用程序。此步骤可参见图3所示的步骤S102,在此不赘述。Step S205 is performed by the program execution unit 102, the step of: running the target application in the mobile terminal. For this step, refer to step S102 shown in FIG. 3, and details are not described herein.
步骤S206-S208由所述输入配置调用单元103所执行,具体为:Steps S206-S208 are performed by the input configuration invoking unit 103, specifically:
步骤S206由所述目标代码定位单元2001所执行,该步骤为:按照所述至少一个输入参数的名称在所述目标应用程序中定位至少一个目标代码。此处的定位过程实际是确定目标APP中哪些目标代码涉及到所配置的输入参数,例如:如输入参数的名称为超时(读超时),测试值为15,那么,本步骤所述目标代码定位单元2001则从目标APP的所有功能代码中查找涉及超时(读超时)这一参数的所有目标代码,并定位所查找到的目标代码行。Step S206 is performed by the target code locating unit 2001, the step of locating at least one object code in the target application according to the name of the at least one input parameter. The positioning process here is actually determining which target code in the target APP involves the configured input parameters, for example, if the name of the input parameter is timeout (read timeout) and the test value is 15, then the target code positioning is performed in this step. Unit 2001 then looks up all the target code related to the timeout (read timeout) parameter from all the function codes of the target APP, and locates the found target code line.
步骤S207由所述变量修改单元2002所执行,该步骤为:采用所述至少一个输入参数的测试值修改所述至少一个目标代码中的相应变量值。此处的修改过程即是采用输入参数的测试值替换目标代码中的相应变量值,如前例子,在 定位到目标代码行之后,将目标代码行中的超时(读超时)的变量值直接替换为输入参数中的超时(读超时)的测试值15。Step S207 is performed by the variable modification unit 2002, which is to modify the corresponding variable value in the at least one object code by using the test value of the at least one input parameter. The modification process here is to replace the corresponding variable value in the target code with the test value of the input parameter, as in the previous example, After the target code line is located, the variable value of the timeout (read timeout) in the target code line is directly replaced with the test value 15 of the timeout (read timeout) in the input parameter.
步骤S208由所述目标代码运行单元2003所执行,该步骤为:当所述目标应用程序运行至所述至少一个目标代码时,采用修改后的至少一个目标代码运行。步骤S206-S208能够使得至少一个输入参数能被运行的目标APP即刻使用,从而达到实时修改目标APP内部变量的目的。Step S208 is performed by the target code execution unit 2003, which is: when the target application runs to the at least one object code, runs with the modified at least one object code. Steps S206-S208 enable the at least one input parameter to be used immediately by the running target APP, thereby achieving the purpose of modifying the target APP internal variable in real time.
步骤S209-S212由所述测试结果显示单元104所执行,具体为:Steps S209-S212 are performed by the test result display unit 104, specifically:
步骤S209由所述运行值监测单元3001所执行,该步骤为:按照所述至少一个输出参数的名称监测所述目标应用程序在运行过程中生成的所述至少一个输出参数的运行值。此处的监测过程实际是实时获取开发者所关注的、目标APP在运行过程中的该至少一个输出参数的运行值,如前例子,假设输出参数为CPU,表明开发者关注目标APP在运行过程中的CPU占用情况,那么,本步骤所述运行值监测单元3001则需要在目标APP的运行过程中实时获取CPU的运行值,并交由所述运行值显示单元3002进行实时显示。Step S209 is performed by the operation value monitoring unit 3001, the step of: monitoring an operation value of the at least one output parameter generated by the target application during operation according to the name of the at least one output parameter. The monitoring process here is actually obtaining the running value of the at least one output parameter of the target APP during operation in real time, as in the previous example, assuming that the output parameter is CPU, indicating that the developer pays attention to the target APP during the running process. In the CPU usage of the CPU, the running value monitoring unit 3001 needs to acquire the running value of the CPU in real time during the running of the target APP, and submit the real-time display to the running value display unit 3002.
步骤S210由所述运行值显示单元3002所执行,该步骤为:显示所述至少一个输出参数的运行值。此处将至少一个输出参数的运行值实时显示,可以使得开发者能够及时了解运行中的目标APP的性能指标。实际应用中,所述运行值显示单元3002在执行本步骤时,具体执行如下步骤:Step S210 is performed by the operation value display unit 3002, which is to display an operation value of the at least one output parameter. Here, the running value of at least one output parameter is displayed in real time, which enables the developer to know the performance index of the running target APP in time. In the actual application, the running value display unit 3002 performs the following steps when performing this step:
(1)在所述目标应用程序的运行界面之输出悬浮层窗口。(1) An output floating layer window at the running interface of the target application.
(2)在所述悬浮层窗口中实时显示所述至少一个输出参数的运行值。(2) displaying the running value of the at least one output parameter in real time in the floating layer window.
请一并参见图5g,为本发明实施例提供的悬浮层窗口的示意图;图5g所示的悬浮层窗口中显示了至少一个输出参数的运行值,同时,还可显示相对应的至少一个输入参数的测试值。述步骤(1)-(2)是基于测试装置提供的悬浮输出机制实现,悬浮层窗口位于目标APP的运行界面之,通过悬浮层窗口实时可显示输入输出参数,这样可以有利于开发者在查看目标APP运行界面的各UI表现的同时,通过悬浮层窗口实时查看目标APP运行过程中内部性能指标,使得测试过程更为直观方便。需要说明的是,悬浮层窗口内会根据所显示的输出参数的运行值变化而实时或定时更新,从而保证能够及时展示目标APP的内部变量真实表现。需要说明的是,当需要关注的输出参数的数量较多,或者,所显示的输出参数的信息量较大,或者,同时显示的输入参数的 数量较多时,可以限制悬浮层窗口的参数显示数量(如图5g所示输入参数和输出参数的显示数量均为3),此处可由开发者选取欲采用悬浮层窗口所显示的参数,将所选取的交由悬浮层窗口进行显示,而其他未被选取的参数则可以在目标APP的测试界面、目标APP的运行界面中进行显示。Referring to FIG. 5g, a schematic diagram of a suspension layer window according to an embodiment of the present invention; a floating layer window shown in FIG. 5g displays an operation value of at least one output parameter, and at the same time, at least one corresponding input may be displayed. The test value of the parameter. The steps (1)-(2) are implemented based on the floating output mechanism provided by the test device. The floating layer window is located at the running interface of the target APP, and the input and output parameters can be displayed in real time through the floating layer window, which can be beneficial for the developer to view. While the UI performance of the target APP running interface is displayed, the internal performance index of the target APP during the running process is viewed in real time through the floating layer window, which makes the testing process more intuitive and convenient. It should be noted that the floating layer window will be updated in real time or periodically according to the change of the running value of the displayed output parameter, thereby ensuring timely display of the real performance of the internal variable of the target APP. It should be noted that when the number of output parameters that need attention is large, or the amount of information of the displayed output parameters is large, or the input parameters are simultaneously displayed. When the number is large, you can limit the number of parameters displayed in the floating layer window (as shown in Figure 5g, the number of input parameters and output parameters are 3). Here, the developer can select the parameters to be displayed in the floating layer window. The selected intersection is displayed by the floating layer window, and other unselected parameters can be displayed in the test interface of the target APP and the running interface of the target APP.
步骤S211由所述有效判断单元3003所执行,该步骤为:判断所述至少一个输出参数中各输出参数的运行值是否位于对应的有效区间内。每个输出参数均可对应其有效区间,若输出参数的运行值位于其对应的有效区间内,表明目标APP此性能指标正常,达到预期。Step S211 is performed by the valid determining unit 3003, and the step is: determining whether the running value of each output parameter in the at least one output parameter is located in a corresponding valid interval. Each output parameter can correspond to its effective interval. If the running value of the output parameter is within its corresponding valid interval, it indicates that the performance index of the target APP is normal and reaches the expected level.
步骤S212由所述告警提示单元3004所执行,该步骤为:当所述至少一个输出参数中存在运行值超出对应的有效区间的输出参数时,输出告警提示。Step S212 is performed by the alarm prompting unit 3004. The step is: when there is an output parameter in the at least one output parameter that exceeds the corresponding valid interval, an alarm prompt is output.
所述有效判断单元3003如果判断某输出参数的运行值超出其对应的有效区间,表明目标APP可能在运行过程中产生异常,或者目标APP的运行结果未达到预期,那么所述告警提示单元3004需要生成告警提示,提醒开发者需要进行关注;具体请一并参见图5h,为本发明实施例提供的告警提示界面的示意图;图5h示出的告警提示界面中显示了出现异常的输出参数的名称,运行值以及有效区间的最小值及最大值,同时还支持显示该输出参数在不同时间对应的运行值及相应曲线,以方便开发者查看。If the valid judgment unit 3003 determines that the running value of an output parameter exceeds its corresponding valid interval, indicating that the target APP may generate an abnormality during the running process, or the running result of the target APP does not reach the expected result, the alarm prompting unit 3004 needs The alarm prompt is generated to remind the developer that the user needs to pay attention; for details, please refer to FIG. 5h, which is a schematic diagram of the alarm prompt interface provided by the embodiment of the present invention; and the alarm prompt interface shown in FIG. 5h displays the name of the output parameter with an abnormality. The running value and the minimum and maximum values of the effective interval, and also support the display of the corresponding running value and corresponding curve of the output parameter at different times, so as to facilitate the developer to view.
通过述各实施例的描述,本发明实施例中,可以对移动终端中待测试的目标应用程序进行测试配置,包括输入配置及输出配置,在对目标应用程序进行调试运行的过程中实时调用输入配置中的输入参数及对应的测试值,并实时显示输出配置中的输出参数的运行值等测试结果;通过在调试运行过程中对输入参数及测试值的动态调用,可实时修改APP内部变量,避免进行新的代码开发编译过程;通过在调试运行过程中对输出参数的实时显示,可以及时了解测试APP性能指标,使得应用程序的测试过程简单化、便捷化,有效提升测试效率。Through the description of the embodiments, in the embodiment of the present invention, the target application to be tested in the mobile terminal can be tested and configured, including input configuration and output configuration, and the input is invoked in real time during the debugging operation of the target application. The input parameters and the corresponding test values in the configuration, and the test results of the output parameters of the output parameters in the output configuration are displayed in real time; the internal variables of the APP can be modified in real time by dynamically invoking the input parameters and the test values during the debugging operation. Avoid the new code development and compilation process; through the real-time display of the output parameters during the debugging operation, you can understand the test APP performance indicators in time, making the application test process simple and convenient, and effectively improving the test efficiency.
图6为本发明另一实施例提供的一种移动终端的结构示意图。该终端可包括处理器11、存储器12、通信单元13等组件。这些组件通过一条或多条总线进行通信。本领域技术人员可以理解,图6所示的终端的结构并不构成对本发明的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图6所示的结构更多或更少的部件,或者组合某些部件,或者不同的部件布置。 FIG. 6 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. The terminal may include components such as a processor 11, a memory 12, a communication unit 13, and the like. These components communicate over one or more buses. It will be understood by those skilled in the art that the structure of the terminal shown in FIG. 6 does not constitute a limitation of the present invention, and it may be a bus-shaped structure or a star-shaped structure, and may further include more structures than those shown in FIG. Or fewer parts, or combine some parts, or different parts.
所述处理器11为终端的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在所述存储器12内的程序代码和/或模块,以及调用存储在所述存储器12内的数据,执行终端的各种功能和/或处理数据。所述处理器11可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,所述处理器11可以仅包括中央处理器(Central Processing Unit,简称CPU),也可以是CPU、数字信号处理器(digital signal processor,简称DSP)、图形处理器(Graphic Processing Unit,简称GPU)及通信单元中的控制芯片(例如基带芯片)的组合。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。The processor 11 is a control center of the terminal, and connects various parts of the entire terminal by using various interfaces and lines, by running or executing program codes and/or modules stored in the memory 12, and calling the memory stored in the memory. Data within 12, performing various functions of the terminal and/or processing data. The processor 11 may be composed of an integrated circuit (IC), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs having the same function or different functions. For example, the processor 11 may include only a central processing unit (CPU), or may be a CPU, a digital signal processor (DSP), or a graphics processing unit (Graphic Processing Unit, Referred to as GPU) and a combination of control chips (eg, baseband chips) in the communication unit. In the embodiment of the present invention, the CPU may be a single operation core, and may also include multiple operation cores.
所述存储器12可用于存储程序代码以及模块,所述处理器11通过运行存储在所述存储器12的程序代码以及模块,执行终端的各种功能应用以及实现数据处理。所述存储器12主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的程序代码,比如进行测试的程序代码;数据存储区可存储根据终端的使用所创建的数据。The memory 12 can be used to store program code and modules, and the processor 11 executes various functional applications of the terminal and implements data processing by running program code and modules stored in the memory 12. The memory 12 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, program code required for at least one function, such as program code for testing; and the data storage area can be stored according to the use of the terminal. Created data.
在图6所示的终端中,所述处理器11可以调用所述存储器12中存储的程序代码,执行以下操作:In the terminal shown in FIG. 6, the processor 11 can call the program code stored in the memory 12 to perform the following operations:
获取待测试的目标应用程序的测试配置,所述测试配置信息包括输入配置及输出配置,所述输入配置包括至少一个输入参数及各输入参数的测试值;所述输出配置包括至少一个输出参数;Obtaining a test configuration of the target application to be tested, the test configuration information including an input configuration and an output configuration, the input configuration including at least one input parameter and a test value of each input parameter; the output configuration including at least one output parameter;
运行所述目标应用程序,并在所述目标应用程序的运行过程中调用所述输入配置;以及Running the target application and invoking the input configuration during operation of the target application;
按照所述输出配置显示所述目标应用程序的测试结果。The test result of the target application is displayed according to the output configuration.
其中,所述获取待测试的目标应用程序的测试配置之前,所述程序代码还被执行以用于:当检测到用于测试的应用程序编程接口API被调用时,输出应用程序列表,所述应用程序列表中包含至少一个应用程序的标识;以及从所述应用程序列表中选择待测试的应用程序的标识确定为目标应用程序的标识。Wherein, before the obtaining the test configuration of the target application to be tested, the program code is further executed to: output an application list when detecting that an application programming interface API for testing is invoked, The application list contains an identification of at least one application; and an identifier of the application to be tested selected from the application list is determined as an identification of the target application.
其中,所述获取待测试的目标应用程序的测试配置,包括:输出测试配置界面,所述测试配置界面中包括入参列表和出参列表,所述入参列表中包含所 述目标应用程序涉及的多个输入参数的名称及每个输入参数的至少一个测试值,所述出参列表中包含所述目标应用程序涉及的多个输出参数的名称及每个输出参数的有效区间;当在所述测试配置界面中检测到配置操作时,根据所述配置操作生成所述目标应用程序的测试配置,所述测试配置包括输入配置和输出配置;其中,所述输入配置包括从所述入参列表中所选择的至少一个输入参数的名称及各输入参数的测试值;所述输出配置包括从所述出参列表中所选择的至少一个输出参数的名称。The test configuration of the target application to be tested includes: outputting a test configuration interface, where the test configuration interface includes an input parameter list and an output parameter list, where the input parameter list includes Determining, by the target application, a name of the plurality of input parameters and at least one test value of each input parameter, where the parameter list includes the names of the plurality of output parameters involved in the target application and the effective of each output parameter An interval; when a configuration operation is detected in the test configuration interface, generating a test configuration of the target application according to the configuration operation, the test configuration including an input configuration and an output configuration; wherein the input configuration includes a name of the at least one input parameter selected in the parameter list and a test value of each input parameter; the output configuration includes a name of at least one output parameter selected from the list of parameters.
其中,所述在所述目标应用程序的运行过程中调用所述输入配置,包括:按照所述至少一个输入参数的名称在所述目标应用程序中定位至少一个目标代码;采用所述至少一个输入参数的测试值修改所述至少一个目标代码中的相应变量值;以及当所述目标应用程序运行至所述至少一个目标代码时,采用修改后的至少一个目标代码运行。The invoking the input configuration during the running of the target application includes: locating at least one object code in the target application according to a name of the at least one input parameter; using the at least one input The test value of the parameter modifies a corresponding variable value in the at least one object code; and when the target application runs to the at least one object code, operates with the modified at least one object code.
其中,所述按照所述输出配置显示所述目标应用程序的测试结果,包括:按照所述至少一个输出参数的名称监测所述目标应用程序在运行过程中生成的所述至少一个输出参数的运行值;以及显示所述至少一个输出参数的运行值。The displaying the test result of the target application according to the output configuration, comprising: monitoring, according to the name of the at least one output parameter, the operation of the at least one output parameter generated by the target application during operation a value; and displaying an operational value of the at least one output parameter.
其中,所述显示所述至少一个输出参数的运行值,包括:在所述目标应用程序的运行界面之输出悬浮层窗口;以及在所述悬浮层窗口中实时显示所述至少一个输出参数的运行值。The operating value of the at least one output parameter is displayed, including: an output floating layer window at an operation interface of the target application; and displaying the operation of the at least one output parameter in real time in the floating layer window value.
其中,所述输出配置还包括所述至少一个输出参数中各输出参数的有效区间。The output configuration further includes an effective interval of each of the at least one output parameter.
其中,所述显示所述至少一个输出参数的运行值之后,所述程序代码还被执行以用于:判断所述至少一个输出参数中各输出参数的运行值是否位于对应的有效区间内;以及当所述至少一个输出参数中存在运行值超出对应的有效区间的输出参数时,输出告警提示。After the displaying the running value of the at least one output parameter, the program code is further configured to: determine whether an operating value of each of the at least one output parameter is within a corresponding valid interval; When there is an output parameter in the at least one output parameter that exceeds the corresponding valid interval, an alarm prompt is output.
本领域普通技术人员可以理解实现述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory, ROM)或随机存储记忆体(Random Access Memory,RAM)等。A person skilled in the art can understand that all or part of the process of implementing the embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. In execution, the flow of an embodiment of the various methods can be included. The storage medium may be a magnetic disk, an optical disk, or a read-only memory (Read-Only Memory, ROM) or random access memory (RAM).
以 所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。 The present invention is intended to be limited only by the preferred embodiments of the present invention, and the scope of the present invention is not limited thereto.

Claims (20)

  1. 一种应用程序的测试方法,特征在于,包括:An application testing method, characterized by comprising:
    获取移动终端中待测试的目标应用程序的测试配置,所述测试配置信息包括输入配置及输出配置,所述输入配置包括至少一个输入参数及各输入参数的测试值;所述输出配置包括至少一个输出参数;Obtaining a test configuration of a target application to be tested in the mobile terminal, where the test configuration information includes an input configuration and an output configuration, the input configuration including at least one input parameter and a test value of each input parameter; the output configuration includes at least one Output parameters;
    在所述移动终端中运行所述目标应用程序,并在所述目标应用程序的运行过程中调用所述输入配置;Running the target application in the mobile terminal, and calling the input configuration during operation of the target application;
    按照所述输出配置显示所述目标应用程序的测试结果。The test result of the target application is displayed according to the output configuration.
  2. 如权利要求1所述的方法,特征在于,所述获取移动终端中待测试的目标应用程序的测试配置之前,还包括:The method of claim 1, wherein before the obtaining the test configuration of the target application to be tested in the mobile terminal, the method further comprises:
    当检测到所述移动终端中用于测试的应用程序编程接口API被调用时,输出应用程序列表,所述应用程序列表中包含至少一个应用程序的标识;When it is detected that the application programming interface API for testing in the mobile terminal is invoked, outputting an application list, where the application list includes an identifier of at least one application;
    从所述应用程序列表中选择待测试的应用程序的标识确定为目标应用程序的标识。The identifier of the application to be tested selected from the list of applications is determined as the identity of the target application.
  3. 如权利要求1或2所述的方法,特征在于,所述获取移动终端中待测试的目标应用程序的测试配置,包括:The method according to claim 1 or 2, wherein the obtaining a test configuration of a target application to be tested in the mobile terminal comprises:
    输出测试配置界面,所述测试配置界面中包括入参列表和出参列表,所述入参列表中包含所述目标应用程序涉及的多个输入参数的名称及每个输入参数的至少一个测试值,所述出参列表中包含所述目标应用程序涉及的多个输出参数的名称及每个输出参数的有效区间;And outputting a test configuration interface, where the test configuration interface includes a parameter list and a parameter list, where the parameter list includes a name of multiple input parameters involved in the target application and at least one test value of each input parameter The parameter list includes a name of a plurality of output parameters involved in the target application and a valid interval of each output parameter;
    当在所述测试配置界面中检测到配置操作时,根据所述配置操作生成所述目标应用程序的测试配置,所述测试配置包括输入配置和输出配置;Generating a test configuration of the target application according to the configuration operation when a configuration operation is detected in the test configuration interface, the test configuration including an input configuration and an output configuration;
    中,所述输入配置包括从所述入参列表中所选择的至少一个输入参数的名称及各输入参数的测试值;所述输出配置包括从所述出参列表中所选择的至少一个输出参数的名称。The input configuration includes a name of at least one input parameter selected from the input parameter list and a test value of each input parameter; the output configuration includes at least one output parameter selected from the output parameter list The name.
  4. 如权利要求3所述的方法,特征在于,所述在所述目标应用程序的 运行过程中调用所述输入配置,包括:The method of claim 3, wherein said at said target application The input configuration is invoked during the run, including:
    按照所述至少一个输入参数的名称在所述目标应用程序中定位至少一个目标代码;Locating at least one object code in the target application according to the name of the at least one input parameter;
    采用所述至少一个输入参数的测试值修改所述至少一个目标代码中的相应变量值;Modifying, by the test value of the at least one input parameter, a corresponding variable value in the at least one object code;
    当所述目标应用程序运行至所述至少一个目标代码时,采用修改后的至少一个目标代码运行。When the target application runs to the at least one object code, the modified at least one object code is run.
  5. 如权利要求3所述的方法,特征在于,所述按照所述输出配置显示所述目标应用程序的测试结果,包括:The method of claim 3, wherein the displaying the test result of the target application according to the output configuration comprises:
    按照所述至少一个输出参数的名称监测所述目标应用程序在运行过程中生成的所述至少一个输出参数的运行值;Monitoring, according to the name of the at least one output parameter, an operational value of the at least one output parameter generated by the target application during operation;
    显示所述至少一个输出参数的运行值。An operational value of the at least one output parameter is displayed.
  6. 如权利要求5所述的方法,特征在于,所述显示所述至少一个输出参数的运行值,包括:The method of claim 5, wherein said displaying said operational value of said at least one output parameter comprises:
    在所述目标应用程序的运行界面之上输出悬浮层窗口;Outputting a floating layer window on top of the running interface of the target application;
    在所述悬浮层窗口中实时显示所述至少一个输出参数的运行值。An operating value of the at least one output parameter is displayed in real time in the floating layer window.
  7. 如权利要求5所述的方法,特征在于,所述输出配置还包括所述至少一个输出参数中各输出参数的有效区间;The method of claim 5, wherein the output configuration further comprises an effective interval of each of the at least one output parameter;
    所述显示所述至少一个输出参数的运行值之后,还包括:After the displaying the running value of the at least one output parameter, the method further includes:
    判断所述至少一个输出参数中各输出参数的运行值是否位于对应的有效区间内;Determining whether the running value of each output parameter of the at least one output parameter is located in a corresponding valid interval;
    当所述至少一个输出参数中存在运行值超出对应的有效区间的输出参数时,输出告警提示。When there is an output parameter in the at least one output parameter that exceeds the corresponding valid interval, an alarm prompt is output.
  8. 一种测试装置,特征在于,包括:A testing device, characterized in that it comprises:
    测试配置获取单元,用于获取移动终端中待测试的目标应用程序的测试配 置,所述测试配置信息包括输入配置及输出配置,所述输入配置包括至少一个输入参数及各输入参数的测试值;所述输出配置包括至少一个输出参数;a test configuration obtaining unit, configured to obtain a test configuration of a target application to be tested in the mobile terminal The test configuration information includes an input configuration and an output configuration, the input configuration including at least one input parameter and a test value of each input parameter; the output configuration including at least one output parameter;
    程序运行单元,用于在所述移动终端中运行所述目标应用程序;a program running unit, configured to run the target application in the mobile terminal;
    输入配置调用单元,用于在所述目标应用程序的运行过程中调用所述输入配置;Inputting a configuration invoking unit for invoking the input configuration during operation of the target application;
    测试结果显示单元,用于按照所述输出配置显示所述目标应用程序的测试结果。a test result display unit configured to display a test result of the target application according to the output configuration.
  9. 如权利要求8所述的装置,特征在于,还包括:The apparatus of claim 8 further comprising:
    程序列表输出单元,用于当检测到所述移动终端中用于测试的API被调用时,输出应用程序列表,所述应用程序列表中包含至少一个应用程序的标识;a program list output unit, configured to: when it is detected that an API for testing in the mobile terminal is invoked, output an application list, where the application list includes an identifier of at least one application;
    测试目标确定单元,用于从所述应用程序列表中选择待测试的应用程序的标识确定为目标应用程序的标识。The test target determining unit is configured to select, from the list of applications, an identifier of the application to be tested as an identifier of the target application.
  10. 如权利要求8或9所述的装置,特征在于,所述测试配置获取单元包括:The device according to claim 8 or 9, wherein the test configuration obtaining unit comprises:
    配置界面输出单元,用于出测试配置界面,所述测试配置界面中包括入参列表和出参列表,所述入参列表中包含所述目标应用程序涉及的多个输入参数的名称及每个输入参数的至少一个测试值,所述出参列表中包含所述目标应用程序涉及的多个输出参数的名称及每个输出参数的有效区间;a configuration interface output unit, configured to output a test configuration interface, where the test configuration interface includes an input parameter list and an output parameter list, where the input parameter list includes names of each of the input parameters involved in the target application and each Entering at least one test value of the parameter, where the parameter list includes a name of a plurality of output parameters involved in the target application and a valid interval of each output parameter;
    测试配置生成单元,用于当在所述测试配置界面中检测到配置操作时,根据所述配置操作生成所述目标应用程序的测试配置,所述测试配置包括输入配置和输出配置;a test configuration generating unit, configured to generate a test configuration of the target application according to the configuration operation when a configuration operation is detected in the test configuration interface, where the test configuration includes an input configuration and an output configuration;
    中,所述输入配置包括从所述入参列表中所选择的至少一个输入参数的名称及各输入参数的测试值;所述输出配置包括从所述出参列表中所选择的至少一个输出参数的名称。The input configuration includes a name of at least one input parameter selected from the input parameter list and a test value of each input parameter; the output configuration includes at least one output parameter selected from the output parameter list The name.
  11. 如权利要求10所述的装置,特征在于,所述输入配置调用单元包括: The device of claim 10, wherein the input configuration invoking unit comprises:
    目标代码定位单元,用于按照所述至少一个输入参数的名称在所述目标应用程序中定位至少一个目标代码;An object code positioning unit, configured to locate at least one object code in the target application according to a name of the at least one input parameter;
    变量修改单元,用于采用所述至少一个输入参数的测试值修改所述至少一个目标代码中的相应变量值;a variable modification unit, configured to modify a corresponding variable value in the at least one object code by using a test value of the at least one input parameter;
    目标代码运行单元,用于当所述目标应用程序运行至所述至少一个目标代码时,采用修改后的至少一个目标代码运行。The target code execution unit is configured to execute the modified at least one object code when the target application runs to the at least one object code.
  12. 如权利要求10所述的装置,特征在于,所述测试结果显示单元包括:The apparatus according to claim 10, wherein said test result display unit comprises:
    运行值监测单元,用于按照所述至少一个输出参数的名称监测所述目标应用程序在运行过程中生成的所述至少一个输出参数的运行值;a running value monitoring unit, configured to monitor, according to the name of the at least one output parameter, an operating value of the at least one output parameter generated by the target application during operation;
    运行值显示单元,用于显示所述至少一个输出参数的运行值。And a running value display unit for displaying an operating value of the at least one output parameter.
  13. 如权利要求12所述的装置,特征在于,所述运行值显示单元包括:The apparatus according to claim 12, wherein said operation value display unit comprises:
    窗口输出单元,用于在所述目标应用程序的运行界面之上输出悬浮层窗口;a window output unit, configured to output a floating layer window on a running interface of the target application;
    悬浮显示单元,用于在所述悬浮层窗口中实时显示所述至少一个输出参数的运行值。And a floating display unit, configured to display an operating value of the at least one output parameter in real time in the floating layer window.
  14. 如权利要求12所述的装置,特征在于,所述测试结果显示单元还包括:The device according to claim 12, wherein the test result display unit further comprises:
    有效判断单元,用于判断所述至少一个输出参数中各输出参数的运行值是否位于对应的有效区间内;The effective determining unit is configured to determine whether the running value of each of the at least one output parameter is located in a corresponding valid interval;
    告警提示单元,用于当所述至少一个输出参数中存在运行值超出对应的有效区间的输出参数时,输出告警提示。The alarm prompting unit is configured to output an alarm prompt when there is an output parameter in which the running value exceeds the corresponding valid interval in the at least one output parameter.
  15. 一种移动终端,包括:A mobile terminal includes:
    存储器,存储一组程序代码;以及a memory that stores a set of program code;
    处理器,用于执行所述程序代码以执行以下操作: a processor for executing the program code to perform the following operations:
    获取待测试的目标应用程序的测试配置,所述测试配置信息包括输入配置及输出配置,所述输入配置包括至少一个输入参数及各输入参数的测试值;所述输出配置包括至少一个输出参数;Obtaining a test configuration of the target application to be tested, the test configuration information including an input configuration and an output configuration, the input configuration including at least one input parameter and a test value of each input parameter; the output configuration including at least one output parameter;
    运行所述目标应用程序,并在所述目标应用程序的运行过程中调用所述输入配置;以及Running the target application and invoking the input configuration during operation of the target application;
    按照所述输出配置显示所述目标应用程序的测试结果。The test result of the target application is displayed according to the output configuration.
  16. 如权利要求15所述的移动终端,特征在于,所述获取待测试的目标应用程序的测试配置之前,所述程序代码还被执行以用于:The mobile terminal of claim 15, wherein said program code is further executed for: before said obtaining a test configuration of a target application to be tested:
    当检测到用于测试的应用程序编程接口API被调用时,输出应用程序列表,所述应用程序列表中包含至少一个应用程序的标识;以及Outputting a list of applications that include an identification of at least one application when it is detected that an application programming interface API for testing is invoked;
    从所述应用程序列表中选择待测试的应用程序的标识确定为目标应用程序的标识。The identifier of the application to be tested selected from the list of applications is determined as the identity of the target application.
  17. 如权利要求15或16所述的移动终端,特征在于,所述获取移动终端中待测试的目标应用程序的测试配置,包括:The mobile terminal according to claim 15 or 16, wherein the obtaining a test configuration of the target application to be tested in the mobile terminal comprises:
    输出测试配置界面,所述测试配置界面中包括入参列表和出参列表,所述入参列表中包含所述目标应用程序涉及的多个输入参数的名称及每个输入参数的至少一个测试值,所述出参列表中包含所述目标应用程序涉及的多个输出参数的名称及每个输出参数的有效区间;And outputting a test configuration interface, where the test configuration interface includes a parameter list and a parameter list, where the parameter list includes a name of multiple input parameters involved in the target application and at least one test value of each input parameter The parameter list includes a name of a plurality of output parameters involved in the target application and a valid interval of each output parameter;
    当在所述测试配置界面中检测到配置操作时,根据所述配置操作生成所述目标应用程序的测试配置,所述测试配置包括输入配置和输出配置;Generating a test configuration of the target application according to the configuration operation when a configuration operation is detected in the test configuration interface, the test configuration including an input configuration and an output configuration;
    中,所述输入配置包括从所述入参列表中所选择的至少一个输入参数的名称及各输入参数的测试值;所述输出配置包括从所述出参列表中所选择的至少一个输出参数的名称。The input configuration includes a name of at least one input parameter selected from the input parameter list and a test value of each input parameter; the output configuration includes at least one output parameter selected from the output parameter list The name.
  18. 如权利要求17所述的移动终端,特征在于,所述在所述目标应用程序的运行过程中调用所述输入配置,包括:The mobile terminal of claim 17, wherein the invoking the input configuration during the running of the target application comprises:
    按照所述至少一个输入参数的名称在所述目标应用程序中定位至少一个 目标代码;Locating at least one of the target applications in accordance with the name of the at least one input parameter Target code
    采用所述至少一个输入参数的测试值修改所述至少一个目标代码中的相应变量值;以及Modifying, by the test value of the at least one input parameter, a value of a corresponding variable in the at least one object code;
    当所述目标应用程序运行至所述至少一个目标代码时,采用修改后的至少一个目标代码运行。When the target application runs to the at least one object code, the modified at least one object code is run.
  19. 如权利要求17所述的移动终端,特征在于,所述按照所述输出配置显示所述目标应用程序的测试结果,包括:The mobile terminal according to claim 17, wherein the displaying the test result of the target application according to the output configuration comprises:
    按照所述至少一个输出参数的名称监测所述目标应用程序在运行过程中生成的所述至少一个输出参数的运行值;以及Monitoring, according to the name of the at least one output parameter, an operational value of the at least one output parameter generated by the target application during operation;
    显示所述至少一个输出参数的运行值。An operational value of the at least one output parameter is displayed.
  20. 如权利要求19所述的移动终端,特征在于,所述显示所述至少一个输出参数的运行值,包括:The mobile terminal of claim 19, wherein the displaying the running value of the at least one output parameter comprises:
    在所述目标应用程序的运行界面之上输出悬浮层窗口;以及Output a floating layer window on top of a running interface of the target application;
    在所述悬浮层窗口中实时显示所述至少一个输出参数的运行值。 An operating value of the at least one output parameter is displayed in real time in the floating layer window.
PCT/CN2016/078972 2015-09-22 2016-04-11 Application program testing method, testing apparatus, and mobile terminal WO2017049893A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510608954.5A CN106547684A (en) 2015-09-22 2015-09-22 A kind of method of testing of application program, test device and mobile terminal
CN201510608954.5 2015-09-22

Publications (1)

Publication Number Publication Date
WO2017049893A1 true WO2017049893A1 (en) 2017-03-30

Family

ID=58364410

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/078972 WO2017049893A1 (en) 2015-09-22 2016-04-11 Application program testing method, testing apparatus, and mobile terminal

Country Status (2)

Country Link
CN (1) CN106547684A (en)
WO (1) WO2017049893A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851521A (en) * 2018-07-26 2020-02-28 阿里巴巴集团控股有限公司 Data visualization method, device and storage medium
CN111708704A (en) * 2020-06-19 2020-09-25 腾讯科技(深圳)有限公司 Cloud real machine testing method and device, terminal and storage medium
CN111813613A (en) * 2020-07-20 2020-10-23 网易(杭州)网络有限公司 Test management method, test management device, electronic equipment and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109979444A (en) * 2017-12-27 2019-07-05 深圳市优必选科技有限公司 A kind of phonetic order automated testing method, terminal and device
CN109614319B (en) * 2018-11-14 2022-05-13 金色熊猫有限公司 Automatic testing method and device, electronic equipment and computer readable medium
CN111199353B (en) * 2019-12-31 2023-04-18 Oppo(重庆)智能科技有限公司 Test method and test system
CN111338939A (en) * 2020-02-21 2020-06-26 网易传媒科技(北京)有限公司 Application program debugging method, medium, device and computing equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1503136A (en) * 2002-11-21 2004-06-09 深圳市中兴通讯股份有限公司 Embedded software test method
CN101110024A (en) * 2007-08-14 2008-01-23 中兴通讯股份有限公司 Unit test system and method thereof
US20090007073A1 (en) * 2007-04-09 2009-01-01 International Business Machines Corporation Service testing method and service testing system
CN104268074A (en) * 2014-09-05 2015-01-07 北京广利核系统工程有限公司 Application software online debugging method based on DCS

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1277186C (en) * 2003-12-22 2006-09-27 联想(北京)有限公司 Software interface testing method
JP4218766B2 (en) * 2006-03-09 2009-02-04 インターナショナル・ビジネス・マシーンズ・コーポレーション Method, apparatus and program for testing scenarios

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1503136A (en) * 2002-11-21 2004-06-09 深圳市中兴通讯股份有限公司 Embedded software test method
US20090007073A1 (en) * 2007-04-09 2009-01-01 International Business Machines Corporation Service testing method and service testing system
CN101110024A (en) * 2007-08-14 2008-01-23 中兴通讯股份有限公司 Unit test system and method thereof
CN104268074A (en) * 2014-09-05 2015-01-07 北京广利核系统工程有限公司 Application software online debugging method based on DCS

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851521A (en) * 2018-07-26 2020-02-28 阿里巴巴集团控股有限公司 Data visualization method, device and storage medium
CN110851521B (en) * 2018-07-26 2024-03-12 阿里巴巴集团控股有限公司 Method, device and storage medium for data visualization
CN111708704A (en) * 2020-06-19 2020-09-25 腾讯科技(深圳)有限公司 Cloud real machine testing method and device, terminal and storage medium
CN111813613A (en) * 2020-07-20 2020-10-23 网易(杭州)网络有限公司 Test management method, test management device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN106547684A (en) 2017-03-29

Similar Documents

Publication Publication Date Title
WO2017049893A1 (en) Application program testing method, testing apparatus, and mobile terminal
CN107193750B (en) Script recording method and device
US10462029B2 (en) Device cloud monitoring and stability
CN107506300B (en) User interface testing method, device, server and storage medium
CN109992498B (en) Test case generation method and system and computer system
US10470133B2 (en) Electronic device and method for controlling application and component
CN106293914B (en) A kind of method and terminal of task schedule
WO2021208512A1 (en) Method and apparatus for acquiring control information of user interface, terminal and storage medium
Zhang et al. A comparison of energy bugs for smartphone platforms
CN107193714B (en) Alarm display method and device
WO2019144769A1 (en) Traffic switching method and apparatus, and computer device
US11057280B2 (en) User interface with expected response times of commands
CN107391362A (en) Application testing method, mobile terminal and storage medium
CN104156305A (en) Application program testing method and device
CN113986426A (en) Image detection method and device, readable medium and electronic equipment
TW201411382A (en) Operating method and apparatus of browser engine, browser and terminal using the same
US9075988B2 (en) Inferring security decisions from trusted users
CN111240678B (en) Pop-up window setting method and device, electronic equipment and storage medium
CN112817831A (en) Application performance monitoring method, device, computer system and readable storage medium
CN108293197B (en) Resource statistical method, device and terminal
CN111857854A (en) Shutdown resource loading method and device, storage medium and electronic equipment
CN103810087A (en) Method and device for testing performance of application program
CN113112217B (en) Business process configuration method, device, electronic equipment and computer readable medium
CN112631949B (en) Debugging method and device, computer equipment and storage medium
CN108520063A (en) Processing method, device and the terminal device of event log

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: 16847775

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.08.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16847775

Country of ref document: EP

Kind code of ref document: A1