CN104809055B - Application program testing method and device based on cloud platform - Google Patents

Application program testing method and device based on cloud platform Download PDF

Info

Publication number
CN104809055B
CN104809055B CN201410037832.0A CN201410037832A CN104809055B CN 104809055 B CN104809055 B CN 104809055B CN 201410037832 A CN201410037832 A CN 201410037832A CN 104809055 B CN104809055 B CN 104809055B
Authority
CN
China
Prior art keywords
test
testing
application program
tested
user
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
CN201410037832.0A
Other languages
Chinese (zh)
Other versions
CN104809055A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410037832.0A priority Critical patent/CN104809055B/en
Publication of CN104809055A publication Critical patent/CN104809055A/en
Application granted granted Critical
Publication of CN104809055B publication Critical patent/CN104809055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an application program testing method and device based on a cloud platform, wherein the method comprises the following steps: receiving a test request of a user and a test mode selected by the user, wherein the test request at least comprises an application program to be tested and preset duration; determining a hardware equipment list corresponding to the application program to be tested by selecting hardware equipment on a cloud platform, wherein the hardware equipment list comprises a plurality of hardware equipment; in the test mode, testing the application program to be tested by using the hardware equipment in the hardware equipment list to obtain a test result, wherein the test duration is the preset duration; and displaying the test result to the user. According to the invention, the hardware equipment on the cloud platform is used for testing, and the test mode and the test duration which can be selected by a user are set.

Description

