CN106897219B - Method and device for testing stability of mobile terminal system - Google Patents

Method and device for testing stability of mobile terminal system Download PDF

Info

Publication number
CN106897219B
CN106897219B CN201710079246.6A CN201710079246A CN106897219B CN 106897219 B CN106897219 B CN 106897219B CN 201710079246 A CN201710079246 A CN 201710079246A CN 106897219 B CN106897219 B CN 106897219B
Authority
CN
China
Prior art keywords
test
time
current
current test
consuming
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
CN201710079246.6A
Other languages
Chinese (zh)
Other versions
CN106897219A (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.)
Shenzhen Guanghetong Wireless Communication Software Co Ltd
Original Assignee
Shenzhen Guanghetong Wireless Communication Software 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 Shenzhen Guanghetong Wireless Communication Software Co Ltd filed Critical Shenzhen Guanghetong Wireless Communication Software Co Ltd
Priority to CN201710079246.6A priority Critical patent/CN106897219B/en
Publication of CN106897219A publication Critical patent/CN106897219A/en
Application granted granted Critical
Publication of CN106897219B publication Critical patent/CN106897219B/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/3688Test management for test execution, e.g. scheduling of test suites
    • 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/3696Methods or tools to render software testable
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Abstract

The invention relates to a method and a device for testing the stability of a mobile terminal system, wherein the method comprises the following steps: acquiring a test instruction, and executing a preset test case according to the test instruction; acquiring the test time consumption of the current test and the test time consumption of the historical multi-time test, and calculating the time consumption average value corresponding to the current test according to the test time consumption of the current test and the test time consumption of the historical multi-time test; comparing the time-consuming average value corresponding to the current test with a preset average time-consuming threshold value; when the time-consuming average value corresponding to the current test is smaller than or equal to the preset average time-consuming threshold value, displaying that the current test is successful, and displaying the time-consuming average value corresponding to the current test; and when the time-consuming average value corresponding to the current test is larger than the preset average time-consuming threshold, displaying that the current test fails and displaying the time-consuming average value corresponding to the current test. The method for testing the stability of the mobile terminal system can greatly improve the testing efficiency. Correspondingly, the invention also provides a device for testing the stability of the mobile terminal system.

Description

