CN111026657A - Method, computing device and medium for testing application in mobile terminal - Google Patents

Method, computing device and medium for testing application in mobile terminal Download PDF

Info

Publication number
CN111026657A
CN111026657A CN201911214590.7A CN201911214590A CN111026657A CN 111026657 A CN111026657 A CN 111026657A CN 201911214590 A CN201911214590 A CN 201911214590A CN 111026657 A CN111026657 A CN 111026657A
Authority
CN
China
Prior art keywords
mobile terminal
event
executing
loop
computing device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911214590.7A
Other languages
Chinese (zh)
Other versions
CN111026657B (en
Inventor
王翰
张洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hainan Chezhiyi Communication Information Technology Co ltd
Original Assignee
Hainan Chezhiyi Communication Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hainan Chezhiyi Communication Information Technology Co ltd filed Critical Hainan Chezhiyi Communication Information Technology Co ltd
Priority to CN201911214590.7A priority Critical patent/CN111026657B/en
Publication of CN111026657A publication Critical patent/CN111026657A/en
Application granted granted Critical
Publication of CN111026657B publication Critical patent/CN111026657B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention discloses a method for testing an application in a mobile terminal, a computing device and a medium, wherein the mobile terminal is coupled to the computing device, and the method is executed on the computing device and comprises the following steps: setting a test flow on the computing equipment, wherein the test flow comprises a front part, a circulating part, a monitoring part and a rear part; executing a front end portion to launch an application on the mobile terminal via communication between the computing device and the mobile terminal; executing the loop section after the execution of the preamble section is completed, so as to execute the event defined in the loop section on the application started in the mobile terminal; after the execution of the loop part is completed, executing a post part to close the application in the mobile terminal; and executing the monitoring section to acquire log information of the application during execution of the event defined in the loop section from the mobile terminal while executing the loop section and the post section.

Description

Method, computing device and medium for testing application in mobile terminal
Technical Field
The present invention relates to the field of application testing, and in particular, to a method, a computing device, and a medium for testing an application in a mobile terminal.
Background
With the large increase in the number of applications on mobile terminals, it is also increasingly important to test the applications of the mobile terminals. However, the cost of manually testing the application is high, the testing work is dull, and the research on the automatic application testing is promoted.
The existing testing method is to send an event to a mobile terminal, simulate operations such as clicking a screen, sliding and inputting characters, and test an application through a series of similar random events. Specifically, the method comprises the steps of storing a current test page in a mobile phone in a code writing mode, transmitting the current test page to a PC (personal computer) terminal for analysis, and calculating a required coordinate value by analyzing key points such as element names, so as to perform simulation operation. However, the method cannot analyze the page with the dynamic effect, so that the coordinate acquisition fails, the application test cannot be realized, and the test personnel needs to have certain editing technology, so that the use threshold is high.
For this reason, a new method of testing applications in a mobile terminal is required.
Disclosure of Invention
To this end, the present invention provides a method of testing applications in a mobile terminal in an attempt to solve, or at least alleviate, the problems presented above.
According to one aspect of the present invention, there is provided a method of testing an application in a mobile terminal, the mobile terminal being coupled to a computing device, the method being performed on the computing device and comprising the steps of: setting a test flow on the computing equipment, wherein the test flow comprises a front part, a circulating part, a monitoring part and a rear part; executing a front end portion to launch an application on the mobile terminal via communication between the computing device and the mobile terminal; executing the loop section after the execution of the preamble section is completed, so as to execute the event defined in the loop section on the application started in the mobile terminal; after the execution of the loop part is completed, executing a post part to close an application in the mobile terminal; and executing the monitoring section to acquire log information of the application during execution of the event defined in the loop section from the mobile terminal while executing the loop section and the post section.
Optionally, in the method for testing an application in a mobile terminal according to the present invention, the step of executing the loop part includes: determining a loop body to be executed in a loop, the loop body comprising a plurality of events; determining whether the execution mode of the loop body is a time loop or a number of times loop; and transmitting the determined mode to the mobile terminal.
Optionally, in the method for testing an application in a mobile terminal according to the present invention, an event included in the loop body is defined when a test flow is set; the time cycle is that the cycle body is cycled according to the set time; and the circulation by times is that the circulation body is circulated by set times.
Optionally, in the method for testing an application in a mobile terminal according to the present invention, setting a test flow on a computing device includes: a configuration file defining events; reading and analyzing the configuration file, and displaying the name of the event in the event list; and assembling the event selected by the user and the collected corresponding data.
Alternatively, in the method of testing an application in a mobile terminal according to the present invention, the performing the preamble part includes: collecting a command for executing an event; and transmitting the assembled event to the mobile terminal and executing the event in the mobile terminal.
Optionally, in the method of testing an application in a mobile terminal according to the present invention, the performing the post section includes: stopping executing the event executed in the mobile terminal, collecting and storing data generated during the event execution, and closing the application running in the mobile terminal.
Optionally, in the method for testing an application in a mobile terminal according to the present invention, the executing the monitoring part includes: acquiring a log file of an event when the event is executed in the mobile terminal; extracting logs in the log file; and displaying the extracted log.
Optionally, in the method for testing an application in a mobile terminal according to the present invention, the method further includes sending a command to suspend execution of the test flow to the mobile terminal during the test flow; and debugging the mobile terminal when the execution of the test flow is suspended.
According to one aspect of the present invention, there is provided a method of testing an application in a mobile terminal, the mobile terminal being coupled to a computing device, the computing device having defined therein a test flow, the test flow comprising a preamble portion, a loop portion, a monitoring portion and a back portion, the method being performed on the mobile terminal and comprising the steps of: executing a front-end part, starting an application according to communication between the computing equipment and the mobile terminal; executing a loop section to execute an event defined in the loop section on the started application after the execution of the front end section is completed; after the execution of the loop part is finished, executing a post part, stopping executing the event, and sending data generated during the execution of the event; and executing the monitoring portion to send log information of the application during the event defined in the execution loop portion to the computing device while executing the loop portion and the post portion.
Optionally, in the method for testing an application in a mobile terminal according to the present invention, the executing a loop part includes: the loop body is executed in a manner determined by the computing device.
Alternatively, in the method of testing an application in a mobile terminal according to the present invention, the performing the preamble part includes: and receiving and executing the assembled event sent by the computing device.
Optionally, in the method of testing an application in a mobile terminal according to the present invention, the performing the post section includes: and stopping executing the event, and sending data generated during the event execution to the computing device.
Optionally, in the method for testing an application in a mobile terminal according to the present invention, the executing the monitoring part includes: recording the process of event execution and generating a corresponding log file; sending the log file to the computing device.
Optionally, in the method for testing an application in a mobile terminal according to the present invention, the method further includes suspending execution of the test flow after receiving a command for suspending execution of the test flow sent by the computing device.
According to yet another aspect of the present invention, there is provided a computing device comprising: one or more processors; a memory; and one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs, when executed by the processors, implementing the steps of the method of testing applications in a mobile terminal as described above.
According to a further aspect of the invention there is provided a readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, carry out the steps of the method of testing an application in a mobile terminal as described above.
According to the method for testing the application in the mobile terminal, the whole testing process comprises a front part, a circulation part, a monitoring part and a back part, the application on the mobile device is started when the front part is executed, the event defined in the circulation part is executed on the started application when the circulation is executed, the monitoring part is executed at the same time, the log information of the application during the execution of the event defined in the circulation part is obtained, and finally the back part is executed, and the application on the mobile device is closed. Therefore, the purpose of configuring and sending the use case on the computing equipment, testing the application on the mobile equipment and returning the data for analysis is achieved, and the purpose of testing the application on the mobile equipment is achieved. The whole testing process can directly select the operation to be performed on the application without complicated programming by testing personnel, and the operation is circularly executed on the application to be tested, so that the automatic application testing is realized, the testing efficiency is improved, and the testing cost is reduced.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a block diagram of a computing device 100, according to one embodiment of the invention;
FIG. 2 illustrates a block diagram of a mobile terminal 200 according to one embodiment of the invention;
FIG. 3 shows a flow diagram of a method 300 of testing an application in a mobile terminal according to one embodiment of the invention;
FIG. 4 shows a flow diagram of a method 310 of setting a test flow according to one embodiment of the invention;
fig. 5 shows a flow diagram of a method 350 of performing a monitoring portion according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a block diagram of a computing device 100 according to an exemplary embodiment of the present invention. The method 300 of testing an application in a mobile terminal according to the present invention may be performed in a computing device 100. A mobile terminal 200 according to the present invention may be coupled to the computing device 100. In a basic configuration 102, computing device 100 typically includes system memory 106 and one or more processors 104. A memory bus 108 may be used for communication between the processor 104 and the system memory 106.
Depending on the desired configuration, the processor 104 may be any type of processing, including but not limited to: a microprocessor (μ P), a microcontroller (μ C), a Digital Signal Processor (DSP), or any combination thereof. The processor 104 may include one or more levels of cache, such as a level one cache 110 and a level two cache 112, a processor core 114, and registers 116. The example processor core 114 may include an Arithmetic Logic Unit (ALU), a Floating Point Unit (FPU), a digital signal processing core (DSP core), or any combination thereof. The example memory controller 118 may be used with the processor 104, or in some implementations the memory controller 118 may be an internal part of the processor 104.
Depending on the desired configuration, system memory 106 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 106 may include an operating system 120, one or more programs 122, and program data 124. In some implementations, the program 122 can be arranged to execute instructions on an operating system by one or more processors 104 using program data 124.
Computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to the basic configuration 102 via the bus/interface controller 130. The example output device 142 includes a graphics processing unit 148 and an audio processing unit 150. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 158. An example communication device 146 may include a network controller 160, which may be arranged to facilitate communications with one or more other computing devices 162 over a network communication link via one or more communication ports 164.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
Computing device 100 may be implemented as a server, e.g., a file server, a database server, an application server, etc., which may be, for example, a Personal Digital Assistant (PDA), a wireless web-browsing device, an application-specific device, or a hybrid device that include any of the above functions. Computing device 100 may also be implemented as a personal computer including both desktop and notebook computer configurations. In some embodiments, the computing device 100 is configured to perform a method 300 of testing an application in a mobile terminal.
Fig. 2 illustrates a block diagram of a mobile terminal 200 according to an embodiment of the present invention. As shown in fig. 2, the mobile terminal 200 may include a memory interface 202, one or more data processors, image processors and/or central processing units 204, and a peripheral interface 206.
The memory interface 202, the one or more processors 204, and/or the peripherals interface 206 can be discrete components or can be integrated in one or more integrated circuits. In the mobile terminal 200, the various elements may be coupled by one or more communication buses or signal lines. Sensors, devices, and subsystems can be coupled to peripheral interface 206 to facilitate a variety of functions.
For example, the acceleration sensor 210, the magnetic field sensor 212, and the gravity sensor 214 may be coupled to the peripheral interface 206, the acceleration sensor 210 may collect acceleration data in three coordinate axis directions of the body coordinate system, the magnetic field sensor 212 may collect magnetic field data (magnetic induction intensity) in three coordinate axis directions of the body coordinate system, the gravity sensor 214 may collect gravity data in three coordinate axes of the body coordinate system, and the above sensors may conveniently implement functions such as step counting, orientation, and intelligent horizontal and vertical screen switching. Other sensors 216 may also be coupled to the peripheral interface 206, such as a positioning system (e.g., a GPS receiver), a temperature sensor, a biometric sensor, or other sensing device, to facilitate related functions.
Camera subsystem 220 and optical sensor 222, which may be, for example, a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) optical sensor, may be used to facilitate implementation of camera functions such as recording photographs and video clips. Communication functions may be facilitated by one or more wireless communication subsystems 224, which may include radio frequency receivers and transmitters and/or optical (e.g., infrared) receivers and transmitters. The particular design and implementation of wireless communication subsystem 224 may depend on one or more communication networks supported by mobile terminal 200. For example, the mobile terminal 200 may include a communication subsystem 224 designed to support an LTE, 3G, GSM network, a GPRS network, an EDGE network, a Wi-Fi or WiMax network, and a Bluetooth network.
The audio subsystem 226 may be coupled with a speaker 228 and a microphone 230 to facilitate voice-enabled functions, such as voice recognition, voice replication, digital recording, and telephony functions. The I/O subsystem 240 may include a touchscreen controller 242 and/or one or more other input controllers 244. The touch screen controller 242 may be coupled to a touch screen 246. For example, the touch screen 246 and touch screen controller 242 may detect contact and movement or pauses made therewith using any of a variety of touch sensing technologies, including but not limited to capacitive, resistive, infrared, and surface acoustic wave technologies. One or more other input controllers 244 can be coupled to other input/control devices 248, such as one or more buttons, rocker switches, thumbwheels, infrared ports, USB ports, and/or pointing devices such as styluses. The one or more buttons (not shown) may include up/down buttons for controlling the volume of the speaker 228 and/or the microphone 230.
The memory interface 202 may be coupled with a memory 250. The memory 250 may include an internal memory such as, but not limited to, a Static Random Access Memory (SRAM), a non-volatile memory (NVRAM), and the like; the external memory may be, for example, a hard disk, a removable hard disk, a U disk, etc., but is not limited thereto. Memory 250 may store program instructions that may include, for example, an operating system 252 and applications 254. The operating system 252 may be, for example, Android, iOS, Windows Phone, etc., which includes program instructions for handling basic system services and for performing hardware-dependent tasks. The memory 250 may also store applications 254, which applications 254 may include program instructions for implementing various user-desired functions. The application 254 may be provided separately from the operating system or may be native to the operating system. In addition, a driver module may also be added to the operating system when the application 254 is installed in the mobile terminal 200. While the mobile terminal is running, the operating system 252 is loaded from memory 250 and executed by the processor 204. The application 254, when running, is also loaded from the memory 250 and executed by the processor 204. The application 254 runs on top of an operating system, and utilizes the operating system and interfaces provided by underlying hardware to implement various user-desired functions, such as instant messaging, web browsing, picture management, sports and leisure, and the like. Among the various applications 254 described above, one of which is an application tested by the method 300 of testing applications in a mobile terminal according to the present invention, the process 204 may perform the method 300 of testing applications in a mobile terminal to test applications.
Fig. 3 shows a flow diagram of a method 300 of testing an application in a mobile terminal according to one embodiment of the invention. As shown in FIG. 3, the method begins at step S310, where a test flow is set on the computing device 100, the test flow including a front portion, a loop portion, a monitor portion, and a back portion at step S310. The set test flow is used to test an application running on the mobile terminal 200.
The computing device 100 stores therein an event library including a plurality of events, an event being an action simulating an operation of a finger, a gesture, etc. on an application running in the mobile terminal 200, and according to an embodiment, the events include clicking, sliding, closing, and starting. It should be noted that the present invention is not limited by the kind of the listed actions, and any action of operating an application running in the mobile terminal 200 may be taken as an event, determined as needed, without departing from the scope of the present invention. The event library stores the name of each event and the corresponding implementation method.
Fig. 4 shows a specific example of the setup test flow adapted to perform the processing in step S310 according to an embodiment of the present invention. Yaml, as shown in fig. 4, in step S311, a configuration file config of the event is defined, including setting a specific implementation method of the event on the application. The defined event includes the name of the event and the corresponding implementation method, and one example of the format is as follows:
keyevent is system event, implementation;
sleep, implementation mode.
Subsequently, in step S312, the event list pull-down control ComboBox reads and parses the profile config.yaml of the event defined in the previous step, and displays the name of the event in the event list.
And after reading and analyzing, popping up data acquisition Dialog corresponding to the event clicked by the user, wherein the event clicked by the user is an event which needs to be executed on the application by the user. Step 313 is executed to collect data of the event clicked by the user through data collection Dialog. The data includes coordinates of a click operation on the screen, and coordinates of a start point and an end point of a slide operation on the screen. It should be noted that the invention is not limited by the kind of data listed, and any data required for executing an event, determined as required, may be used as the data input by the user without departing from the scope of the invention.
When it is monitored that the user has finished inputting all the required data and clicks "ok", step S314 is executed to assemble the defined event with the collected data input by the user. Steps S311-S314 can be performed multiple times to add multiple events until all events have been added. And after all the events executed on the application are added, displaying all the added events and corresponding data on a main page. Each event displayed on the main page can be temporarily cancelled, or deleted. The temporary cancellation means that the event is temporarily suspended, and the event after the temporary cancellation can be recovered and normally executed without performing any operation including execution.
After the configuration event is completed, the user can call the export function module after clicking the export button of the tool interface, analyze the ToggleButton element of the current tool interface and acquire the parameter value. After the data is structured, the configured event is saved as a configuration file in the yaml format. Meanwhile, the user can click an import button to import the stored configuration file. The imported configuration file can be executed together with the configured file, rich import and export functions support repeated execution of configured events, and the events of configuration testing processes in each application testing process are saved.
After the configuration event is completed, a TogglEbutton button is further generated on the tool interface, and the user can click the TogglEbutton button to display the configured event.
Returning to the method described in connection with FIG. 3, after the test flow is set up in step S310, a thread A1 is defined, and step S320 is performed to execute the front end portion to launch an application on the mobile terminal 200 via communication between the computing device 100 and the mobile terminal 200.
The method specifically comprises the following steps: step S321 is executed, a cmd command input by a user is collected, and the executable cmd command is transmitted to a configured event;
subsequently, step S322 is performed, the assembled event is transmitted to the mobile terminal 200, and the event in the preamble section is performed in the thread a 1. Thread a1 completes execution and then performs the subsequent steps, and the subsequent parts are not executed. A
For the mobile terminal 200, step S361 is executed to receive the assembled event sent by the computing device, execute the received event on the started application, and execute the event set by the computing device 100 in the front part.
According to an embodiment of the present invention, after the front end portion is completed, the computing device performs step S330, defining a thread a2, executing the loop portion in the thread a2, so as to execute the event defined in the loop portion on the application launched in the mobile terminal 200.
The method specifically comprises the following steps: in step S331, a loop body to be executed in a loop section in a loop is confirmed, the loop body including a plurality of events, defined when the test flow is set. Confirming the loop body means determining which basic events are to be executed in a loop by an application running on the mobile terminal 200, and executing the basic events in a loop as a loop body.
Subsequently, in step S332, it is determined whether the manner of execution of the loop body is to loop by time or loop by number. The time-based circulation is that the circulation body is circulated according to set time, and the times of circulation is that the circulation body is circulated according to set times.
Subsequently, the result of the judgment in step S332, that is, the determined execution manner is transmitted to the mobile terminal 200.
Upon receiving the determined execution mode of the loop body, the mobile terminal 200 executes step S362 to execute the event in the loop body according to the determined mode. And when the judgment result is that the circulation body is circulated according to the time, circulating the circulation body in a preset time, and stopping executing the circulation body when the time for continuously executing the circulation body reaches the preset time. And when the judgment result is that the circulation is performed according to the number of times, circulating the circulation body within the preset number of times, and stopping executing the circulation body when the number of times of continuously executing the circulation body reaches the preset number of times.
According to one embodiment of the invention, after the loop portion is complete, the computing device executes step S340 to define a thread a4, and in thread a4, executes the post portion to close the running application at the mobile terminal.
For the mobile terminal 200, step S363 is executed to stop executing the event executed in the mobile terminal, and to transmit data generated at the time of executing the event to the computing device 100.
The computing apparatus 100 stores the data transmitted from the mobile terminal 200 upon reception. And after the execution of the later part is finished, the test flow is finished.
Subsequently, step S350 is executed to define one thread a3 while executing the loop part and the post part, and the monitoring part is executed to acquire log information of the application during the event defined in the execution loop part from the mobile terminal.
For the mobile terminal 200, step S364 is performed to record the process of event execution and generate a log file, and then step S365 is performed to transmit the generated log file to the computing device.
In the computing device, fig. 5 shows a specific example of the execution monitoring section adapted to perform the processing in step S350 according to an embodiment of the present invention. As shown in fig. 5, in step S351, a TextCtrl presentation component T1 is generated at the tool interface, which presents a log generated when an event is executed on an application of the mobile terminal;
subsequently, step S352 is executed to obtain a log file of the event executed on the application of the mobile terminal, and the log file is transmitted to the computing device by the mobile terminal.
Subsequently, step S353 is executed to extract the log in the log file. The logs in the log file include logs of different levels. The different levels include error, warning, general, debug. Wherein, the error level is the highest, and the debugging level is the lowest. And extracting logs which need to be viewed by the user by using the filter, namely calling the logs with the level greater than or equal to the set level of the user.
Subsequently, step S354 is executed to present the extracted log in the TextCtrl presentation component T1.
During the whole test flow execution process, the condition that debugging is needed or the equipment is temporarily abnormal may occur, and the flow needs to be suspended or stopped. The testing process of method 300 may also include pausing or stopping the entire testing process while in progress, according to one embodiment of the invention. The method comprises the following steps: and defining pause and stop marks, and implanting the marks into an execution thread, wherein the thread has two states of pause and stop and is used for controlling the overall flow of the thread.
When the pause is needed, the mode taking operation is carried out on the pause state, namely the pause is carried out, namely the get% 2, and the test flow can be paused and continuously executed. And when stopping is needed, sending a stop signal to the whole thread group, thereby finishing the whole test flow. The time for restarting the whole test flow is saved, and the controllability of the test flow is improved.
An example of the implementation of the overall test flow of the present invention is as follows:
adding an opening APP component in a front module, inputting a packet name, adding a sleep component, and inputting time for executing cycle execution;
adding a swap component in a circulation module, inputting direction, speed and distance, and adding twice;
adding a logcat component in a monitoring module, and capturing a log;
adding a closing APP component in the post simulation, and inputting a packet name;
and finally, selecting the execution time for 5 minutes, clicking to execute according to the steps, and after the execution is finished, storing the testing steps and the app logcat in the designated log, so that the testing personnel can conveniently check the logs.
The invention can complete a group of test cases only in a short time during the whole operation, thereby greatly saving the time of testers, improving the efficiency, and carrying out persistence on the whole test process, thereby being more convenient to find problems.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U.S. disks, floppy disks, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the multilingual spam-text recognition method of the present invention according to instructions in said program code stored in the memory.
By way of example, and not limitation, readable media may comprise readable storage media and communication media. Readable storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
A8: the method of a1, further comprising sending a command to the mobile terminal to suspend execution of the test flow while the test flow is in progress; and debugging the mobile terminal when the execution of the test flow is suspended.
B10: the method of B9, wherein the performing the loop portion comprises: executing the loop body in an execution manner determined by the computing device.
B11: the method of B9, wherein the executing the preamble portion comprises: and receiving and executing the assembled event sent by the computing device.
B12: the method of B9, wherein the performing the post component comprises: stopping executing the event, and sending data generated when the event is executed to the computing device.
B14: the method of B9, further comprising suspending execution of the test flow upon receipt of a command sent by the computing device to suspend execution of the test flow.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with examples of this invention. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense, and the scope of the present invention is defined by the appended claims.