Application program testing method and device based on cloud platform
Technical Field
The invention relates to the technical field of program testing, in particular to an application program testing method and device based on a cloud platform.
Background
With the increase of the types of the application programs, the performance difference of different application programs is obvious, so various application program testing methods are developed to eliminate the application programs with poor performance, thereby providing the application programs with excellent performance for users.
In the prior art, the testing method of the application program is not standardized, and the application program to be tested is simply and respectively run on several different hardware devices to observe the running conditions on the different hardware devices.
Because the existing application program testing method only provides limited hardware equipment for testing the application program and does not provide a standardized testing flow, the generated testing result may be inaccurate and cannot provide a powerful reference for a user.
Disclosure of Invention
In view of the above problems, the invention provides an application program testing method and device based on a cloud platform, and compared with the prior art, the invention can provide a more accurate application program testing result for a user and provide a powerful reference for the user.
The invention provides an application program testing method based on a cloud platform, which comprises the following steps:
receiving a test request of a user and a test mode selected by the user, wherein the test request at least comprises an application program to be tested and preset duration;
determining a hardware equipment list corresponding to the application program to be tested by selecting hardware equipment on a cloud platform, wherein the hardware equipment list comprises a plurality of hardware equipment;
in the test mode, testing the application program to be tested by using the hardware equipment in the hardware equipment list to obtain a test result, wherein the test duration is the preset duration;
and displaying the test result to the user.
Preferably, in the test mode, the testing the application program to be tested by using the hardware device in the hardware device list to obtain a test result, where the test duration is the preset duration, and the method includes:
respectively setting a test operation sequence for the hardware equipment in the hardware equipment list;
and in the test mode, testing the application program to be tested according to the test operation sequence to obtain a test result, wherein the test duration is the preset duration.
Preferably, in the test mode, the testing the application program to be tested according to the test operation sequence to obtain a test result, where the test duration is the preset duration, and the method includes:
determining the testing times according to the preset time length and the preset single time length;
and testing the application program to be tested according to the test operation sequence to obtain a test result, wherein the testing times are the testing times, and the time length of each test is the preset single time length.
And/or (c) and/or,
testing the application program to be tested according to the testing operation sequence;
and obtaining a test result when the test duration reaches the preset duration or a preset abnormity occurs in the test.
Preferably, the method further comprises:
presetting an exception handling list, wherein the exception handling list comprises a corresponding relation between an exception and a handling method;
when an exception occurs in the test, inquiring the exception handling list and determining a handling method corresponding to the exception;
and after the exception is eliminated by using the processing method, continuing the test.
Preferably, the test result includes a test operation log and an error log.
The invention also provides an application program testing device based on the cloud platform, which comprises:
the device comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving a test request of a user and a test mode selected by the user, and the test request at least comprises an application program to be tested and preset duration;
the first determining module is used for determining a hardware equipment list corresponding to the application program to be tested by selecting hardware equipment on the cloud platform, wherein the hardware equipment list comprises a plurality of hardware equipment;
the testing module is used for testing the application program to be tested by using the hardware equipment in the hardware equipment list in the testing mode to obtain a testing result, and the testing duration is the preset duration;
and the display module is used for displaying the test result to the user.
Preferably, the test module comprises:
the setting submodule is used for respectively setting a test operation sequence for the hardware equipment in the hardware equipment list;
and the first testing submodule is used for testing the application program to be tested according to the testing operation sequence in the testing mode to obtain a testing result, and the testing duration is the preset duration.
Preferably, the first test sub-module comprises:
the determining submodule is used for determining the testing times according to the preset time length and the preset single time length;
and the second testing submodule is used for testing the application program to be tested according to the testing operation sequence to obtain a testing result, the testing times are the testing times, and the time length of each testing is the preset single time length.
And/or (c) and/or,
the third testing submodule is used for testing the application program to be tested according to the testing operation sequence;
and the result submodule is used for obtaining a test result when the test duration reaches the preset duration or a preset exception occurs in the test.
Preferably, the apparatus further comprises:
the system comprises a setting module, a processing module and a processing module, wherein the setting module is used for presetting an exception handling list which comprises a corresponding relation between an exception and a handling method;
the second determining module is used for inquiring the exception handling list and determining a handling method corresponding to the exception when the exception occurs in the test;
and the exclusion module is used for eliminating the exception by utilizing the processing method.
The method comprises the steps of receiving a test request of a user and a test mode selected by the user, wherein the test request at least comprises an application program to be tested and preset duration; determining a hardware equipment list corresponding to the application program to be tested by selecting hardware equipment on a cloud platform, wherein the hardware equipment list comprises a plurality of hardware equipment; in the test mode, testing the application program to be tested by using the hardware equipment in the hardware equipment list to obtain a test result, wherein the test duration is the preset duration; and displaying the test result to the user. According to the invention, the hardware equipment on the cloud platform is used for testing, and the test mode and the test duration which can be selected by a user are set.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a flowchart of an application testing method based on a cloud platform according to an embodiment of the present invention;
FIG. 2 is a flowchart of an apk testing method based on a cloud platform according to a second embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a test result display manner according to a second embodiment of the present invention;
fig. 4 is a structural diagram of an apk testing apparatus based on a cloud platform according to a third embodiment of the present invention;
fig. 5 is a block diagram of a partial structure of a mobile phone related to a terminal according to a third embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
Referring to fig. 1, fig. 1 is a flowchart of an application testing method based on a cloud platform provided in this embodiment, which specifically includes:
s101: receiving a test request of a user and a test mode selected by the user, wherein the test request at least comprises an application program to be tested and a preset time length.
In this embodiment, the test request of the user at least includes an application program to be tested and a test duration, where the application program to be tested may be an Android installation package (apk), and the preset duration is a time for which the user wants to test the application program to be tested, and specifically may be set according to a user requirement.
In addition, a plurality of selectable test modes exist in the test method provided by the embodiment, each test mode has a specific function, and a user can select the test mode according to the requirement of the user. Meanwhile, a new test function can be provided for a user by adding a new test module.
S102: determining a hardware device list corresponding to the application program to be tested by selecting hardware devices on the cloud platform, wherein the hardware device list comprises a plurality of hardware devices.
In this embodiment, the cloud platform is a resource sharing platform, so that the hardware device resources of the cloud platform are rich, and the device types are comprehensive. In the embodiment, the hardware equipment on the cloud platform is used for testing the application program to be tested, so that the test is more comprehensive, and the test result is more accurate.
In actual operation, after a user uploads an application program to be tested, a hardware device for testing is selected for the application program to be tested, and a hardware device list is determined. If the number of idle hardware devices on the cloud platform is large, a plurality of idle hardware devices can be randomly selected to be added into the hardware device list. Or, if there are few idle hardware devices on the cloud platform, the idle hardware devices may be added to the hardware device list, and a plurality of hardware devices in a busy state may also be added to the hardware device list at random, and when the hardware devices in the busy state are idle, the hardware devices may be used to test the application program to be tested.
S103: and in the test mode, testing the application program to be tested by using the hardware equipment in the hardware equipment list to obtain a test result, wherein the test duration is the preset duration.
In this embodiment, since the user selects the test mode and the list of the hardware devices corresponding to the application program to be tested is also determined, the hardware devices in the list of the hardware devices can be directly used to test the application program to be tested, and finally the test result is obtained. And the testing duration is preset duration uploaded by the user.
In actual operation, the hardware devices in the hardware device list may simultaneously test the application programs to be tested, or may sequentially test the application programs to be tested. In addition, the hardware devices in the busy state in the hardware device list can wait until the idle state to test the application program to be tested.
Specifically, in order to improve the testing efficiency of the application program, in this embodiment, a testing operation sequence may be first set for the hardware devices in the hardware device list respectively; secondly, in the test mode, testing the application program to be tested according to the test operation sequence to obtain a test result, wherein the test duration is the preset duration.
In actual operation, the test operation sequence is a sequence for testing each function of the application program to be tested. For example, for a chat application, the test operation sequence may be set to test the friend function first and test the chat function with a friend second. In practical application, the test operation sequence is preset to avoid unnecessary operation on the application program to be tested.
In addition, the embodiment also specifically provides two test modes, as follows:
the first test mode:
firstly, determining the test times according to the preset time length and the preset single time length; secondly, testing the application program to be tested according to the test operation sequence to obtain a test result, wherein the testing times are the testing times, and the time length of each test is the preset single time length.
In practical application, firstly determining the number of times of testing, secondly testing the application program to be tested to obtain a test result, wherein the number of times of testing and the determined number of times of testing are provided, and the testing duration of each time can be a duration preset by a system or a duration set by a user.
In the first test mode, the stability of the application program to be tested can be tested when the application program is switched on and off for a plurality of times in a short time.
Second test mode:
testing the application program to be tested according to the testing operation sequence; and obtaining a test result when the test duration reaches the preset duration or a preset abnormity occurs in the test.
In practical application, the application program to be tested can be tested for a preset time, and during the testing period, if a preset abnormality occurs, a testing result can be directly generated for feeding back a user, wherein the preset abnormality can be program crash and other abnormalities. Or, when the testing time reaches the preset time, the test can be ended and the test result is generated.
In the second test mode, the stability of the application program to be tested during long-term operation can be tested.
In order to improve the testing efficiency of the application program and avoid interference of part of exceptions on the test, the embodiment provides an exception handling method in the testing process, which may specifically be as follows:
firstly, the method comprises the following steps: presetting an exception handling list, wherein the exception handling list comprises a corresponding relation between an exception and a handling method;
secondly, the method comprises the following steps: when an exception occurs in the test, inquiring the exception handling list and determining a handling method corresponding to the exception;
thirdly, the method comprises the following steps: and after the exception is eliminated by using the processing method, continuing the test.
The exception handling list may be a summary of past test experiences, and when an exception recorded in the exception handling list occurs during a test, a handling method corresponding to the exception is queried to quickly resolve the exception, so that the test is performed normally.
It should be noted that the user can select multiple test modes at the same time to obtain test results in multiple test modes.
S104: and displaying the test result to the user.
In this embodiment, after the test is finished, the test result is displayed to the user. The test result may include a test operation log and an error log, where the test operation log is a record of a specific test process of the application program to be tested, and the error log is a record of an error when the application program to be tested runs in the test process.
The embodiment receives a test request of a user and a test mode selected by the user, wherein the test request at least comprises an application program to be tested and preset duration; determining a hardware equipment list corresponding to the application program to be tested by selecting hardware equipment on a cloud platform, wherein the hardware equipment list comprises a plurality of hardware equipment; in the test mode, testing the application program to be tested by using the hardware equipment in the hardware equipment list to obtain a test result, wherein the test duration is the preset duration; and displaying the test result to the user. In the embodiment, the hardware equipment on the cloud platform is used for testing, and the test mode and the test duration which can be selected by the user are set.
Example two
Referring to fig. 2, fig. 2 is a flowchart of an apk testing method based on a cloud platform provided in this embodiment, which specifically includes:
s201: receiving a test request of a user and a test mode selected by the user, wherein the test request at least comprises an apk to be tested and a preset time length;
the smart phone installed application is usually apk, i.e. android application. In this embodiment, an apk is taken as an example to specifically describe a cloud platform-based apk testing method. The step is similar to step S101, and is not described herein again.
S202: and determining a smart phone list corresponding to the apk to be tested by selecting a smart phone on the cloud platform, wherein the smart phone list comprises various types of smart phones.
In the embodiment, shared resources, namely various types of smart phones, on the cloud platform are used for testing the apk to be tested. The smart phone list can be a randomly selected smart phone model, and the smart phone tests the apk to be tested through random spot check, so that a more convincing test result can be obtained.
S203: and under the test mode selected by the user, testing the apk to be tested by using the smart phone in the smart phone list to obtain a test result, wherein the test duration is the preset duration.
In this embodiment, different types of tests are performed on the apk to be tested according to the test mode selected by the user. For example, the apk to be tested may be tested for multiple times in a short time, specifically, the number of times of testing is determined firstly, and then the apk to be tested is tested to obtain a test result, where the number of times of testing and the number of times of testing are determined, and the test duration of each time may be a duration preset by a system, or may be a duration set by a user.
S204: and displaying the test result to the user.
After the test is completed, the present embodiment may display the test result to the user, where the test result may include a test operation log and an error log. Referring to fig. 3, fig. 3 is a schematic diagram illustrating a test result display manner. When the user wants to acquire the test operation log, the user can directly click the details of the operation bar, and when the user wants to know the error log, the user can directly click the report of the operation bar.
In the embodiment, the smart phones of various models on the cloud platform are used for testing, and the test mode and the test duration which can be selected by the user are set.
EXAMPLE III
Referring to fig. 4, fig. 4 is a structural diagram of the apk testing apparatus based on the cloud platform provided in this embodiment, which specifically includes:
a receiving module 401, configured to receive a test request of a user and a test mode selected by the user, where the test request at least includes an application to be tested and a preset duration;
a first determining module 402, configured to determine a hardware device list corresponding to the application to be tested by selecting a hardware device on a cloud platform, where the hardware device list includes a plurality of hardware devices;
the testing module 403 is configured to, in the testing mode, test the application program to be tested by using the hardware device in the hardware device list to obtain a testing result, where a testing duration is the preset duration;
a display module 404, configured to display the test result to the user.
Wherein the test module may include:
the setting submodule is used for respectively setting a test operation sequence for the hardware equipment in the hardware equipment list;
and the first testing submodule is used for testing the application program to be tested according to the testing operation sequence in the testing mode to obtain a testing result, and the testing duration is the preset duration.
Specifically, the first test sub-module may include:
the determining submodule is used for determining the testing times according to the preset time length and the preset single time length;
and the second testing submodule is used for testing the application program to be tested according to the testing operation sequence to obtain a testing result, the testing times are the testing times, and the time length of each testing is the preset single time length.
And/or (c) and/or,
the third testing submodule is used for testing the application program to be tested according to the testing operation sequence;
and the result submodule is used for obtaining a test result when the test duration reaches the preset duration or a preset exception occurs in the test.
In addition, the apparatus may further include:
the system comprises a setting module, a processing module and a processing module, wherein the setting module is used for presetting an exception handling list which comprises a corresponding relation between an exception and a handling method;
the second determining module is used for inquiring the exception handling list and determining a handling method corresponding to the exception when the exception occurs in the test;
and the exclusion module is used for eliminating the exception by utilizing the processing method.
Fig. 5 shows only a portion related to the embodiment of the present invention for convenience of description, and please refer to the method portion in the embodiment of the present invention for details that are not disclosed. The terminal may include any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of sales), a vehicle-mounted computer, and take the terminal as the mobile phone for example:
fig. 5 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided in an embodiment of the present invention. Referring to fig. 5, the handset includes: radio Frequency (RF) circuit 510, memory 520, input unit 530, display unit 540, sensor 550, audio circuit 560, wireless fidelity (WiFi) module 570, processor 580, and power supply 590. Those skilled in the art will appreciate that the handset configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 5:
RF circuit 510 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for processing downlink information of a base station after receiving the downlink information to processor 580; in addition, the data for designing uplink is transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 510 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
The memory 520 may be used to store software programs and modules, and the processor 580 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 520. The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 500. Specifically, the input unit 530 may include a touch panel 531 and other input devices 532. The touch panel 531, also called a touch screen, can collect touch operations of a user on or near the touch panel 531 (for example, operations of the user on or near the touch panel 531 by using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 531 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 580, and can receive and execute commands sent by the processor 580. In addition, the touch panel 531 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 530 may include other input devices 532 in addition to the touch panel 531. In particular, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 540 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 540 may include a display panel 541, and optionally, the display panel 541 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 531 may cover the display panel 541, and when the touch panel 531 detects a touch operation on or near the touch panel 531, the touch panel is transmitted to the processor 580 to determine the type of the touch event, and then the processor 580 provides a corresponding visual output on the display panel 541 according to the type of the touch event. Although the touch panel 531 and the display panel 541 are shown as two separate components in fig. 5 to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 531 and the display panel 541 may be integrated to implement the input and output functions of the mobile phone.
Cell phone 500 can also include at least one sensor 550, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 541 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping) and the like, and can also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor and the like, which are not described herein again.
Audio circuitry 560, speaker 561, and microphone 562 may provide an audio interface between a user and a cell phone. The audio circuit 560 may transmit the electrical signal converted from the received audio data to the speaker 561, and convert the electrical signal into a sound signal by the speaker 561 for output; on the other hand, the microphone 562 converts the collected sound signals into electrical signals, which are received by the audio circuit 560 and converted into audio data, which are then processed by the audio data output processor 580, and then passed through the RF circuit 510 to be sent to, for example, another cellular phone, or output to the memory 520 for further processing.
WiFi belongs to short distance wireless transmission technology, and the mobile phone can help the user to send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 570, which provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 570, it is understood that it does not belong to the essential constitution of the handset 500, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 580 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 520 and calling data stored in the memory 520, thereby performing overall monitoring of the mobile phone. Alternatively, processor 580 may include one or more processing units; preferably, the processor 580 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 580.
Handset 500 also includes a power supply 590 (e.g., a battery) for powering the various components, which may preferably be logically coupled to processor 580 via a power management system that may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone 500 may further include a camera, a bluetooth module, etc., which are not described herein.
Specifically, in this embodiment, the processor 580 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 520 according to the following instructions, and the processor 580 runs the application programs stored in the memory 520, thereby implementing various functions:
receiving a test request of a user and a test mode selected by the user, wherein the test request at least comprises an application program to be tested and preset duration;
determining a hardware equipment list corresponding to the application program to be tested by selecting hardware equipment on a cloud platform, wherein the hardware equipment list comprises a plurality of hardware equipment;
in the test mode, testing the application program to be tested by using the hardware equipment in the hardware equipment list to obtain a test result, wherein the test duration is the preset duration;
and displaying the test result to the user.
Further, in the test mode, testing the application program to be tested by using the hardware device in the hardware device list to obtain a test result, where the test duration is the preset duration, and the method includes:
respectively setting a test operation sequence for the hardware equipment in the hardware equipment list;
and in the test mode, testing the application program to be tested according to the test operation sequence to obtain a test result, wherein the test duration is the preset duration.
Further, in the test mode, testing the application program to be tested according to the test operation sequence to obtain a test result, where the test duration is the preset duration, including:
determining the testing times according to the preset time length and the preset single time length;
and testing the application program to be tested according to the test operation sequence to obtain a test result, wherein the testing times are the testing times, and the time length of each test is the preset single time length.
And/or (c) and/or,
testing the application program to be tested according to the testing operation sequence;
and obtaining a test result when the test duration reaches the preset duration or a preset abnormity occurs in the test.
Further, the method further comprises:
presetting an exception handling list, wherein the exception handling list comprises a corresponding relation between an exception and a handling method;
when an exception occurs in the test, inquiring the exception handling list and determining a handling method corresponding to the exception;
and after the exception is eliminated by using the processing method, continuing the test.
Further, the test result comprises a test operation log and an error log.
In the embodiment, the hardware equipment on the cloud platform is used for testing, and the test mode and the test duration which can be selected by the user are set.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The method and the device for testing the application program based on the cloud platform provided by the embodiment of the invention are described in detail, a specific example is applied in the method to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (5)