Method and device for testing stability of mobile terminal system
Technical Field
The invention relates to the technical field of intelligent terminals, in particular to a method and a device for testing the stability of a mobile terminal system.
Background
Generally, in order to ensure that a mobile terminal system can provide stable and reliable system services for a user, a stability test needs to be performed on the mobile terminal system to verify whether the mobile terminal system meets the stability requirement. If the system stability test finds a problem, the error reason and the position are found by analyzing the test data, and then a more perfect scheme is provided by debugging and correcting, so that the system meets the stability requirement. However, the conventional mobile terminal stability test mode can know whether the system stability has problems after the test is completed, the problems cannot be found in time in the test process, and the error analysis can be performed after all tests are completed, so that the test efficiency is seriously influenced.
Disclosure of Invention
Therefore, it is necessary to provide a method and an apparatus for testing system stability of a mobile terminal, aiming at the problem of low testing efficiency of the conventional mobile terminal stability testing method.
A method for testing the stability of a mobile terminal system comprises the following steps:
acquiring a test instruction, and executing a preset test case according to the test instruction;
acquiring the test time consumption of the current test and the test time consumption of the historical multi-time test, and calculating the time consumption average value corresponding to the current test according to the test time consumption of the current test and the test time consumption of the historical multi-time test;
comparing the time-consuming average value corresponding to the current test with a preset average time-consuming threshold value;
when the time-consuming average value corresponding to the current test is smaller than or equal to the preset average time-consuming threshold value, displaying the success of the current test through a test display interface, and displaying the time-consuming average value corresponding to the current test;
and when the time-consuming average value corresponding to the current test is larger than the preset average time-consuming threshold, displaying the current test failure through the test display interface, and displaying the time-consuming average value corresponding to the current test.
In one embodiment, after the step of failing the current test when the average consumed time value corresponding to the current test is greater than the preset average consumed time threshold, the method further includes the following steps:
and generating an error identifier, and storing the error identifier to the test log.
In one embodiment, the method for testing the system stability of the mobile terminal further includes the following steps:
calculating the test success rate corresponding to the current test, and comparing the test success rate corresponding to the current test with a preset test success rate threshold;
and when the test success rate corresponding to the current test is smaller than a preset test success rate threshold, generating a test ending instruction, and ending the test.
In one embodiment, after the step of comparing the elapsed time average value corresponding to the current test with the preset average elapsed time threshold, the method further includes the following steps:
comparing the test time consumption of the current test with a preset test time consumption threshold;
when the test time consumption of the current test is larger than a preset test time consumption threshold value, displaying the current test failure through a test display interface;
and when the test consumed time of the current test is less than or equal to a preset test consumed time threshold value, displaying that the current test is successful through a test display interface.
In one embodiment, the method for testing the system stability of the mobile terminal further includes the following steps:
and acquiring a maximum historical test time consumption value and a minimum historical test time consumption value, and displaying the maximum historical test time consumption value and the minimum historical test time consumption value through a test display interface.
A mobile terminal system stability testing device comprises:
the test execution module is used for acquiring a test instruction and executing a preset test case according to the test instruction;
the time-consuming average value calculating module is used for acquiring the test time consumption of the current test and the test time consumption of the historical multi-time test, and calculating the time-consuming average value corresponding to the current test according to the test time consumption of the current test and the test time consumption of the historical multi-time test;
the time consumption comparison module is used for comparing the time consumption average value corresponding to the current test with a preset average time consumption threshold value;
the display module is used for displaying the success of the current test through the test display interface and displaying the time-consuming average value corresponding to the current test when the time-consuming average value corresponding to the current test is smaller than or equal to the preset average time-consuming threshold value; and when the time-consuming average value corresponding to the current test is larger than the preset average time-consuming threshold, displaying the current test failure through the test display interface, and displaying the time-consuming average value corresponding to the current test.
In one embodiment, the apparatus for testing system stability of a mobile terminal further includes:
and the error marking module is used for generating an error identifier when the time-consuming average value corresponding to the current test is greater than the preset average time-consuming threshold value, and storing the error identifier to the test log.
In one embodiment, the apparatus for testing system stability of a mobile terminal further includes:
the test success ratio comparison module is used for calculating the test success ratio corresponding to the current test and comparing the test success ratio corresponding to the current test with a preset test success ratio threshold;
and the test interruption module is used for generating a test ending instruction and ending the test when the test success rate corresponding to the current test is smaller than a preset test success rate threshold value.
In one embodiment, the consumed time comparison module is further configured to compare the test consumed time of the current test with a preset test consumed time threshold; the display module is also used for displaying the current test failure through the test display interface when the test time consumption of the current test is greater than a preset test time consumption threshold; and when the test time consumption of the current test is less than or equal to a preset test time consumption threshold value, displaying that the current test is successful through a test display interface.
In one embodiment, the display module is further configured to obtain a maximum historical test elapsed time value and a minimum historical test elapsed time value, and display the maximum historical test elapsed time value and the minimum historical test elapsed time value through the test display interface.
According to the method and the device for testing the system stability of the mobile terminal, whether the current test is successful or not is judged by comparing the time-consuming average value corresponding to the current test with the preset average time-consuming threshold value, when the time-consuming average value corresponding to the current test is smaller than or equal to the preset average time-consuming threshold value, the success of the current test is displayed through the test display interface, and the time-consuming average value corresponding to the current test is displayed; and when the time-consuming average value corresponding to the current test is larger than the preset average time-consuming threshold, displaying the current test failure through the test display interface, and displaying the time-consuming average value corresponding to the current test. According to the method and the device for testing the stability of the mobile terminal system, whether the current test is successful or failed is displayed in real time in the test process, and the time-consuming average value corresponding to the current test is displayed, so that a tester can find problems in time and carry out error analysis in the test process, and the test efficiency is greatly improved.
Drawings
FIG. 1 is a flow chart of a method for testing system stability of a mobile terminal in one embodiment;
FIG. 2 is a schematic diagram of an interface for creating test cases in a specific application scenario;
FIG. 3 is a schematic diagram of a test display interface in a particular application scenario;
FIG. 4 is a schematic diagram of an embodiment of a device for testing system stability of a mobile terminal;
fig. 5 is a schematic structural diagram of a mobile terminal system stability testing apparatus in yet another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, a method for testing system stability of a mobile terminal includes the following steps:
step 102: and acquiring a test instruction, and executing a preset test case according to the test instruction.
Specifically, the preset test cases include system stability test cases such as a power on/off test, a sleep wake-up test, a timing wake-up test, a telephone wake-up test, a TCP test, a UDP test, and the like, where the TCP test may further include stability test cases such as a TCP long-long (data long connection, server long connection) test, a TCP long-short (data long connection, server short connection) test, and a TCP short-short (data short connection, server short connection) test.
As shown in fig. 2, in an embodiment, before obtaining a test instruction, a terminal displays a test case creation window, a user creates a preset test case, for example, the user selects test content, determines the test case, configures a service port and a service mode, sets a single packet sending byte size, sets a cycle test duration or a cycle test frequency, and a cycle test interval, and the like, the terminal creates the test case according to the obtained test case creation instruction and various parameter configuration instructions, generates the preset test case, after completing creating the test case, the terminal detects whether the test instruction is obtained, after obtaining the test instruction, the terminal runs a test application program, and cyclically executes the preset test case according to the cycle test interval. The mobile terminal in this embodiment may be an electronic device such as a smart phone, a tablet computer, or a portable wearable device, and this embodiment is not particularly limited.
Step 104: and acquiring the test time consumption of the current test and the test time consumption of the historical multi-time test, and calculating the time consumption average value corresponding to the current test according to the test time consumption of the current test and the test time consumption of the historical multi-time test.
Specifically, in the test process of executing the preset test case in a circulating manner, the terminal collects the test time consumption of the current test in real time and reads the stored test time consumption of the historical multiple tests, wherein the test time consumption of the historical multiple tests comprises the test time consumption of each test of the historical multiple tests, for example, the current test is the nth test, and the test time consumption of the current test is TnThen the test time of the historical multi-test includes T1、T2、…Tn-1The terminal calculates the arithmetic mean value of the test time consumption of the current test and the test time consumption of the historical multi-time test to obtain the time consumption mean value corresponding to the current test
Figure BDA0001225387620000051
Namely, it is
Figure BDA0001225387620000052
Step 106: and comparing the time-consuming average value corresponding to the current test with a preset average time-consuming threshold value.
Specifically, a preset average time-consuming threshold is pre-stored in the terminal, after the time-consuming average value corresponding to the current test is obtained through calculation in step 104, the terminal compares the time-consuming average value corresponding to the current test with the preset average time-consuming threshold to determine whether the current test is successful, and step 108 or step 110 is executed according to the comparison result.
Step 108: and when the time-consuming average value corresponding to the current test is smaller than or equal to the preset average time-consuming threshold, displaying the success of the current test through the test display interface, and displaying the time-consuming average value corresponding to the current test.
Specifically, in the process of executing the test case in a circulating manner, the terminal displays the test result in real time through the test display interface, when the time-consuming average value corresponding to the current test is smaller than or equal to the preset average time-consuming threshold value, the test response is normal, the current test is successful, the terminal displays the current test success through the test display interface, and displays the time-consuming average value corresponding to the current test.
Step 110: and when the time-consuming average value corresponding to the current test is larger than the preset average time-consuming threshold, displaying the current test failure through the test display interface, and displaying the time-consuming average value corresponding to the current test.
Specifically, when the time-consuming average value corresponding to the current test is greater than the preset average time-consuming threshold, the test response is overtime, the current test fails, the terminal displays the current test failure through the test display interface, and displays the time-consuming average value corresponding to the current test.
According to the method for testing the stability of the mobile terminal system, whether the current test is successful or not is judged by comparing the time-consuming average value corresponding to the current test with the preset average time-consuming threshold value, when the time-consuming average value corresponding to the current test is smaller than or equal to the preset average time-consuming threshold value, the success of the current test is displayed through the test display interface, and the time-consuming average value corresponding to the current test is displayed; and when the time-consuming average value corresponding to the current test is larger than the preset average time-consuming threshold, displaying the current test failure through the test display interface, and displaying the time-consuming average value corresponding to the current test. According to the method for testing the stability of the mobile terminal system, the success or failure of the current test is displayed in real time in the testing process, and the time-consuming average value corresponding to the current test is displayed, so that a tester can find problems in time and analyze errors in the testing process, and the testing efficiency is greatly improved.
In one embodiment, step 110 further comprises the steps of: and generating an error identifier, and storing the error identifier to the test log.
Specifically, the time-consuming average value corresponding to the current test is greater than the preset average time-consuming threshold, when the current test fails, the terminal generates an error identifier, stores the error identifier, the current test result, the test time-consuming value of the current test, the time-consuming average value corresponding to the current test and other generated test data into a test log, stores the test data and records the test data as test failure data. In the embodiment, the test failure data is marked by generating the error identification for the test data which fails to be tested, when the tester needs to perform error analysis and search the test failure data, the test failure data can be quickly searched through the error identification, the efficiency of searching the test log by the tester is greatly improved, the test efficiency can be further improved, and the labor intensity of manually searching the test log is effectively reduced.
Further, in one embodiment, an interface element for prompting screen capture or data export, such as a screen capture button or a data export button, may be displayed on the test display interface. When a tester checks that test failure data are generated currently through the test display interface in the test process, the tester can select the screen capture button, the terminal obtains the screen capture instruction generated after the user selects the screen capture button, the screen capture operation is carried out, and captured screen capture pictures are stored in the test log, so that the tester can conveniently check the screen capture pictures subsequently. Meanwhile, the tester can check the test data by selecting the data export button, and the terminal can export the test data stored in the test log to a position set by a user for storage or display after obtaining the selection operation of the tester on the data export button, so that the tester can check the test data conveniently.
In an embodiment, the method for testing the stability of the mobile terminal system further includes the following steps: calculating the test success rate corresponding to the current test, and comparing the test success rate corresponding to the current test with a preset test success rate threshold; and when the test success rate corresponding to the current test is smaller than a preset test success rate threshold, generating a test ending instruction, and ending the test.
Specifically, the terminal obtains the number of times of success and the number of times of failure of multiple historical tests, calculates the number of times of success and the number of times of failure of the current test according to the current test result, calculates the success rate of the current test according to the number of times of success and the number of times of failure of the current test, compares the success rate of the current test with a preset success rate threshold, judges whether the success rate of the current test reaches a preset requirement, if the success rate of the current test is greater than or equal to the preset success rate threshold, the success rate of the current test reaches the preset requirement, and continues to execute the test cases circularly; if the test success rate corresponding to the current test is smaller than the preset test success rate threshold, the test success rate corresponding to the current test does not meet the preset requirement, the test success rate is low, the number of test failure data is large, and at the moment, the terminal generates a test ending instruction and ends the test. In the embodiment, the test success rate corresponding to the current test is calculated in real time in the cyclic test process, and the terminal directly finishes the test when the test success rate corresponding to the current test is low, so that a tester can check the test failure data in time without waiting for all tests to complete analyzing and testing problems, the time for waiting for analyzing the test failure data can be effectively shortened, and the test efficiency is further improved.
In an embodiment, the preset test success rate threshold is 80% to 100%, and the specific test success rate threshold is set according to the actual test precision requirement, which is not specifically limited in this embodiment. Further, in order to avoid that the test success rate corresponding to the current test is frequently calculated, which causes a large data processing amount of the terminal and affects the test speed, in an embodiment, the test success rate corresponding to the current test may be periodically calculated according to a preset interval and the test success rate is stored to the test log. The preset interval may be a preset time interval or a preset test time interval, and if the preset time interval is 30min, the terminal calculates a test success rate corresponding to one current test every 30min, compares the calculated test success rate with a preset test success threshold, and stores the test success rate corresponding to the current test in a test log. Or, the preset interval may also be a preset test time interval, and if the preset test time interval is 20 times, the terminal calculates the test success rate corresponding to the current test every 20 times, determines whether to continue executing the test case or to end the test case in advance according to the success of the test corresponding to the current test, and stores the test success rate corresponding to the current test. In this embodiment, the test success rate corresponding to the current test is calculated and stored according to the preset interval, on one hand, the test measure can be improved, on the other hand, a test log can be effectively prevented from storing a large amount of redundant data, and a user can conveniently search for test failure data, for example, when the preset test time interval is 20 times, the user searches for test failure data, the user directly searches for 20 pieces of test data with the test success rate not reaching 100% in one period, and the user does not need to check for test data with the test success rate reaching 100% in other periods, so that the user can further conveniently check for test failure data.
In one embodiment, when the test success rate corresponding to the current test is less than the preset test success rate threshold, the terminal may further pop up an interruption reminding window, display reminding information with a low test success rate and whether an interface element requiring interruption of the test is selected by a user in the interruption reminding window, and the user may perform corresponding selection operation on the interface element to determine whether the test is interrupted or not to check test data, perform test analysis or continue to perform the test, thereby further facilitating the use of the user.
In one embodiment, after step 106, the following steps are further included: comparing the test time consumption of the current test with a preset test time consumption threshold; when the test time consumption of the current test is larger than a preset test time consumption threshold value, displaying the current test failure through a test display interface; and when the test consumed time of the current test is less than or equal to a preset test consumed time threshold value, displaying that the current test is successful through a test display interface.
The terminal stores a preset test time-consuming threshold, compares the time-consuming average value corresponding to the current test with the preset average time-consuming threshold to judge whether the current test is successful, and further judges whether the current test is successful by comparing whether the test time-consuming value of the current test exceeds the preset test time-consuming threshold. If the test time consumption of the current test is larger than a preset test time consumption threshold value, the current test fails, and the current test failure is displayed through a test display interface; and if the test time consumption of the previous test is less than or equal to the preset test time consumption threshold, the current test is successful, and the current test success is displayed through the test display interface.
In this embodiment, the terminal determines whether the current test is successful according to a comparison result between the time-consuming average value corresponding to the current test and the preset average time-consuming threshold value and a comparison result between the test time-consuming of the current test and the preset test time-consuming threshold value, and if both the time-consuming average value corresponding to the current test and the comparison result between the test time-consuming of the current test are response and not overtime, the current test is successful; otherwise, if one of the two is overtime, the current test fails. Specifically, the terminal compares the time-consuming average value corresponding to the current test with a preset average time-consuming threshold value, and when the time-consuming average value corresponding to the current test is greater than the preset average time-consuming threshold value, the current test fails; when the time-consuming average value corresponding to the current test is smaller than or equal to the preset average time-consuming threshold value, the terminal further compares the test time-consuming of the current test with the preset test time-consuming threshold value, and if the test time-consuming of the current test is larger than the preset test time-consuming threshold value, the current test fails; and if the test time consumption of the previous test is less than or equal to the preset test time consumption threshold, the current test is successful. In the embodiment, whether the time-consuming average value corresponding to the current test and the test time-consuming value of the current test both meet the preset requirements or not are judged, and the test is judged to be successful when both meet the preset requirements, so that the test precision is effectively ensured.
In an embodiment, the method for testing the stability of the mobile terminal system further includes the following steps: and acquiring a maximum historical test time consumption value and a minimum historical test time consumption value, and displaying the maximum historical test time consumption value and the minimum historical test time consumption value through a test display interface.
In this embodiment, the terminal further displays the maximum historical test time consumption value and the minimum historical test time consumption value in real time through the test display interface, so that a tester can know the historical test condition in real time in the test process, the test analysis of the tester in the test process is facilitated, and the use of the tester is facilitated.
Specifically, as shown in fig. 3, in an embodiment, the preset test case is a TCP long-short test, the test time consumption data collected by the terminal includes time consumption for establishing data connection (time consumption for establishing data connection when the terminal is networked), time consumption for connecting the server, time consumption for sending to receiving (time consumption for transmitting data between the terminal and the server), time consumption for disconnecting the server, and time consumption for disconnecting the data connection (time consumption for disconnecting data connection when the terminal is disconnected from the network), the data connection establishment and the data connection disconnection are performed once because the test case is a long data connection and a short server connection, and the connection, the data sending from the server to the server, and the data disconnection are performed multiple times according to the configured cycle duration or cycle number. In the test process, the terminal displays a test display interface as shown in fig. 3, and displays the time-consuming average value, the historical time-consuming maximum value, the historical time-consuming minimum value, the test success times and the test failure times corresponding to the current test of each time-consuming data in real time. Specifically, in this embodiment, the time consumption sent to the receiving is core time consumption data for determining whether the test is successful, so that the test success rate is calculated by using the time consumption data sent to the receiving, the test failure times of the time consumption data sent to the receiving is 0, and the test case success rate is 100%. Further, in this embodiment, the current test result is displayed in a manner of updating and displaying the test success frequency and the test failure frequency in real time in the cyclic test process, for example, in the cyclic test process, if the current test is successful, the test display interface displays that the test success frequency is increased by 1, if the current test is failed, the test display interface displays that the test failure frequency is increased by 1, in other embodiments, the test result of the current test success or test failure may also be directly displayed, and this embodiment is not particularly limited.
Referring to fig. 4, an apparatus 400 for testing system stability of a mobile terminal includes:
the test execution module 402 acquires a test instruction, and executes a preset test case according to the test instruction;
a time-consuming average calculation module 404, configured to obtain the test time consumption of the current test and the test time consumption of the multiple historical tests, and calculate a time-consuming average corresponding to the current test according to the test time consumption of the current test and the test time consumption of the multiple historical tests;
a time-consuming comparison module 406, configured to compare the time-consuming average value corresponding to the current test with a preset average time-consuming threshold;
the display module 408 is configured to display, through the test display interface, that the current test is successful when the time-consuming average value corresponding to the current test is less than or equal to the preset average time-consuming threshold value, and display the time-consuming average value corresponding to the current test; and when the time-consuming average value corresponding to the current test is larger than the preset average time-consuming threshold, displaying the current test failure through the test display interface, and displaying the time-consuming average value corresponding to the current test.
As shown in fig. 5, in an embodiment, the apparatus for testing system stability of a mobile terminal further includes:
and an error marking module 410, configured to generate an error identifier when the time-consuming average value corresponding to the current test is greater than a preset average time-consuming threshold, and store the error identifier in the test log.
In one embodiment, the apparatus for testing system stability of a mobile terminal further includes:
a test success ratio comparing module 412, configured to calculate a test success ratio corresponding to the current test, and compare the test success ratio corresponding to the current test with a preset test success ratio threshold;
and the test interruption module 414 is configured to generate a test ending instruction and end the test when the test success rate corresponding to the current test is smaller than a preset test success rate threshold.
In one embodiment, the consumed time comparing module 406 is further configured to compare the test consumed time of the current test with a preset test consumed time threshold; the display module 408 is further configured to display, through the test display interface, that the current test fails when the test elapsed time of the current test is greater than a preset test elapsed time threshold; and when the test time consumption of the current test is less than or equal to a preset test time consumption threshold value, displaying that the current test is successful through a test display interface.
In an embodiment, the display module 408 is further configured to obtain a maximum historical test elapsed time value and a minimum historical test elapsed time value, and display the maximum historical test elapsed time value and the minimum historical test elapsed time value through the test display interface.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for testing the stability of a mobile terminal system is characterized by comprising the following steps:
acquiring a test instruction, and executing a preset test case according to the test instruction;
obtaining test time consumption of a current test and test time consumption of multiple historical tests, calculating a time consumption average value corresponding to the current test according to the test time consumption of the current test and the test time consumption of the multiple historical tests, wherein the test time consumption of the current test is the test time consumption acquired by a terminal in real time, the test time consumption of the multiple historical tests comprises the test time consumption of each test of the multiple historical tests, and if the current test is the nth test and the test time consumption of the current test is Tn, the test time consumption of the multiple historical tests comprises T1, T2 and … Tn-1;
comparing the time-consuming average value corresponding to the current test with a preset average time-consuming threshold value;
when the time-consuming average value corresponding to the current test is smaller than or equal to the preset average time-consuming threshold value, displaying that the current test is successful through a test display interface, and displaying the time-consuming average value corresponding to the current test;
and when the time-consuming average value corresponding to the current test is larger than the preset average time-consuming threshold, displaying the current test failure through a test display interface, and displaying the time-consuming average value corresponding to the current test.
2. The method for testing system stability of a mobile terminal according to claim 1, wherein when the average consumed time value corresponding to the current test is greater than the preset average consumed time threshold value, after the step of failing the current test, the method further comprises the following steps:
and generating an error identifier, and storing the error identifier to a test log.
3. The method for testing the stability of the system of the mobile terminal according to claim 1, further comprising the steps of:
calculating the test success rate corresponding to the current test, and comparing the test success rate corresponding to the current test with a preset test success rate threshold;
and when the test success rate corresponding to the current test is smaller than the preset test success rate threshold, generating a test ending instruction, and ending the test.
4. The method for testing the stability of a mobile terminal system according to claim 1, wherein after the step of comparing the time-consuming average value corresponding to the current test with a preset average time-consuming threshold, the method further comprises the following steps:
comparing the test consumed time of the current test with a preset test consumed time threshold;
when the test consumed time of the current test is larger than the preset test consumed time threshold, displaying the current test failure through a test display interface;
and when the test consumed time of the current test is less than or equal to the preset test consumed time threshold, displaying that the current test is successful through a test display interface.
5. The method for testing the stability of the system of the mobile terminal according to claim 1, further comprising the steps of:
and acquiring a maximum historical test time consumption value and a minimum historical test time consumption value, and displaying the maximum historical test time consumption value and the minimum historical test time consumption value through the test display interface.
6. A mobile terminal system stability testing device is characterized by comprising:
the test execution module is used for acquiring a test instruction and executing a preset test case according to the test instruction;
the time-consuming average value calculating module is used for obtaining the test time consumption of the current test and the test time consumption of the multiple historical tests, calculating the time-consuming average value corresponding to the current test according to the test time consumption of the current test and the test time consumption of the multiple historical tests, wherein the test time consumption of the current test is the test time consumption acquired by a terminal in real time, the test time consumption of the multiple historical tests comprises the test time consumption of each test of the multiple historical tests, and if the current test is the nth test and the test time consumption of the current test is Tn, the test time consumption of the multiple historical tests comprises T1, T2 and … Tn-1;
the time consumption comparison module is used for comparing the time consumption average value corresponding to the current test with a preset average time consumption threshold value;
the display module is used for displaying the success of the current test through a test display interface and displaying the time-consuming average value corresponding to the current test when the time-consuming average value corresponding to the current test is smaller than or equal to the preset average time-consuming threshold value; and when the time-consuming average value corresponding to the current test is larger than the preset average time-consuming threshold, displaying the current test failure through a test display interface, and displaying the time-consuming average value corresponding to the current test.
7. The device for testing the stability of a mobile terminal system according to claim 6, further comprising:
and the error marking module is used for generating an error identifier when the time-consuming average value corresponding to the current test is greater than the preset average time-consuming threshold value, and storing the error identifier to the test log.
8. The device for testing the stability of a mobile terminal system according to claim 6, further comprising:
the test success ratio comparison module is used for calculating the test success ratio corresponding to the current test and comparing the test success ratio corresponding to the current test with a preset test success ratio threshold;
and the test interruption module is used for generating a test ending instruction and ending the test when the test success rate corresponding to the current test is smaller than the preset test success rate threshold.
9. The mobile terminal system stability testing apparatus of claim 6,
the time consumption comparison module is also used for comparing the test time consumption of the current test with a preset test time consumption threshold;
the display module is further used for displaying current test failure through a test display interface when the test consumed time of the current test is greater than the preset test consumed time threshold; and when the test consumed time of the current test is less than or equal to the preset test consumed time threshold, displaying that the current test is successful through a test display interface.
10. The device for testing the system stability of a mobile terminal according to claim 6, wherein the display module is further configured to obtain a maximum historical test elapsed time value and a minimum historical test elapsed time value, and display the maximum historical test elapsed time value and the minimum historical test elapsed time value through the test display interface.
CN201710079246.6A 2017-02-14 2017-02-14 Method and device for testing stability of mobile terminal system Active CN106897219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710079246.6A CN106897219B (en) 2017-02-14 2017-02-14 Method and device for testing stability of mobile terminal system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710079246.6A CN106897219B (en) 2017-02-14 2017-02-14 Method and device for testing stability of mobile terminal system

