Program testing method, device and system

A program test and program technology, applied in the computer field, can solve problems such as inability to continue, unintuitive test results, inconvenient system analysis, etc., and achieve the effect of improving efficiency

Active Publication Date: 2016-04-13
深圳市雅阅科技有限公司
View PDF11 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. If the program under test crashes or unexpectedly exits (Crash), the entire test process will be interrupted, and subsequent test cases will not be able to continue, thus affecting the efficiency of the entire automated test;
[0006] 2. The test results are not intuitive, and it is not convenient for automated system analysis

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
  • Program testing method, device and system
  • Program testing method, device and system
  • Program testing method, device and system

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0042] see Figure 4 , Figure 4 It is a flow chart of the program testing method provided by the first embodiment of the present invention. Such as Figure 4 As shown, the program testing method provided in this embodiment includes:

[0043] Step S101, extracting multiple test cases from the test program, and executing the test cases one by one on the mobile terminal, so as to test the program to be tested;

[0044] The test program can be written by a third party and obtained from the Internet, which contains multiple test cases for testing the program to be tested. The test computer 100 obtains the test program from the network, calls the preset decompiler to decompile the test program, obtains the decompiled object file, parses the object file, obtains the test case and saves it, and then sends the saved test case to The mobile terminal 200 executes it to test the program to be tested.

[0045] Step S102, obtaining test result data, and when the test result data shows...

no. 2 example

[0051] see Figure 5 , Figure 5 It is a flow chart of the program testing method provided by the second embodiment of the present invention. Such as Figure 5 As shown, the program testing method provided in this embodiment includes:

[0052] Step S21, extracting multiple test cases from the test program;

[0053] Such as Image 6 As shown, this step may specifically include:

[0054] Step S211, obtaining the test program;

[0055] The test program can be written by a third party and obtained from the Internet, which contains multiple test cases for testing the program to be tested.

[0056] Step S212, call the preset decompiler program to decompile the test program, and obtain the decompiled target file;

[0057] Step S213, parsing the target file to obtain test cases;

[0058] Step S214, saving the test case.

[0059] Taking the Android system as an example, the test computer 100 first obtains the test program (assumed to be Test.apk) from the network according to ...

test Embodiment A、B、C、D……G。 test 100adb test Embodiment A200,200 test Embodiment A,QQ.apk test 。200 test Embodiment A,1,1 test 1 test 100。 test 100 test 1, test Embodiment A,QQ.apkcrash,QQ.apkcrash, test 100200 test Embodiment A。200 test Embodiment A test 1’,,QQ.apkcrash, test 100 test Embodiment Acrash, test 1’, test Embodiment B200,200 test Embodiment B,QQ.apk test ,200 test 2, test Embodiment B,QQ.apkcrash,QQ.apkcrash, test 100 test 2, test Embodiment C200,200 test Embodiment C,QQ.apk test ……, to 200 test Embodiment G

[0090]In order to further illustrate the program testing method provided in this embodiment, an example is given below. Assume that the test computer 100 obtains the test program Test.apk from the network, and obtains seven test cases A, B, C, D...G contained therein by decompiling Test.apk. The test computer 100 first calls the adb command to send the test case A to the mobile terminal 200, and instructs the mobile terminal 200 to execute the test case A to test the program QQ.apk to be tested. The mobile terminal 200 executes the test case A, obtains an execution result 1 , and sends the execution result 1 to the test computer 100 as test result data 1 . The test computer 100 analyzes the test result data 1, and judges whether QQ.apk crashes in the process of executing the test case A according to the keywords contained therein. Assuming that a crash occurs in QQ.apk, the test computer 100 instructs the mobile terminal 200 to restart Execute test case A. If according to th...

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 provides a program testing method, which comprises the following steps of extracting a plurality of test cases from a test program and executing the test cases at a mobile terminal one by one in order to test a to-be-tested program; obtaining test result data, and re-executing the test case corresponding to the test result data when the test result data shows that the to-be-tested program has program crash or unexpected exit; and executing the next test case if re-execution is carried out for the preset times and the test result data still shows that the to-be-tested program has program crash or unexpected exit. The invention also provides a program testing device and system. According to the program testing method, device and system, the subsequent test can be continued to finish when the tested program has program crash or unexpected exit in the test, so that the whole test process is guaranteed to go well, and thus the program testing efficiency is improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a program testing method, device and system. Background technique [0002] With the development of computer technology, more and more programs have been developed. However, due to the different versions of the operating system installed in each mobile terminal, in order to make the program compatible with each version of the operating system, it is necessary to The developed program is tested. [0003] The program testing technology based on mobile terminals in the prior art mainly writes all test cases (TestCase) in a test program, and the test program designates a test target as the program under test, and then passes for example: Instrumentation test framework (Android Android's official automated testing framework is improved based on the java automated testing framework Junit, which is suitable for testing the tested program on the Android system. Among them, a test case...

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
CPCY02D10/00
Inventor 丁如敏沈东雄
Owner 深圳市雅阅科技有限公司
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