Claims (10)

1. A method of testing an application in a mobile terminal, the mobile terminal coupled to a computing device, the method executed on the computing device and comprising the steps of:
setting a test flow on the computing equipment, wherein the test flow comprises a front part, a circulating part, a monitoring part and a back part;
executing the front end portion to launch the application on the mobile terminal via communication between the computing device and the mobile terminal;
executing the loop section after the front section execution is completed, so as to execute the event defined in the loop section on the application started in the mobile terminal;
executing the post section to close the application in the mobile terminal after the execution of the loop section is completed; and
the monitoring portion is executed while the loop portion and the post portion are executed to acquire log information of the application during execution of the event defined in the loop portion from the mobile terminal.
2. The method of claim 1, wherein the step of executing the loop portion comprises:
determining a loop body to be executed in a loop, the loop body comprising a plurality of events;
determining whether the loop body is executed in a time-wise loop or a number of times;
and sending the determined mode to the mobile terminal.
3. The method of claim 2, wherein the loop body includes events defined when the test flow is set up;
the time-based circulation is to circulate the circulation body according to a set time; and
the number-based circulation is to circulate the circulation body according to the set times.
4. The method of claim 1, wherein said setting up a test flow on said computing device comprises: a profile defining the event;
reading and analyzing the configuration file, and displaying the name of the event in an event list;
and assembling the event selected by the user and the collected corresponding data.
5. The method of claims 1-4, wherein the performing the preamble portion comprises: collecting a command for executing the event;
and sending the assembled event to the mobile terminal and executing the event in the mobile terminal.
6. The method of claim 1, wherein the performing the post component comprises: stopping executing the event executed in the mobile terminal, collecting and storing data generated during the event execution, and closing the application running in the mobile terminal.
7. The method of claim 1, wherein the executing the monitoring portion comprises: acquiring a log file of an event when the event is executed in the mobile terminal;
extracting logs in the log file;
and displaying the extracted log.
8. A method of testing an application in a mobile terminal, the mobile terminal coupled to a computing device, the computing device having defined therein a test flow, the test flow comprising a preamble portion, a loop portion, a monitoring portion and a back portion, the method being performed on the mobile terminal and comprising the steps of:
executing the front end part, and starting the application according to the communication between the computing equipment and the mobile terminal;
executing the loop portion after the front portion execution is completed, executing the event defined in the loop portion on the started application;
after the execution of the loop part is finished, the post part is executed, the execution of the event is stopped, and data generated during the execution of the event is sent; and
executing the monitoring portion while executing the loop portion and the post portion, sending log information of the application during execution of the event defined in the loop portion to the computing device.
9. A computing device, comprising:
at least one processor; and
at least one memory including computer program instructions;
the at least one memory and the computer program instructions are configured to, with the at least one processor, cause the computing device to perform the method of any of claims 1-8.
10. A readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform the method of any of claims 1-8.
CN201911214590.7A 2019-12-02 2019-12-02 Method, computing device and medium for testing application in mobile terminal Active CN111026657B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911214590.7A CN111026657B (en) 2019-12-02 2019-12-02 Method, computing device and medium for testing application in mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911214590.7A CN111026657B (en) 2019-12-02 2019-12-02 Method, computing device and medium for testing application in mobile terminal