Publications (2)

Publication Number Publication Date
CN106897219A CN106897219A (en) 2017-06-27
CN106897219B true CN106897219B (en) 2020-01-17

Family

ID=59199155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710079246.6A Active CN106897219B (en) 2017-02-14 2017-02-14 Method and device for testing stability of mobile terminal system

Country Status (1)

Country Link
CN (1) CN106897219B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704370A (en) * 2017-09-28 2018-02-16 四川长虹电器股份有限公司 Affairs successful rate statistics method based on response time and the double dimensions of running status
CN107894950A (en) * 2017-10-30 2018-04-10 北京奇虎科技有限公司 A kind of equipment detection method, device, server and storage medium
CN108021479A (en) * 2017-12-05 2018-05-11 郑州云海信息技术有限公司 A kind of test method, device and the equipment of storage medium and server stability
CN109726124B (en) * 2018-12-20 2023-06-02 北京爱奇艺科技有限公司 Test system, test method, management device, test device and computing equipment
CN112732543A (en) * 2021-01-08 2021-04-30 支付宝(杭州)信息技术有限公司 Method, device, equipment and medium for testing task time consumption
CN112882948A (en) * 2021-03-15 2021-06-01 数字广东网络建设有限公司 Stability testing method, device and system for application and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576846A (en) * 2008-05-09 2009-11-11 北京世纪拓远软件科技发展有限公司 Method for testing software performance
CN101887392A (en) * 2010-07-06 2010-11-17 中兴通讯股份有限公司 Method and device for testing software system operation stability
CN101989228A (en) * 2009-08-07 2011-03-23 中兴通讯股份有限公司 Estimation method and device of execution time of test plan
CN102571547A (en) * 2010-12-29 2012-07-11 北京启明星辰信息技术股份有限公司 Method and device for controlling hyper text transport protocol (HTTP) traffic
CN105320600A (en) * 2015-11-26 2016-02-10 上海斐讯数据通信技术有限公司 Test case execution monitoring method and system based on automatic testing platform
CN105827476A (en) * 2016-01-21 2016-08-03 北京荣达千里科技有限公司 High-speed PING implementation method and PING testing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576846A (en) * 2008-05-09 2009-11-11 北京世纪拓远软件科技发展有限公司 Method for testing software performance
CN101989228A (en) * 2009-08-07 2011-03-23 中兴通讯股份有限公司 Estimation method and device of execution time of test plan
CN101887392A (en) * 2010-07-06 2010-11-17 中兴通讯股份有限公司 Method and device for testing software system operation stability
CN102571547A (en) * 2010-12-29 2012-07-11 北京启明星辰信息技术股份有限公司 Method and device for controlling hyper text transport protocol (HTTP) traffic
CN105320600A (en) * 2015-11-26 2016-02-10 上海斐讯数据通信技术有限公司 Test case execution monitoring method and system based on automatic testing platform
CN105827476A (en) * 2016-01-21 2016-08-03 北京荣达千里科技有限公司 High-speed PING implementation method and PING testing method

