CN111026657B - 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
CN111026657B
CN111026657B CN201911214590.7A CN201911214590A CN111026657B CN 111026657 B CN111026657 B CN 111026657B CN 201911214590 A CN201911214590 A CN 201911214590A CN 111026657 B CN111026657 B CN 111026657B
Authority
CN
China
Prior art keywords
mobile terminal
executing
event
computing device
loop
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.)
Active
Application number
CN201911214590.7A
Other languages
Chinese (zh)
Other versions
CN111026657A (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 applications in a mobile terminal, a computing device and a medium, wherein the mobile terminal is coupled to the computing device, the method is executed on the computing device, and the method comprises the following steps: setting a test flow on the computing equipment, wherein the test flow comprises a front part, a circulation part, a monitoring part and a rear part; executing the preamble to launch an application on the mobile terminal via communication between the computing device and the mobile terminal; after the front-end section execution is completed, executing a loop section to execute the event defined in the loop section on the application started in the mobile terminal; executing the post-part after the loop part is executed, so as to close the application in the mobile terminal; and executing the monitoring section while executing the loop section and the post section so as to acquire log information of the application during the event defined in the execution loop section from the mobile terminal.

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 applications in a mobile terminal.
Background
With the great increase in the number of applications on mobile terminals, it is also increasingly important to test applications of mobile terminals. However, the manual test cost for the application is high, the test work is also quite boring, and the research on the application automation test is promoted.
The existing test method is to test the application through a series of similar random events by sending events to the mobile terminal, simulating operations such as clicking on a screen, sliding, inputting characters and the like. The method specifically comprises the steps of storing a current test page to a mobile phone in a code writing mode, transmitting the current test page to a PC end for analysis, and calculating required coordinate values through analyzing key points such as element names and the like 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 a tester is required to have a certain braiding 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 effort to solve or at least alleviate the above-presented problems.
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 circulation part, a monitoring part and a rear part; executing the preamble to launch an application on the mobile terminal via communication between the computing device and the mobile terminal; after the front-end section execution is completed, executing a loop section to execute the event defined in the loop section on the application started in the mobile terminal; executing a post-part after the loop part is executed, so as to close the application in the mobile terminal; and executing the monitoring section while executing the loop section and the post section so as to acquire log information of the application during the event defined in the execution loop section from the mobile terminal.
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 loop body is executed in a time loop or a frequency loop; the determined manner is sent 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 a cyclic body is defined when a test flow is set; the time circulation is to circulate the circulation body according to the set time; and circulating the circulating body by a set number of times according to the number of times.
Optionally, in the method for testing an application in a mobile terminal according to the present invention, setting a test procedure on a computing device includes: defining a configuration file of the event; 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.
Optionally, in the method for testing an application in a mobile terminal according to the present invention, executing the preamble includes: collecting a command for executing an event; the assembled event is transmitted to and executed in the mobile terminal.
Optionally, in the method for testing an application in a mobile terminal according to the present invention, executing the post-portion includes: and stopping executing the event executed in the mobile terminal, collecting and storing data generated when the event is executed, 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 performing the monitoring part includes: acquiring a log file of an event when the event is executed in the mobile terminal; extracting a log in a log file; and displaying the extracted log.
Optionally, in the method for testing an application in a mobile terminal according to the present invention, a command to suspend execution of the test procedure is further sent to the mobile terminal during the test procedure; and when the execution of the test flow is suspended, the mobile terminal can be debugged.
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 a test flow defined therein, the test flow comprising a preamble portion, a loop portion, a monitoring portion and a postamble portion, the method being performed on the mobile terminal and comprising the steps of: executing the front-end part, and starting an application according to communication between the computing device and the mobile terminal; executing the loop portion after the pre-portion execution is completed, executing the event defined in the loop portion on the launched application; after the execution of the circulation part is completed, executing the post part, stopping executing the event, and sending data generated when the event is executed; and while executing the loop portion and the post portion, executing the monitoring portion, sending log information of the application during the event defined in the execution loop portion to the computing device.
Optionally, in the method for testing an application in a mobile terminal according to the present invention, executing the loop part includes: the loop body is executed in a manner determined by the computing device to execute.
Optionally, in the method for testing an application in a mobile terminal according to the present invention, executing the preamble includes: an assembled event sent by the computing device is received and executed.
Optionally, in the method for testing an application in a mobile terminal according to the present invention, executing the post-portion includes: the execution of the event is stopped and data generated when the event is executed is transmitted to the computing device.
Optionally, in the method for testing an application in a mobile terminal according to the present invention, the performing the monitoring part includes: recording the executing process of the event and generating a corresponding log file; a log file is sent 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 procedure after receiving a command sent by the computing device to suspend execution of the test procedure.
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, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, which when executed by the processor implement the steps of the method of testing applications in a mobile terminal as described above.
According to yet another aspect of the present 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, implement the steps of the method of testing applications in a mobile terminal as described above.
According to the method for testing the application in the mobile terminal, the whole testing flow comprises a front part, a circulation part, a monitoring part and a rear 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, meanwhile, the monitoring part is executed, log information of the application during the period of executing the event defined in the circulation part is acquired, and finally the rear part is executed to close the application on the mobile device. The method and the device have the advantages that the use cases are configured and sent on the computing equipment, the application is tested on the mobile equipment, and data are returned for analysis, so that the purpose of testing the application on the transfer equipment is achieved. The whole test flow can directly select the operation to be performed on the application without complex programming of a tester, and the operation is circularly performed on the application to be tested, so that the automatic test on the application is realized, the test efficiency is improved, and the test cost is reduced.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
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 set forth the various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to fall within the scope of the claimed subject matter. The above, as well as additional objects, features, and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Like reference numerals generally refer to like parts or elements throughout the present disclosure.
FIG. 1 illustrates 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 present invention;
FIG. 3 illustrates a flow chart of a method 300 of testing applications in a mobile terminal according to one embodiment of the invention;
FIG. 4 illustrates a flow chart of a method 310 of setting up a test flow according to one embodiment of the invention;
fig. 5 shows a flow chart of a method 350 of executing 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 in accordance with an exemplary embodiment of the present invention. The method 300 of testing applications in a mobile terminal according to the present invention may be performed in the computing device 100. The 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 a system memory 106 and one or more processors 104. The 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 information processor (DSP), or any combination thereof. The processor 104 may include one or more levels of caches, such as a first level cache 110 and a second level 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. The system memory 106 may include an operating system 120, one or more programs 122, and program data 124. In some implementations, the program 122 may be arranged to execute instructions on an operating system by the one or more processors 104 using the 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 basic configuration 102 via 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 communication with one or more other computing devices 162 via one or more communication ports 164 over a network communication link.
The 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 in a modulated data signal, such as a carrier wave or other transport mechanism. A "modulated data signal" may be a signal that has one or more of its data set or changed 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 special purpose network, and 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, such as a file server, database server, application server, etc., such as a Personal Digital Assistant (PDA), a wireless web-browsing device, an application-specific device, or a hybrid device that may include any of the above functions. Computing device 100 may also be implemented as a personal computer including desktop and notebook computer configurations. In some embodiments, the computing device 100 is configured to perform the method 300 of testing applications in a mobile terminal.
Fig. 2 illustrates a block diagram of a mobile terminal 200 according to one embodiment of the present invention. As shown in fig. 2, mobile terminal 200 may include a memory interface 202, one or more processors 204, and a peripheral interface 206.
The memory interface 202, the one or more processors 204, and/or the peripheral interface 206 may be discrete components or 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 may be coupled to peripheral interface 206 to facilitate various 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 machine body coordinate system, the magnetic field sensor 212 may collect magnetic field data (magnetic induction) in three coordinate axis directions of the machine body coordinate system, the gravity sensor 214 may collect gravity data in three coordinate axis directions of the machine body coordinate system, and the above sensors may facilitate functions of step counting, orientation, intelligent switching of horizontal and vertical screens, and the like. 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 relevant functions.
The camera subsystem 220 and the optical sensor 222, which may be, for example, charge Coupled Device (CCD) or Complementary Metal Oxide Semiconductor (CMOS) optical sensors, 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 the wireless communication subsystem 224 may depend on the one or more communication networks supported by the mobile terminal 200. For example, the mobile terminal 200 may include a communication subsystem 224 designed to support LTE, 3G, GSM networks, GPRS networks, EDGE networks, wi-Fi or WiMax networks, and bluetooth networks.
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 touch screen 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 can detect contact and movement or suspension 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 may 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 a stylus. The one or more buttons (not shown) may include up/down buttons for controlling the volume of speaker 228 and/or microphone 230.
The memory interface 202 may be coupled to a memory 250. The memory 250 may include an internal memory such as a Static Random Access Memory (SRAM), a non-volatile memory (NVRAM), etc., but is not limited thereto; the external memory may be, for example, a hard disk, a removable hard disk, a usb disk, or the like, but is not limited thereto. Memory 250 may store program instructions, which 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 performing hardware dependent tasks. Memory 250 may also store an application 254, and application 254 may include program instructions for implementing various user-desired functions. The applications 254 may be provided separately from the operating system or may be native to the operating system. In addition, when an application 254 is installed in the mobile terminal 200, a driver module may also be added to the operating system. An operating system 252 is loaded from memory 250 and executed by processor 204 when the mobile terminal is in operation. The application 254 is also loaded from the memory 250 and executed by the processor 204 at runtime. Applications 254 run on top of the operating system and utilize interfaces provided by the operating system and underlying hardware to implement various user-desired functions such as instant messaging, web browsing, picture management, sports and leisure, etc. Of the various applications 254 described above, one of which is an application tested by the method 300 of testing an application in a mobile terminal according to the present invention, the processor 204 may perform the method 300 of testing an application in a mobile terminal to test the application.
Fig. 3 shows a flow chart 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 for testing the application running on the mobile terminal 200.
The computing device 100 has stored therein a library of events, including a plurality of events, an event being an action simulating a finger, gesture, etc. operating an application running in the mobile terminal 200, the events including clicking, sliding, closing, and starting according to one embodiment. It should be noted that the present invention is not limited to the listed types of actions, and any action that operates an application running in the mobile terminal 200 may be used as an event, as determined according to the need, without departing from the scope of the present invention. The name of each event and the corresponding implementation method are stored in the event library.
Fig. 4 shows a specific example of a setup test procedure suitable for performing the processing in step S310 according to one embodiment of the present invention. As shown in fig. 4, in step S311, a configuration file config. Yaml 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:
keyvent, system event, implementation;
sleep, the realization mode.
Subsequently, in step S312, the event list drop-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.
After reading and analyzing are finished, popping up data acquisition dialogs corresponding to events clicked by the user, wherein the events clicked by the user are events which the user needs to execute on the application. Step S313 is executed to collect data of the event clicked by the user through the data collection Dialog. The data includes coordinates of a click operation on the screen, coordinates of a start point and an end point of a slide operation on the screen. It should be noted that the present invention is not limited to the listed types of data, any data needed to perform an event may be used as user entered data, as determined by the needs, without departing from the scope of the present invention.
When it is monitored that the user has completed inputting all the required data, after clicking "ok", step S314 is performed 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 canceled or deleted. Temporary cancellation means that an event is temporarily suspended, any operation including execution is not performed, and the event after temporary cancellation can be restored and normally executed.
After the configuration event is completed, after the user clicks the export button of the tool interface, the export function module can be called, and the ToggleButton element of the current tool interface is analyzed and parameter values are obtained. After the data is structured, the configured event is saved as a configuration file in a yaml format. Meanwhile, the user can click the import button to import the saved configuration file. The imported configuration file can be executed together with the configuration file, and abundant import and export functions support repeated execution of configured events, so that the events of configuration test flows in each application test are saved.
After the configuration event is completed, a ToggleButton button is also generated on the tool interface, and the configured event can be displayed when the user clicks the ToggleButton button.
Returning to the method described in connection with fig. 3, after the test flow is set in step S310, a thread A1 is defined, step S320 is performed, and the preamble is executed 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, the cmd command input by the user is collected, and the executable cmd command is transmitted into the event of configuration completion;
subsequently, step S322 is performed to transmit the assembled event to the mobile terminal 200, and the event in the preamble is performed in the thread A1. After the thread A1 is executed, the subsequent steps are executed, and no subsequent parts are executed. A step of
For the mobile terminal 200, step S361 is performed to accept the assembled event transmitted by the computing device, and to execute the accepted event on the started application, performing the event set by the computing device 100 in the front part.
After the front-end execution is completed, the computing device, according to one embodiment of the present invention, performs step S330 to define a thread A2, and executes the loop portion in the thread A2 to execute the event defined in the loop portion on the application started in the mobile terminal 200.
The method specifically comprises the following steps: in step S331, a loop body to be circularly executed in the loop section is confirmed, the loop body including a plurality of events, defined at the time of setting the test flow. The validation loop body determines which basic events are to be executed in a loop by an application running on the mobile terminal 200, and the basic events are executed in a loop body.
Subsequently, in step S332, it is determined whether the execution of the loop body is time-cycled or time-cycled. The time circulation is to circulate the circulation body according to the set time, and the time circulation is to circulate the circulation body according to the set times.
Subsequently, the result of the judgment in step S332, i.e., the determined execution manner, is transmitted to the mobile terminal 200.
After 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 is performed 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 carried out according to the number of times, the circulation body is circulated within the preset times, and when the times of continuously executing the circulation body reach the preset times, the execution of the circulation body is stopped.
According to one embodiment of the invention, the computing device, after the loop portion is completed, performs step S340 to define a thread A4, and in the thread A4, performs the post-portion to close the running application at the mobile terminal.
For the mobile terminal 200, step S363 is performed to stop execution of the event executed in the mobile terminal, and data generated when the event is executed is transmitted to the computing device 100.
The computing device 100 saves the data sent by the mobile terminal 200 upon receipt thereof. After the execution of the rear part is finished, the test flow is finished.
Subsequently, step S350 is performed to define one thread A3 while the loop part and the post part are being executed, and the monitoring part is being executed to acquire log information applied 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 event-performed process 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 one embodiment of the present invention. As shown in fig. 5, in step S351, a TextCtrl presentation component T1 is generated at the tool interface, presenting a log generated when the event is executed on the application of the mobile terminal;
subsequently, step S352 is performed to obtain a log file of the event when it is executed on the application of the mobile terminal, the log file being sent by the mobile terminal to the computing device.
Subsequently, step S353 is performed, and the log in the log file is extracted. The logs in the log file include logs of different levels. Different levels include errors, warnings, general, debug. Wherein, the error level is highest, and the debug level is lowest. And extracting the logs which the user needs to view by using the filter, namely calling the logs which are greater than or equal to the user set level.
Subsequently, step S354 is performed to display the extracted log in TextCtrl display component T1.
During the whole test flow execution process, the situation that debugging is needed or equipment is temporarily abnormal may occur, and the flow needs to be suspended or stopped. According to one embodiment of the invention, the test flow of method 300 may further include pausing or stopping the entire test flow during execution. Comprising the following steps: and defining the path and stop marks, implanting the marks into an execution thread, wherein the thread has two states, namely the path and the stop, and is used for controlling the overall flow of the thread.
When the pause is needed, the pause state is subjected to the modulo operation, namely the pause.get%2, so that the pause and the continuous execution of the test flow can be realized. And when stopping is needed, a stop signal is sent to the whole thread group, so that the whole test flow is ended. The time for restarting the whole test flow is saved, and the controllability of the test flow is increased.
An example of implementation of the entire test flow of the present invention is as follows:
in the front-end module, adding and opening an APP component, inputting a packet name, adding a sleep component, and inputting the time for performing cyclic execution;
in the circulation module, adding a swipe component, inputting a direction, a speed and a distance, and adding twice;
adding a locator component into the monitoring module to capture log;
in the post simulation, adding and closing an APP component, and inputting a package name;
finally, the clicking can be executed according to the steps after the execution time is 5 minutes, and the tested steps and app location can be stored in the appointed log after the execution is completed, so that the testing personnel can conveniently check the log.
The whole operation of the invention only needs a short time to finish a group of test cases, thereby greatly saving the time of testers, improving the efficiency, and realizing persistence of the whole test process, and being more convenient for finding out 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 of the methods and apparatus of the present invention, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U-drives, floppy diskettes, 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 multi-lingual spam text recognition method of the present invention in accordance with instructions in said program code stored in the memory.
By way of example, and not limitation, readable media comprise readable storage media and communication media. The readable storage medium stores 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 procedure while the test procedure is in progress; and debugging the mobile terminal when the test flow is suspended.
B10: b9, wherein the performing the loop portion comprises: the loop body is executed in a manner determined by the computing device to execute.
B11: b9, wherein the executing the preamble portion comprises: and receiving and executing the assembled event sent by the computing device.
B12: b9, wherein the executing the post-portion comprises: stopping executing the event, and sending data generated when the event is executed to the computing device.
And B14: the method of B9, further comprising suspending execution of the test procedure after receiving a command sent by the computing device to suspend execution of the test procedure.
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 the invention. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood 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 construed as reflecting the intention that: i.e., the claimed invention 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 a plurality of sub-modules.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. 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. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units 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 but not others included in other embodiments, 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 can be used in any combination.
Furthermore, some of the embodiments are described herein as methods or combinations of method elements that may be implemented by a processor of a computer system or by other means of performing the functions. Thus, a processor with the necessary instructions for implementing the described method or method element forms a means for implementing the method or method element. Furthermore, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is for carrying out the functions performed by the elements for carrying out the objects of the invention.
As used herein, unless otherwise specified the use of the ordinal terms "first," "second," "third," etc., to describe a general object merely denote different instances of like objects, and are not intended to imply that the objects so described must have a given order, 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 the above description, will appreciate that other embodiments are contemplated within 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 disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention, which is defined by the appended claims.

Claims (8)

1. A method of testing an application in a mobile terminal coupled to a computing device, the method executing on the computing device and comprising the steps of:
setting a test flow on the computing device, wherein the test flow comprises a front part, a circulation part, a monitoring part and a rear part;
executing the preamble portion, comprising:
collecting a command for executing the event;
transmitting and executing the assembled event to and in the mobile terminal to launch the application on the mobile terminal via communication between the computing device and the mobile terminal;
after the pre-portion execution is completed, executing the loop portion, including:
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 circulating body is time circulation or frequency circulation;
transmitting the determined manner to the mobile terminal so as to execute the event defined in the loop section on an application started in the mobile terminal;
after the loop portion execution is completed, executing the post portion, including:
stopping executing the event executed in the mobile terminal, and collecting and storing data generated when the event is executed;
closing an application running in the mobile terminal so as to close the application in the mobile terminal; and
executing the monitoring section while executing the loop section and the post section, comprising:
acquiring a log file of an event when the event is executed in the mobile terminal;
extracting a log in the log file;
the extracted log is presented in order to obtain log information of the application during execution of the event defined in the loop part from the mobile terminal.
2. The method of claim 1, wherein the cycle body includes events defined at the time of the setup test procedure;
the time circulation is to circulate the circulation body according to a set time; and
the circulation according to the number is to circulate the circulation body according to the set times.
3. The method of claim 1, wherein the setting a test flow on the computing device comprises: defining a configuration file of 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.
4. The method of claim 1, further comprising sending a command to the mobile terminal to suspend execution of the test procedure while the test procedure is in progress;
and debugging the mobile terminal when the test flow is suspended.
5. A method of testing an application in a mobile terminal coupled to a computing device, the computing device having a test flow defined therein, the test flow including a preamble portion, a loop portion, a monitoring portion, and a postamble portion, the method being performed on the mobile terminal and comprising the steps of:
executing the preamble, starting the application according to communication between the computing device and the mobile terminal, the executing the preamble comprising:
receiving and executing the assembled event sent by the computing device;
after the pre-portion execution is completed, executing the loop portion, executing the event defined in the loop portion on the launched application, the executing the loop portion comprising:
executing the loop body in the execution mode determined by the computing device;
after the loop part is executed, executing the post part, stopping executing the event, sending the data generated when the event is executed, and executing the post part comprises:
stopping executing the event, and sending data generated when the event is executed to the computing device;
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, the executing the monitoring portion comprising:
recording the executing process of the event and generating a corresponding log file;
the log file is sent to the computing device.
6. The method of claim 5, further comprising suspending execution of the test procedure after receiving a command sent by the computing device to suspend execution of the test procedure.
7. 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-6.
8. 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-6.
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 CN111026657A (en) 2020-04-17
CN111026657B true 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)

