CN108881585A - Built-in application program test processing method, device, electronic equipment and storage medium - Google Patents

Built-in application program test processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN108881585A
CN108881585A CN201810430327.0A CN201810430327A CN108881585A CN 108881585 A CN108881585 A CN 108881585A CN 201810430327 A CN201810430327 A CN 201810430327A CN 108881585 A CN108881585 A CN 108881585A
Authority
CN
China
Prior art keywords
test
page object
page
built
abnormal
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.)
Granted
Application number
CN201810430327.0A
Other languages
Chinese (zh)
Other versions
CN108881585B (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.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information Technology 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 Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201810430327.0A priority Critical patent/CN108881585B/en
Publication of CN108881585A publication Critical patent/CN108881585A/en
Application granted granted Critical
Publication of CN108881585B publication Critical patent/CN108881585B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • 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/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the present invention provides a kind of built-in application program test processing method, device, electronic equipment and storage medium, this method:Start built-in application program;The built-in application program is tested, the test includes that test is tested and paid in authority application;Output test result, for the test result for recording test by indicating information or the abnormal instruction information of test, the test indicates to include abnormal position and abnormal cause in information extremely.This method ensure that built-in APP tests completion in a short time, the significant increase testing efficiency of built-in APP.The problem of tester and developer can be allowed to analyze the problem of testing code and APP according to test result simultaneously, improve the efficiency of tester and developer's problem analysis.

Description

Built-in application program test processing method, device, electronic equipment and storage medium
Technical field
The present embodiments relate to computer technology more particularly to a kind of built-in application program test processing method, device, Electronic equipment and storage medium.
Background technique
Current some mobile phones when leaving the factory can built-in a part of application program (Application, abbreviation APP), i.e., this Part APP is just already installed on mobile phone when mobile phone dispatches from the factory, these APP are properly termed as built-in APP.Be installed to mobile phone it Before, need the supplier of APP to test APP built in these.The characteristics of for built-in APP itself, when the test of built-in APP Between it is short, and need to carry out the adaptation compatibility test of operating system.
In the prior art, built-in APP is completed by manual test by tester.Specifically, tester according to The function of built-in APP is operated one by one, to complete the test to built-in APP.
But testing scheme testing efficiency in the prior art is low, it is difficult to meet the test request of built-in APP.
Summary of the invention
The embodiment of the present invention provides a kind of built-in application program test processing method, device, electronic equipment and storage medium, For solving the problems, such as that testing efficiency is low in the prior art.
First aspect of the embodiment of the present invention provides a kind of test processing method of built-in application program, and this method includes:
Start built-in application program;
The built-in application program is tested, the test includes that test is tested and paid in authority application;
Outputing test result, the test result passes through instruction information or the abnormal instruction information of test for recording test, It include abnormal position and abnormal cause in test instruction information extremely.
Further, described that the built-in application program is tested, including:
First page object is searched in the User Agreement page, the first page object is used for ejecting authority application bullet frame;
If finding the first page object, the operation for clicking the first page object is executed;
Second is searched on the authority application bullet frame popped up after executing the operation for clicking the first page object Page object, the second page object is for allowing the built-in application program to use shown by the authority application bullet frame Permission;
If finding the second page object, the operation for clicking the second page object is executed.
Further, described after lookup first page object, to further include in current page:
If not finding the first page object, the abnormal instruction of the first test of record, first test refers to extremely Show that the corresponding abnormal position of information is the test code position for searching the first page object, first test is abnormal Indicate that the corresponding abnormal cause of information is to search the first page object failure.
Further, the authority application bullet popped up after executing the operation for clicking the first page object Second page object is searched on frame, including:
Circulation searching on the authority application bullet frame popped up after executing the operation for clicking the first page object Second page object;
The operation for executing the click second page object, including:
Circulation executes the operation for clicking the second page object.
Further, described that the built-in application program is tested, including:
Third page object is searched in the payment triggering page, the third page object is for triggering the 4th page pair of display As;
If finding the third page object, the operation for clicking the third page object is executed;
The 4th page object is searched on the payment triggering page, the 4th page object is for triggering starting third Square payment application;
If finding the 4th page object, the operation for clicking the 4th page object is executed.
Further, described after the 4th page object of lookup, to further include on the payment triggering page:
If not finding the 4th page object in the payment triggering page, the second test of record is abnormal to be indicated, Second test is abnormal to indicate that the corresponding abnormal position of information is in place for the test code institute of lookup the 4th page object It sets, second test is abnormal to indicate that the corresponding abnormal cause of information is to search the 4th page object failure.
Second aspect of the embodiment of the present invention provides a kind of test processes device of built-in application program, which includes:
Starting module, for starting built-in application program;
Test module, for testing the built-in application program, it is described test include authority application test and Payment test;
Output module, for outputing test result, the test result passes through instruction information or test for recording test Abnormal instruction information, the test indicate to include abnormal position and abnormal cause in information extremely.
Further, the first searching unit, for searching first page object, the first page in the User Agreement page Object is used for ejecting authority application bullet frame;
First clicks unit, for executing and clicking the first page object when finding the first page object Operation;
Second searching unit, the permission Shen for being popped up after executing the operation for clicking the first page object Lookup second page object on frame please be play, the second page object is for allowing the built-in application program to use the permission Application plays permission shown by frame;
Second clicks unit, for executing and clicking the second page object when finding the second page object Operation.
Further, the test module further includes::
First recording unit, for when not finding the first page object, the first test of record exception to be indicated, institute Stating the first test corresponding abnormal position of instruction information extremely is the test code position for searching the first page object, First test is abnormal to indicate that the corresponding abnormal cause of information is to search the first page object failure.
Further, second searching unit is specifically used for:
Circulation searching on the authority application bullet frame popped up after executing the operation for clicking the first page object Second page object;
The second click unit is specifically used for:
Circulation executes the operation for clicking the second page object.
Further, the test module further includes:
Third searching unit, for searching third page object in the payment triggering page, the third page object is used for Triggering the 4th page object of display;
Third clicks unit, for executing and clicking the third page object when finding the third page object Operation;
4th searching unit, for searching the 4th page object, the 4th page pair on the payment triggering page As for triggering starting Third-party payment application program;
4th clicks unit, for executing and clicking the 4th page object when finding four page object Operation.
Further, the test module further includes:
Second recording unit, for when the payment triggering page does not find four page object, record the Two test abnormal instruction, and second test is abnormal to indicate that the corresponding abnormal position of information is to search the 4th page object Code position is tested, second test is abnormal to indicate that the corresponding abnormal cause of information is to search the 4th page object Failure.
The third aspect of the embodiment of the present invention provides a kind of electronic equipment, including:
Memory, for storing program instruction;
Processor executes side described in above-mentioned first aspect for calling and executing the program instruction in the memory Method step.
Fourth aspect of the embodiment of the present invention provides a kind of readable storage medium storing program for executing, which is characterized in that the readable storage medium storing program for executing In be stored with computer program, when at least one processor of the test processes device of built-in application program executes the computer When program, the test processes device of built-in application program executes the test processes of built-in application program described in above-mentioned first aspect Method.
Built-in application program test processing method, device, electronic equipment and storage medium provided by the embodiment of the present invention, Test equipment can start built-in application program automatically, carry out permission to built-in application program after built-in application program launching Application test and payment test, and export test and pass through or test abnormal test result, to ensure that built-in APP exists Test is completed in short time, the significant increase testing efficiency of built-in APP.It can make tester and developer can simultaneously The problem of to analyze the problem of testing code and APP according to test result, improves tester and developer's analysis The efficiency of problem.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some embodiments of bright embodiment, for those of ordinary skill in the art, without any creative labor, It is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram of the test processing method embodiment of built-in application program provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the test processing method embodiment of built-in application program provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the test processing method embodiment of built-in application program provided in an embodiment of the present invention;
Fig. 4 is the modular structure of the test processes Installation practice one of built-in application program provided in an embodiment of the present invention Figure;
Fig. 5 is the modular structure of the test processes Installation practice two of built-in application program provided in an embodiment of the present invention Figure;
Fig. 6 is the modular structure of the test processes Installation practice three of built-in application program provided in an embodiment of the present invention Figure;
Fig. 7 is the modular structure of the test processes Installation practice four of built-in application program provided in an embodiment of the present invention Figure;
Fig. 8 is the modular structure of the test processes Installation practice five of built-in application program provided in an embodiment of the present invention Figure;
Fig. 9 is the entity block diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the embodiment of the present invention, instead of all the embodiments.Based on the embodiment in the embodiment of the present invention, this field Those of ordinary skill's every other embodiment obtained without creative efforts, belongs to implementation of the present invention The range of example protection.
The testing time for the built-in APP that each manufacturer requires at present is shorter than the testing time of common APP, it is therefore desirable to shorter The test of built-in APP is completed in time.Therefore, the testing time of built-in APP is short, and task is complicated.And only by the prior art The method of manual testing completes the test of built-in APP, but it is clear that the inefficiency of manual testing, neither can guarantee built-in APP tests completion in a short time, cannot guarantee that the correctness for testing complete and test result, built-in therefore, it is difficult to meet The test request of APP.
The embodiment of the present invention based on the above issues, proposes the test processing method of built-in APP a kind of, is based on built-in APP sheet The characteristics of body, it is automatically performed the authority application test and payment test of built-in APP, and exports test and pass through or test exception Test result, to ensure that built-in APP tests completion in a short time, the significant increase testing efficiency of built-in APP.Simultaneously The problem of tester and developer can be allowed to analyze the problem of testing code and APP according to test result, Improve the efficiency of tester and developer's problem analysis.
It should be noted that common APP described in the embodiment of the present invention refers to the APP that installation is actively downloaded by user, with Under no longer repeated.
Fig. 1 is the flow diagram of the test processing method embodiment of built-in application program provided in an embodiment of the present invention, Test equipment that the executing subject of this method tests built-in APP, such as desktop computer, laptop etc..Such as Fig. 1 institute Show, this method includes:
S101, starting built-in application program.
Optionally, it is assumed that the executing subject of this method is that desktop computer then before test can be in advance by built-in APP It is mounted in specific test terminal, such as mobile phone, then the testing mobile phone and desktop computer are established into communication connection.
It should be noted that the embodiment of the present invention is all illustrated for testing terminal and being mobile phone, but the present invention is real Example is applied to be not limited thereto.
In turn, in this step, tester can be by executing start-up operation, such as click starting on desktop computer The button of test is tested to start, and in turn, desktop computer can identify the operation of user, switched to test starting command and be sent to Testing mobile phone.After testing mobile phone receives test starting command, according to test starting command, start built-in APP.
S102, above-mentioned built-in application program is tested, which includes authority application test and payment test.
Specifically, authority application test refers to the authority application process for testing built-in APP.Due to the permission Shen of built-in APP Please the authority application process of process and common APP there are larger differences, therefore, in the present embodiment need specific for built-in APP Authority application process tested, detailed process will be described in detail in the following embodiments.
Payment test refers to the payment jump procedure for testing built-in APP.
S103, output test result, which passes through instruction information or the abnormal instruction letter of test for recording test Breath, the test indicate to include abnormal position and abnormal cause in information extremely.
It optionally,, can be defeated after being completed if the whole process of the functional test of built-in APP all normally executes Test is used to refer to this test and is passed through by information out.Test is by indicating that information for example can be the text of " being successfully tested " This prompt information, alternatively, it is also possible to the number that display executes the test case passed through, for example, " X test case is executed, It executes and passes through X test case ".
If there is exception during carrying out permission test and payment test to built-in APP, it is different to will record test Often instruction information, the information including abnormal position and abnormal cause refer to the test recorded when outputing test result extremely Show that information unification exports.
In the present embodiment, test equipment can start built-in application program automatically, right after built-in application program launching Built-in application program carries out authority application test and payment test, and exports test and pass through or test abnormal test knot Fruit, to ensure that built-in APP tests completion in a short time, the significant increase testing efficiency of built-in APP.It can make simultaneously Tester and developer the problem of test code can be analyzed according to test result and the problem of APP, improve The efficiency of tester and developer's problem analysis.
On the basis of the above embodiments, the present embodiment is related to the detailed process of the authority application test of built-in APP.
Fig. 2 is the flow diagram of the test processing method embodiment of built-in application program provided in an embodiment of the present invention, As shown in Fig. 2, this method includes:
S201, starting built-in application program.
The implementation procedure of the step is identical as above-mentioned steps S101, can refer to above-mentioned steps S101, details are not described herein again.
S202, first page object is searched in the User Agreement page, which is used for ejecting authority application bullet Frame.
Specifically, the User Agreement page, above-mentioned first page object tool can be entered first after starting built-in APP for the first time Body is " determination " button on the User Agreement page, after only " determination " button is clicked, after can just continuing to execute Continuous authority application process.Therefore, in this step, first page object is searched in the User Agreement page first.
Wherein, first page object is used for ejecting authority application bullet frame, refers to after clicking the first page object, can bullet Authority application bullet frame out.
If S203, finding above-mentioned first page object, the operation for clicking above-mentioned first page object is executed.
Optionally, the mode asserted can be used to be confirmed whether to find first page object.
It is searched on S204, the above-mentioned authority application bullet frame popped up after executing the operation for clicking above-mentioned first page object Second page object, the second page object is for allowing built-in application program to use power shown by above-mentioned authority application bullet frame Limit.
After first page object is clicked, authority application bullet frame will pop up, second page object is specially the permission Shen It please play " permission " button on frame.
The second page object is used to allow built-in application program using permission shown by above-mentioned authority application bullet frame, is After referring to that the second page object is clicked, then permission shown on the authority application bullet frame where it will be endowed built-in APP。
In this step, it is necessary first to search the second page object.
If S205, finding above-mentioned second page object, the operation for clicking above-mentioned second page object is executed.
After executing the operation for clicking second page object, shown permission is endowed built-in on authority application bullet frame APP, thus the test after completing APP starting to authority application function.
In the present embodiment, according to the authority application process of built-in APP, first page object is first looked for, after finding The first page object is clicked, and then clicks second page object on the bullet frame of pop-up, so that playing permission shown by frame It is endowed built-in APP, to guarantee that complete authority application process is performed, ensure that the integrality of authority application test.
As an alternative embodiment, first page object is searched in above-mentioned steps 202, if not finding the One page object then records the abnormal instruction of the first test, which is to search The test code position of above-mentioned first page object, which is to search Above-mentioned first page object failure.
It illustratively, can not if asserted if being confirmed whether to find first page object using the mode asserted Normal response is obtained, then illustrates not find first page object, will record upper one of the lines of code where this is asserted at this time Row, as abnormal position.And recording exceptional reason is " can not find first page object ".
In a kind of optional embodiment, second page object is searched in above-mentioned steps S204 and in above-mentioned S205 When the middle operation for executing click second page object, it can be carried out in such a way that circulation executes.
It is looked into that is, being recycled on the above-mentioned authority application bullet frame popped up after executing the operation for clicking above-mentioned first page object Second page object is looked for, also, recycles the operation for executing and clicking above-mentioned second page object.
Specifically, for different operating system, it may be different for the request times of permission.It i.e. will be same built-in APP is mounted in different terminals, and the number for carrying out authority application may be not identical, that is, of the authority application bullet frame shown Number may not be identical.Regardless of the number of the authority application bullet frame of display how much, and each of shown by tested built-in APP All there are the page elements for specifically allowing to operate, i.e. second page object in authority application bullet frame.For example, each authority application " permission " button can all be shown on frame by playing.Then in the present embodiment, mobile phone can pass through the circulation searching second page object To determine whether showing authority application bullet frame, as long as judging to show authority application bullet frame, execution allows to operate, thus Realization executes one or more authority application bullet frames that built-in APP is popped up automatically to be allowed to operate.
In the present embodiment, inquiry second page object is executed by circulation and clicks the operation of second page object, protected Demonstrate,proved no matter the quantity of the authority application bullet frame of built-in APP how many, permission can be executed to each permission bullet application bullet frame Operation, so that the built-in APP after guaranteeing after tested can be operated normally in different operating system.
On the basis of the above embodiments, the present embodiment is related to the detailed process of the payment test of built-in APP.
Fig. 3 is the flow diagram of the test processing method embodiment of built-in application program provided in an embodiment of the present invention, As shown in figure 3, this method includes:
S301, starting built-in application program.
The implementation procedure of the step is identical as above-mentioned steps S101, can refer to above-mentioned steps S101, details are not described herein again.
S302, third page object is searched in the payment triggering page, the third page object is for triggering display page four In face of as.
Wherein, the above-mentioned payment triggering page refers to triggers payment function on this page.For example, the information that user is issued It can be presented in " my publication " page, user needs to pay expense for the information of oneself publication, then " my publication " page is One payment triggers the page.
It should be noted that the page that payment function can be triggered may have it is multiple.In specific test process, it can choose One of payment triggers the page to test payment function, alternatively, can also be carried out one for all payment triggering pages Secondary payment function test.
Optionally, it before executing this step, needs first since the homepage of built-in APP, executes specific operation, with The page is triggered into the payment.
By taking above-mentioned " my publication " page as an example, to enter the page, need current in the homepage selection of built-in APP first The city of positioning, and judge whether to have been switched to positioning city, after confirmation has been switched to positioning city, execute specific Clicking operation enters userspersonal information's page, and executes in the page and be specifically operated into " my publication " page.
Wherein, third page object shows the 4th page object for triggering, and refers to after clicking third page object, The 4th page object can be shown on the payment triggering page.
Illustratively, third page object can be " confirmation payment " button on the payment triggering page, the 4th page pair As that " logging in wechat " can be shown to be paid after click " confirmation payment " for " logging in wechat " button.
If S303, finding above-mentioned third page object, the operation for clicking above-mentioned third page object is executed.
S304, the 4th page object is searched on the above-mentioned payment triggering page, the 4th page object is for triggering starting Third-party payment application program.
Wherein, the 4th page object refers to for triggering starting Third-party payment application program and is clicking the 4th page pair As rear, Third-party payment application program can be jumped to and complete payment.
Optionally, the mode asserted can be used to be confirmed whether to find first page object.
If S305, finding above-mentioned 4th page object, the operation for clicking the 4th page object is executed.
With " confirmation payment " button that above-mentioned third page object is on the payment triggering page, the 4th page object is For " logging in wechat " button, after " confirmation payment " button is clicked, according to the normal implementation procedure of built-in APP, it can show " logging in wechat " button, therefore, inquiry at this time " logging in wechat " button whether there is, and if it exists, then execute click and " log in micro- The operation of letter " button.
After executing the operation for clicking the 4th page object, Third-party payment application program launching, to complete internal Set the test that the payment of APP jumps.
In the present embodiment, according to the payment flow of built-in APP, third page object is searched in the payment triggering page first, The third page object is clicked after finding, and then searches and click the 4th page object, to trigger starting Third-party payment Application program ensure that the integrality of payment test to guarantee that complete payment jump procedure is performed.
As an alternative embodiment, the 4th page object is searched in above-mentioned steps 304, if triggered in payment The page does not find the 4th page object, then records the abnormal instruction of the second test, and the abnormal instruction information of the second test is corresponding Abnormal position is the test code position for searching above-mentioned 4th page object, and the abnormal instruction information of the second test is corresponding Abnormal cause is to search above-mentioned 4th page object failure.
It illustratively, can not if asserted if being confirmed whether to find the 4th page object using the mode asserted Normal response is obtained, then illustrates not find the 4th page object, will record upper one of the lines of code where this is asserted at this time Row, as abnormal position.And recording exceptional reason is " can not find the 4th page object ".
Fig. 4 is the modular structure of the test processes Installation practice one of built-in application program provided in an embodiment of the present invention Figure, as shown in figure 4, the device includes:
Starting module 401, for starting built-in application program.
Test module 402, for testing the built-in application program, it is described test include authority application test with And payment test.
Output module 403, for outputing test result, the test result passes through instruction information or survey for recording test The abnormal instruction information of examination, the test indicate to include abnormal position and abnormal cause in information extremely.
Fig. 5 is the modular structure of the test processes Installation practice two of built-in application program provided in an embodiment of the present invention Figure, as shown in figure 5, the device includes:
Starting module 401, for starting built-in application program.
Test module 402, for testing the built-in application program, it is described test include authority application test with And payment test.
Output module 403, for outputing test result, the test result passes through instruction information or survey for recording test The abnormal instruction information of examination, the test indicate to include abnormal position and abnormal cause in information extremely.
Test module 402 includes:
First searching unit 4021, for searching first page object, the first page object in the User Agreement page It is used for ejecting authority application bullet frame.
First clicks unit 4022, for executing and clicking the first page when finding the first page object The operation of object.
Second searching unit 4023, the power for being popped up after executing the operation for clicking the first page object Limit application plays and searches second page object on frame, and the second page object is for allowing described in the built-in application program use Permission shown by authority application bullet frame.
Second clicks unit 4024, for executing and clicking the second page when finding the second page object The operation of object.
Fig. 6 is the modular structure of the test processes Installation practice three of built-in application program provided in an embodiment of the present invention Figure, as shown in fig. 6, the device includes:
Starting module 401, for starting built-in application program.
Test module 402, for testing the built-in application program, it is described test include authority application test with And payment test.
Output module 403, for outputing test result, the test result passes through instruction information or survey for recording test The abnormal instruction information of examination, the test indicate to include abnormal position and abnormal cause in information extremely.
Test module 402 includes:
First searching unit 4021, for searching first page object, the first page object in the User Agreement page It is used for ejecting authority application bullet frame.
First clicks unit 4022, for executing and clicking the first page when finding the first page object The operation of object.
Second searching unit 4023, the power for being popped up after executing the operation for clicking the first page object Limit application plays and searches second page object on frame, and the second page object is for allowing described in the built-in application program use Permission shown by authority application bullet frame.
Second clicks unit 4024, for executing and clicking the second page when finding the second page object The operation of object.
Test module 402 further includes:
First recording unit 4025, for when not finding the first page object, the first test of record to refer to extremely Show, first test is abnormal to indicate that the corresponding abnormal position of information is where searching the test code of the first page object Position, first test is abnormal to indicate that the corresponding abnormal cause of information is to search the first page object failure.
In another embodiment, the second searching unit 4023 is specifically used for:
Circulation searching on the authority application bullet frame popped up after executing the operation for clicking the first page object Second page object.
Second click unit 4024 is specifically used for:
Circulation executes the operation for clicking the second page object.
Fig. 7 is the modular structure of the test processes Installation practice four of built-in application program provided in an embodiment of the present invention Figure, as shown in fig. 7, the device includes:
Starting module 401, for starting built-in application program.
Test module 402, for testing the built-in application program, it is described test include authority application test with And payment test.
Output module 403, for outputing test result, the test result passes through instruction information or survey for recording test The abnormal instruction information of examination, the test indicate to include abnormal position and abnormal cause in information extremely.
Test module 402 includes:
First searching unit 4021, for searching first page object, the first page object in the User Agreement page It is used for ejecting authority application bullet frame.
First clicks unit 4022, for executing and clicking the first page when finding the first page object The operation of object.
Second searching unit 4023, the power for being popped up after executing the operation for clicking the first page object Limit application plays and searches second page object on frame, and the second page object is for allowing described in the built-in application program use Permission shown by authority application bullet frame.
Second clicks unit 4024, for executing and clicking the second page when finding the second page object The operation of object.
Test module 402 further includes:
First recording unit 4025, for when not finding the first page object, the first test of record to refer to extremely Show, first test is abnormal to indicate that the corresponding abnormal position of information is where searching the test code of the first page object Position, first test is abnormal to indicate that the corresponding abnormal cause of information is to search the first page object failure.
Test module 402 further includes:
Third searching unit 4026, for searching third page object, the third page object in the payment triggering page The 4th page object is shown for triggering.
Third clicks unit 4027, for executing and clicking the third page when finding the third page object The operation of object.
4th searching unit 4028 searches the 4th page object for triggering in the payment on the page, and described page four In face of as triggering starting Third-party payment application program.
4th clicks unit 4029, for executing and clicking the 4th page when finding four page object The operation of object.
Fig. 8 is the modular structure of the test processes Installation practice five of built-in application program provided in an embodiment of the present invention Figure, as shown in figure 8, the device includes:
Starting module 401, for starting built-in application program.
Test module 402, for testing the built-in application program, it is described test include authority application test with And payment test.
Output module 403, for outputing test result, the test result passes through instruction information or survey for recording test The abnormal instruction information of examination, the test indicate to include abnormal position and abnormal cause in information extremely.
Test module 402 includes:
First searching unit 4021, for searching first page object, the first page object in the User Agreement page It is used for ejecting authority application bullet frame.
First clicks unit 4022, for executing and clicking the first page when finding the first page object The operation of object.
Second searching unit 4023, the power for being popped up after executing the operation for clicking the first page object Limit application plays and searches second page object on frame, and the second page object is for allowing described in the built-in application program use Permission shown by authority application bullet frame.
Second clicks unit 4024, for executing and clicking the second page when finding the second page object The operation of object.
Test module 402 further includes:
First recording unit 4025, for when not finding the first page object, the first test of record to refer to extremely Show, first test is abnormal to indicate that the corresponding abnormal position of information is where searching the test code of the first page object Position, first test is abnormal to indicate that the corresponding abnormal cause of information is to search the first page object failure.
Test module 402 further includes:
Third searching unit 4026, for searching third page object, the third page object in the payment triggering page The 4th page object is shown for triggering.
Third clicks unit 4027, for executing and clicking the third page when finding the third page object The operation of object.
4th searching unit 4028 searches the 4th page object for triggering in the payment on the page, and described page four In face of as triggering starting Third-party payment application program.
4th clicks unit 4029, for executing and clicking the 4th page when finding four page object The operation of object.
Test module 402 further includes:
Second recording unit 40210, for remembering when the payment triggering page does not find four page object Record the second test exception instruction, described second tests the corresponding abnormal position of abnormal instruction information to search the 4th page pair The test code position of elephant, second test is abnormal to indicate that the corresponding abnormal cause of information is to search the 4th page Object failure.
Fig. 9 is the entity block diagram of electronic equipment provided in an embodiment of the present invention, as shown in figure 9, the electronic equipment includes:
Memory 901, for storing program instruction.
Processor 902 executes institute in above method embodiment for calling and executing the program instruction in memory 901 The method stated.
Those of ordinary skill in the art will appreciate that:Realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally it should be noted that:The above various embodiments is only to illustrate the technical solution of the embodiment of the present invention, rather than to it Limitation;Although the embodiment of the present invention is described in detail referring to foregoing embodiments, those skilled in the art It should be understood that:It is still possible to modify the technical solutions described in the foregoing embodiments, either to part of or All technical features are equivalently replaced;And these are modified or replaceed, it does not separate the essence of the corresponding technical solution this hair The range of bright each embodiment technical solution of embodiment.

Claims (14)

1. a kind of test processing method of built-in application program, which is characterized in that including:
Start built-in application program;
The built-in application program is tested, the test includes that test is tested and paid in authority application;
Output test result, the test result passes through instruction information or the abnormal instruction information of test for recording test, described It include abnormal position and abnormal cause in the abnormal instruction information of test.
2. the method according to claim 1, wherein described test the built-in application program, including:
First page object is searched in the User Agreement page, the first page object is used for ejecting authority application bullet frame;
If finding the first page object, the operation for clicking the first page object is executed;
Second page is searched on the authority application bullet frame popped up after executing the operation for clicking the first page object Object, the second page object is for allowing the built-in application program to use power shown by the authority application bullet frame Limit;
If finding the second page object, the operation for clicking the second page object is executed.
3. according to the method described in claim 2, it is characterized in that, it is described in current page search first page object it Afterwards, further include:
If not finding the first page object, the abnormal instruction of the first test of record, the abnormal instruction letter of the first test Ceasing corresponding abnormal position is the test code position for searching the first page object, the abnormal instruction of the first test The corresponding abnormal cause of information is to search the first page object failure.
4. according to the method in claim 2 or 3, which is characterized in that described to execute the click first page object Second page object is searched on the authority application bullet frame popped up after operation, including:
Circulation searching second on the authority application bullet frame popped up after executing the operation for clicking the first page object Page object;
The operation for executing the click second page object, including:
Circulation executes the operation for clicking the second page object.
5. the method according to claim 1, wherein described test the built-in application program, including:
Third page object is searched in the payment triggering page, the third page object is for triggering the 4th page object of display;
If finding the third page object, the operation for clicking the third page object is executed;
The 4th page object is searched on the payment triggering page, the 4th page object is for triggering starting third party's branch Pay application program;
If finding the 4th page object, the operation for clicking the 4th page object is executed.
6. according to the method described in claim 5, it is characterized in that, described search the 4th page on the payment triggering page After object, further include:
If not finding the 4th page object in the payment triggering page, the abnormal instruction of the second test of record is described The corresponding abnormal position of the abnormal instruction information of second test is the test code position for searching the 4th page object, institute The second test corresponding abnormal cause of instruction information extremely is stated to search the 4th page object failure.
7. a kind of test processes device of built-in application program, which is characterized in that including:
Starting module, for starting built-in application program;
Test module, for testing the built-in application program, the test includes that authority application is tested and paid Test;
Output module, for outputing test result, the test result is abnormal by instruction information or test for recording test It indicates information, includes abnormal position and abnormal cause in test instruction information extremely.
8. device according to claim 7, which is characterized in that the test module includes:
First searching unit, for searching first page object in the User Agreement page, the first page object is used for ejecting Authority application bullet frame;
First clicks unit, for executing the behaviour for clicking the first page object when finding the first page object Make;
Second searching unit, the authority application bullet for being popped up after executing the operation for clicking the first page object Second page object is searched on frame, the second page object is for allowing the built-in application program to use the authority application Play permission shown by frame;
Second clicks unit, for executing the behaviour for clicking the second page object when finding the second page object Make.
9. device according to claim 8, which is characterized in that the test module further includes::
First recording unit, for when not finding the first page object, the abnormal instruction of the first test of record, described the The corresponding abnormal position of the abnormal instruction information of one test is the test code position for searching the first page object, described The corresponding abnormal cause of the abnormal instruction information of first test is to search the first page object failure.
10. device according to claim 8 or claim 9, which is characterized in that second searching unit is specifically used for:
Circulation searching second on the authority application bullet frame popped up after executing the operation for clicking the first page object Page object;
The second click unit is specifically used for:
Circulation executes the operation for clicking the second page object.
11. device according to claim 7, which is characterized in that the test module further includes:
Third searching unit, for searching third page object in the payment triggering page, the third page object is for triggering Show the 4th page object;
Third clicks unit, for executing the behaviour for clicking the third page object when finding the third page object Make;
4th searching unit, for searching the 4th page object on the payment triggering page, the 4th page object is used Start Third-party payment application program in triggering;
4th clicks unit, for executing the behaviour for clicking the 4th page object when finding four page object Make.
12. device according to claim 11, which is characterized in that the test module further includes:
Second recording unit, for when the payment triggering page does not find four page object, record second to be surveyed Abnormal instruction is tried, second test is abnormal to indicate that the corresponding abnormal position of information is the test for searching the 4th page object Code position, second test is abnormal to indicate that the corresponding abnormal cause of information is to search the 4th page object to lose It loses.
13. a kind of electronic equipment, which is characterized in that including:
Memory, for storing program instruction;
Processor, for calling and executing the program instruction in the memory, perform claim requires the described in any item sides of 1-6 Method step.
14. a kind of readable storage medium storing program for executing, which is characterized in that computer program is stored in the readable storage medium storing program for executing, when built-in When at least one processor of the test processes device of application program executes the computer program, the test of built-in application program The test processing method of the processing unit perform claim requirement described in any item built-in application programs of 1-6.
CN201810430327.0A 2018-05-08 2018-05-08 Built-in application program test processing method and device, electronic equipment and storage medium Active CN108881585B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810430327.0A CN108881585B (en) 2018-05-08 2018-05-08 Built-in application program test processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810430327.0A CN108881585B (en) 2018-05-08 2018-05-08 Built-in application program test processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108881585A true CN108881585A (en) 2018-11-23
CN108881585B CN108881585B (en) 2020-11-10

Family

ID=64327616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810430327.0A Active CN108881585B (en) 2018-05-08 2018-05-08 Built-in application program test processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108881585B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007098890A2 (en) * 2006-03-03 2007-09-07 Telefonaktiebolaget Lm Ericsson (Publ) Improved subscriber identity module (sim) application toolkit test method and system
CN103019937A (en) * 2012-12-13 2013-04-03 广东欧珀移动通信有限公司 Human-machine interaction interface traverse test method
CN106354628A (en) * 2016-08-12 2017-01-25 北京小米移动软件有限公司 Payment app test method and device thereof
CN107391362A (en) * 2017-06-28 2017-11-24 北京珠穆朗玛移动通信有限公司 Application testing method, mobile terminal and storage medium
CN107402877A (en) * 2016-05-19 2017-11-28 福建天晴数码有限公司 APP method of testings and system based on Android ends

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007098890A2 (en) * 2006-03-03 2007-09-07 Telefonaktiebolaget Lm Ericsson (Publ) Improved subscriber identity module (sim) application toolkit test method and system
CN103019937A (en) * 2012-12-13 2013-04-03 广东欧珀移动通信有限公司 Human-machine interaction interface traverse test method
CN107402877A (en) * 2016-05-19 2017-11-28 福建天晴数码有限公司 APP method of testings and system based on Android ends
CN106354628A (en) * 2016-08-12 2017-01-25 北京小米移动软件有限公司 Payment app test method and device thereof
CN107391362A (en) * 2017-06-28 2017-11-24 北京珠穆朗玛移动通信有限公司 Application testing method, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN108881585B (en) 2020-11-10

Similar Documents

Publication Publication Date Title
US9883026B2 (en) Method and apparatus for facilitating speech application testing
CN105468529B (en) A kind of accurate traversal method of Android application UI controls and device
US8917853B2 (en) Enhanced customer experience through speech detection and analysis
CN108427633A (en) The processing method and processing device of display interface
US10678679B1 (en) System, method, and computer program for automated application programming interface (API) regression testing
US10877778B2 (en) Sequence detection and automation for complex portal environments
CN106648685A (en) Processing method and device of intelligent terminal system and intelligent terminal
US9658948B2 (en) Workload mapper for potential problem areas using modules and defect data
CN114996125A (en) Test case generation method, device, equipment and storage medium
CN105979058A (en) Method and device for recording voice content
US9852048B2 (en) Simulating process variable changes during process runtime
CN108881585A (en) Built-in application program test processing method, device, electronic equipment and storage medium
CN110471828B (en) Operating system testing method, device and equipment thereof
CN107590039A (en) A kind of continuous test method, device and storage medium
CN107481766A (en) A kind of method of testing and device
CN109684034A (en) Start the method and device of container application
CN111159030B (en) Program testing method, device, equipment and storage medium
CN114064510A (en) Function testing method and device, electronic equipment and storage medium
US8265975B2 (en) Adaptive project based practice selection schemes in a computing environment
CN113672465A (en) Method, system, medium, terminal and unmanned aerial vehicle for generating process log system by process name
Průcha Aspect optimalization of robotic process automation
CN110297625B (en) Application processing method and device
CN109460336A (en) A kind of method and system of batch validation hard disk DST function
CN110736920A (en) card testing method and system based on engineering management test script
US11874764B2 (en) Method and system for guaranteeing game quality by using artificial intelligence agent

Legal Events

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