1. An application program testing method based on a cloud platform is characterized in that the cloud platform is provided with two testing modes, wherein the first testing mode is used for testing the stability of an application program to be tested when the application program is switched on and off for a plurality of times in a short time, and the second testing mode is used for testing the stability of the application program to be tested when the application program to be tested runs for a long time, and the method comprises the following steps:
receiving a test request of a user and a test mode selected by the user, wherein the test request at least comprises an application program to be tested and preset duration;
determining a hardware equipment list corresponding to the application program to be tested by selecting hardware equipment on a cloud platform, wherein the hardware equipment list comprises a plurality of randomly extracted hardware equipment;
respectively setting a test operation sequence for the hardware equipment in the hardware equipment list, wherein the test operation sequence is a sequence for testing each function of the application program to be tested;
when the test mode selected by the user comprises the first test mode, determining the test times according to the preset time length and the preset single time length, and testing the application program to be tested according to the test operation sequence to obtain a test result, wherein the test times are the test times, and the time length of each test is the preset single time length;
when the test mode selected by the user comprises the second test mode, testing the application program to be tested according to the test operation sequence, and when the test duration reaches the preset duration or preset abnormity occurs in the test, obtaining a test result;
and displaying the test result to the user.
2. The method of claim 1, further comprising:
presetting an exception handling list, wherein the exception handling list comprises a corresponding relation between an exception and a handling method;
when an exception occurs in the test, inquiring the exception handling list and determining a handling method corresponding to the exception;
and after the exception is eliminated by using the processing method, continuing the test.
3. The method of claim 1, wherein the test results comprise a test operation log and an error log.
4. An application program testing device based on a cloud platform, wherein the cloud platform is provided with two testing modes, wherein the first testing mode is used for testing the stability of an application program to be tested when the application program is switched on and off for a plurality of times in a short time, and the second testing mode is used for testing the stability of the application program to be tested when the application program is operated for a long time, and the device comprises:
the device comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving a test request of a user and a test mode selected by the user, and the test request at least comprises an application program to be tested and preset duration;
the first determining module is used for determining a hardware equipment list corresponding to the application program to be tested by selecting hardware equipment on the cloud platform, wherein the hardware equipment list comprises a plurality of randomly extracted hardware equipment;
the testing module comprises a setting submodule and a first testing submodule, wherein the setting submodule is used for respectively setting a testing operation sequence for the hardware equipment in the hardware equipment list, and the testing operation sequence is a sequence for testing each function of the application program to be tested;
the testing submodule is used for determining the testing times according to the preset time length and the preset single time length when the testing mode selected by the user comprises the first testing mode, testing the application program to be tested according to the testing operation sequence to obtain a testing result, wherein the testing times are the testing times, and the time length of each testing is the preset single time length; and when the test mode selected by the user comprises the second test mode, testing the application program to be tested according to the test operation sequence, and when the test duration reaches the preset duration or a preset abnormality occurs in the test, obtaining a test result;
and the display module is used for displaying the test result to the user.
5. The apparatus of claim 4, further comprising:
the system comprises a setting module, a processing module and a processing module, wherein the setting module is used for presetting an exception handling list which comprises a corresponding relation between an exception and a handling method;
the second determining module is used for inquiring the exception handling list and determining a handling method corresponding to the exception when the exception occurs in the test;
and the exclusion module is used for eliminating the exception by utilizing the processing method.
CN201410037832.0A 2014-01-26 2014-01-26 Application program testing method and device based on cloud platform Active CN104809055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410037832.0A CN104809055B (en) 2014-01-26 2014-01-26 Application program testing method and device based on cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410037832.0A CN104809055B (en) 2014-01-26 2014-01-26 Application program testing method and device based on cloud platform