Publications (2)

Publication Number Publication Date
CN111026657A true CN111026657A (en) 2020-04-17
CN111026657B CN111026657B (en) 2023-05-26

Family

ID=70203959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911214590.7A Active CN111026657B (en) 2019-12-02 2019-12-02 Method, computing device and medium for testing application in mobile terminal

Country Status (1)

Country Link
CN (1) CN111026657B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559325A (en) * 2020-12-02 2021-03-26 海南车智易通信息技术有限公司 Application program testing system and method, computing device and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110060948A1 (en) * 2009-09-09 2011-03-10 Beebe Simon Diagnostics methods for a communications device
CN103092756A (en) * 2013-01-08 2013-05-08 彭勇 Interactive automated testing system and method thereof
CN105868105A (en) * 2016-03-24 2016-08-17 厦门美图移动科技有限公司 Application traversal testing method and device, and mobile terminal
CN107656866A (en) * 2017-09-06 2018-02-02 厦门美图移动科技有限公司 A kind of method, mobile terminal and computing device tested using fluency

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110060948A1 (en) * 2009-09-09 2011-03-10 Beebe Simon Diagnostics methods for a communications device
CN103092756A (en) * 2013-01-08 2013-05-08 彭勇 Interactive automated testing system and method thereof
CN105868105A (en) * 2016-03-24 2016-08-17 厦门美图移动科技有限公司 Application traversal testing method and device, and mobile terminal
CN107656866A (en) * 2017-09-06 2018-02-02 厦门美图移动科技有限公司 A kind of method, mobile terminal and computing device tested using fluency

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
彭澄廉,吴百锋,李伟,王海洪: "并行分布式计算机样机的监测测试" *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559325A (en) * 2020-12-02 2021-03-26 海南车智易通信息技术有限公司 Application program testing system and method, computing device and readable storage medium
CN112559325B (en) * 2020-12-02 2024-02-23 海南车智易通信息技术有限公司 Application program testing system, method, computing device and readable storage medium

