A test method and device for mean time between failures

An average fault-free and test method technology, applied in software testing/debugging, etc., can solve problems such as errors and difficulty in locating test methods

Active Publication Date: 2011-12-14
SHENZHEN TENCENT COMP SYST CO LTD
View PDF4 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the embodiments of the present invention is to provide a test method for mean time between failures, which aims to solve the problem that the existing mean time between failures test method is difficult to locate errors

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A test method and device for mean time between failures
  • A test method and device for mean time between failures
  • A test method and device for mean time between failures

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] figure 1 It shows the implementation process of the test method for mean time between failures provided by the first embodiment of the present invention, and is described in detail as follows:

[0029] In step S101, before random testing is performed on the program under test, an expected running time of the program under test is set.

[0030] The expected running time of the program under test refers to the time from executing the MTTF test to the end of the MTTF test, including the time to restart the program under test after the program under test exits abnormally.

[0031] In the embodiment of the present invention, the MTTF test tool can be used to simulate the user's operation to automatically test the program under test. At this time, before starting the MTTF test tool to test the program under test, set the expected running time of the program under test.

[0032] In step S102, when the program under test exits abnormally and the actual running time of the pro...

Embodiment 2

[0040] figure 2 It shows the implementation process of the MTBF test method provided by the second embodiment of the present invention, wherein steps S201 and S202 are respectively related to figure 1 Steps S101 and S102 in the shown method are the same, and the only difference is that the following steps are also included:

[0041] In step S203, the camera is controlled to take pictures of the user interface during the test in real time, and save the pictured information. In the embodiment of the present invention, when using the MTTF test tool to conduct random tests on the program under test, the user interface during the test process is generally output through the display device. For example, when the program in the mobile terminal is tested, the user interface during the test process is generally output on the display screen of the mobile terminal. For example, when the MTTF test tool simulates user buttons, the simulated user interface will be output on the display sc...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention is suitable for the field of software testing and provides a method and device for testing average fault-free time. The method comprises the following steps of: setting desired running time of a tested program before random testing of the tested program; and when the tested program exits abnormally and the practical running time of the tested program is shorter than the desired running time, recording error information when the tested program exits abnormally and randomly testing the tested program once again simultaneously. In the embodiment of the invention, the error information during abnormal exit of the tested program is recorded when the tested program exits abnormally and the practical execution time of the tested program is shorter than the desired execution time, so that the error information of the tested program can be positioned quickly, accurately and efficiently.

Description

technical field [0001] The invention belongs to the field of software testing, in particular to a testing method and device for mean time between failures. Background technique [0002] The software programs used in various terminals, such as the software programs in mobile terminals, generally need to carry out Mean Time To Failure (MTF) test (Mean Time To Failure, MTTF). Among them, the mean time between failure test refers to the stability test of the software program to test how long the software program can run normally before a failure occurs. [0003] The principle of the existing MTBF test method is as follows: generally, an MTTF test tool is installed on a terminal (such as a mobile terminal) with a software program installed. Start or exit programs, etc. When a software program needs to be tested, start the MTTF test tool and set a running time, and the MTTF test tool simulates the user's operation to start the program under test, and randomly tests the program ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 罗巍李龙叶方正丁如敏
Owner SHENZHEN TENCENT COMP SYST CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products