CN113094625A - Page element positioning method and device, electronic equipment and storage medium - Google Patents

Page element positioning method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113094625A
CN113094625A CN202110505791.3A CN202110505791A CN113094625A CN 113094625 A CN113094625 A CN 113094625A CN 202110505791 A CN202110505791 A CN 202110505791A CN 113094625 A CN113094625 A CN 113094625A
Authority
CN
China
Prior art keywords
determined
current
path information
tested
version
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110505791.3A
Other languages
Chinese (zh)
Other versions
CN113094625B (en
Inventor
李平根
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Zhenshi Information Technology Co Ltd
Original Assignee
Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Zhenshi Information Technology Co Ltd filed Critical Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority to CN202110505791.3A priority Critical patent/CN113094625B/en
Publication of CN113094625A publication Critical patent/CN113094625A/en
Application granted granted Critical
Publication of CN113094625B publication Critical patent/CN113094625B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • 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/368Test management for test version control, e.g. updating test cases to a new software version
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a page element positioning method, a page element positioning device, electronic equipment and a storage medium, wherein the method comprises the following steps: determining path information to be determined of each element to be determined in the current version to be tested; determining at least one target element to be matched corresponding to the current function according to the generated corresponding relation table; wherein the corresponding relation table is determined based on elements and corresponding functions of executing each function in the tested version; determining the matching degree between the path information to be matched of the current target element to be matched and each path information to be determined, and determining the target element to be determined from each element to be determined based on the matching degree; and determining the position information of each target element to be determined in the current version to be tested based on the path information to be determined of each target element to be determined. The technical scheme of the embodiment of the invention realizes the technical effects of positioning the elements in a self-adaptive manner and improving the efficiency and stability of the automatic test.

Description

Page element positioning method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a page element positioning method and device, electronic equipment and a storage medium.
Background
In addition to the rapid development of internet technology, the mobile terminal interconnection is rapidly spreading, and the advantages of B/S (Browser/Server) architecture network products are gradually highlighted. However, the advantage of supporting fast iteration and continuous expansion of the B/S architecture network product increases the difficulty of the automatic test work of the product. In the test of the product, the function verification test of the UI (User Interface, Interface design) is relatively large, however, the stable UI in the test process only accounts for 15% -20%. In the prior art, the conventional automated testing process needs to acquire Path information (XML Path, XPath) through a developer tool by using human for element positioning in the automated testing process.
When the present invention is implemented based on the above-described embodiments, the inventors have found that the following problems occur:
by modifying the code by the developer, element information can be added and modified on the page, such as the position of moving the element, the identification of the modified element, and the like. At this time, the attribute of the element is changed, and the path information of the element is changed. The problem that elements cannot be positioned when the UI is greatly changed in the automatic test process and the elements can only be positioned in a manual mode can be caused, and the problems of poor stability, low execution efficiency and low cost performance of the automatic test can be caused.
Disclosure of Invention
The invention provides a page element positioning method and device, electronic equipment and a storage medium, which are used for realizing self-adaptive positioning of elements and further improving the efficiency and stability of automatic testing.
In a first aspect, an embodiment of the present invention provides a page element positioning method, where the method includes:
determining path information to be determined of each element to be determined in the current version to be tested;
determining at least one target element to be matched corresponding to the current function according to the generated corresponding relation table; wherein the correspondence table is determined based on elements and corresponding functions in the tested version that perform each function;
determining the matching degree between the path information to be matched of the current target element to be matched and each path information to be determined, and determining the target element to be determined from each element to be determined based on the matching degree;
and determining the position information of each target element to be determined in the current version to be tested based on the path information to be determined of each target element to be determined.
In a second aspect, an embodiment of the present invention further provides a page element positioning apparatus, where the apparatus includes:
the to-be-determined path information determining module is used for determining to-be-determined path information of each to-be-determined element in the current to-be-tested version;
the target element to be matched determining module is used for determining at least one target element to be matched corresponding to the current function according to the generated corresponding relation table; wherein the correspondence table is determined based on elements and corresponding functions in the tested version that perform each function;
the target element-to-be-determined determining module is used for determining the matching degree between the path information to be matched of the current target element-to-be-matched and each path information to be determined, and determining the target element-to-be-determined from each element-to-be-determined based on the matching degree;
and the position information determining module is used for determining the position information of each target element to be determined in the current version to be tested based on the path information to be determined of each target element to be determined.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a page element positioning method as in any of the embodiments of the invention.
In a fourth aspect, the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the page element positioning method according to any one of the embodiments of the present invention.
The technical solution of this embodiment determines path information to be determined of each element to be determined in a current version to be tested to uniquely determine each element to be determined, and determines at least one target element to be matched corresponding to a current function according to a generated correspondence table, further determines a matching degree between the path information to be matched of the current target element to be matched and each path information to be determined, determines a target element to be determined from each element to be determined based on the matching degree to determine a correspondence between the target element to be matched and the target element to be determined, determines position information of each target element to be determined in the current version to be tested based on the path information to be determined of each target element to be determined, solves a problem that when the path information of the element changes, the element cannot be adaptively positioned, and achieves adaptive positioning of the element, thereby improving the efficiency and stability of the automatic test.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flowchart of a page element positioning method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a page element positioning method according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of a page element positioning method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a page element positioning apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow chart of a page element positioning method according to an embodiment of the present invention, which is applicable to analyzing and positioning each element in a page during an automatic test, and the method may be executed by a page element positioning apparatus, and the apparatus may be implemented in the form of software and/or hardware, where the hardware may be an electronic device, and the electronic device may be a mobile terminal, a PC terminal, or the like. The execution of the technical scheme can be executed by the server, the terminal equipment or the cooperation of the server and the terminal equipment.
As shown in fig. 1, the method includes:
and S110, determining to-be-determined path information of each to-be-determined element in the current to-be-tested version.
The release version of the software or web page is generally stable when it is online, and at least one test version is usually generated before the release version is generated. The current version to be tested may be the test version currently under test. Different test versions may be distinguished according to version number. The element to be determined may be an element on a page in the current version to be tested. The path information to be determined may be path information corresponding to the element to be determined, that is, the path information to be determined may be information for distinguishing different elements to be determined.
Specifically, the current version to be tested is analyzed, each element in the analyzed current version to be tested is used as an element to be determined, and information corresponding to each element to be determined is processed to obtain path information to be determined of each element to be determined.
It should be noted that, the processing of the information corresponding to the element to be determined may be screening, combining, and the like of the information corresponding to the element to be determined. For example: and screening out information required for generating the path information to be determined, and combining the screened information to obtain the path information to be determined. The information required for generating the path information to be determined may be preset according to requirements, such as: element names, class names, etc.
Illustratively, by parsing the current version to be tested, an element tree corresponding to the current version to be tested may be generated and each element to be determined may be determined. Each node in the element tree represents one element to be determined in the current version to be tested. The information stored in the node may be information of an element to be determined corresponding to the node, and path information to be determined of the element to be determined may be generated based on the information.
And S120, determining at least one target element to be matched corresponding to the current function according to the generated corresponding relation table.
The function may be a function that can be realized by a single element in the current version to be tested, or a function that can be realized by combining a plurality of elements in the current version to be tested. The functions may include a modified function in which the element is modified to change, an unmodified function in which the element is not modified, an added function in which an element or a combination of elements is added, and the like. The correspondence table is determined based on the elements in the tested version that perform each function and the corresponding function. The corresponding elements to perform a function may be one or more. The tested version may be the previous tested version to the current version to be tested. The target element to be matched may be an element required to implement a certain function in the correspondence table.
Specifically, according to each function that can be realized by the current version to be tested, an element corresponding to each function is searched in a pre-generated correspondence table, and the element corresponding to the current function is used as a target element to be matched.
Illustratively, the current function of the current version to be tested is function a, and the elements corresponding to function a can be found as element 1, element 2 and element 3 based on the pre-generated correspondence table. At this time, element 1, element 2, and element 3 may be targeted to be matched elements.
S130, determining the matching degree between the path information to be matched of the current target element to be matched and each path information to be determined, and determining the target element to be determined from each element to be determined based on the matching degree.
The path information to be matched may be path information of a current target element to be matched. The matching degree may be a value determined based on the similarity between the path information to be matched and each path information to be determined, and may be used to determine the corresponding relationship between the target element to be matched and the element to be determined.
Specifically, after the target element to be matched is determined, the matching degree between the path information to be matched of the current target element to be matched and each path information to be determined may be calculated, and when the matching degree satisfies a preset matching condition, it may be determined that the two path information are matched. Furthermore, the element to be determined corresponding to the path information to be determined, which is successfully matched with the path information to be matched, may be used as the target element to be determined.
For example, the path information to be matched of the current element a to be matched is a1, the path information to be determined corresponding to the element B to be determined is path information B1, and the path information to be determined corresponding to the element C to be determined is path information C1. The matching degrees between the path information a1 and the path information B1 and C1 can be determined to be 85% and 70%, respectively, by the matching degree calculation. According to the matching degrees, the path information B1 of the element B to be determined can be determined to be the element B with the highest matching degree with the path information A1, and if 85% of the element B reaches the similarity threshold, the element B to be determined, corresponding to the current target element A to be matched, can be preliminarily determined to be the element B to be determined.
S140, based on the path information to be determined of each target element to be determined, determining the position information of each target element to be determined in the current version to be tested.
The position information may be physical position information of each target element to be determined in the current version to be tested, for example: coordinate information, etc.
Specifically, each node corresponding to each target element to be determined in the element tree of the current version to be tested can be determined according to the path information to be determined of each target element to be determined. Further, the position information corresponding to each node may be used as the position information of each target element to be determined.
Illustratively, according to the element tree generated by analyzing the current version to be tested and the path information to be determined of each target element to be determined, the node in the element tree corresponding to each target element to be determined can be determined. Because each node in the element tree can correspond to the position information in the current version to be tested, the position information of each target element to be determined in the current version to be tested can be determined.
The technical solution of this embodiment determines path information to be determined of each element to be determined in a current version to be tested to uniquely determine each element to be determined, and determines at least one target element to be matched corresponding to a current function according to a generated correspondence table, further determines a matching degree between the path information to be matched of the current target element to be matched and each path information to be determined, determines a target element to be determined from each element to be determined based on the matching degree to determine a correspondence between the target element to be matched and the target element to be determined, determines position information of each target element to be determined in the current version to be tested based on the path information to be determined of each target element to be determined, solves a problem that when the path information of the element changes, the element cannot be adaptively positioned, and achieves adaptive positioning of the element, thereby improving the efficiency and stability of the automatic test.
Example two
Fig. 2 is a schematic flow chart of a page element positioning method according to a second embodiment of the present invention, and this embodiment refers to the technical solution of this embodiment for the updating manner of the correspondence table based on the foregoing embodiments. The same or corresponding terms as those in the above embodiments are not explained in detail herein.
As shown in fig. 2, the method of this embodiment specifically includes the following steps:
s210, determining to-be-determined path information of each to-be-determined element in the current to-be-tested version.
Specifically, the current version to be tested is analyzed, each element in the analyzed current version to be tested is used as an element to be determined, and path information to be determined corresponding to each element to be determined is determined.
Optionally, the path information to be determined of each element to be determined may be determined by the following steps:
step one, obtaining a target resource locator of a current version to be tested.
The target Resource Locator may be a URL (Uniform Resource Locator), which is a representation method for specifying an information location on a web service program on the internet.
Specifically, the target resource locator of the current version to be tested can be obtained through the URL collector or the URL obtaining code.
And step two, determining the element attribute information of each element to be determined in the current version to be tested by analyzing the target resource locator.
The element attribute information may be information related to an element, and optionally, the element attribute information includes at least one of an element identification attribute, an element name, an element class attribute, and an element tag name identification. The element identification attribute may be a number of the element, i.e., an ID (Identity Document) attribute. The element Name may be the Name of the element, i.e., the Name attribute. The element Class attribute may be a Class name to which the element belongs, i.e., a Class attribute. The element Tag name identification may be a Tag name, i.e., Tag identification, corresponding to the element.
Specifically, by performing depth analysis on the target resource locator, each element corresponding to the target resource locator can be obtained, and the elements are used as the elements to be determined. Further, element attribute information of each element to be determined can be acquired.
And step three, determining the path information to be determined of each element to be determined based on the element attribute information of each element to be determined.
Specifically, for each element to be determined, the obtained element attribute information may be combined to obtain path information to be determined.
For example, the combination manner of the attribute information of each element may be direct concatenation according to a preset sequence, for example: IDNAAMClassTag. The combination mode of the attribute information of each element may also be splicing through a preset sequence of preset connectors, for example: ID-Name-Class-Tag.
It should be noted that the Path information to be determined may be XPath (XML Path) information, which is used to determine the language of each element position in the XML tree structure corresponding to the XML document.
S220, updating the corresponding relation table according to the elements and the corresponding functions of executing the functions in each tested version.
And if the version is the first tested version, establishing a corresponding relation table based on elements corresponding to all functions in the first tested version and attribute information of all elements in the first version to be tested.
The attribute information is used for generating path information to be determined corresponding to the corresponding element.
Specifically, if the current tested version is the first tested version, it indicates that the current version to be tested is the second tested version. Wherein the current tested version is the previous version of the current version to be tested. Furthermore, a corresponding relation table can be established according to the elements corresponding to the functions in the first tested version and the attribute information of the elements in the first tested version.
For example, if the current tested version is the first tested version, it may be determined that the first tested version includes function a and function B. Elements corresponding to function a are a1 and a2, and elements corresponding to function B are B1, B2 and B3. Each element includes an element identification attribute ID, an element Name, an element Class attribute Class, and an element Tag Name identification Tag. At this time, it may be determined that the correspondence is: function a-element a 1-element identification attribute IDA 1-element name NameA 1-element class attribute class a 1-element tag name identification TagA1, function a-element a 2-element identification attribute IDA 2-element name NameA 2-element class attribute class a 2-element tag name identification TagA2, function B-element B1-element identification attribute IDB 1-element name NameB 1-element class attribute class B1-element tag name identification TagB1, function B-element B2-element identification attribute IDB 2-element name name695b 2-element class attribute class B2-element tag name identification TagB2, function B-element B3-element identification attribute IDB 3-element name NameB 3-element class attribute class B3-element tag B36 3. Further, a correspondence table may be established according to the above correspondence.
If the version is not the first tested version, analyzing the current tested version to obtain the current element attribute information of each element in the current tested version; and determining the corresponding elements of the current element attribute information in the corresponding relationship, and updating the current element attribute information to the corresponding relationship table.
Wherein the current tested version is the previous version of the current version to be tested.
Specifically, if the current tested version is not the first tested version, it indicates that the current tested version includes at least two tested versions before, and a corresponding relationship table exists. At this time, the current tested version may be analyzed to obtain current element attribute information of each element in the current tested version. And then, determining the corresponding element of each current element attribute information in the corresponding relationship, and updating the current element attribute information to the attribute information of the corresponding element to complete the updating and obtaining of the corresponding relationship table.
Illustratively, if the current tested version is the third tested version, i.e., version 3.0, then the current tested version is not the first tested version. At this time, the current tested version may be analyzed to obtain current element attribute information corresponding to each element in the current tested version, for example: the current element attribute information corresponding to the element a includes an element identification attribute IDA3.0, an element name namea3.0, an element class attribute classa3.0, and an element tag name identification taga 3.0. Furthermore, it is determined that the corresponding element in the corresponding relationship of each current element attribute information is the element M1 corresponding to the function M, and IDA3.0, namea3.0, classa3.0, and taga3.0 may be updated to the attribute information corresponding to the element M1. Optionally, after splicing to the corresponding attribute information through the preset connector, for example: IDM1/IDA3.0, NameM1/NameA3.0, Classm1/ClassA3.0 and TagM 1/TagA3.0.
And S230, searching at least one target element to be matched corresponding to the current function from the corresponding relation table according to the current function.
Specifically, according to each function that can be realized by the current version to be tested, an element corresponding to each function is searched in a pre-generated correspondence table, and the element corresponding to the current function is used as a target element to be matched.
S240, determining the matching degree between the path information to be matched of the current target element to be matched and each path information to be determined, and determining the target element to be determined from each element to be determined based on the matching degree.
Specifically, the path information to be determined, which is matched with the path information to be matched, may be determined by calculating a matching degree between the path information to be matched of the current target element to be matched and each of the path information to be determined. Furthermore, the element to be determined corresponding to the path information to be determined, which is successfully matched with the path information to be matched, may be used as the target element to be determined.
Alternatively, the target element to be determined may be determined based on the following steps:
step one, determining the path information to be matched of the current element to be matched of the target based on the attribute information of the element to be matched of the current target in the corresponding relation table.
Specifically, the attribute information corresponding to the current target element to be matched may be obtained from the correspondence table, and the attribute information is combined to obtain the path information to be matched.
It should be noted that the generation manner of the path information to be matched is the same as the generation manner of the path information to be determined.
And step two, determining the matching degree between the path information to be matched and each path information to be determined.
Specifically, the matching degree between the path information to be matched and each path information to be determined is calculated by a preset matching degree calculation method.
It should be noted that the matching degree calculation method may be a calculation method of string similarity, and may be implemented by a string processing module in programming languages such as java and python. Taking python programming language as an example, a commonly used string similarity algorithm library includes: difflib, Levenshtein, NormalizedLevenshtein, WeightedLevenshtein, damerawlervesteine, OptimalStringAlignment, jarowinlkler, LongestCommonSubsequence, metricllongestcommonsubsequence, NGram, QGram, Cosine, Jaccard, and sorequence, and the like. Specifically, what programming language and what matching degree calculation method are used may be selected according to actual requirements, and are not specifically limited in this embodiment.
And step three, taking the path information to be determined with the matching degree higher than a preset matching degree threshold value as target path information to be determined, and taking an element to be determined corresponding to the target path information to be determined as a target element to be determined.
The preset matching degree threshold may be a preset matching degree value, and is used to determine whether the two pieces of path information match, that is, when the matching degree value of the two pieces of path information is higher than the preset matching degree threshold, it is determined that the two pieces of path information match, and otherwise, it is determined that the two pieces of path information do not match.
Specifically, whether the matching degree between the path information to be matched and each path information to be determined is higher than a preset matching degree threshold value is judged. If the matching degree is higher than the preset matching degree threshold value, the matching is successful, and the path information to be determined can be used as the target path information to be determined. Furthermore, the element to be determined corresponding to the target path information to be determined may be used as the target element to be determined.
It should be noted that, if there are multiple matching degrees higher than the preset matching degree threshold, the to-be-determined path information corresponding to the highest matching degree value may be used as the target to-be-determined path information. If any matching degree is not higher than the preset matching degree threshold value, the current target element to be matched can be regarded as an element which is not included in the current version to be tested.
It should be further noted that the target to-be-matched element includes multiple versions of to-be-matched path information, and matching may be performed sequentially according to the to-be-matched path information of each version. Matching can be performed from near to far according to the test time of each version, and if matching between certain path information to be matched and certain path information to be determined is successful, matching of the target element to be matched can be stopped.
And S250, determining the position information of each target element to be determined in the current version to be tested based on the path information to be determined of each target element to be determined.
Specifically, each node corresponding to each target element to be determined in the element tree of the current version to be tested can be determined according to the path information to be determined of each target element to be determined. The page of the current version to be tested can be traced back according to the element tree, and then the position information corresponding to each node is determined, namely the position information of each target element to be determined in the current version to be tested is determined.
On the basis of the technical scheme, after the target position information is determined, the attribute information in the corresponding relation table can be updated based on the element attribute information of the current version to be tested. In this embodiment, the method for updating the attribute information in the correspondence table may be as follows: and taking the element attribute information of the elements to be determined of each target as attribute information to be spliced, and splicing the attribute information to be spliced into the attribute information of the elements to be matched of the corresponding target in the corresponding relation table.
The attribute information to be spliced may be element attribute information of each target element to be determined in the current version to be tested. The corresponding relation table stores each element, a function corresponding to each element, and attribute information corresponding to each element.
Specifically, after the target element to be determined is determined, the corresponding relationship table may be updated. The element attribute information of the current target element to be determined can be obtained, and the obtained element attribute information is used as the attribute information to be spliced. Further, the attribute information corresponding to the current target element to be matched can be searched in the corresponding relation table, and the attribute information to be spliced can be spliced into the same attribute information.
Illustratively, the target element to be determined is element a, and the target element to be matched that matches the target element to be determined is element B. The attribute information of the element a includes an element identification attribute IDA, an element name NameA, an element class attribute ClassA, and an element tag name identification TagA, and the above attribute information can be used as attribute information to be spliced. Attribute information corresponding to the element B may be determined in the correspondence table, including: an element identification attribute IDB, an element name NameB, an element class attribute ClassB and an element tag name identification TagB. And splicing the attribute information to be spliced into the attribute information of the target element B to be matched to obtain an element identification attribute IDB/IDA, an element name NameB/NameA, an element class attribute ClassB/ClassA and an element tag name identification TagB/TagA so as to finish updating the corresponding relation table.
It should be noted that each attribute information of each element in the correspondence table may include information of each test version, for example: the current test version is the fourth version, i.e. version 4.0, and the element identification attribute corresponding to element a in the updated correspondence table may be IDA1.0/IDA2.0/IDA3.0/IDA 4.0.
The technical solution of this embodiment is to determine each element to be determined uniquely by determining information of a path to be determined of each element to be determined in a current version to be tested, and update a correspondence table according to an element executing each function and a corresponding function in each tested version to adapt the correspondence table to the current version to be tested, determine at least one target element to be matched corresponding to the current function according to the generated correspondence table, further determine a matching degree between the information of the path to be matched of the current target element to be matched and each information of the path to be determined, determine the target element to be determined from each element to be determined based on the matching degree to determine a correspondence between the target element to be matched and the target element to be determined, determine position information of each target element to be determined in the current version to be tested based on the information of the path to be determined of each target element to be determined, the problem that the same or similar elements in all versions cannot be adaptively and iteratively positioned in the continuous related version test process and the problems of poor stability and low efficiency of the automatic test are solved, the elements are adaptively positioned, and the technical effects of improving the efficiency and the stability of the automatic test are achieved.
EXAMPLE III
As an optional implementation of the foregoing embodiments, fig. 3 is a schematic flowchart of a page element positioning method provided in a third embodiment of the present invention. The same or corresponding terms as those in the above embodiments are not explained in detail herein.
As shown in fig. 3, the method of this embodiment specifically includes the following steps:
s310, acquiring the current version to be tested, and analyzing the current version to be tested.
Specifically, when the automatic test program (i.e., the program code developed by executing the technical solution of the present embodiment) opens the current version to be tested (e.g., the web system page to be tested), the mouse key operation is simulated. At this time, the source code information of the current version to be tested can be analyzed in real time, and the element tree structure corresponding to the current version to be tested can be obtained by analyzing the source code information. Also, element attribute information of an element (element to be determined) corresponding to each node in the element tree may be obtained to generate Xpath (path information to be determined) based on the element attribute information.
S320, determining the element to be determined matched with the current element to be matched as the element to be determined according to the path information to be matched of the element to be matched of the target corresponding to each function in the corresponding relation table.
Specifically, elements that implement the same function in different versions may be different, and at this time, each element (target to-be-matched element) corresponding to the current function is determined in the correspondence table, and path information (to-be-matched path information) of each element is obtained. And calculating the matching degree between the current path information to be matched and each path information to be determined, and determining the current element to be determined as the target element to be determined when the matching degree is higher than a preset matching degree threshold value.
Illustratively, the syntax of the computation of the path information to be matched of the target element to be matched is as follows: xpath _ En ═// ECType [ continains (@ EAkey1, value1) and continains (@ EAkey2, value2) (and.) continains (@ EAkey, value) ]'
And annotating:
xpath _ En: an xpath value (path information to be matched) representing a target element En to be matched;
ECType: the element control types are represented and can include input, label, button, select, option, list and the like, for example, the operated elements are single-line text boxes, password input boxes, check boxes and the like. For example: ECType @ enterprise 1, value1, indicating that key-value pair matching of elements is achieved through ontains (a string lookup function), where enterprise 1 and value1 are key-value pairs of location elements, and here enterprise 1 indicates element attribute information including id, name, class, tag, type, etc.
The password input box element E1 is looked up in the user login page, where the input box control attribute name ═ pass ', attribute id ═ passwords', attribute class ═ textfile required ', and attribute type ═ passwords'.
The calculation of the xpath value for element E1 is as follows:
xpath_E1="//input[contains(@name,'pass')and contains(@id,'passwords')and contains(@class,'textfild required')and contains(@type,'password')]"。
optionally, the calculation rule of the matching degree (similarity) between the path information XPath may be implemented by a string processing module in programming languages such as java and python.
Illustratively, the similarity value of two character strings is calculated by python programming language and is printed out, and the source code is realized as follows:
from difflib import sequence Matcher # import library
def similarity(a,b):
return round ((sequence matcher (None, a, b). ratio (). 100),6) # refers to the ratio method, returning a measure of sequence similarity.
print (' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print ('similarity value1 ═ str' (similarity ('I is Chinese citizen, graduation at Qinghua university computer', 'I is Chinese citizen, graduation at Qinghua university')) + '%')
print (' similarity value2 ═ str (' our is Chinese citizen, graduation of Qinghua university computer ', ' my is Chinese citizen, graduation of computer ') + '% ')
print (' similarity value 3 ═ str (' I is Chinese citizen, university of graduation computer ', ' I is Chinese citizen, university of graduation computer ')) + '% ')
print (' similarity value 4 ═ str (' I is Chinese citizen, university of graduation computer ', ' I is Chinese citizen, university of graduation computer ')) + '% ')
print (' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The output print is as follows:
the similarity calculation algorithm is implemented to begin
Similarity value1 ═ 70.967742%
Similarity value2 ═ 83.870968%
Similarity value 3 ═ 97.142857%
Similarity value 4 ═ 100.0%
Completion of the similarity calculation algorithm! - - - - - - - - - - - - - -
The similarity calculation method can be adopted to determine the matching degree between the path information to be matched and each path information to be determined, and when the matching degree is higher than a preset matching degree threshold value, the current element to be determined is determined as the target element to be determined.
S330, determining the position information of each target element to be determined in the current version to be tested based on the path information to be determined of each target element to be determined.
It should be noted that the position information of each element can be obtained by performing deep analysis through an adaptive algorithm through the correspondence table and the path information.
After the position information of each target element to be determined in the current version to be tested is determined, intelligent judgment can be carried out by combining the position information in the tested version, namely the position information of each target element to be determined in the current version to be tested is determined, and at the moment, the position information of each target element to be determined in the current version to be tested is automatically positioned.
According to the technical scheme of the embodiment, the current version to be tested is obtained, the current version to be tested is analyzed, the element to be determined matched with the current element to be matched is determined to be the element to be determined according to the path information to be matched of the element to be matched of the target corresponding to each function in the corresponding relation table, and further, the position information of the element to be determined of each target in the current version to be tested is determined based on the path information to be determined of the element to be determined of each target.
Example four
Fig. 4 is a schematic structural diagram of a page element positioning apparatus according to a fourth embodiment of the present invention, where the apparatus includes: a path to be determined information determining module 410, a target element to be matched determining module 420, a target element to be determined determining module 430 and a position information determining module 440.
The to-be-determined path information determining module 410 is configured to determine to-be-determined path information of each to-be-determined element in the current to-be-tested version; a target to-be-matched element determining module 420, configured to determine, according to the generated correspondence table, at least one target to-be-matched element corresponding to the current function; wherein the correspondence table is determined based on elements and corresponding functions in the tested version that perform each function; a target element-to-be-determined determining module 430, configured to determine a matching degree between path information to be matched of a current target element-to-be-matched and each path information to be determined, and determine a target element-to-be-determined from each element-to-be-determined based on the matching degree; and a position information determining module 440, configured to determine, based on to-be-determined path information of each target to-be-determined element, position information of each target to-be-determined element in the current to-be-tested version.
Optionally, the to-be-determined path information determining module 410 is further configured to obtain a target resource locator of the current to-be-tested version; determining element attribute information of each element to be determined in the current version to be tested by analyzing the target resource locator; and determining the path information to be determined of each element to be determined based on the element attribute information of each element to be determined.
Optionally, the element attribute information includes at least one of an element identification attribute, an element name, an element class attribute, and an element tag name identification.
Optionally, the apparatus further comprises: and the splicing module is used for taking the element attribute information of each target element to be determined as the attribute information to be spliced and splicing the attribute information to be spliced into the attribute information of the corresponding target element to be matched in the corresponding relation table.
Optionally, the apparatus further comprises: and the corresponding relation table updating module is used for updating the corresponding relation table according to the elements and the corresponding functions of executing the functions in each tested version.
Optionally, the correspondence table updating module is further configured to, if the first tested version is the second tested version, establish the correspondence table based on the element corresponding to each function in the second tested version and the attribute information of each element in the first tested version; the attribute information is used for generating path information to be determined corresponding to the corresponding element.
Optionally, the correspondence table updating module is further configured to, if the current version is not the first tested version, perform analysis on the current tested version to obtain current element attribute information of each element in the current tested version; and determining the corresponding elements of the current element attribute information in the corresponding relationship, and updating the current element attribute information to the corresponding relationship table.
Optionally, the target to-be-matched element determining module 420 is further configured to search, according to the current function, at least one target to-be-matched element corresponding to the current function from the corresponding relationship table.
Optionally, the target to-be-determined element determining module 430 is further configured to determine, based on the attribute information of the current target to-be-matched element in the correspondence table, path information to be matched of the current target to-be-matched element; determining the matching degree between the path information to be matched and each path information to be determined; and taking the path information to be determined with the matching degree higher than a preset matching degree threshold value as target path information to be determined, and taking an element to be determined corresponding to the target path information to be determined as the target element to be determined.
The technical solution of this embodiment determines path information to be determined of each element to be determined in a current version to be tested to uniquely determine each element to be determined, and determines at least one target element to be matched corresponding to a current function according to a generated correspondence table, further determines a matching degree between the path information to be matched of the current target element to be matched and each path information to be determined, determines a target element to be determined from each element to be determined based on the matching degree to determine a correspondence between the target element to be matched and the target element to be determined, determines position information of each target element to be determined in the current version to be tested based on the path information to be determined of each target element to be determined, solves a problem that when the path information of the element changes, the element cannot be adaptively positioned, and achieves adaptive positioning of the element, thereby improving the efficiency and stability of the automatic test.
The page element positioning device provided by the embodiment of the invention can execute the page element positioning method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary electronic device 50 suitable for use in implementing embodiments of the present invention. The electronic device 50 shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 5, electronic device 50 is embodied in the form of a general purpose computing device. The components of the electronic device 50 may include, but are not limited to: one or more processors or processing units 501, a system memory 502, and a bus 503 that couples the various system components (including the system memory 502 and the processing unit 501).
Bus 503 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 50 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 50 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 502 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)504 and/or cache memory 505. The electronic device 50 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 506 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 503 by one or more data media interfaces. System memory 502 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 508 having a set (at least one) of program modules 507 may be stored, for example, in system memory 502, such program modules 507 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may include an implementation of a network environment. Program modules 507 generally perform the functions and/or methodologies of embodiments of the invention as described herein.
The electronic device 50 may also communicate with one or more external devices 509 (e.g., keyboard, pointing device, display 510, etc.), with one or more devices that enable a user to interact with the electronic device 50, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 50 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 511. Also, the electronic device 50 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 512. As shown, the network adapter 512 communicates with the other modules of the electronic device 50 over the bus 503. It should be appreciated that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with electronic device 50, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 501 executes various functional applications and data processing, for example, implementing the page element positioning method provided by the embodiment of the present invention, by executing a program stored in the system memory 502.
EXAMPLE six
An embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a page element positioning method.
The method comprises the following steps:
determining path information to be determined of each element to be determined in the current version to be tested;
determining at least one target element to be matched corresponding to the current function according to the generated corresponding relation table; wherein the correspondence table is determined based on elements and corresponding functions in the tested version that perform each function;
determining the matching degree between the path information to be matched of the current target element to be matched and each path information to be determined, and determining the target element to be determined from each element to be determined based on the matching degree;
and determining the position information of each target element to be determined in the current version to be tested based on the path information to be determined of each target element to be determined.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, 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), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code 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).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (12)

1. A page element positioning method is characterized by comprising the following steps:
determining path information to be determined of each element to be determined in the current version to be tested;
determining at least one target element to be matched corresponding to the current function according to the generated corresponding relation table; wherein the correspondence table is determined based on elements and corresponding functions in the tested version that perform each function;
determining the matching degree between the path information to be matched of the current target element to be matched and each path information to be determined, and determining the target element to be determined from each element to be determined based on the matching degree;
and determining the position information of each target element to be determined in the current version to be tested based on the path information to be determined of each target element to be determined.
2. The method of claim 1, wherein the determining path information to be determined for each element to be determined in the current version to be tested comprises:
acquiring a target resource locator of the current version to be tested;
determining element attribute information of each element to be determined in the current version to be tested by analyzing the target resource locator;
and determining the path information to be determined of each element to be determined based on the element attribute information of each element to be determined.
3. The method of claim 2, wherein the element attribute information comprises at least one of an element identification attribute, an element name, an element class attribute, and an element tag name identification.
4. The method of claim 2, further comprising:
and taking the element attribute information of each target element to be determined as attribute information to be spliced, and splicing the attribute information to be spliced into the attribute information of the corresponding target element to be matched in the corresponding relation table.
5. The method of claim 1, further comprising:
and updating the corresponding relation table according to the elements and the corresponding functions for executing the functions in each tested version.
6. The method according to claim 5, wherein said updating the correspondence table according to the elements and corresponding functions in each tested version for executing the functions comprises:
if the version is the first tested version, establishing the corresponding relation table based on elements corresponding to all functions in the first tested version and attribute information of all elements in the first version to be tested;
the attribute information is used for generating path information to be determined corresponding to the corresponding element.
7. The method according to claim 5, wherein said updating the correspondence table according to the elements and corresponding functions in each tested version for executing the functions comprises:
if the version is not the first tested version, analyzing the current tested version to obtain the current element attribute information of each element in the current tested version;
and determining the corresponding elements of the current element attribute information in the corresponding relationship, and updating the current element attribute information to the corresponding relationship table.
8. The method according to claim 1, wherein the determining at least one target element to be matched corresponding to the current function according to the generated correspondence table comprises:
and searching at least one target element to be matched corresponding to the current function from the corresponding relation table according to the current function.
9. The method according to claim 1, wherein the determining a matching degree between the path information to be matched of the current target element to be matched and each path information to be determined, and determining the target element to be determined from each element to be determined based on the matching degree comprises:
determining the path information to be matched of the current target element to be matched based on the attribute information of the current target element to be matched in the corresponding relation table;
determining the matching degree between the path information to be matched and each path information to be determined;
and taking the path information to be determined with the matching degree higher than a preset matching degree threshold value as target path information to be determined, and taking an element to be determined corresponding to the target path information to be determined as the target element to be determined.
10. A page element positioning apparatus, comprising:
the to-be-determined path information determining module is used for determining to-be-determined path information of each to-be-determined element in the current to-be-tested version;
the target element to be matched determining module is used for determining at least one target element to be matched corresponding to the current function according to the generated corresponding relation table; wherein the correspondence table is determined based on elements and corresponding functions in the tested version that perform each function;
the target element-to-be-determined determining module is used for determining the matching degree between the path information to be matched of the current target element-to-be-matched and each path information to be determined, and determining the target element-to-be-determined from each element-to-be-determined based on the matching degree;
and the position information determining module is used for determining the position information of each target element to be determined in the current version to be tested based on the path information to be determined of each target element to be determined.
11. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the page element positioning method of any of claims 1-9.
12. A storage medium containing computer-executable instructions for performing the page element positioning method of any one of claims 1-9 when executed by a computer processor.
CN202110505791.3A 2021-05-10 2021-05-10 Page element positioning method and device, electronic equipment and storage medium Active CN113094625B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110505791.3A CN113094625B (en) 2021-05-10 2021-05-10 Page element positioning method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110505791.3A CN113094625B (en) 2021-05-10 2021-05-10 Page element positioning method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113094625A true CN113094625A (en) 2021-07-09
CN113094625B CN113094625B (en) 2023-09-05

Family

ID=76665174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110505791.3A Active CN113094625B (en) 2021-05-10 2021-05-10 Page element positioning method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113094625B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115062206A (en) * 2022-05-30 2022-09-16 上海弘玑信息技术有限公司 Webpage element searching method and electronic equipment
CN116594916A (en) * 2023-07-17 2023-08-15 腾讯科技(深圳)有限公司 Page control positioning method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245065A (en) * 2018-03-09 2019-09-17 北京京东尚科信息技术有限公司 The method and apparatus of automatic test
CN110781091A (en) * 2019-10-31 2020-02-11 北京奇艺世纪科技有限公司 Application program testing method and device, electronic equipment and storage medium
CN110990264A (en) * 2019-11-11 2020-04-10 中国建设银行股份有限公司 Element identification method, device and equipment for UI automation test and storage medium
CN111897740A (en) * 2020-08-24 2020-11-06 北京字节跳动网络技术有限公司 User interface testing method and device, electronic equipment and computer readable medium
WO2020233053A1 (en) * 2019-05-22 2020-11-26 深圳壹账通智能科技有限公司 Method, apparatus, device, and storage medium for making test page script
US20200401431A1 (en) * 2019-06-19 2020-12-24 Sap Se Adaptive web-based robotic process automation
CN112631902A (en) * 2020-12-16 2021-04-09 平安普惠企业管理有限公司 Page element testing method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245065A (en) * 2018-03-09 2019-09-17 北京京东尚科信息技术有限公司 The method and apparatus of automatic test
WO2020233053A1 (en) * 2019-05-22 2020-11-26 深圳壹账通智能科技有限公司 Method, apparatus, device, and storage medium for making test page script
US20200401431A1 (en) * 2019-06-19 2020-12-24 Sap Se Adaptive web-based robotic process automation
CN110781091A (en) * 2019-10-31 2020-02-11 北京奇艺世纪科技有限公司 Application program testing method and device, electronic equipment and storage medium
CN110990264A (en) * 2019-11-11 2020-04-10 中国建设银行股份有限公司 Element identification method, device and equipment for UI automation test and storage medium
CN111897740A (en) * 2020-08-24 2020-11-06 北京字节跳动网络技术有限公司 User interface testing method and device, electronic equipment and computer readable medium
CN112631902A (en) * 2020-12-16 2021-04-09 平安普惠企业管理有限公司 Page element testing method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘国庆等: ""基于Charles录制会话的HTTP接口自动化测试框架设计与实现"", 《计算机应用与软件》, vol. 36, no. 6, pages 7 - 13 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115062206A (en) * 2022-05-30 2022-09-16 上海弘玑信息技术有限公司 Webpage element searching method and electronic equipment
CN115062206B (en) * 2022-05-30 2023-04-07 上海弘玑信息技术有限公司 Webpage element searching method and electronic equipment
CN116594916A (en) * 2023-07-17 2023-08-15 腾讯科技(深圳)有限公司 Page control positioning method, device and storage medium
CN116594916B (en) * 2023-07-17 2023-11-14 腾讯科技(深圳)有限公司 Page control positioning method, device and storage medium

Also Published As

Publication number Publication date
CN113094625B (en) 2023-09-05

Similar Documents

Publication Publication Date Title
CN110347598B (en) Test script generation method and device, server and storage medium
CN107221328B (en) Method and device for positioning modification source, computer equipment and readable medium
CN111709527A (en) Operation and maintenance knowledge map library establishing method, device, equipment and storage medium
CN112035443B (en) Big data execution method, system, equipment and storage medium based on Linux platform
CN113094625B (en) Page element positioning method and device, electronic equipment and storage medium
CN115827895A (en) Vulnerability knowledge graph processing method, device, equipment and medium
CN111309343A (en) Development deployment method and device
CN113051514A (en) Element positioning method and device, electronic equipment and storage medium
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN115358397A (en) Parallel graph rule mining method and device based on data sampling
CN110175128B (en) Similar code case acquisition method, device, equipment and storage medium
CN116560683A (en) Software updating method, device, equipment and storage medium
CN110837635A (en) Method, device, equipment and storage medium for equipment verification
CN117632710A (en) Method, device, equipment and storage medium for generating test code
CN112329429A (en) Text similarity learning method, device, equipment and storage medium
CN113238940B (en) Interface test result comparison method, device, equipment and storage medium
CN113792138B (en) Report generation method and device, electronic equipment and storage medium
CN115328891A (en) Data migration method and device, storage medium and electronic equipment
CN110750569A (en) Data extraction method, device, equipment and storage medium
CN111447268A (en) File structure conversion method, device, equipment and storage medium
CN111400623A (en) Method and apparatus for searching information
Oh et al. Automatic extraction of dependencies between web components and database resources in java web applications
CN117033318B (en) Method and device for generating data to be tested, storage medium and electronic equipment
CN117034260B (en) Event judgment information generation method and device, medium and electronic equipment
CN113448822B (en) Test method, test device, computer readable medium and electronic equipment

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