Also Published As

Publication number Publication date
CN111026657B (en) 2023-05-26

Similar Documents

Publication Publication Date Title
CN109240576B (en) Image processing method and device in game, electronic device and storage medium
CN107025165B (en) Game automation test method and related device
CN108874268B (en) User behavior data acquisition method and device
CN110362483B (en) Performance data acquisition method, device, equipment and storage medium
CN105955881B (en) A kind of automatic test step is recorded and back method and device
CN109814801A (en) Using login method, device, terminal and storage medium
CN107491383A (en) Catching method, device and the mobile terminal of application crashes Operation Log
CN112394864B (en) Information acquisition method and device, computer equipment and storage medium
CN111552633A (en) Interface abnormal call testing method and device, computer equipment and storage medium
CN112241361A (en) Test case generation method and device and problem scene automatic reproduction method and device
CN109947635A (en) A kind of data reporting method, device, storage medium and terminal device
CN109144834B (en) User behavior data acquisition method and device, android system and terminal equipment
CN107656866A (en) A kind of method, mobile terminal and computing device tested using fluency
CN111538608A (en) Method for preventing terminal equipment from being down, terminal equipment and storage medium
CN111026657B (en) Method, computing device and medium for testing application in mobile terminal
CN113609028A (en) Page testing method, computing device and readable storage medium
CN111128139A (en) Non-invasive voice test method and device
CN109933260A (en) Know screen method, apparatus, terminal and storage medium
CN107544248B (en) Task optimization method and device in mobile robot
US20210342755A1 (en) Verification of proof of work using computer vision and/or machine learning
CN106408560B (en) Method and device for rapidly acquiring effective image
CN111782504B (en) Application program abnormality diagnosis method, mobile terminal and readable storage medium
CN111931465B (en) Method and system for automatically generating user manual based on user operation
CN110750193B (en) Scene topology determination method and device based on artificial intelligence
CN110262856B (en) Application program data acquisition method, device, terminal and storage medium

Legal Events

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