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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com