CN113220596B - Application testing method, device, equipment, storage medium and program product - Google Patents

Application testing method, device, equipment, storage medium and program product Download PDF

Info

Publication number
CN113220596B
CN113220596B CN202110672053.8A CN202110672053A CN113220596B CN 113220596 B CN113220596 B CN 113220596B CN 202110672053 A CN202110672053 A CN 202110672053A CN 113220596 B CN113220596 B CN 113220596B
Authority
CN
China
Prior art keywords
interactable
elements
application
information
tested
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
CN202110672053.8A
Other languages
Chinese (zh)
Other versions
CN113220596A (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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202110672053.8A priority Critical patent/CN113220596B/en
Publication of CN113220596A publication Critical patent/CN113220596A/en
Application granted granted Critical
Publication of CN113220596B publication Critical patent/CN113220596B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/3684Test management for test design, e.g. generating new test cases
    • 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

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)
  • Debugging And Monitoring (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application testing method, device, equipment, storage medium and program product provided by the present disclosure relate to testing technology, and the scheme includes: acquiring information of each interactable element included in a current display interface of an application; selecting an interactable element which is not tested from a plurality of interactable elements; according to the element category included in the selected interactable element information, performing interactive operation on the interactable element to obtain an operation test result of the interactable element; and continuing to execute the step of selecting the non-tested interactable element from the interactable elements until each interactable element in the current display interface of the application is tested. In the scheme provided by the disclosure, when the function of the application is explored, the interactive elements in the application interface can be automatically operated, so that the automatic free exploration of the application is realized, and the testing efficiency of testing the application based on a free exploration mode is improved.

Description

Application testing method, device, equipment, storage medium and program product
Technical Field
The present disclosure relates to testing technologies, and in particular, to a method, apparatus, device, storage medium, and program product for testing an application.
Background
Currently, applications on the mobile end are more and more, and the iteration speed is faster and faster. As applications are iteratively upgraded, the functions of the applications are also becoming more and more rich, and therefore, the multi-scenario adaptability and stability of the applications are also challenging.
For comprehensive verification of applications, traversal is generally used. The prior art generally uses a free-form exploration mode to traverse the functions of the application. The free exploration does not pay attention to specific business logic, and the fault tolerance and the robustness of the system under various abnormal operations can be explored in addition to the normal business flow executed in the exploration in the test process; meanwhile, different businesses can access different background associated environments, and whether the associated environment service is available can also be verified.
The current free-form exploration method is explored by operating an application by a tester, but the method can take a long time, so that the testing efficiency is low.
Disclosure of Invention
The disclosure provides a method, a device, equipment, a storage medium and a program product for testing an application, so as to solve the problem of low testing efficiency when the application is tested in a free exploration mode in the prior art.
A first aspect of the present disclosure provides a test method for an application, including:
acquiring information of each interactable element included in a current display interface of an application;
selecting an interactable element which is not tested from a plurality of interactable elements;
performing interactive operation on the interactable element according to the element category included in the selected interactable element information to obtain an operation test result of the interactable element;
And continuing to execute the step of selecting the non-tested interactable element from the interactable elements until each interactable element in the current display interface of the application is tested.
A second aspect of the present disclosure provides a test apparatus for an application, including:
the acquisition unit is used for acquiring information of each interactable element included in the current display interface of the application;
A selecting unit, configured to select an interactable element that is not tested from a plurality of interactable elements;
The operation unit is used for carrying out interactive operation on the interactable element according to the element category included in the information of the selected interactable element to obtain a result of carrying out operation test on the interactable element;
the selecting unit is further configured to continue to perform the step of selecting an interactable element that is not tested from the plurality of interactable elements until each interactable element in the current display interface of the application is tested.
A third aspect of the present disclosure is to provide an electronic device, including:
A memory;
A processor; and
A computer program;
Wherein the computer program is stored in the memory and configured to be executed by the processor to implement the test method of the application as described in the first aspect above.
It is a further aspect of the present disclosure to provide a computer readable storage medium having stored thereon a computer program for execution by a processor to implement the test method of an application as described in the first aspect above.
A further aspect of the present disclosure is to provide a computer program product comprising a computer program which, when executed by a processor, implements a test method for an application as described in the first aspect above.
The application testing method, device, equipment, storage medium and program product provided by the present disclosure have the technical effects that:
The test method, device, equipment, storage medium and program product of the test method of the application provided by the disclosure comprise the following steps: acquiring information of each interactable element included in a current display interface of an application; selecting an interactable element which is not tested from a plurality of interactable elements; according to the element category included in the selected interactable element information, performing interactive operation on the interactable element to obtain an operation test result of the interactable element; and continuing to execute the step of selecting the non-tested interactable element from the interactable elements until each interactable element in the current display interface of the application is tested. In the scheme provided by the disclosure, when the function of the application is explored, the interactive elements in the application interface can be automatically operated, so that the automatic free exploration of the application is realized, and the testing efficiency of testing the application based on a free exploration mode is improved.
Drawings
FIG. 1 is a schematic diagram of a free-form exploration mode;
FIG. 2 is a flow chart of a test method of an application shown in an exemplary embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a test procedure of an application shown in an exemplary embodiment of the present disclosure;
FIG. 4 is a flow chart of a test method of an application shown in another exemplary embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a tree structure shown in an exemplary embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a testing device of an application shown in an exemplary embodiment of the present disclosure;
FIG. 7 is a schematic structural diagram of a test device of an application shown in another exemplary embodiment of the present disclosure;
fig. 8 is a block diagram of an electronic device shown in an exemplary embodiment of the present disclosure.
Detailed Description
To test for more scenarios of an application, the application is typically tested in a heuristic traversal manner.
Fig. 1 is a schematic diagram of a free-form search mode.
As shown in fig. 1, a tester may explore a function of an application, the application may respond to the operation feedback operation result, and the tester may continue exploring the application according to the operation result. When exploring the functions of the application, the tester can learn the functions of the application and test the functions of the application.
In this process, while it is possible to traverse many functions of the application, it takes a significant amount of time for the tester. In order to solve the technical problem, the scheme provided by the disclosure can automatically operate elements in the application interface so as to improve the efficiency of exploring the application.
Fig. 2 is a flow chart of a test method of an application according to an exemplary embodiment of the present disclosure.
As shown in fig. 2, the test method for an application provided by the present disclosure includes:
Step 201, obtaining information of each interactable element included in a current display interface of an application.
The method provided by the disclosure can be executed by an electronic device with computing capability, and an application to be tested can be arranged in the electronic device. For example, the electronic device may be a smart phone, in which a first application may be set, and the electronic device may test the first application based on the method provided by the present disclosure.
Specifically, the electronic device may obtain each element included in the current display interface of the application to be tested, and filter the interactable elements therein, so as to obtain information of the interactable elements. The interactive elements refer to elements which can be operated by a user in an interface, such as keys, input boxes capable of inputting characters, and the like. Non-interactable elements refer to elements that are not operable by a user, such as displayed text content, displayed icons, and the like.
Further, the electronic device may create a poco object to store information of the interactable element based upon the poco object. In particular, a poco object may be utilized to store information for each interactable element in an application interface. Poco is a cross-engine automation test framework based on UI control search.
In actual application, the electronic equipment can acquire the information of the interactable element according to the UI information of the current display interface of the application.
Step 202, selecting an interactable element which is not tested from a plurality of interactable elements.
The electronic device may test the obtained interactable elements one by one, for example, a list may be set to store the obtained information of each interactable element.
Specifically, the electronic device may further mark the tested interactable element, the interactable element without the mark may be regarded as an interactable element which is not tested, and the electronic device may obtain information of the interactable element which is not tested, and further operate the interactable element by using the information.
And 203, performing interactive operation on the interactable element according to the element category included in the selected interactable element information to obtain an operation test result of the interactable element.
The information of the interactable element may include an element category, and the electronic device may perform an interaction operation on the interactable element according to the element category included in the selected information of the interactable element, for example, if the category of the interactable element is a key, the electronic device may click the key, and further operate the interactable element, and if the category of the interactable element is a text input box, the electronic device may input text content in the text input box.
Specifically, the electronic device may obtain a result obtained by operating the interactive element, for example, if the electronic device displays other interfaces of the application after operating the interactive element and is a normal interface of the application, the electronic device may obtain a test result for testing normal. If the electronic equipment displays an error reporting interface of the application or the application reports errors after the interactive elements are operated, the electronic equipment can obtain a test result of abnormal test.
Further, the electronic device may test each of the obtained interactable elements, so as to obtain a test result corresponding to each of the interactable elements. In this way, the electronic device can traverse each function of the application automatically in a free exploration manner, so that the testing efficiency of the application is improved.
After testing one interactable element, the electronic device may continue to execute step 202, so as to test the next interactable element, until each interactable element in the current display interface of the application is tested, and may execute step 204, and end.
Fig. 3 is a schematic diagram of a test procedure of an application shown in an exemplary embodiment of the present disclosure.
As shown in fig. 3, information of 5 interactable elements is obtained, for example, in the application current display interface, and may be recorded in the list 31. For each interactable element, the electronic device may operate on it according to its category and obtain a corresponding test result, as shown in particular at 32. The specific test results may be set according to actual test conditions, and the present embodiment is only exemplary for representing test results by using test norms and test anomalies, but is not meant to be limited to only these two test results.
The application testing method provided by the disclosure comprises the following steps: acquiring information of each interactable element included in a current display interface of an application; selecting an interactable element which is not tested from a plurality of interactable elements; according to the element category included in the selected interactable element information, performing interactive operation on the interactable element to obtain an operation test result of the interactable element; and continuing to execute the step of selecting the non-tested interactable element from the interactable elements until each interactable element in the current display interface of the application is tested. In the scheme provided by the disclosure, when the function of the application is explored, the interactive elements in the application interface can be automatically operated, so that the automatic free exploration of the application is realized, and the testing efficiency of testing the application based on a free exploration mode is improved.
Fig. 4 is a flow chart of a test method of an application shown in another exemplary embodiment of the present disclosure.
As shown in fig. 4, the test method for an application provided by the present disclosure includes:
in step 401, a preset object is created.
The method provided by the disclosure can be executed by an electronic device with computing capability, and an application to be tested can be arranged in the electronic device. For example, the electronic device may be a smart phone, in which a first application may be set, and the electronic device may test the first application based on the method provided by the present disclosure.
The electronic device may create a preset object to store information of each interactable element in the application interface using the preset object. Specifically, poco objects can be created, and the application to be tested is called up by utilizing poco objects, so that the electronic equipment can display an interface of the application.
Step 402, obtaining all elements included in the current display interface of the application, and storing information of interactable elements in all elements by using a preset object.
Specifically, the electronic device may acquire all elements included in the application current display interface, for example, may acquire all elements included therein based on UI layout information of the application current display interface.
Further, all the acquired elements comprise interactable elements and non-interactable elements. The interactable elements may comprise, for example, buttons, text input boxes, and the non-interactable elements may comprise, for example, viewGroup containers. The electronic device can specifically identify the interactable element in the current display interface of the application according to the type of each element.
In actual application, the electronic device can use the preset object to store each interactable element in the current display interface of the application. For example, information for each interactable element is stored as a parameter in the poco object.
Step 403, selecting an interactable element which is not tested from a plurality of interactable elements.
Step 403 is similar to the implementation and principle of step 202 and will not be described again.
And step 404, performing interactive operation on the interactable element according to the element category included in the information of the selected interactable element to obtain an operation test result of the selected interactable element.
The information of the interactable element may include a category of the element, for example, the category of the element is TextView, and for example, the category of the element is GridView.
Specifically, the types of the interactable elements are different, and the specific operation modes are also different. For example, if the interactable element is a button, the electronic device may directly perform an operation of clicking the button, and if the category of the interactable element is a text input box, the electronic device may input text content therein.
Further, after the electronic device finishes operating the interactive element in the selected application current display interface, an operation test result of the selected interactive element can be obtained. The specific operation test results can be set according to requirements, such as what content is displayed, and further such as abnormal test and normal test results.
In actual application, if the interface is updated after the interactive element is operated, the electronic device continues to execute steps 401 and 402 according to the updated interface, that is, executes the step of obtaining the information of each interactive element included in the current display interface of the application again, so as to test the sub-elements of the selected interactive element and obtain the operation test result of each sub-element.
If the application updates the interface, the electronic device may create poco the object again, so that information of each interactable element in the updated interface is stored based on the poco object.
In an alternative embodiment, the object poco of the current display interface of the application may be used as a parent node, and when the interactive element in the current display interface of the application is operated, if the application updates the interface, the electronic device may create another poco object, which is used as a child node of the previous poco object.
Fig. 5 is a schematic diagram of a tree structure shown in an exemplary embodiment of the present disclosure.
As shown in fig. 5, in the solution provided in the present disclosure, for example, when the application currently displays an interface as an interface a, the electronic device may create poco object 51 of the interface a, and store information of each interactable element in the interface a, for example, information including elements 511, 512, 513 in poco object 51.
When the interactive element 511 in the interface a is operated, if the application updates the interface and displays the interface B, the electronic device may create another poco object 52 as a child node of the poco object 51 and store the information of each interactive element in the interface B in the poco object 52. Such as information comprising a plurality of sub-elements 521, 522, 523.
The electronic device may operate on each interactable element recorded in the poco object 52 one by one until each sub-element is tested.
Assuming that the application updates the interface again when operating on the sub-elements, the electronic device may create poco an object 53 for the updated interface and record the elements included in the updated interface, which may be 531, 532, for example. During specific testing, the electronic device can operate each interactable element of the child node, and after each element in the child node is operated, the electronic device operates other interactable elements in the parent node.
By constructing the node tree, trigger logic among the interactable elements of the application can be recorded, and all the interactable elements in the application can be operated, so that each function in the application can be traversed automatically.
After testing each sub-element of the selected interactable element, step 403 may be continuously performed, that is, a step of selecting an interactable element that is not tested from the plurality of interactable elements, so as to process the other interactable elements obtained in step 402, until each interactable element in the current display interface of the application is tested, step 405 is performed, and the process ends.
Specifically, when any interactive element is operated, if the element category included in the information of the interactive element is a text box, determining a text to be input. For example, a text identifier before the text box may be obtained, such that text to be entered is determined based on the text identifier. Prompt words in the text box may also be acquired, thereby determining the text to be entered based on the prompt words.
Further, the electronic device may enter text to be entered in a text box and identify whether a key is included in the interface to characterize the next step. The text information of other interactable elements in the interface can be obtained, for example, when the information of each interactable element is recorded, the information of pictures, texts, buttons, positions and the like can be recorded, and further whether the next key exists can be directly determined in poco objects.
If the next step of key pressing is included, the electronic device may operate the key for representing the next step, and in particular, may perform the operation of clicking the key.
Otherwise, if the interface does not include a key for representing the next step, the electronic device may acquire information of selecting other interactable elements which are not tested in the interface, and operate according to the category of the corresponding interactable elements.
When any interactive element is operated, if the element category included in the information of the interactive element is grid view control (GridView), the control coordinates are obtained from the information of the interactive element. The control coordinates of the grid view control may be obtained from the poco objects.
The electronic device can offset the control coordinates to obtain anchor coordinates, so that the electronic device can operate components in the grid view control according to the anchor coordinates, and can specifically execute clicking operation until the anchor coordinates are located.
Specifically, when the control coordinates are subjected to offset processing, the control coordinates can be offset according to specific parameters of the grid view control, for example, the control coordinates can be subjected to offset processing according to the grid view control size, the included grid number and other information.
Furthermore, after the operation is performed according to the anchor coordinates, the electronic device may further determine whether the updated application interface is a login page, and if yes, the electronic device may perform a login operation in the login page. For example, a login key may be identified in the login page, and the corresponding key may be operated.
In actual application, if the element category included in the information of the interactable element is neither a text box nor a grid view control, clicking operation is performed on the interactable element. The electronic device may determine a coordinate position of the interactable element according to the information of the interactable element in the poco object, and perform a click operation on the interactable element according to the corresponding position.
Fig. 6 is a schematic structural diagram of a test device of an application shown in an exemplary embodiment of the present disclosure.
As shown in fig. 6, a test apparatus 600 for an application provided by the present disclosure includes:
An obtaining unit 610, configured to obtain information of each interactable element included in a current display interface of an application;
A selecting unit 620, configured to select an interactable element that is not tested from a plurality of interactable elements;
an operation unit 630, configured to perform an interactive operation on the interactable element according to an element category included in the information of the selected interactable element, to obtain a result of performing an operation test on the interactable element;
the selecting unit 620 is further configured to continue to perform the step of selecting an interactable element that is not tested from the plurality of interactable elements until each interactable element in the current display interface of the application is tested.
The specific principle and implementation manner of the applied testing device provided in this embodiment are similar to those of the embodiment shown in fig. 2, and are not repeated here.
Fig. 7 is a schematic structural view of a test device of an application shown in another exemplary embodiment of the present disclosure.
As shown in fig. 7, in an optional embodiment of the application testing apparatus 700 provided by the present disclosure, the operation unit 630 is specifically configured to perform an interactive operation on the interactable element according to an element category included in the information of the selected interactable element, so as to obtain an operation test result of the selected interactable element;
If the application updates the interface, the obtaining unit 610 is further configured to continue to perform, according to the updated interface, the step of obtaining information of each interactable element included in the current display interface of the application, so as to test sub-elements of the selected interactable element, and obtain an operation test result of each sub-element.
In an alternative embodiment, after testing each sub-element of the selected interactable element, the selecting unit 620 is further configured to continue to perform the step of selecting the interactable element that is not tested from the plurality of interactable elements until each interactable element in the current display interface of the application is tested.
In an alternative embodiment, the operation unit 630 includes a text box processing module 631 for:
If the element category included in the interactive element information is a text box, determining a text to be input;
Inputting a text to be input in the text box, and identifying whether a key used for representing the next step is included in the interface;
If so, operating a key for representing the next step; otherwise, the selecting unit 620 continues to perform the step of selecting an interactable element that is not tested from the plurality of interactable elements.
In an alternative embodiment, the operation unit 630 includes a grid view processing module 632 for:
if the element category included in the information of the interactable element is a grid view control, acquiring control coordinates from the information of the interactable element;
Performing offset processing on the control coordinates to obtain anchor coordinates, and operating components in the grid view control according to the anchor coordinates;
And determining whether the application interface is a login page after the operation, and if so, executing login operation in the login page.
In an alternative embodiment, the operation unit 630 includes an additional processing module 633 for:
And if the element category included in the information of the interactable element is neither a text box nor a grid view control, clicking the interactable element.
In an alternative embodiment, the acquiring unit 610 includes:
A creating module 611, configured to create a preset object;
And an obtaining module 612, configured to obtain all the elements included in the current display interface, and store information of interactable elements in all the elements by using the preset object.
The specific principle and implementation of the device provided in this embodiment are similar to those of the embodiment shown in fig. 4, and will not be described here again.
Fig. 8 is a block diagram of an electronic device shown in an exemplary embodiment of the present disclosure.
As shown in fig. 8, the electronic device provided in this embodiment includes:
A memory 81;
a processor 82; and
A computer program;
wherein the computer program is stored in the memory 81 and configured to be executed by the processor 82 to implement the test method of any one of the applications as described above.
The present embodiment also provides a computer-readable storage medium, having stored thereon a computer program,
The computer program is executed by a processor to implement the test method of any of the applications described above.
The present embodiment also provides a computer program comprising program code which, when run by a computer, performs the test method of any one of the applications described above.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (4)

1. An application testing method, comprising:
Creating a first preset object;
acquiring all elements included in a current display interface, and storing information of interactable elements in all the elements by using the first preset object;
selecting an interactable element which is not tested from a plurality of interactable elements;
performing interactive operation on the interactable element according to the element category included in the selected interactable element information to obtain an operation test result of the interactable element;
continuing to execute the step of selecting the non-tested interactable element from the interactable elements until each interactable element in the current display interface of the application is tested;
Performing interactive operation on the interactable element according to the element category included in the selected interactable element information to obtain a result of performing operation test on the interactable element, including:
Performing interactive operation on the interactable element according to the element category included in the information of the selected interactable element to obtain an operation test result of the selected interactable element;
If the application updates the interface, a second preset object is created, information of each interactable element included in the current display interface of the application is obtained by continuing to execute according to the updated interface, and the information of each interactable element is stored by using the second preset object so as to test sub-elements of the selected interactable element and obtain operation test results of each sub-element;
After testing all sub-elements of the selected interactable elements, continuing to execute the step of selecting the interactable elements which are not tested from a plurality of interactable elements until all interactable elements in the current display interface of the application are tested;
the first preset object is used as a father node, and the second preset object is used as a child node, so that a node tree is constructed;
And performing interactive operation on the interactable element according to the element category included in the information of the selected interactable element, including:
If the element category included in the interactive element information is a text box, determining a text to be input;
Inputting a text to be input in the text box, and identifying whether a key used for representing the next step is included in the interface;
if so, operating a key for representing the next step; otherwise, continuing to execute the step of selecting the interactable element which is not tested from the interactable elements;
if the element category included in the information of the interactable element is a grid view control, acquiring control coordinates from the information of the interactable element;
Performing offset processing on the control coordinates to obtain anchor coordinates, and operating components in the grid view control according to the anchor coordinates;
Determining whether an application interface is a login page after operation, if so, executing login operation in the login page;
And if the element category included in the information of the interactable element is neither a text box nor a grid view control, clicking the interactable element.
2. An apparatus for testing an application, comprising:
An acquisition unit for creating a first preset object; acquiring all elements included in a current display interface, and storing information of interactable elements in all the elements by using the first preset object;
A selecting unit, configured to select an interactable element that is not tested from a plurality of interactable elements;
The operation unit is used for carrying out interactive operation on the interactable element according to the element category included in the information of the selected interactable element to obtain a result of carrying out operation test on the interactable element;
The selecting unit is further configured to continue to perform a step of selecting an interactable element that is not tested from the plurality of interactable elements until each interactable element in the current display interface of the application is tested;
If the application updates the interface, the acquiring unit is further configured to create a second preset object, continuously execute to acquire information of each interactable element included in the current display interface of the application according to the updated interface, and store the information of each interactable element by using the second preset object to test sub-elements of the selected interactable element to obtain an operation test result of each sub-element;
after testing all the sub-elements of the selected interactable elements, the selecting unit is further configured to continue to execute the step of selecting the interactable element that is not tested from the plurality of interactable elements until all the interactable elements in the current display interface of the application are tested;
the operation unit comprises a text box processing module, a grid view processing module and other processing modules;
The text box processing module is used for determining a text to be input if the element category included in the information of the interactable element is a text box; inputting a text to be input in the text box, and identifying whether a key used for representing the next step is included in the interface; if so, operating a key for representing the next step; otherwise, the selecting unit continues to execute the step of selecting the interactable element which is not tested from the interactable elements;
The grid view processing module is configured to obtain control coordinates from the information of the interactable element if the element category included in the information of the interactable element is a grid view control; performing offset processing on the control coordinates to obtain anchor coordinates, and operating components in the grid view control according to the anchor coordinates; determining whether an application interface is a login page after operation, if so, executing login operation in the login page;
and the other processing module is used for clicking the interactable element if the element category included in the information of the interactable element is neither a text box nor a grid view control.
3. An electronic device, comprising:
A memory;
A processor; and
A computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of claim 1.
4. A computer-readable storage medium, having a computer program stored thereon,
The computer program being executed by a processor to implement the method of claim 1.
CN202110672053.8A 2021-06-17 2021-06-17 Application testing method, device, equipment, storage medium and program product Active CN113220596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110672053.8A CN113220596B (en) 2021-06-17 2021-06-17 Application testing method, device, equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110672053.8A CN113220596B (en) 2021-06-17 2021-06-17 Application testing method, device, equipment, storage medium and program product

Publications (2)

Publication Number Publication Date
CN113220596A CN113220596A (en) 2021-08-06
CN113220596B true CN113220596B (en) 2024-04-30

Family

ID=77080457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110672053.8A Active CN113220596B (en) 2021-06-17 2021-06-17 Application testing method, device, equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN113220596B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019196274A1 (en) * 2018-04-10 2019-10-17 平安科技(深圳)有限公司 Web page testing method and apparatus, electronic device, and medium
CN111767228A (en) * 2020-06-30 2020-10-13 平安国际智慧城市科技股份有限公司 Interface testing method, device, equipment and medium based on artificial intelligence
CN112905451A (en) * 2021-02-02 2021-06-04 北京罗克维尔斯科技有限公司 Automatic testing method and device for application program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210081309A1 (en) * 2019-09-13 2021-03-18 TestRigor, Inc. Mapping interactive elements in an application user interface

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019196274A1 (en) * 2018-04-10 2019-10-17 平安科技(深圳)有限公司 Web page testing method and apparatus, electronic device, and medium
CN111767228A (en) * 2020-06-30 2020-10-13 平安国际智慧城市科技股份有限公司 Interface testing method, device, equipment and medium based on artificial intelligence
CN112905451A (en) * 2021-02-02 2021-06-04 北京罗克维尔斯科技有限公司 Automatic testing method and device for application program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于功能构件的Web应用建模与测试方法;唐云吉等;《计算机科学》;20090731;第36卷(第07期);124-127+169 *

Also Published As

Publication number Publication date
CN113220596A (en) 2021-08-06

Similar Documents

Publication Publication Date Title
US10572360B2 (en) Functional behaviour test system and method
US10127141B2 (en) Electronic technology resource evaluation system
US8434062B2 (en) Enhancing source code debugging and readability using visual symbols
CN104657274B (en) software interface test method and device
CN108595343A (en) The test method and device of application program
US10152405B2 (en) Application testing system and method
CN107451112B (en) Form tool data checking method, device, terminal equipment and storage medium
CN111158656B (en) Test code generation method and device based on fruit tree method
CN111475390A (en) Log collection system deployment method, device, equipment and storage medium
EP3547110A1 (en) Code correction
US20140082582A1 (en) Resource Tracker
Tierno et al. Open issues for the automotive software testing
CN108073511B (en) Test code generation method and device
CN109189688B (en) Test case script generation method and device and electronic equipment
US10042638B2 (en) Evaluating documentation coverage
US10152039B2 (en) Method and apparatus for the display of multiple errors on a human-machine interface
CN111143228B (en) Test code generation method and device based on decision table method
CN112667517A (en) Method, device, equipment and storage medium for acquiring automatic test script
CN113220596B (en) Application testing method, device, equipment, storage medium and program product
JP2005332098A (en) Testing item extraction system, testing item extraction device, testing item extraction method used for the device, and program therefor
CN113326193A (en) Applet testing method and device
CN109669868A (en) The method and system of software test
WO2023160402A1 (en) Data modeling method and apparatus, and device and storage medium
CN110348127B (en) Method, device, equipment and storage medium for generating test cases
CN109271311B (en) Demand scene method and demand scene device

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