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

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

Info

Publication number
CN108881585B
CN108881585B CN201810430327.0A CN201810430327A CN108881585B CN 108881585 B CN108881585 B CN 108881585B CN 201810430327 A CN201810430327 A CN 201810430327A CN 108881585 B CN108881585 B CN 108881585B
Authority
CN
China
Prior art keywords
page object
test
page
built
clicking
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
CN201810430327.0A
Other languages
Chinese (zh)
Other versions
CN108881585A (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

Images

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 invention provides a method and a device for testing and processing a built-in application program, electronic equipment and a storage medium, wherein the method comprises the following steps: starting a built-in application program; testing the built-in application program, wherein the testing comprises an authority application testing and a payment testing; and outputting a test result, wherein the test result is used for recording test passing indication information or test abnormal indication information, and the test abnormal indication information comprises an abnormal position and an abnormal reason. The method ensures that the built-in APP is tested in a short time, and greatly improves the testing efficiency of the built-in APP. Meanwhile, the problem of the test code and the problem of the APP can be analyzed by the tester and the developer according to the test result, and the problem analysis efficiency of the tester and the developer is improved.

Description

Built-in application program test processing method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to computer technology, in particular to a built-in application program test processing method and device, electronic equipment and a storage medium.
Background
Some current mobile phones have a part of Applications (APPs) built in when they leave the factory, that is, the part of APPs are already installed on the mobile phones when they leave the factory, and these APPs may be called built-in APPs. These built-in APPs need to be tested by the provider of the APP before installation into the handset. Due to the characteristics of the built-in APP, the testing time of the built-in APP is short, and the adaptive compatibility test of the operating system is required.
In the prior art, the built-in APP is completed by manual testing by a tester. Specifically, the tester operates one by one according to the function of the built-in APP to complete the test of the built-in APP.
However, the test scheme in the prior art has low test efficiency, and is difficult to meet the test requirements of the built-in APP.
Disclosure of Invention
The embodiment of the invention provides a test processing method and device for a built-in application program, electronic equipment and a storage medium, which are used for solving the problem of low test efficiency in the prior art.
A first aspect of an embodiment of the present invention provides a method for testing and processing a built-in application, where the method includes:
starting a built-in application program;
testing the built-in application program, wherein the testing comprises an authority application testing and a payment testing;
and outputting a test result, wherein the test result is used for recording test passing indication information or test abnormal indication information, and the test abnormal indication information comprises an abnormal position and an abnormal reason.
Further, the testing the built-in application program includes:
searching a first page object on a user protocol page, wherein the first page object is used for popping up a permission application pop frame;
if the first page object is found, executing the operation of clicking the first page object;
searching a second page object on the authority application pop-up frame popped up after the operation of clicking the first page object is executed, wherein the second page object is used for allowing the built-in application program to use the authority displayed by the authority application pop-up frame;
and if the second page object is found, executing the operation of clicking the second page object.
Further, after the searching for the first page object in the current page, the method further includes:
if the first page object is not found, recording a first test exception indication, wherein the exception position corresponding to the first test exception indication information is the position where the test code of the first page object is found, and the exception reason corresponding to the first test exception indication information is failure in finding the first page object.
Further, the searching for the second page object on the permission application pop-up frame popped up after the operation of clicking the first page object is performed includes:
circularly searching a second page object on the permission application pop-up frame popped up after the operation of clicking the first page object is executed;
the executing the operation of clicking the second page object comprises:
and circularly executing the operation of clicking the second page object.
Further, the testing the built-in application program includes:
searching a third page object on a payment triggering page, wherein the third page object is used for triggering and displaying a fourth page object;
if the third page object is found, the operation of clicking the third page object is executed;
searching a fourth page object on the payment triggering page, wherein the fourth page object is used for triggering and starting a third-party payment application program;
and if the fourth page object is found, executing the operation of clicking the fourth page object.
Further, after the fourth page object is found on the payment trigger page, the method further includes:
if the fourth page object is not found in the payment trigger page, recording a second test exception indication, wherein an exception position corresponding to the second test exception indication information is a position where a test code for finding the fourth page object is located, and an exception reason corresponding to the second test exception indication information is that finding the fourth page object fails.
A second aspect of the embodiments of the present invention provides a test processing apparatus with a built-in application, where the apparatus includes:
the starting module is used for starting the built-in application program;
the testing module is used for testing the built-in application program, and the testing comprises an authority application testing and a payment testing;
and the output module is used for outputting a test result, wherein the test result is used for recording test passing indication information or test abnormal indication information, and the test abnormal indication information comprises an abnormal position and an abnormal reason.
Further, the first searching unit is used for searching a first page object on a user protocol page, wherein the first page object is used for popping up an authority application popup frame;
the first click unit is used for executing the operation of clicking the first page object when the first page object is found;
a second searching unit, configured to search a second page object on the permission application pop-up frame popped up after an operation of clicking the first page object is performed, where the second page object is used to allow the built-in application program to use the permission displayed by the permission application pop-up frame;
and the second clicking unit is used for executing the operation of clicking the second page object when the second page object is found.
Further, the test module further comprises: :
the first recording unit is configured to record a first test exception indication when the first page object is not found, where an exception position corresponding to the first test exception indication information is a position where a test code of the first page object is found, and a cause of an exception corresponding to the first test exception indication information is a failure in finding the first page object.
Further, the second search unit is specifically configured to:
circularly searching a second page object on the permission application pop-up frame popped up after the operation of clicking the first page object is executed;
the second click unit is specifically configured to:
and circularly executing the operation of clicking the second page object.
Further, the test module further comprises:
the third searching unit is used for searching a third page object on the payment triggering page, and the third page object is used for triggering and displaying a fourth page object;
the third clicking unit is used for executing the operation of clicking the third page object when the third page object is found;
the fourth searching unit is used for searching a fourth page object on the payment triggering page, and the fourth page object is used for triggering and starting a third-party payment application program;
and the fourth clicking unit is used for executing the operation of clicking the fourth page object when the fourth page object is found.
Further, the test module further comprises:
and the second recording unit is configured to record a second test exception indication when the fourth page object is not found in the payment trigger page, where an exception position corresponding to the second test exception indication information is a position where a test code for finding the fourth page object is located, and an exception reason corresponding to the second test exception indication information is that finding the fourth page object fails.
A third aspect of embodiments of the present invention provides an electronic device, including:
a memory for storing program instructions;
a processor for calling and executing the program instructions in the memory to perform the method steps of the first aspect.
A fourth aspect of the embodiments of the present invention provides a readable storage medium, wherein a computer program is stored in the readable storage medium, and when at least one processor of a test processing apparatus with a built-in application executes the computer program, the test processing apparatus with the built-in application executes the test processing method for the built-in application according to the first aspect.
According to the test processing method and device for the built-in application program, the electronic device and the storage medium, the test device can automatically start the built-in application program, perform permission application test and payment test on the built-in application program after the built-in application program is started, and output the test result of passing the test or abnormal test, so that the test completion of the built-in APP in a short time is ensured, and the test efficiency of the built-in APP is greatly improved. Meanwhile, the problem of the test code and the problem of the APP can be analyzed by the tester and the developer according to the test result, and the problem analysis efficiency of the tester and the developer is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an embodiment of a test processing method for a built-in application according to the present invention;
fig. 2 is a schematic flowchart of an embodiment of a test processing method for a built-in application according to the present invention;
fig. 3 is a schematic flowchart of an embodiment of a test processing method for a built-in application according to the present invention;
fig. 4 is a block diagram of a first embodiment of a test processing apparatus with an application built therein according to the present invention;
fig. 5 is a block diagram of a second embodiment of a test processing apparatus with an application program built therein according to the present invention;
fig. 6 is a block diagram of a third embodiment of a test processing apparatus with an application program built therein according to the present invention;
fig. 7 is a block diagram of a fourth embodiment of a test processing apparatus with an application built therein according to the present invention;
fig. 8 is a block diagram of a fifth embodiment of a test processing apparatus with an application built therein according to the present invention;
fig. 9 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention without any creative efforts shall fall within the protection scope of the embodiments of the present invention.
At present, the test time of the built-in APP required by various manufacturers is shorter than that of the common APP, so that the test of the built-in APP needs to be completed in a shorter time. Therefore, the built-in APP is short in test time and complex in task. The test of the built-in APP is completed only by a manual test method in the prior art, but obviously, the efficiency of the manual test is low, the test of the built-in APP can not be completed in a short time, and the test integrity and the correctness of the test result can not be ensured, so that the test requirement of the built-in APP is difficult to meet.
Based on the above problems, the embodiments of the present invention provide a test processing method for a built-in APP, which automatically completes an authority application test and a payment test of the built-in APP based on the characteristics of the built-in APP itself, and outputs a test result of a test passing or test abnormality, thereby ensuring that the test of the built-in APP is completed in a short time, and greatly improving the test efficiency of the built-in APP. Meanwhile, the problem of the test code and the problem of the APP can be analyzed by the tester and the developer according to the test result, and the problem analysis efficiency of the tester and the developer is improved.
It should be noted that the common APP described in the embodiment of the present invention refers to an APP actively downloaded and installed by a user, and details are not described below.
Fig. 1 is a schematic flowchart of an embodiment of a method for testing a built-in application according to an embodiment of the present invention, where an execution main body of the method tests a built-in APP in a test device, such as a desktop computer and a notebook computer. As shown in fig. 1, the method includes:
and S101, starting the built-in application program.
Optionally, if the execution main body of the method is a desktop computer, before the test, the built-in APP may be installed in a specific test terminal, for example, a mobile phone in advance, and then the test mobile phone and the desktop computer are established to be in communication connection.
It should be noted that, in the embodiments of the present invention, the test terminal is taken as a mobile phone for illustration, but the embodiments of the present invention are not limited thereto.
Furthermore, in this step, the tester may start the test by performing a start operation on the desktop computer, for example, clicking a button to start the test, and then the desktop computer may recognize the operation of the user and convert it into a start test instruction to send to the test handset. And after the test mobile phone receives the start test instruction, starting the built-in APP according to the start test instruction.
And S102, testing the built-in application program, wherein the testing comprises an authority application testing and a payment testing.
Specifically, the permission application test refers to a permission application process for testing a built-in APP. Since the permission application process of the built-in APP is greatly different from the permission application process of the ordinary APP, in this embodiment, a test needs to be performed on the specific permission application process of the built-in APP, and the specific process will be described in detail in the following embodiments.
The payment test refers to a payment skip process for testing the built-in APP.
S103, outputting a test result, wherein the test result is used for recording test passing indication information or test abnormal indication information, and the test abnormal indication information comprises an abnormal position and an abnormal reason.
Optionally, if the whole process of the function test of the built-in APP is normally executed, after the test is completed, test passing information is output to indicate that the test passes. The test passing indication information may be, for example, text prompt information of "test success", or may be a text prompt information showing the number of test cases that have passed execution, for example, "X test cases are executed, and X test cases are executed".
If abnormity occurs in the process of performing permission test and payment test on the built-in APP, test abnormity indication information including information of an abnormal position and an abnormal reason is recorded, and when a test result is output, the recorded test abnormity indication information is uniformly output.
In this embodiment, test equipment can automatic start built-in application, carries out permission application test and payment test to built-in application after built-in application starts to output test passes or test abnormal test result, thereby guaranteed that built-in APP tests in the short time and accomplished, greatly promoted built-in APP's efficiency of software testing. Meanwhile, the problem of the test code and the problem of the APP can be analyzed by the tester and the developer according to the test result, and the problem analysis efficiency of the tester and the developer is improved.
On the basis of the above embodiments, the present embodiment relates to a specific process of permission application test of a built-in APP.
Fig. 2 is a schematic flowchart of an embodiment of a method for testing and processing a built-in application according to an embodiment of the present invention, as shown in fig. 2, the method includes:
s201, starting the built-in application program.
The execution process of this step is the same as that of step S101, and reference may be made to step S101, which is not described herein again.
S202, searching a first page object in a user protocol page, wherein the first page object is used for popping up an authority application popup box.
Specifically, after the built-in APP is started for the first time, the user protocol page is entered first, the first page is specifically a "confirm" button on the user protocol page, and only after the "confirm" button is clicked, the subsequent permission application process can be continuously executed. Therefore, in this step, first, the first page object is searched for in the user protocol page.
The first page object is used for popping up the authority application pop frame, and the authority application pop frame can be popped up after the first page object is clicked.
S203, if the first page object is found, the operation of clicking the first page object is executed.
Optionally, an assertion may be used to confirm whether the first page object is found.
S204, searching a second page object on the authority application pop-up frame popped up after the operation of clicking the first page object is executed, wherein the second page object is used for allowing the built-in application program to use the authority displayed by the authority application pop-up frame.
When the first page object is clicked, a permission application pop-up frame pops up, and the second page object is specifically an 'allow' button on the permission application pop-up frame.
The second page object is used for allowing the built-in application program to use the authority displayed on the authority application popup box, and means that the authority displayed on the authority application popup box where the second page object is located is endowed with the built-in APP after the second page object is clicked.
In this step, the second page object needs to be searched first.
And S205, if the second page object is found, executing the operation of clicking the second page object.
After the operation of clicking the second page object is executed, the permission displayed on the permission application popup frame is endowed with a built-in APP, so that the test of the permission application function after the APP is started is completed.
In this embodiment, according to the permission application process of the built-in APP, the first page object is first searched, and then the first page object is clicked, so that the second page object is clicked on the popped frame, and thus the permission displayed by the popped frame is given to the built-in APP, thereby ensuring that the complete permission application process is executed, and ensuring the completeness of the permission application test.
As an optional implementation manner, the first page object is searched in step 202, and if the first page object is not found, a first test exception indication is recorded, where an exception location corresponding to the first test exception indication information is a location where a test code for searching the first page object is located, and a cause of an exception corresponding to the first test exception indication information is a failure in searching the first page object.
For example, if the first page object is determined to be found by using an assertion, if the assertion cannot obtain a normal response, it indicates that the first page object is not found, and at this time, the previous line of the number of code lines where the assertion is located is recorded, and the previous line is used as an abnormal position. And records the reason for the anomaly as "the first page object cannot be found".
In an alternative embodiment, when the second page object is searched in step S204 and the operation of clicking the second page object is performed in step S205, the operation is performed in a loop.
Namely, a second page object is circularly searched on the authority application pop-up frame popped up after the operation of clicking the first page object is executed, and the operation of clicking the second page object is circularly executed.
Specifically, the number of applications for the rights may be different for different operating systems. Namely, the same built-in APP is installed on different terminals, the number of times of authority application is possibly different, namely, the number of displayed authority application bullet frames is possibly different. Regardless of the number of the displayed permission application pop frames, each permission application pop frame displayed by the tested built-in APP has a specific page element which is allowed to operate, namely a second page object. For example, a "allow" button is displayed on each rights application pop-up box. In this embodiment, the mobile phone may determine whether the permission application popup frame is displayed by circularly searching the second page object, and execute the permission operation as long as the permission application popup frame is displayed, thereby implementing automatic execution of the permission operation on one or more permission application popup frames popped up by the built-in APP.
In the embodiment, the operations of querying the second page object and clicking the second page object are executed in a circulating manner, so that no matter how many permission application pop frames of the built-in APP exist, permission operations can be executed on each permission application pop frame, and the tested built-in APP can run normally on different operating systems.
On the basis of the above embodiments, the present embodiment relates to a specific process of payment testing of a built-in APP.
Fig. 3 is a schematic flowchart of an embodiment of a method for testing and processing a built-in application according to an embodiment of the present invention, and as shown in fig. 3, the method includes:
s301, starting the built-in application program.
The execution process of this step is the same as that of step S101, and reference may be made to step S101, which is not described herein again.
S302, a third page object is searched in the payment triggering page, and the third page object is used for triggering and displaying a fourth page object.
The payment triggering page is used for triggering a payment function on the page. For example, the information published by the user is presented on a "my publishing" page, and if the user needs to pay for the information published by the user, the "my publishing" page is a payment triggering page.
It should be noted that there may be multiple pages that trigger the payment function. In a specific test process, one of the payment trigger pages may be selected to test the payment function, or a payment function test may be performed for all the payment trigger pages.
Optionally, before this step is performed, a specific operation needs to be performed first starting from the home page of the built-in APP to enter the payment trigger page.
Taking the my issue page as an example, in order to enter the page, a currently located city needs to be selected on a home page of a built-in APP, whether the located city has been switched to is judged, after the switch to the located city is confirmed, a specific click operation is executed to enter a user personal information page, and a specific operation is executed in the page to enter the my issue page.
The third page object is used for triggering display of the fourth page object, and the fourth page object is displayed on the payment triggering page after the third page object is clicked.
For example, the third page object may be a "confirm payment" button on the payment trigger page, and the fourth page object may be a "login WeChat" button, and when the "confirm payment" button is clicked, the "login WeChat" button is displayed to perform payment.
And S303, if the third page object is found, executing the operation of clicking the third page object.
S304, a fourth page object is searched on the payment triggering page, and the fourth page object is used for triggering and starting a third-party payment application program.
The fourth page object is used for triggering and starting the third-party payment application program, and the third-party payment application program is skipped to the third-party payment application program to complete payment after the fourth page object is clicked.
Optionally, an assertion may be used to confirm whether the first page object is found.
S305, if the fourth page object is found, the operation of clicking the fourth page object is executed.
Taking the third page object as a payment confirmation button on the payment triggering page and the fourth page object as a login WeChat button as an example, after the payment confirmation button is clicked, the login WeChat button is displayed according to the normal execution process of the built-in APP, so that whether the login WeChat button exists is inquired, and if the login WeChat button exists, the operation of clicking the login WeChat button is executed.
After the operation of clicking the fourth page object is executed, the third-party payment application program is started, so that the test of payment skip of the built-in APP is completed.
In this embodiment, according to the payment process of the built-in APP, the third page object is first searched on the payment trigger page, and then the third page object is clicked, so as to search and click the fourth page object, so as to trigger and start the third-party payment application program, thereby ensuring that a complete payment skip process is executed, and ensuring the integrity of the payment test.
As an optional implementation manner, the fourth page object is searched in step 304, and if the fourth page object is not found in the payment trigger page, a second test exception indication is recorded, where an exception position corresponding to the second test exception indication information is a position where a test code for searching the fourth page object is located, and an exception reason corresponding to the second test exception indication information is that searching the fourth page object fails.
For example, if it is determined whether the fourth page object is found by using an assertion, if the assertion cannot obtain a normal response, it indicates that the fourth page object is not found, and at this time, the previous line of the number of code lines where the assertion is located is recorded, and the previous line is used as an abnormal position. And the reason for the abnormality is recorded as "the fourth page object cannot be found".
Fig. 4 is a block diagram of a first embodiment of a test processing apparatus with an application program built therein according to the present invention, and as shown in fig. 4, the apparatus includes:
and the starting module 401 is used for starting the built-in application program.
A testing module 402, configured to perform a test on the built-in application, where the test includes an authority application test and a payment test.
An output module 403, configured to output a test result, where the test result is used to record test passing indication information or test abnormal indication information, and the test abnormal indication information includes an abnormal position and an abnormal reason.
Fig. 5 is a block diagram of a second embodiment of a test processing apparatus with an application program built therein according to the present invention, and as shown in fig. 5, the apparatus includes:
and the starting module 401 is used for starting the built-in application program.
A testing module 402, configured to perform a test on the built-in application, where the test includes an authority application test and a payment test.
An output module 403, configured to output a test result, where the test result is used to record test passing indication information or test abnormal indication information, and the test abnormal indication information includes an abnormal position and an abnormal reason.
The test module 402 includes:
the first search unit 4021 is configured to search a first page object on a user protocol page, where the first page object is used to pop up an authority application popup box.
The first clicking unit 4022 is configured to execute an operation of clicking the first page object when the first page object is found.
A second search unit 4023, configured to search a second page object on the permission application popup box popped up after the operation of clicking the first page object is performed, where the second page object is used to allow the built-in application to use the permission displayed by the permission application popup box.
A second clicking unit 4024, configured to execute an operation of clicking the second page object when the second page object is found.
Fig. 6 is a block diagram of a third embodiment of a test processing apparatus with an application program built therein according to the present invention, and as shown in fig. 6, the apparatus includes:
and the starting module 401 is used for starting the built-in application program.
A testing module 402, configured to perform a test on the built-in application, where the test includes an authority application test and a payment test.
An output module 403, configured to output a test result, where the test result is used to record test passing indication information or test abnormal indication information, and the test abnormal indication information includes an abnormal position and an abnormal reason.
The test module 402 includes:
the first search unit 4021 is configured to search a first page object on a user protocol page, where the first page object is used to pop up an authority application popup box.
The first clicking unit 4022 is configured to execute an operation of clicking the first page object when the first page object is found.
A second search unit 4023, configured to search a second page object on the permission application popup box popped up after the operation of clicking the first page object is performed, where the second page object is used to allow the built-in application to use the permission displayed by the permission application popup box.
A second clicking unit 4024, configured to execute an operation of clicking the second page object when the second page object is found.
The test module 402 further includes:
the first recording unit 4025 is configured to record a first test exception indication when the first page object is not found, where an exception position corresponding to the first test exception indication information is a position where a test code for finding the first page object is located, and an exception reason corresponding to the first test exception indication information is that finding the first page object fails.
In another embodiment, the second search unit 4023 is specifically configured to:
and circularly searching a second page object on the authority application pop-up frame popped up after the operation of clicking the first page object is executed.
The second click unit 4024 is specifically configured to:
and circularly executing the operation of clicking the second page object.
Fig. 7 is a block diagram of a fourth embodiment of a test processing apparatus with an application built therein according to the present invention, as shown in fig. 7, the apparatus includes:
and the starting module 401 is used for starting the built-in application program.
A testing module 402, configured to perform a test on the built-in application, where the test includes an authority application test and a payment test.
An output module 403, configured to output a test result, where the test result is used to record test passing indication information or test abnormal indication information, and the test abnormal indication information includes an abnormal position and an abnormal reason.
The test module 402 includes:
the first search unit 4021 is configured to search a first page object on a user protocol page, where the first page object is used to pop up an authority application popup box.
The first clicking unit 4022 is configured to execute an operation of clicking the first page object when the first page object is found.
A second search unit 4023, configured to search a second page object on the permission application popup box popped up after the operation of clicking the first page object is performed, where the second page object is used to allow the built-in application to use the permission displayed by the permission application popup box.
A second clicking unit 4024, configured to execute an operation of clicking the second page object when the second page object is found.
The test module 402 further includes:
the first recording unit 4025 is configured to record a first test exception indication when the first page object is not found, where an exception position corresponding to the first test exception indication information is a position where a test code for finding the first page object is located, and an exception reason corresponding to the first test exception indication information is that finding the first page object fails.
The test module 402 further includes:
a third searching unit 4026, configured to search for a third page object on the payment trigger page, where the third page object is used to trigger display of a fourth page object.
A third clicking unit 4027, configured to execute an operation of clicking the third page object when the third page object is found.
A fourth search unit 4028, configured to search for a fourth page object on the payment trigger page, where the fourth page object is used to trigger starting of a third party payment application.
A fourth clicking unit 4029, configured to execute an operation of clicking the fourth page object when the fourth page object is found.
Fig. 8 is a block diagram of a fifth embodiment of a test processing apparatus with an application built therein according to the present invention, and as shown in fig. 8, the apparatus includes:
and the starting module 401 is used for starting the built-in application program.
A testing module 402, configured to perform a test on the built-in application, where the test includes an authority application test and a payment test.
An output module 403, configured to output a test result, where the test result is used to record test passing indication information or test abnormal indication information, and the test abnormal indication information includes an abnormal position and an abnormal reason.
The test module 402 includes:
the first search unit 4021 is configured to search a first page object on a user protocol page, where the first page object is used to pop up an authority application popup box.
The first clicking unit 4022 is configured to execute an operation of clicking the first page object when the first page object is found.
A second search unit 4023, configured to search a second page object on the permission application popup box popped up after the operation of clicking the first page object is performed, where the second page object is used to allow the built-in application to use the permission displayed by the permission application popup box.
A second clicking unit 4024, configured to execute an operation of clicking the second page object when the second page object is found.
The test module 402 further includes:
the first recording unit 4025 is configured to record a first test exception indication when the first page object is not found, where an exception position corresponding to the first test exception indication information is a position where a test code for finding the first page object is located, and an exception reason corresponding to the first test exception indication information is that finding the first page object fails.
The test module 402 further includes:
a third searching unit 4026, configured to search for a third page object on the payment trigger page, where the third page object is used to trigger display of a fourth page object.
A third clicking unit 4027, configured to execute an operation of clicking the third page object when the third page object is found.
A fourth search unit 4028, configured to search for a fourth page object on the payment trigger page, where the fourth page object is used to trigger starting of a third party payment application.
A fourth clicking unit 4029, configured to execute an operation of clicking the fourth page object when the fourth page object is found.
The test module 402 further includes:
a second recording unit 40210, configured to record a second test exception indication when the fourth page object is not found in the payment trigger page, where an exception position corresponding to the second test exception indication information is a position where a test code for finding the fourth page object is located, and an exception reason corresponding to the second test exception indication information is that finding the fourth page object fails.
Fig. 9 is a block diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 9, the electronic device includes:
a memory 901 for storing program instructions.
The processor 902 is configured to call and execute the program instructions in the memory 901 to execute the method described in the above method embodiment.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (12)

1. A test processing method of a built-in application program is characterized by comprising the following steps:
starting a built-in application program;
testing the built-in application program, wherein the testing comprises an authority application testing and a payment testing;
outputting a test result, wherein the test result is used for recording test passing indication information or test abnormal indication information, and the test abnormal indication information comprises an abnormal position and an abnormal reason;
wherein the content of the first and second substances,
the testing the built-in application program comprises the following steps:
searching a third page object on a payment triggering page, wherein the third page object is used for triggering and displaying a fourth page object;
if the third page object is found, the operation of clicking the third page object is executed;
searching a fourth page object on the payment triggering page, wherein the fourth page object is used for triggering and starting a third-party payment application program;
and if the fourth page object is found, executing the operation of clicking the fourth page object.
2. The method of claim 1, wherein the testing the built-in application comprises:
searching a first page object on a user protocol page, wherein the first page object is used for popping up a permission application pop frame;
if the first page object is found, executing the operation of clicking the first page object;
searching a second page object on the authority application pop-up frame popped up after the operation of clicking the first page object is executed, wherein the second page object is used for allowing the built-in application program to use the authority displayed by the authority application pop-up frame;
and if the second page object is found, executing the operation of clicking the second page object.
3. The method of claim 2, wherein after searching for the first page object in the user protocol page, further comprising:
if the first page object is not found, recording a first test exception indication, wherein the exception position corresponding to the first test exception indication information is the position where the test code of the first page object is found, and the exception reason corresponding to the first test exception indication information is failure in finding the first page object.
4. The method according to claim 2 or 3, wherein the searching for the second page object on the permission application pop-up box popped up after the operation of clicking the first page object is performed comprises:
circularly searching a second page object on the permission application pop-up frame popped up after the operation of clicking the first page object is executed;
the executing the operation of clicking the second page object comprises:
and circularly executing the operation of clicking the second page object.
5. The method of claim 1, wherein after searching for the fourth page object on the payment trigger page, further comprising:
if the fourth page object is not found in the payment trigger page, recording a second test exception indication, wherein an exception position corresponding to the second test exception indication information is a position where a test code for finding the fourth page object is located, and an exception reason corresponding to the second test exception indication information is that finding the fourth page object fails.
6. A test processing apparatus with a built-in application, comprising:
the starting module is used for starting the built-in application program;
the testing module is used for testing the built-in application program, and the testing comprises an authority application testing and a payment testing;
the output module is used for outputting a test result, the test result is used for recording test passing indication information or test abnormity indication information, and the test abnormity indication information comprises an abnormal position and an abnormal reason;
wherein the content of the first and second substances,
the test module further comprises:
the third searching unit is used for searching a third page object on the payment triggering page, and the third page object is used for triggering and displaying a fourth page object;
the third clicking unit is used for executing the operation of clicking the third page object when the third page object is found;
the fourth searching unit is used for searching a fourth page object on the payment triggering page, and the fourth page object is used for triggering and starting a third-party payment application program;
and the fourth clicking unit is used for executing the operation of clicking the fourth page object when the fourth page object is found.
7. The apparatus of claim 6, wherein the test module comprises:
the first searching unit is used for searching a first page object on a user protocol page, and the first page object is used for popping up an authority application popup frame;
the first click unit is used for executing the operation of clicking the first page object when the first page object is found;
a second searching unit, configured to search a second page object on the permission application pop-up frame popped up after an operation of clicking the first page object is performed, where the second page object is used to allow the built-in application program to use the permission displayed by the permission application pop-up frame;
and the second clicking unit is used for executing the operation of clicking the second page object when the second page object is found.
8. The apparatus of claim 7, wherein the test module further comprises:
the first recording unit is configured to record a first test exception indication when the first page object is not found, where an exception position corresponding to the first test exception indication information is a position where a test code of the first page object is found, and a cause of an exception corresponding to the first test exception indication information is a failure in finding the first page object.
9. The apparatus according to claim 7 or 8, wherein the second lookup unit is specifically configured to:
circularly searching a second page object on the permission application pop-up frame popped up after the operation of clicking the first page object is executed;
the second click unit is specifically configured to:
and circularly executing the operation of clicking the second page object.
10. The apparatus of claim 6, wherein the test module further comprises:
and the second recording unit is configured to record a second test exception indication when the fourth page object is not found in the payment trigger page, where an exception position corresponding to the second test exception indication information is a position where a test code for finding the fourth page object is located, and an exception reason corresponding to the second test exception indication information is that finding the fourth page object fails.
11. An electronic device, comprising:
a memory for storing program instructions;
a processor for invoking and executing program instructions in said memory for performing the method steps of any of claims 1-5.
12. A computer-readable storage medium, characterized in that a computer program is stored in the readable storage medium, and when at least one processor of a test processing apparatus of a built-in application executes the computer program, the test processing apparatus of the built-in application executes the test processing method of the built-in application according to any one of claims 1 to 5.
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 CN108881585A (en) 2018-11-23
CN108881585B true 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
CN108881585A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN107329659B (en) Permission setting method and device, electronic equipment and storage medium
CN111506318A (en) Circuit board chip burning method, device, terminal and computer readable storage medium
CN106648685A (en) Processing method and device of intelligent terminal system and intelligent terminal
CN110908702A (en) Version switching method, version switching device, computer equipment and storage medium
CN107908679B (en) Script statement conversion method and device and computer readable storage medium
CN111444453A (en) Page return data processing method and device
CN112083851A (en) Interface positioning method and device for BIOS (basic input output System) configuration options, server and computer readable storage medium
CN109521889A (en) A kind of input method and device, terminal and storage medium
CN108881585B (en) Built-in application program test processing method and device, electronic equipment and storage medium
CN110244986B (en) Browser configuration method and device
CN110580221A (en) Control testing method and device, storage medium and electronic equipment
CN110889116A (en) Advertisement blocking method and device and electronic equipment
CN110633196A (en) Automatic use case execution method and device of application program
CN110716867A (en) Method, device and equipment for detecting multi-page jump pressure
CN112130908A (en) Method and device for setting user guide
CN114880244A (en) Application testing method and device, storage medium and electronic equipment
CN115098390A (en) Automatic testing method and device, storage medium and electronic equipment
US9912796B2 (en) Apparatus and method for correcting an input number
CN106844186B (en) Offline test method of application and terminal equipment
CN111475819B (en) Method and device for identifying abnormal terminal equipment, storage medium and electronic equipment
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN109408182B (en) Method and device for skipping preset page, storage medium and terminal
CN113342553A (en) Data acquisition method and device, electronic equipment and storage medium
CN113282363A (en) Method and device for optimizing hybrid APP
CN112052054A (en) Function calling method and device, electronic equipment and storage medium

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