Also Published As

Publication number Publication date
CN106897219A (en) 2017-06-27

Similar Documents

Publication Publication Date Title
CN106897219B (en) Method and device for testing stability of mobile terminal system
CN109062745B (en) Test terminal with test server hardware temperature
CN111459794A (en) Communication network testing method, device, computer equipment and storage medium
CN101478449B (en) Protocol automatic test method and system thereof
CN110908909B (en) Automatic test method, device, storage medium and equipment
CN108645532B (en) Temperature testing device with temperature testing and alarming functions and temperature testing method
US10146658B2 (en) User device power consumption monitoring and analysis
CN111786854B (en) Network card testing method and device, electronic equipment and readable storage medium
CN111639002B (en) Sleep power consumption testing method, system, computer equipment and storage medium
CN111240973A (en) Simulation-based equipment testing method and system and readable storage medium
US9699674B2 (en) Technique for testing wireless network load produced by mobile app-carrying devices
CN112566078A (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN111585841A (en) Automatic test method and related device
CN108307414B (en) Wi-Fi connection abnormity processing method and device of application program, terminal and storage medium
CN112822073B (en) Test method, device, system, electronic equipment and readable storage medium
CN110598797B (en) Fault detection method and device, storage medium and electronic device
CN112422369A (en) Method and device for determining offline time, storage medium and electronic device
CN113839825A (en) Equipment fault detection method, system, device, computer equipment and storage medium
CN108063855B (en) Test method and test terminal for shutdown alarm clock
CN115437865A (en) Method, device, equipment and medium for testing abnormal power failure of hard disk
CN113419932B (en) Equipment performance analysis method and device
CN113452533B (en) Charging self-inspection and self-healing method and device, computer equipment and storage medium
CN105764086B (en) A kind of terminal duration performance detection method and system
CN109800146B (en) Application program start time testing method and device, computer equipment and storage medium
CN109032869B (en) Portable server hardware test terminal

Legal Events

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