CN113553254A - Page testing method and device and electronic equipment - Google Patents
Page testing method and device and electronic equipment Download PDFInfo
- Publication number
- CN113553254A CN113553254A CN202010333789.8A CN202010333789A CN113553254A CN 113553254 A CN113553254 A CN 113553254A CN 202010333789 A CN202010333789 A CN 202010333789A CN 113553254 A CN113553254 A CN 113553254A
- Authority
- CN
- China
- Prior art keywords
- page
- test
- test case
- identifier
- identifiers
- 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.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 390
- 238000000034 method Methods 0.000 claims abstract description 76
- 230000002159 abnormal effect Effects 0.000 claims abstract description 51
- 238000012937 correction Methods 0.000 claims description 30
- 230000006870 function Effects 0.000 claims description 22
- 230000005856 abnormality Effects 0.000 claims description 17
- 238000013507 mapping Methods 0.000 claims description 16
- 238000012098 association analyses Methods 0.000 claims description 13
- 230000008569 process Effects 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 17
- 238000001545 Page's trend test Methods 0.000 description 13
- 238000004891 communication Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000010219 correlation analysis Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test 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)
Abstract
The disclosure provides a page testing method, a page testing device and electronic equipment, wherein the method comprises the following steps: under the condition that a set test exception occurs in an execution test case, acquiring an element identifier causing the test exception in the test case as an exception identifier, wherein the set test exception is an exception condition that a corresponding page element cannot be positioned on a target page according to the element identifier recorded in the test case; looking up other identifiers associated with the abnormal identifier; positioning corresponding page elements on the target page according to the other identifiers; and executing the test case according to the positioned page elements.
Description
Technical Field
The embodiment of the specification relates to the technical field of computers, in particular to a page testing method, a page testing device, electronic equipment and a computer readable storage medium.
Background
At present, an application page, that is, a User Interface (UI) of an application, may be automatically tested through a test case, where a specified element identifier indicates a page element as a test object, and the specified element identifier is, for example, attribute information such as class, identification number id, text, and the like of the identified page element, so that when the test case is executed to perform an automatic test of the application page, a corresponding page element may be located in the application page through an element identifier recorded in the test case, and further, a corresponding operation recorded in the test case may be executed for the located page element.
Therefore, in order to smoothly implement the above automated test, it is required that a certain page element on the application page can be uniquely located according to the element identifier recorded in the test case, otherwise, the test cannot be continued, and further, a test exception occurs. In practical application, because a designer often modifies page elements of an application page in the process of designing the application page, including adding new page elements, modifying attribute information of original page elements, and the like, a situation that a certain page element cannot be uniquely located on the application page according to an element identifier in a test case is likely to occur, and thus when an automated test of the application page is performed by executing the test case, a test exception that any page element cannot be located or a test exception that at least two page elements matched with the element identifier are located is likely to occur.
In the prior art, if a test exception occurs, a tester needs to manually modify a test case or modify attribute settings of corresponding page elements on an application page according to the specific situation of the exception, and the passive solution of manual modification according to the exception situation increases the time cost and the labor cost of page testing, so that it is very necessary to provide a page testing scheme capable of automatically performing exception handling.
Disclosure of Invention
The embodiment of the specification provides a new technical scheme for testing an application page.
According to a first aspect of the present specification, there is provided a page testing method, the method comprising: under the condition that a set test exception occurs in an execution test case, acquiring an element identifier causing the test exception in the test case as an exception identifier, wherein the set test exception is an exception condition that a corresponding page element cannot be positioned on a target page according to the element identifier recorded in the test case;
looking up other identifiers associated with the abnormal identifier;
positioning corresponding page elements on the target page according to the other identifiers;
and executing the test case according to the positioned page elements.
Optionally, the other identification comprises at least one of attribute information of the identified page element and context information of the identified page element.
Optionally, the searching for other identifiers associated with the abnormal identifier includes:
searching other identifiers related to the abnormal identifiers in the related information corresponding to the test cases;
and the associated information reflects the mapping relation between the element identifier recorded in the test case and other identifiers.
Optionally, the method further includes a step of obtaining the association information, including:
in the process of recording and operating the page elements on the target page to generate the test case, for each page element serving as an operation object, recording a mapping relation between an element identifier used for representing the corresponding page element and other identifiers of the corresponding page element in the test case, and forming the associated information.
Optionally, the method further comprises:
and requesting the server to provide the associated information under the condition that the execution test case has abnormal set test.
Optionally, the other identifier includes attribute information and context information of the identified page element, and the positioning of the corresponding page element on the target page according to the other identifier includes:
positioning corresponding page elements on the target page according to the attribute information;
and under the condition that the positioning fails according to the attribute information, positioning a corresponding page element on the target page according to the context information.
Optionally, before the method obtains, in the test case, an element identifier causing the test exception as an exception identifier, the method further includes:
responding to the operation of testing the target page, and providing an input interface for inputting a test scene;
acquiring a test scene input through the input interface;
searching a test case corresponding to the input test scene in the test cases of the target page;
and executing the searched test case.
Optionally, the method further comprises:
and correcting the abnormal mark in the test case according to the positioned accurate mark of the page element.
Optionally, the modifying the abnormal identifier in the test case according to the accurate identifier of the located page element includes:
correcting the abnormal identifiers in the test cases into correct element identifiers with the same attribute; or,
and correcting the abnormal mark in the test case into other marks positioned to the corresponding page element.
Optionally, the method further comprises:
after completing the correction, a correction notification is returned.
Optionally, the method further comprises:
detecting whether an automatic correction function is started or not;
and executing the operation of correcting the abnormal identifier in the test case according to the positioned accurate identifier of the page element under the condition of starting the automatic correction function.
According to a second aspect of the present description, there is provided another embodiment of a page testing method, the method comprising:
recording operation performed on page elements on a target page, and generating a test case, wherein the test case comprises an element identifier representing the page elements serving as an operation object and operation items for the page elements;
for the page element as the operation object, recording a mapping relation between an element identifier used for representing the corresponding page element and other identifiers of the corresponding page element in the test case, and generating associated information;
and executing the test case according to the associated information.
According to a third aspect of the present description, there is provided yet another embodiment of a page testing method, the method comprising:
responding to the operation of a test target page, and acquiring a test case corresponding to the target page and associated information corresponding to the test case;
the test case comprises an element identifier representing a page element as an operation object and an operation item for the page element, and the associated information comprises a mapping relation between the element identifier and other identifiers of the page element marked by the element identifier;
and testing the target page according to the obtained test case and the associated information.
According to a fourth aspect of the present description, there is also provided an embodiment of a page testing apparatus, comprising:
the abnormal positioning module is used for acquiring an element identifier causing the test abnormality in the test case as an abnormal identifier under the condition that the set test abnormality occurs in the execution test case, wherein the set test abnormality is an abnormal condition that a corresponding page element cannot be positioned on a target page according to the element identifier recorded in the test case;
the association analysis module is used for searching other identifiers associated with the abnormal identifier;
the exception handling module is used for positioning corresponding page elements on the target page according to the other identifiers; and the number of the first and second groups,
and the test execution module is used for executing the test case according to the positioned page elements.
According to a fifth aspect of the present description, there is also provided an embodiment of an electronic device comprising the page testing apparatus according to the above fourth aspect; alternatively, the electronic device comprises a memory for storing instructions for controlling the processor to operate to perform the page test method according to the above first, second or third aspect, and a processor.
According to a fourth aspect of the present description, there is also provided an embodiment of a computer-readable storage medium storing executable instructions that, when executed by a processor, perform the method of the first, second or third aspect above.
In one embodiment, when a target page is tested according to a test case, if an abnormal condition that a certain page element cannot be uniquely positioned on the target page according to an element identifier in the test case occurs, the page testing method triggers to search for the associated information of the element identifier to obtain the associated analysis of other identifiers associated with the element identifier, so that the certain page element can be uniquely positioned on the target page through other identifiers in the associated information, and further automatically solves the abnormal problem, so that the test can be continuously executed. By the method of the embodiment, the abnormal problem can be actively solved without manual intervention when the abnormal condition occurs, so that the testing efficiency is improved, and the testing cost is reduced.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a schematic diagram of an application scenario in which a page test method of one embodiment may be implemented;
FIG. 2 is a hardware architecture diagram of an electronic device that may be used to implement the page test method of one embodiment;
FIG. 3 is a flowchart diagram of a page testing method according to one embodiment;
FIG. 4 is a schematic flow chart diagram of a page testing method according to another embodiment;
FIG. 5 is a flowchart illustration of a page testing method according to yet another embodiment;
FIG. 6 is a functional block diagram of a page test apparatus according to one embodiment;
FIG. 7 is a functional block diagram of an electronic device according to one embodiment.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
A technician may design an application page through the terminal device 1000a shown in fig. 1, and after an application version is obtained through the design, the technician may test the application page obtained through the design, the test may be generally performed in different test scenarios, and for example, an e-commerce application may set a login scenario, a purchase scenario, a payment scenario, a return scenario, and the like. For any test scenario, when a technician executes the test scenario by operating a related page element, a test application installed on the terminal device 1000a may record all operations of the technician when executing the test scenario, including an operation item of each operation and an operation object of each operation, for example, if one of the operations is a "click" confirmation key, the operation item recording the operation is the "click" key and the operation object of the operation is a key element whose text identifier is "confirmation", where the operation object is represented by extracting an element identifier of a corresponding page element, for example, by extracting attributes such as class, identifier ID, or text of the corresponding page element, so that a test case corresponding to the test scenario is generated.
The test case may be stored locally in the terminal device 1000a, or may be stored in a server 1000b communicatively connected to the terminal device 1000a, where the server 1000b may be a local server, a remote server, or a cloud server, and is not limited herein.
After the test case is generated, the automatic test of the application page can be performed by executing the test case, and the test mode is as follows: according to the operation items and the operation objects of the first-step operation recorded by the test case in any test scene, uniquely positioning the matched page elements on the application page, and operating the positioned page elements according to the operation items of the first step to automatically execute the first-step test operation of the test scene, and so on, and continuously executing the corresponding test operation according to the later operation recorded by the test case.
Because of the automatic test through the test case, the corresponding page element on the application page can be uniquely positioned according to the element identifier which represents the operation object and is recorded in the test case, so that the smooth execution of the whole test can be ensured. Therefore, if the technician modifies the page element of the application page at a later stage, for example, adds a new page element and/or modifies the element identifier of the page element in the test case, when the test case is executed, it is likely that a situation that the corresponding page element cannot be uniquely positioned on the application page according to the element identifier representing the operation object recorded in the test case occurs, and then a test exception that any page element on the application page cannot be positioned occurs, or a test exception that the unique operation object cannot be determined occurs because at least two page elements matching the element identifier occur.
Based on the abnormal situation, the present embodiment provides a page testing method, where the method may start association analysis when the abnormal situation occurs in a test, search, in association information corresponding to a test step with the test abnormality, for other identifiers associated with an element identifier of an operation object representing the test step in a test case through the association analysis, and uniquely locate, according to the other identifiers, a corresponding page element in an application page, so as to implement the unique location through a multidimensional identifier.
For example, one test step in the test case is to click a button with a text identifier of "delete" on a data list page as shown in fig. 1, and since only one piece of data. xxcc 1, that is, only one button with a text identifier of "delete" is on the data list page when the test case is generated, the text identifier is used as an element identifier to represent an operation object of the step, and a corresponding page element on the page can be uniquely located. However, when the test case is executed, in the test step, the data list page has two pieces of data.xxcc 1 and data.xxcc 2, and each piece of data has a key with a text identifier of "delete", so that the test application cannot be uniquely positioned to a corresponding page element on the page in the test step according to the element identifier in the test case, and further, test abnormality occurs in the test step. According to the method of this embodiment, at this time, correlation analysis may be started, and other identifiers recorded in the correlation information corresponding to the test step, that is, other identifiers of the "delete" key of the data data.xxc1, may be searched through the correlation analysis, where the other identifiers may include at least one of a class identifier, an identification number ID, and context information of the "delete" key of the data data.xxc1, and the test application may record the correlation information of the operation object in each operation step in synchronization when generating the test case, so as to uniquely locate the corresponding "delete" key on the page according to the found other identifiers, and execute the "click" operation recorded in the test case for the located page element, and further accurately execute the test step of deleting the data.xxc 1.
In this embodiment, the association analysis may be implemented on the terminal device 1000a running the application, or may be implemented on another device communicatively connected to the terminal device 1000a, for example, the server 1000b, which is not limited herein.
< hardware Equipment >
FIG. 2 illustrates a hardware architecture diagram of an electronic device that can be used to implement the page testing method of one embodiment. The electronic device may be the terminal device 1000a shown in fig. 1, or may be other devices, for example, other devices communicatively connected to a terminal device running a target application, and the other devices may be servers and the like, which is not limited herein.
The terminal device 1000a in fig. 1 may be a PC, a notebook, a tablet, or the like.
The server 1000b in fig. 1 is a site that provides processing, database, and communications facilities. The server 1000b may be a unitary server or a distributed server across multiple computers or computer data centers. The server may be of various types, such as, but not limited to, a web server, a news server, a mail server, a message server, an advertisement server, a file server, an application server, an interaction server, a database server, or a proxy server. In some embodiments, each server may include hardware, software, or embedded logic components or a combination of two or more such components for performing the appropriate functions supported or implemented by the server. For example, a server, such as a blade server, a cloud server, etc., or may be a server group consisting of a plurality of servers, which may include one or more of the above types of servers, etc.
In one embodiment, as shown in fig. 2, the electronic device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, and the like.
Processor 1100 is used to execute program instructions that may employ an instruction set of architectures such as x86, Arm, RISC, MIPS, SSE, and the like. The memory 1200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1300 includes, for example, a USB interface, a headphone interface, and the like. Communication device 1400 is capable of wired or wireless communication, for example. The display device 1500 is, for example, a liquid crystal display panel, a touch panel, or the like. The input device 1600 may include, for example, a touch screen, a keyboard, and the like. The speaker 1700 is used to output voice information. The microphone 1800 is used to collect voice information.
In this embodiment, the memory 1200 of the electronic device 1000 is configured to store instructions for controlling the processor 1100 to operate at least to perform a page test method according to any of the embodiments. The skilled person can design the instructions according to the disclosed solution. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
Although a plurality of devices of the electronic apparatus 1000 are shown in fig. 2, embodiments of the present description may also refer to only some of the devices, for example, the electronic apparatus 1000 refers to only the memory 1200, the processor 1100, and the like, and is not limited herein.
< method examples >
Fig. 3 is a flowchart illustrating a page testing method according to an embodiment, where the method may be implemented by a terminal device running a target application, for example, the terminal device 1000a shown in fig. 1, or may be implemented by another device in communication connection with the terminal device, for example, the server 1000b in fig. 1, which is not limited herein. In this embodiment, the target application is an application to be subjected to a page test, and a page of the target application is a target page to be tested, as shown in fig. 3, the page test method of this embodiment may include the following steps S3100 to S3400:
step S3100, when a set test exception occurs in the execution test case, acquiring an element identifier causing the test exception in the test case as an exception identifier.
In this embodiment, the test exception is set to an exception condition that the corresponding page element cannot be uniquely located on the target page according to the element identifier recorded in the test case.
In the test case, any page element as an operation object is represented by an element identifier of the page element, for example, by a class identifier, an identification number ID, or a text of the page element.
In this embodiment, when a set test exception occurs in an execution test case, a test step in which the test exception occurs may be determined first, and an element identifier used to represent an operation object of the operation step in the operation step may be obtained as the exception identifier.
Step S3200, look up other identifiers associated with the abnormal identifier.
In this embodiment, the exception identifier and the other identifiers associated with the exception identifier are both used to identify the same page element.
In this embodiment, other identifiers may be recorded in the association information of the test case. Correspondingly, in step S3200, other identifiers associated with the abnormal identifier may be searched for in the association information of the test case.
The association information establishes a mapping relationship between the element identifier recorded in the test case and other identifiers associated with the element identifier recorded in the test case. Therefore, under the condition that the set test exception occurs, other identifiers related to the exception identifier can be obtained by searching the related information of the test case.
The other identification may include at least one of attribute information and context information of the identified page element.
The attribute information may include at least one of class, identification number ID, text, tag, selector, type, and node type nodeType.
The context information may include at least one of attribute information of a parent element node of the identified page element, attribute information of a sibling element node, attribute information of a child element node, and the like.
The other identifier is also an identifier of a different type from the anomaly identifier. For example, the exception identifier is a text identifier, and the other identifiers may include at least one of class, identification number ID, tag, selector, type, and node type nodeType, and context information.
The relevant information of the test case may be stored locally in the terminal device 1000a, or may be stored in another device communicatively connected to the terminal device 1000a, for example, in the server 1000b shown in fig. 1. Thus, in this embodiment, the method may further include: and requesting the server to provide the associated information corresponding to the test case when the set test exception occurs in the execution of the test case, so as to execute the operation of the step S3200 according to the associated information provided by the server.
In step S3300, the corresponding page element is positioned on the target page according to the other identifier found in step S3200.
In this embodiment, the purpose of accurately positioning the corresponding page element on the target page through the multidimensional identifier of the operation object can be achieved by using the found other identifiers, and the problem of test abnormality that the corresponding page element cannot be positioned on the target page according to the single identifier for the test case is solved.
For example, for a test case of the target application, which is written using text, a test step of the test case is to click a key element whose text is identified as "ok", that is, in the test step, the test object is a key element whose text is identified as "ok", and the test operation is to perform a "click" operation on the key element. For the target application, after the technician generates the test case by operating the target application, the text identifier of the key element on the page of the target application is modified from "confirm" to "confirm", at this time, if the test case is executed to perform the page test of the target application, when the operation step is executed, the key element with the text identifier of "confirm" which cannot be positioned on the page of the target application occurs, and further, the set test exception occurs. According to the method of this embodiment, when the test exception occurs, the association analysis is started, and other identifiers associated with the key element with the text identifier "ok" are obtained from the association information of the test case, where the other identifiers are also used to identify the key element involved in the operation step, and the other identifiers may include class, identification number ID, and the like of the key element, and the key element is accurately located on the target page of the target application according to the other identifiers.
In an embodiment, the other identifier includes attribute information and context information of the identified page element, and the positioning the corresponding page element on the target page according to the found other identifier in the step S3300 may include the following steps S3311 to S3312:
step S3311, according to the attribute information in other marks, the corresponding page element is positioned on the target page.
Step S3312, in case of failed positioning according to the attribute information in the other identifier, positioning the corresponding page element on the target page according to the context information in the other identifier.
For example, for a test case of a target application, which is written using text, a test step is to click a key with text identification "delete" on a data list page as shown in fig. 1, because only one piece of data. xxcc 1, that is, only one key with text identification "delete" is on the data list page when the test case is generated, the text identification is used as an element identification to represent an operation object of the step, and a corresponding page element on the page can be uniquely located. However, when the test case is executed, in the test step, the data list page has two pieces of data.xxcc 1 and data.xxcc 2, and each piece of data has a key with a text identifier of "delete", so that the test application cannot be uniquely positioned to a corresponding page element on the page in the test step according to the element identifier in the test case, and further, test abnormality occurs in the test step. In this embodiment, association analysis may be started at this time, and other identifiers recorded in the association information corresponding to the test step are searched for through association analysis, where the other identifiers are identifiers of the "delete" key of the data data.xxc1 other than the text identifier, and the other identifiers may include attribute information such as class, identification number ID, and the like of the "delete" key of the data data.xxc1, and may also include context information of the "delete" key. After finding other identifiers, according to attribute information such as class, identification number ID and the like in other identifiers, positioning the corresponding page element on the application page, if the class of the "delete" key of the two pieces of data data.xxc1 and data.xxc2 is the same, and the identification number ID is modified, the problem still arises that the corresponding page element cannot be uniquely located on the page according to the attribute information in the other identifier, and at this time, the information may be further determined based on context information in other identifiers, such as parent element node information, matching of parent element nodes is performed on the page, when parent element node information of a delete key of the data. xxc1 is identical with parent element node information in other identifiers, and the parent element node information of the "delete" key of the data. xxc2 is not identical with the parent element node information in the other identifiers, namely, the 'delete' key of the data data.xxc1 can be accurately positioned as the operation object in the operation step. Therefore, the 'clicking' operation recorded in the test case can be executed according to the positioned 'deleting' key of the data data.xxc1, and then the test step of deleting the data data.xxc1 is accurately executed.
Since the attribute information of the operation object has an advantage of being able to quickly locate the corresponding page element relative to the context information, in this embodiment, when locating the corresponding page element on the target page according to other identifiers, the location may be performed according to the attribute information in the other identifiers first, and in the case that the location cannot be completed according to the attribute information, the location may be performed in combination with the context information.
And step S3400, executing the test case according to the positioned page elements.
In this embodiment, the test case is executed according to the located page element, that is, the corresponding test operation recorded in the test case is executed for the located page element.
Continuing the example that the test object is the key element with the text identifier being "determined", after the key element is accurately positioned on the target page of the target application according to the other identifiers, the click operation recorded in the test case can be executed for the positioned key element without manual intervention to solve the problem of test abnormality that the key element cannot be positioned on the target page according to the element identifier recorded in the test case, so that the operation step can be smoothly executed, and thus, after the operation step is executed, the subsequent operation step can be continuously executed to complete the whole automatic test by executing the test case.
As can be seen from the above steps S3100 to S3400, when a test of a target page is performed according to a test case, if a test abnormality of a certain page element that cannot be uniquely located on the target page according to an element identifier in the test case occurs, the method of this embodiment triggers correlation analysis for finding correlation information of the element identifier, so as to obtain other identifiers associated with the element identifier through the correlation analysis, and uniquely locate the certain page element on the target page through other identifiers in the correlation information, thereby automatically solving the abnormality problem, so that the test can be continuously performed. By the method of the embodiment, the abnormal problem can be actively solved without manual intervention when the abnormal condition occurs, so that the testing efficiency is improved, and the testing cost is reduced.
In one embodiment, the test cases are generated by operating the target page, and thus, different applications correspond to different test cases. In this embodiment, the target page may correspond to one test case or a plurality of test cases, where one test case corresponds to one test scenario. In this embodiment, before the step S3100, the method may further include the following steps S3011 to S3014:
step S3011, in response to the operation of the test target page, providing an input interface for inputting a test scenario.
The input interface may include an interface in the form of at least one of an input box, a checklist, and a drop-down list.
In one embodiment, the method may further include displaying all test scenarios with test cases corresponding to the target page in the provided input interface, so that a technician may complete an operation of inputting the test scenarios by directly selecting a desired test scenario.
Step S3012, a test scenario input through the input interface is acquired.
Step S3013, search for a test case corresponding to the input test scenario from the test cases in the target page.
Step S3014, the found test case is executed.
As can be seen from the steps S3011 to S3014, the method of this embodiment allows a user to select a test scenario to be tested according to test requirements, thereby improving the flexibility of testing.
In one embodiment, the method can automatically correct the test case under the condition of automatically solving the test exception, so as to avoid the same test exception still occurring in the next test as much as possible, and further provide the test efficiency of the subsequent test.
In this embodiment, the method may further include the steps of: and correcting the abnormal mark in the test case according to the positioned accurate mark of the corresponding page element.
In this embodiment, according to the located accurate identifier of the corresponding page element, modifying the abnormal identifier in the test case may include: and correcting the abnormal identifier into other identifiers positioned to the corresponding page element.
Continuing with the example in which the test object is a key element with a text identifier "ok", when the corresponding page element cannot be located on the target page according to the text identifier "ok", association analysis is started, and the corresponding page element is located on the target page by the identification number ID in the other identifiers associated with the text identifier "ok", so that the page element represented by the text identifier "ok" in the test case can be automatically corrected to be represented by the identification number ID.
In this embodiment, according to the located accurate identifier of the corresponding page element, modifying the abnormal identifier in the test case may also include: and correcting the abnormal identifier in the test case into a correct element identifier, wherein the correct element identifier and the abnormal identifier are identifiers with the same attribute.
Still continuing the above example in which the test object is a key element with a text identifier "ok", after a test case is generated, the text identifier of the key element is modified to "ok", at this time, in a test, a corresponding page element cannot be located on a target page according to the text identifier "ok", at this time, association analysis is started, the corresponding page element is located on the target page through an identification number ID in other identifiers associated with the text identifier "ok", and it is obtained that the text identifier of the corresponding page element should be "ok", instead of "ok", and then the page element represented by the text identifier "ok" in the test case can be automatically corrected to be represented by the text identifier "ok", where "ok" and "ok" both belong to text identifiers.
In one embodiment, after the correction is automatically completed, the user is notified that the test case has been corrected, so that the user can grasp the correction condition of the test case in time.
In this embodiment, the method may further include the steps of: after the correction is completed, a correction notification is returned.
In this embodiment, the correction notification may be sent to an account executing the test case to return the correction notification to the user.
The correction notification may include the correction content.
In one embodiment, the user may be allowed to select whether to turn on the auto-correction function, so that the auto-correction operation in the above-described embodiment is performed again if the user allows it. In this embodiment, the method may further include the following steps S3511 to S3512:
step S3511, whether the automatic correction function is started is detected.
In this embodiment, the detecting whether to activate the auto-correction function may include: and detecting whether the function setting item of the automatic correction is in an opening state, if so, confirming that the automatic correction function is opened, otherwise, confirming that the automatic correction function is not opened.
Step S3512, under the condition that the automatic correction function is started, the operation of correcting the abnormal mark in the test case according to the positioned accurate mark of the corresponding page element is executed.
In an embodiment, the method may further include a step of generating association information of the test case in advance, so that in step S3200, other identifiers associated with the abnormal identifier can be searched according to the association information.
In this embodiment, generating the associated information of the test case may include the following steps: in the process of recording the page elements on the operation target page to generate the test case, for each page element serving as an operation object, recording a mapping relationship between an element identifier used for representing the corresponding page element and other identifiers of the corresponding page element in the test case, and forming the associated information.
For example, when a technician operates a target page, one of the operation steps is to click a key element with a text identifier "ok" on the target page, at this time, the test case records the operation step, records that the text identifier of an operation object corresponding to the operation step is "ok", and the test operation corresponding to the operation step is "click", and at the same time, the test application acquires other identifiers of the key element, for example, acquires class, an identifier number, context information, and the like of the key element, and establishes a mapping relationship between the acquired other identifiers and the text identifier "ok" in the associated information of the test case.
FIG. 4 shows a flowchart of a page testing method according to one embodiment. The method may be implemented by a terminal device running the target application, for example, the terminal device 1000a shown in fig. 1, or may be implemented by another device in communication connection with the terminal device, for example, the server 1000b in fig. 1, which is not limited herein.
As shown in fig. 4, the page test method of this embodiment may include the following steps S4100 to S4300:
step S4100 records the operation performed on the page element on the target page, and generates a test case, where the test case includes an element identifier indicating the page element as the operation target and an operation item for the page element.
In this embodiment, the test case of any application scenario may be generated by recording an operation performed by a tester on a page element on a target page.
The test case comprises each recorded step operation, element identification of the page elements involved in each step operation and operation items for the involved page elements in the step operation, so that the automatic test of the corresponding application scene can be automatically executed aiming at the target page by calling the test case.
Step S4200 is to record, in the test case, the mapping relationship between the element identifier of the corresponding page element and the other identifiers of the corresponding page element, and generate the association information, for the page element to be operated.
In this embodiment, in the process of recording the test case, the mapping relationship is also recorded at the same time to obtain the associated information corresponding to the test case.
The test case and the associated information may be stored locally in the terminal device, or may be stored in another device that establishes a communication connection with the terminal device, which is not limited herein.
The other identification may include at least one of attribute information and context information of the identified page element.
The attribute information may include at least one of class, identification number ID, text, tag, selector, type, and node type nodeType.
The context information may include at least one of attribute information of a parent element node of the identified page element, attribute information of a sibling element node, attribute information of a child element node, and the like.
Step S4300, executing the test case according to the association information.
The step S4300 of executing the test case according to the association information may include the following steps S4310 to S4330:
step S4310, when a set test exception occurs during executing the test case, acquiring an element identifier causing the test exception from the test case as an exception identifier, where the set test exception is an exception condition in which a corresponding page element cannot be located on a target page according to the element identifier recorded in the test case.
Step S4320, searching other identifiers associated with the abnormal identifier in the association information.
Step S4330, according to the other identifiers, positioning the corresponding page elements on the target page.
Step S4340, executing the test case according to the located page element.
As can be seen from the above steps S4100 to S4300, in the method of this embodiment, when a test of a target page is performed according to a test case, and when a test abnormality occurs in a certain page element that cannot be uniquely located on the target page according to an element identifier in the test case, other identifiers associated with the element identifier may be searched through the association information corresponding to the test case, and the certain page element that is uniquely located on the target page is uniquely located through other identifiers in the association information, so that the abnormality problem is automatically solved, and the test can be continuously performed.
FIG. 5 shows a flowchart of a page testing method according to yet another embodiment. The method may be implemented by a terminal device running the target application, for example, the terminal device 1000a shown in fig. 1, or may be implemented by another device in communication connection with the terminal device, for example, the server 1000b in fig. 1, which is not limited herein.
As shown in fig. 5, the page testing method of this embodiment may include the following steps S5100 to S5300:
step S5100, in response to an operation of testing a target page, obtains a test case corresponding to the target page and associated information corresponding to the test case.
In this embodiment, the test case includes an element identifier indicating a page element as an operation object, and an operation item for the page element.
In this embodiment, the association information includes a mapping relationship between the element identifier recorded in the test case and another identifier of the page element marked by the element identifier.
Step S5200, testing the target page according to the obtained test case and the associated information.
In step S5200, according to the obtained test case and the associated information, the test target page may include the following steps S5210 to S5230:
step S5210, in the process of executing the test case to test the target page, if a set test exception occurs, acquiring an element identifier causing the test exception in the test case as an exception identifier, where the set test exception is an exception condition that a corresponding page element cannot be located on the target page according to the element identifier recorded in the test case.
In step S5220, other identifiers associated with the abnormal identifier are searched for in the association information.
Step S5230, according to the other identifiers, the corresponding page elements are positioned on the target page.
Step S5340, executing the test case according to the located page element to continue testing the target page.
As can be seen from the foregoing steps S5100 to S5200, when a test of a target page is performed according to a test case and a test abnormality of a certain page element that cannot be uniquely located on the target page according to an element identifier in the test case occurs, the method of this embodiment may search for other identifiers associated with the element identifier through the associated information corresponding to the test case, and uniquely locate a certain page element on the target page through other identifiers in the associated information, thereby automatically solving the abnormality problem, so that the test can be continuously performed.
The above embodiments of the method focus on differences of the embodiments of the method, and the same or similar steps of different embodiments may be referred to each other without going back.
< apparatus embodiment >
In this embodiment, a page testing apparatus is further provided, as shown in fig. 6, the page testing apparatus 6000 includes an exception positioning module 6100, an association analysis module 6200, an exception handling module 6300, and a test execution module 6400.
The exception positioning module 6100 is configured to, when a set test exception occurs in an execution test case, acquire an element identifier causing the test exception in the test case as an exception identifier, where the set test exception is an exception condition in which a corresponding page element cannot be positioned on a target page according to the element identifier recorded in the test case.
The association analysis module 6200 is configured to look up other identifiers associated with the anomaly identifier.
The exception handling module 6300 is configured to locate a corresponding page element on the target page according to the other identifier.
The test execution module 6400 is configured to execute the test case according to the located page element.
In one embodiment, the other identification may include at least one of attribute information of the identified page element and context information of the identified page element.
In one embodiment, the association analysis module 6200, when looking for other identifiers associated with the anomaly identifier, may be configured to: searching other identifiers related to the abnormal identifiers in the related information corresponding to the test cases; and the associated information reflects the mapping relation between the element identifier recorded in the test case and other identifiers.
In one embodiment, the apparatus 6000 may further include a correlation information generating module, which is configured to obtain the correlation information. When acquiring the association information, the association information generating module may be configured to: in the process of recording and operating the page elements on the target page to generate the test case, for each page element serving as an operation object, recording a mapping relation between an element identifier used for representing the corresponding page element and other identifiers of the corresponding page element in the test case, and forming the associated information.
In one embodiment, the apparatus 6000 may further include an association information obtaining module, and the association information obtaining module may be configured to: and requesting the server to provide the associated information under the condition that the execution test case has abnormal set test.
In one embodiment, the other identifier includes attribute information and context information of the identified page element, and the exception handling module 6300, when locating the corresponding page element on the target page according to the other identifier, may be configured to: positioning corresponding page elements on the target page according to the attribute information; and under the condition that the positioning fails according to the attribute information, positioning a corresponding page element on the target page according to the context information.
In one embodiment, the apparatus 6000 may further include a test setup module. The test setup module may be to: responding to the operation of testing the target page, and providing an input interface for inputting a test scene; acquiring a test scene input through the input interface; searching a test case corresponding to the input test scene in the test cases of the target page; and executing the searched test case.
In one embodiment, the apparatus 6000 may further include an anomaly correction module, which may be configured to: and correcting the abnormal mark in the test case according to the positioned accurate mark of the page element.
In an embodiment, when the exception correcting module corrects the exception identifier in the test case according to the accurate identifier of the located page element, the exception correcting module may be configured to: correcting the abnormal identifiers in the test cases into correct element identifiers with the same attribute; or, the abnormal identifier in the test case is corrected to be positioned to other identifiers of the corresponding page element.
In one embodiment, the anomaly correction module may be further configured to: after completing the correction, a correction notification is returned.
In one embodiment, the apparatus 6000 may further include a function setting module, which may be configured to: detecting whether an automatic correction function is started or not; and executing the operation of correcting the abnormal mark in the test case according to the positioned accurate mark of the page element under the condition of starting the automatic correction function.
< apparatus embodiment >
In an embodiment, an electronic device 7000 is also provided, as shown in fig. 7, the electronic device 7000 may comprise the page test apparatus 6000 according to any of the embodiments.
In another embodiment, the electronic device 7000 may comprise a memory for storing instructions for controlling said processor to operate for performing the page test method according to any of the above embodiments and a processor.
The above modules of the page test apparatus 6000 may be implemented by a processor of the electronic device 7000.
The electronic device may be, for example, a terminal device 1000a as shown in fig. 1, or may be another device capable of implementing the page testing method according to any embodiment, for example, a server 1000b communicatively connected to the terminal device 1000a, and is not limited herein.
< media examples >
The present embodiment provides a computer-readable storage medium having stored therein an executable command, which when executed by a processor, performs the page test method described in any of the method embodiments of the present specification.
The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.
Claims (16)
1. A page testing method comprises the following steps:
under the condition that a set test exception occurs in an execution test case, acquiring an element identifier causing the test exception in the test case as an exception identifier, wherein the set test exception is an exception condition that a corresponding page element cannot be positioned on a target page according to the element identifier recorded in the test case;
looking up other identifiers associated with the abnormal identifier;
positioning corresponding page elements on the target page according to the other identifiers;
and executing the test case according to the positioned page elements.
2. The method of claim 1, wherein the other identification comprises at least one of attribute information of the identified page element and context information of the identified page element.
3. The method of claim 1, wherein said looking up other identifiers associated with the anomaly identifier comprises:
searching other identifiers related to the abnormal identifiers in the related information corresponding to the test cases;
and the associated information reflects the mapping relation between the element identifier recorded in the test case and other identifiers.
4. The method of claim 3, wherein the method further comprises the step of obtaining the association information, comprising:
in the process of recording and operating the page elements on the target page to generate the test case, for each page element serving as an operation object, recording a mapping relation between an element identifier used for representing the corresponding page element and other identifiers of the corresponding page element in the test case, and forming the associated information.
5. The method of claim 3, wherein the method further comprises:
and requesting the server to provide the associated information under the condition that the execution test case has abnormal set test.
6. The method of claim 1, wherein the other identifier includes attribute information and context information of the identified page element, and wherein locating the corresponding page element on the target page according to the other identifier comprises:
positioning corresponding page elements on the target page according to the attribute information;
and under the condition that the positioning fails according to the attribute information, positioning a corresponding page element on the target page according to the context information.
7. The method according to any one of claims 1 to 6, wherein before the method obtains, as an exception identifier, an element identifier causing the test exception in the test case, the method further comprises:
responding to the operation of testing the target page, and providing an input interface for inputting a test scene;
acquiring a test scene input through the input interface;
searching a test case corresponding to the input test scene in the test cases of the target page;
and executing the searched test case.
8. The method of claim 1, wherein the method further comprises:
and correcting the abnormal mark in the test case according to the positioned accurate mark of the page element.
9. The method of claim 8, wherein said revising said exception identifications in said test cases according to accurate identifications of said located page elements comprises:
correcting the abnormal identifiers in the test cases into correct element identifiers with the same attribute; or,
and correcting the abnormal mark in the test case into other marks positioned to the corresponding page element.
10. The method of claim 8, wherein the method further comprises:
after completing the correction, a correction notification is returned.
11. The method of claim 8, wherein the method further comprises:
detecting whether an automatic correction function is started or not;
and executing the operation of correcting the abnormal identifier in the test case according to the positioned accurate identifier of the page element under the condition of starting the automatic correction function.
12. A page testing method comprises the following steps:
recording operation performed on page elements on a target page, and generating a test case, wherein the test case comprises an element identifier representing the page elements serving as an operation object and operation items for the page elements;
for the page element as the operation object, recording a mapping relation between an element identifier used for representing the corresponding page element and other identifiers of the corresponding page element in the test case, and generating associated information;
and executing the test case according to the associated information.
13. A page testing method comprises the following steps:
responding to the operation of a test target page, and acquiring a test case corresponding to the target page and associated information corresponding to the test case;
the test case comprises an element identifier representing a page element as an operation object and an operation item for the page element, and the associated information comprises a mapping relation between the element identifier and other identifiers of the page element marked by the element identifier;
and testing the target page according to the obtained test case and the associated information.
14. A page testing apparatus, comprising:
the abnormal positioning module is used for acquiring an element identifier causing the test abnormality in the test case as an abnormal identifier under the condition that the set test abnormality occurs in the execution test case, wherein the set test abnormality is an abnormal condition that a corresponding page element cannot be positioned on a target page according to the element identifier recorded in the test case;
the association analysis module is used for searching other identifiers associated with the abnormal identifier;
the exception handling module is used for positioning corresponding page elements on the target page according to the other identifiers; and the number of the first and second groups,
and the test execution module is used for executing the test case according to the positioned page elements.
15. An electronic device comprising the page testing apparatus of claim 12; alternatively, it comprises: a memory for storing instructions for controlling the processor to operate to perform the method of any one of claims 1-13, and a processor.
16. A computer-readable storage medium storing executable instructions that, when executed by a processor, perform the method of any one of claims 1-13.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010333789.8A CN113553254A (en) | 2020-04-24 | 2020-04-24 | Page testing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010333789.8A CN113553254A (en) | 2020-04-24 | 2020-04-24 | Page testing method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113553254A true CN113553254A (en) | 2021-10-26 |
Family
ID=78129717
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010333789.8A Pending CN113553254A (en) | 2020-04-24 | 2020-04-24 | Page testing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113553254A (en) |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103034583A (en) * | 2011-09-30 | 2013-04-10 | 国际商业机器公司 | Method and system for processing automatic test scrip of software |
CN103377127A (en) * | 2012-04-28 | 2013-10-30 | 阿里巴巴集团控股有限公司 | Development testing system, testing method and device for webpage product |
CN104424087A (en) * | 2013-08-21 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Web page element positioning method, apparatus and system |
CN105095067A (en) * | 2014-05-21 | 2015-11-25 | 北京奇虎科技有限公司 | User interface element object identification and automatic test method and apparatus |
CN105224462A (en) * | 2015-10-27 | 2016-01-06 | 小米科技有限责任公司 | The recognition methods of control element and device |
WO2016122508A1 (en) * | 2015-01-29 | 2016-08-04 | Hewlett Packard Enterprise Development Lp | Test generation for browser-based user interface |
CN106991045A (en) * | 2017-03-24 | 2017-07-28 | 广州酷狗计算机科技有限公司 | Page method of calibration and device |
CN107015907A (en) * | 2017-03-15 | 2017-08-04 | 中国地质大学(武汉) | A kind of system and method for automatic accurate positioning webpage element |
CN107729230A (en) * | 2017-09-18 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of WEB automatic test devices and method of testing based under control scheme |
CN107844409A (en) * | 2016-09-18 | 2018-03-27 | 平安科技(深圳)有限公司 | Test example executing method and device |
CN109669854A (en) * | 2018-10-25 | 2019-04-23 | 深圳壹账通智能科技有限公司 | Page assembly rapid extracting method and system based on data processing |
CN110096392A (en) * | 2018-01-29 | 2019-08-06 | 北京京东尚科信息技术有限公司 | Method and apparatus for output information |
CN110297758A (en) * | 2019-05-20 | 2019-10-01 | 深圳壹账通智能科技有限公司 | User interface automated testing method, device and computer readable storage medium |
CN110297752A (en) * | 2018-03-23 | 2019-10-01 | 华为软件技术有限公司 | Acquisition methods and device, automatization test system, the storage medium of control element |
CN110647464A (en) * | 2019-09-12 | 2020-01-03 | 苏州浪潮智能科技有限公司 | Method, equipment and medium for analyzing test cases |
-
2020
- 2020-04-24 CN CN202010333789.8A patent/CN113553254A/en active Pending
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103034583A (en) * | 2011-09-30 | 2013-04-10 | 国际商业机器公司 | Method and system for processing automatic test scrip of software |
CN103377127A (en) * | 2012-04-28 | 2013-10-30 | 阿里巴巴集团控股有限公司 | Development testing system, testing method and device for webpage product |
CN104424087A (en) * | 2013-08-21 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Web page element positioning method, apparatus and system |
CN105095067A (en) * | 2014-05-21 | 2015-11-25 | 北京奇虎科技有限公司 | User interface element object identification and automatic test method and apparatus |
WO2016122508A1 (en) * | 2015-01-29 | 2016-08-04 | Hewlett Packard Enterprise Development Lp | Test generation for browser-based user interface |
CN105224462A (en) * | 2015-10-27 | 2016-01-06 | 小米科技有限责任公司 | The recognition methods of control element and device |
CN107844409A (en) * | 2016-09-18 | 2018-03-27 | 平安科技(深圳)有限公司 | Test example executing method and device |
CN107015907A (en) * | 2017-03-15 | 2017-08-04 | 中国地质大学(武汉) | A kind of system and method for automatic accurate positioning webpage element |
CN106991045A (en) * | 2017-03-24 | 2017-07-28 | 广州酷狗计算机科技有限公司 | Page method of calibration and device |
CN107729230A (en) * | 2017-09-18 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of WEB automatic test devices and method of testing based under control scheme |
CN110096392A (en) * | 2018-01-29 | 2019-08-06 | 北京京东尚科信息技术有限公司 | Method and apparatus for output information |
CN110297752A (en) * | 2018-03-23 | 2019-10-01 | 华为软件技术有限公司 | Acquisition methods and device, automatization test system, the storage medium of control element |
CN109669854A (en) * | 2018-10-25 | 2019-04-23 | 深圳壹账通智能科技有限公司 | Page assembly rapid extracting method and system based on data processing |
CN110297758A (en) * | 2019-05-20 | 2019-10-01 | 深圳壹账通智能科技有限公司 | User interface automated testing method, device and computer readable storage medium |
CN110647464A (en) * | 2019-09-12 | 2020-01-03 | 苏州浪潮智能科技有限公司 | Method, equipment and medium for analyzing test cases |
Non-Patent Citations (1)
Title |
---|
贾丽;许静;金鑫;田禾;: "Web系统测试用例自动执行系统", 计算机工程与应用, no. 04, 1 February 2009 (2009-02-01) * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111026645B (en) | User interface automatic test method and device, storage medium and electronic equipment | |
US11294661B2 (en) | Updating a code file | |
US20220253812A1 (en) | Method and system for aggregating diagnostic analyzer related information | |
US8533691B2 (en) | Managing non-common features for program code translation | |
US20170139720A1 (en) | Digital assistant setting up device | |
CN110941942A (en) | Method, device and system for checking circuit schematic diagram | |
US9798650B1 (en) | Application testing system and method | |
CN111949607B (en) | Method, system and device for monitoring UDT file | |
CN117493158A (en) | Test method and device, electronic equipment and storage medium | |
CN107357721B (en) | Method and device for testing system | |
US20170075786A1 (en) | Functional test automation of mobile applications interacting with native stock applications | |
CN108073511B (en) | Test code generation method and device | |
CN113986270B (en) | Distributed application deployment method and device, storage medium and electronic equipment | |
CN117009248A (en) | Machine learning model testing method and device, electronic equipment and storage medium | |
CN113553254A (en) | Page testing method and device and electronic equipment | |
CN113448820A (en) | Webpage testing method and device | |
CN116431467A (en) | Page test method, device, equipment and medium | |
CN109446105A (en) | Web application test method, device, readable medium and electronic equipment | |
CN115098390A (en) | Automatic testing method and device, storage medium and electronic equipment | |
CN113886216B (en) | Interface test and tool configuration method, device, electronic equipment and storage medium | |
CN112995254B (en) | Method, equipment, system, device and component for transmitting heartbeat information | |
US20160275002A1 (en) | Image capture in application lifecycle management for documentation and support | |
CN114371866A (en) | Version reconfiguration test method, device and equipment of service system | |
US10152466B2 (en) | Comparing user interfaces | |
CN110096392B (en) | Method and device for outputting information |
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 | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40062648 Country of ref document: HK |