Publications (2)

Publication Number Publication Date
CN104809055A CN104809055A (en) 2015-07-29
CN104809055B true CN104809055B (en) 2020-02-11

Family

ID=53693899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410037832.0A Active CN104809055B (en) 2014-01-26 2014-01-26 Application program testing method and device based on cloud platform

Country Status (1)

Country Link
CN (1) CN104809055B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943684A (en) * 2017-10-30 2018-04-20 北京奇虎科技有限公司 A kind of test crash retries method, apparatus, server and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102455971A (en) * 2010-10-28 2012-05-16 无锡江南计算技术研究所 Application-level random instruction testing method, system and device
CN102981951A (en) * 2012-11-01 2013-03-20 珠海金山网络游戏科技有限公司 Platform and method of cloud test development
CN103516851A (en) * 2012-06-30 2014-01-15 北京新媒传信科技有限公司 Cloud testing platform system for wireless products

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9047410B2 (en) * 2012-07-18 2015-06-02 Infosys Limited Cloud-based application testing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102455971A (en) * 2010-10-28 2012-05-16 无锡江南计算技术研究所 Application-level random instruction testing method, system and device
CN103516851A (en) * 2012-06-30 2014-01-15 北京新媒传信科技有限公司 Cloud testing platform system for wireless products
CN102981951A (en) * 2012-11-01 2013-03-20 珠海金山网络游戏科技有限公司 Platform and method of cloud test development