Families Citing this family (1)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2712002C (en) * 2009-09-09 2016-08-30 Aastra Technologies Limited Diagnostics methods for a communications device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
彭澄廉,吴百锋,李伟,王海洪.并行分布式计算机样机的监测测试.计算机学报.1999,(08),全文. *

Also Published As

Publication number Publication date
CN111026657A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
US10853232B2 (en) Adaptive system for mobile device testing
US9342237B2 (en) Automated testing of gesture-based applications
CN110362483B (en) Performance data acquisition method, device, equipment and storage medium
CN108874268B (en) User behavior data acquisition method and device
CN109871326B (en) Script recording method and device
US9448908B2 (en) System and method for model based session management
CN108717393B (en) Application program testing method and mobile terminal
CN107967209B (en) Method for detecting error in front-end webpage code, detection equipment and server
Liu et al. Capture-replay testing for android applications
US20140074452A1 (en) System and method for automatic modeling of an application
US20160335168A1 (en) Real-time analysis of application programming interfaces
CN110704304B (en) Application program testing method and device, storage medium and server
CN107491383A (en) Catching method, device and the mobile terminal of application crashes Operation Log
US20150006961A1 (en) Capturing trace information using annotated trace output
Lin et al. Improving the accuracy of automated GUI testing for embedded systems
CN109814801A (en) Using login method, device, terminal and storage medium
CN111552633A (en) Interface abnormal call testing method and device, computer equipment and storage medium
TW201616356A (en) System and method for debug firmware/software to generate trace data, recording medium and computer program product
CN111324352A (en) Code generation method of application page and related equipment
CN112817866A (en) Recording playback method, device, system, computer equipment and storage medium
CN111026657B (en) Method, computing device and medium for testing application in mobile terminal
CN105224448B (en) The method and apparatus for recording test scene
CN112395182A (en) Automatic testing method, device, equipment and computer readable storage medium
US9405664B2 (en) Automating software testing
US10241845B2 (en) Application event tracing

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