Also Published As

Publication number Publication date
CN104809055A (en) 2015-07-29

Similar Documents

Publication Publication Date Title
US9344838B2 (en) Data transmission method and apparatus, and terminal with touch screen
CN107277912B (en) Radio frequency interference processing method, device, storage medium and terminal
CN104426919B (en) Page sharing method, apparatus and system
CN108834132B (en) Data transmission method and equipment and related medium product
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN104516812A (en) Method and device for testing software
CN106371964B (en) Method and device for prompting message
CN105245432B (en) Unread message counting method and device and terminal
US20160308879A1 (en) Application-Based Service Providing Method, Apparatus, and System
CN104866288A (en) Method, device and terminal for accessing application program
WO2018103441A1 (en) Network positioning method and terminal device
WO2018161540A1 (en) Fingerprint registration method and related product
CN106776301B (en) Subelement testing method and device
CN107766351B (en) File directory identification method and device
CN105759962B (en) A kind of method and mobile terminal of application starting
CN104809055B (en) Application program testing method and device based on cloud platform
CN104702643A (en) A webpage access method, device and system
CN106339402B (en) Method, device and system for pushing recommended content
CN106341436B (en) Method and device for detecting acceleration effect
CN105610878B (en) Directory uploading method, data publishing method, terminal and server
CN105631059B (en) Data processing method, data processing device and data processing system
CN105159655B (en) Behavior event playing method and device
WO2015078409A1 (en) Method, device, terminal and system for collecting information
CN106535229B (en) WiFi signal receiving sensitivity testing method and mobile terminal
CN104615543A (en) Abnormal window program response detecting method and device

Legal Events

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