CN110297752A - Acquisition methods and device, automatization test system, the storage medium of control element - Google Patents

Acquisition methods and device, automatization test system, the storage medium of control element Download PDF

Info

Publication number
CN110297752A
CN110297752A CN201810244272.4A CN201810244272A CN110297752A CN 110297752 A CN110297752 A CN 110297752A CN 201810244272 A CN201810244272 A CN 201810244272A CN 110297752 A CN110297752 A CN 110297752A
Authority
CN
China
Prior art keywords
control
node
page
measured
target
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
Application number
CN201810244272.4A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201810244272.4A priority Critical patent/CN110297752A/en
Publication of CN110297752A publication Critical patent/CN110297752A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

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

Abstract

This application discloses a kind of acquisition methods of control element and device, automatization test system, storage mediums, belong to automatic test field.Method includes: the title according to the target widget type of input, based on preset corresponding relationship, determine that corresponding with the title of target widget type target signature identifies, corresponding relationship include on the page to be measured the title of all control types and with the one-to-one signature identification of title;Target signature mark is searched in the program node of the page to be measured;The page elements object at least one program node that target signature mark is matched to is determined as to the control element of control to be measured, control element is for inputting automated test frame, so that automated test frame realizes that class treats observing and controlling part and carries out automatic test based on the encapsulation of control to be measured.The lower problem of lower and automatic test reliability present application addresses the development efficiency of automatic test cases in the related technology.The application is used for automatic test.

Description

Acquisition methods and device, automatization test system, the storage medium of control element
Technical field
This application involves automatic test field, in particular to the acquisition methods and device, automation of a kind of control element Test macro, storage medium.
Background technique
Web (webpage) automated testing method, which refers to, executes input operation and single-click operation to the control on webpage by software The method of equal test operations, Web automatization testing technique is a kind of efficient software testing technology.Currently, industry is most of Manufacturer carries out the exploitation of Web automatic test cases code usually using TestNG+Seleniu Open Framework, or by opening Hair tool automatically generates automatic test cases code by the way of recording.Automatic test cases code is in operational process In, generally use the identity of DOM Document Object Model (Document Object Model, DOM) node that control is manipulated (Identity, ID), title (Name), cascading style sheets (Cascading Style Sheets, CSS) selector (Selector) or extensible markup language (eXtensible Markup Language, XML) path language (Xml Path Language, XPath) as control lookup foundation, to carry out the lookup of control element.Wherein, refer to can in Web page for control The object of operation, such as control on webpage may include button control and Input etc., and control element indicates control Code object.
In the related technology, the ID or Name for generalling use DOM node search control element, alternatively, the ID based on DOM node Or Name carries out XPath splicing, accurately searches control element using the path XPath of splicing.Tester is writing automation During test case code, determine that the process of the lookup mode of control element may include: to judge control institute in Web page The DOM node of manipulation is with the presence or absence of fixed ID or Name;If DOM node is carried out there is no fixed ID or Name XPath crawl carries out XPath splicing by hand since root node, i.e., searches control element using XPath mode;If DOM There is fixed ID or Name in node, and the DOM node is the control element node to be manipulated (such as the input section of text box Point), then control element is searched using the ID or Name of the DOM node;If there is fixed ID or Name in DOM node, but should DOM node is not the control element node to be manipulated, such as the DOM node is father's section of the control element node to be manipulated Point or child node then carry out XPath based on the DOM node and splice by hand, accurately search control member using the path XPath of splicing Element.
The efficiency that general ID or Name by DOM node searches control element is higher, but in Web application, exists A large amount of static Web pages element does not have ID and Name attribute, and the ID of dynamic Web page surface element is the dynamic in compilation process It generates, thus test case can not be written, therefore search control element usually using XPath mode in the related technology.
During realizing the application, the inventor finds that the existing technology has at least the following problems:
On the one hand, during writing automatic test cases code, tester needs to carry out XPath and spells by hand It connects, the consuming time is longer, causes the development efficiency of automatic test cases lower;On the other hand, since XPath is to write on automatically Change in test case code, increases newly, deletes or replace when the layout of Web page surface element changes, such as in Web page When control, the DOM structure that will lead in former Web page changes, so as to cause in former automatic test cases code XPath failure so that the operation failure of former automatic test cases code, therefore in the related technology the reliability of automatic test compared with It is low.
Summary of the invention
It, can be with this application provides a kind of acquisition methods of control element and device, automatization test system, storage medium Solve the problems, such as that the development efficiency of automatic test cases in the related technology is lower and the reliability of automatic test is lower.It is described Technical solution is as follows:
In a first aspect, this application provides a kind of acquisition methods of control element, which comprises
According to the title of the target widget type of input, it is based on preset corresponding relationship, the determining and target widget class The corresponding target signature mark of the title of type, the target widget type is the control type of control to be measured, the corresponding relationship Title including all control types on the page to be measured and with the one-to-one signature identification of the title;
The target signature mark is searched in the program node of the page to be measured;
The page elements object at least one program node that target signature mark is matched to is determined as described The control element of control to be measured, the control element is for inputting automated test frame, so that automated test frame is based on The encapsulation of the control to be measured realizes that class carries out automatic test to the control to be measured.
It should be noted that automated test frame provided by the embodiments of the present application is based on the programming for facing object Method carries out automatic test.Tester is when writing test case, it is necessary first to all controls on the page to be measured Type is named and defines, and determines the title of control type and the corresponding relationship of signature identification, and to the control class after definition Type carries out the encapsulation of interface operation code, and class is realized in the encapsulation for obtaining each control type.
Optionally, described in the page to be measured when on the page to be measured including at least two control types Program node in search target signature mark, comprising:
Clue on the page to be measured based on input, obtains all program nodes where the clue;
All program nodes where traversing the clue are identified with searching the target signature.
Optionally, all program nodes where the traversal clue are to search the target signature mark, comprising:
Depth is searched in setting, and searches process to each program node performance objective signature identification where the clue, Until traversal completes all program nodes where the clue;
Wherein, the target signature identifier lookup process includes:
Whether the own node where judging the clue matches the target signature mark;
When the own node matches target signature mark, the page elements object of the own node is added Into initial page element object list, the lookup depth is recorded, and terminates the target signature identifier lookup process;
When the own node mismatch the target signature mark when, detect the own node child node whether It is identified with the target signature;
When matching target signature mark there are target child node in the child node of the own node, by the mesh The page elements object of mark child node is added in the initial page element object list, records the lookup depth, and tie Shu Suoshu target signature identifier lookup process;
When all child nodes of the own node mismatch target signature mark, the own node is cut The father node of the own node is shifted to, and the father node is made to replace the own node, so that the lookup depth is added 1, obtains To updated lookup depth, the target signature identifier lookup process is repeated, until the own node is switched to The switching times of the father node of the own node reach preset threshold.
It should be noted that the application is to be looked into according to the clue of input and the typonym of control to be measured based on nearby principle The control element of control to be measured is looked for, the accuracy rate of the control element of acquisition can be improved, so that improves automatic test can By property.
Correspondingly, the page elements object of at least one program node that target signature mark is matched to It is determined as the control element of the control to be measured, comprising:
Page elements object in the initial page element object list is screened, target pages element pair is obtained As list;
Using the page elements object in the target pages element object list as the control element of the control to be measured.
Optionally, the page elements object in the initial page element object list screens, and obtains mesh Mark page elements list object, comprising:
It deletes and hides the corresponding page elements object of control in the initial page element object list, obtain intermediate page Element object list;
Lookup at least one the smallest page elements object of depth described in the intermediate page element object list is obtained, Obtain the target pages element object list.
Optionally, the signature identification includes cascading style sheets CSS selector expression formula.
Further, it is based on preset corresponding relationship described, determination is corresponding with the title of the target widget type Before target signature mark, the method also includes:
All control types on the page to be measured are named, determine the title of each control type;
All control types on the page to be measured are defined, the determining and one-to-one feature mark of the title Know, to obtain the corresponding relationship.
Further, the method also includes:
The encapsulation that interface operation code is carried out to the control type after definition, obtains all controls on the page to be measured Class is realized in encapsulation.
Optionally, the control to be measured includes button control, Input, general link control, combobox control, table At least one of lattice control, tree control and date selection control.
Optionally, the clue includes the title of the identity of the program node on the page to be measured, program node At least one of with page elements.
Second aspect, this application provides a kind of acquisition device of control element, described device includes:
First determining module, the title for the target widget type according to input are determined based on preset corresponding relationship Target signature mark corresponding with the title of the target widget type, the target widget type are the control class of control to be measured Type, the corresponding relationship include on the page to be measured the title of all control types and with the one-to-one feature mark of the title Know;
Searching module, for searching the target signature mark in the program node of the page to be measured;
Second determining module, the page member of at least one program node for target signature mark to be matched to Plain object is determined as the control element of the control to be measured, and the control element is for inputting automated test frame, to be provided from Dynamicization test frame realizes that class carries out automatic test to the control to be measured based on the encapsulation of the control to be measured.
Optionally, when on the page to be measured including at least two control types, the searching module, comprising:
Acquisition submodule obtains all where the clue for the clue on the page to be measured based on input Program node;
Submodule is traversed, is identified for all program nodes where traversing the clue with searching the target signature.
Optionally, the traversal submodule, is used for:
Depth is searched in setting, and searches process to each program node performance objective signature identification where the clue, Until traversal completes all program nodes where the clue;
Wherein, the target signature identifier lookup process includes:
Whether the own node where judging the clue matches the target signature mark;
When the own node matches target signature mark, the page elements object of the own node is added Into initial page element object list, the lookup depth is recorded, and terminates the target signature identifier lookup process;
When the own node mismatch the target signature mark when, detect the own node child node whether It is identified with the target signature;
When matching target signature mark there are target child node in the child node of the own node, by the mesh The page elements object of mark child node is added in the initial page element object list, records the lookup depth, and tie Shu Suoshu target signature identifier lookup process;
When all child nodes of the own node mismatch target signature mark, the own node is cut The father node of the own node is shifted to, and the father node is made to replace the own node, so that the lookup depth is added 1, obtains To updated lookup depth, the target signature identifier lookup process is repeated, until the own node is switched to The switching times of the father node of the own node reach preset threshold.
Optionally, second determining module, comprising:
Screening submodule is obtained for screening to the page elements object in the initial page element object list To target pages element object list;
Submodule is determined, for using the page elements object in the target pages element object list as described to be measured The control element of control.
Optionally, the screening submodule, is used for:
It deletes and hides the corresponding page elements object of control in the initial page element object list, obtain intermediate page Element object list;
Lookup at least one the smallest page elements object of depth described in the intermediate page element object list is obtained, Obtain the target pages element object list.
Optionally, the signature identification includes cascading style sheets CSS selector expression formula.
Optionally, described device further include:
Module is named to determine each control type for being named to all control types on the page to be measured Title;
Definition module, for being defined to all control types on the page to be measured, the determining and title one One corresponding signature identification, to obtain the corresponding relationship.
Optionally, described device further include:
Package module obtains the page to be measured for carrying out the encapsulation of interface operation code to the control type after definition Class is realized in the encapsulation of all controls on face.
Optionally, the control to be measured includes button control, Input, general link control, combobox control, table At least one of lattice control, tree control and date selection control.
Optionally, the clue includes the title of the identity of the program node on the page to be measured, program node At least one of with page elements.
The third aspect provides a kind of automatization test system, the system comprises: automated test frame and such as second The acquisition device of any control element of aspect;
The acquisition device of the control element is used to input the control element of control to be measured to the automated test frame;
The automated test frame realizes that class carries out the control to be measured for the encapsulation based on the control to be measured Automatic test.
Fourth aspect, provides a kind of acquisition device of control element, and described device includes: memory, processor and deposits The computer program that can be run on the memory and on the processor is stored up, when the processor executes the calculating When machine program, the acquisition methods of the control element as described in first aspect is any are realized.
5th aspect, provides a kind of computer readable storage medium, is stored on the computer readable storage medium Instruction realizes the acquisition methods of the control element as described in first aspect is any when described instruction is executed by processor.
6th aspect, provides a kind of computer program, when the computer program is executed by processor, realizes such as the On the one hand the acquisition methods of any control element.
7th aspect, provides a kind of chip, the chip includes programmable logic circuit and/or program instruction, works as institute When stating chip operation, the acquisition methods of the control element as described in first aspect is any are realized.
Technical solution provided by the present application has the benefit that
Acquisition methods and device, automatization test system, the storage medium of control element provided by the present application, are treated in advance The control type surveyed on the page is named, defines and encapsulates, after the title and related thread for inputting control to be measured, according to line Control element of the program node based on nearby principle dynamic lookup control to be measured where rope.Compared with the relevant technologies, on the one hand, When writing test case, XPath is carried out without tester and is spliced by hand, improve the exploitation effect of automatic test cases Rate;It on the other hand, is that control element is searched according to the signature identification of clue and control to be measured in the application, even if Web page The layout of element changes, and will not influence the operation of automatic test cases code, correspondingly, existing without tester Automatic test cases code is constantly modified or recorded again after the change of Web page surface element, reduces maintenance cost, and this Shen Please in automatic test high stability, so as to improve the efficiency of automatic test.
Detailed description of the invention
Figure 1A is a kind of structural schematic diagram of automatization test system provided by the embodiments of the present application;
Figure 1B is a kind of entity structure schematic diagram of the acquisition device of control element provided by the embodiments of the present application;
Fig. 2A is a kind of flow chart of the acquisition methods of control element provided by the embodiments of the present application;
Fig. 2 B is a kind of method flow diagram for searching target signature mark provided by the embodiments of the present application;
Fig. 2 C is a kind of schematic diagram of target signature identifier lookup process provided by the embodiments of the present application;
Fig. 3 A is a kind of interface display diagram of date selection control provided by the embodiments of the present application;
Fig. 3 B is the corresponding Dom structural schematic diagram of interface display diagram shown in Fig. 3 A;
Fig. 4 A is a kind of structural schematic diagram of the acquisition device of control element provided by the embodiments of the present application;
Fig. 4 B is a kind of structural schematic diagram of searching module provided by the embodiments of the present application;
Fig. 4 C is a kind of structural schematic diagram of second determining module provided by the embodiments of the present application;
Fig. 4 D is the structural schematic diagram of the acquisition device of another control element provided by the embodiments of the present application;
Fig. 4 E is the structural schematic diagram of the acquisition device of another control element provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
In the related technology, the efficiency for searching control element by the ID of DOM node or Name is higher, in page development rank Section usually requires that the DOM node that developer manipulates the control on the page increases fixed ID or Name attribute, but i.e. Increase the DOM node for requiring developer to manipulate all controls during page development by fixed ID or Name to belong to Property, since the control of Web page is control combing mostly, such as search control includes Input and button control, is needed The DOM node manipulated needed for the control element of search control can be just pin-pointed to by carrying out XPath splicing, and in Web application, The ID of dynamic Web page surface element is the dynamic generation in compilation process, thus test case can not be written, therefore the relevant technologies In search control element usually using XPath mode.
When the layout of Web page surface element changes, such as carry out client-oriented design (User- CenteredDesign, UCD) transformation after, in Web page increase newly, delete or replacement control when, will lead to DOM in former Web page The variation of structure, so as to cause the XPath failure in former automatic test cases code, so that former automatic test cases code Operation failure, therefore the reliability of automated testing method in the related technology is lower.It is run in automatic test cases code After failure, tester is needed to modify the automatic test cases code Web page new with compatibility by hand.With product version Evolution and update, frequently, automatic test cases code needs constantly to modify or record again the change of Web page surface element, from The higher and invalid failure use case analysis workload of the maintenance cost of dynamicization test case code leads to the efficiency of automatic test It is lower.
The embodiment of the present application provides a kind of automatization test system, can solve the problems in the relevant technologies, such as Figure 1A Shown, which includes the acquisition device 01 of automated test frame 00 and control element.
The acquisition device 01 of control element is used to input the control element of control to be measured to automated test frame 00;
Automated test frame realizes that class treats observing and controlling part and carries out automatic test for the encapsulation based on control to be measured.Its In, encapsulation realizes that class is the realization class for obtain after interface operation code wrap to control type, by calling encapsulation to realize Class can execute interface operation to the control on the page by software automatically.
In practical application, as shown in Figure 1A, automatization test system further includes examining system (Software Under Testing, SUT) Web page in 02, above-mentioned control to be measured is the control on Web page (page i.e. to be measured).
It should be noted that automated test frame provided by the embodiments of the present application is based on the programming for facing object Method carries out automatic test.Tester is when writing test case, it is necessary first to all controls on the page to be measured Type is named and defines, and determines the title of control type and the corresponding relationship of signature identification, and to the control class after definition Type carries out the encapsulation of interface operation code, and class is realized in the encapsulation for obtaining each control type.In automatic test course, control The control element of the name acquiring control to be measured of the control type of to be measured control of the acquisition device of element based on input, and to certainly Dynamicization test frame inputs the control element;Automated test frame according to control element, realize by the encapsulation based on control to be measured Class carries out automatic test to the control to be measured in the Web page in examining system.
Optionally, automated test frame used by the embodiment of the present application can be any Open Framework, such as can be with For TestNG+Seleniu Open Framework, do not limit this.
Application programming interface (the Application of the acquisition device of control element provided by the embodiments of the present application ProgrammingInterface, API) be packaged after, externally provide control element lookup interface and execute interface, In, the parameter that interface is used for tester's input test is searched, execution interface is determined for tester executes testing process. The input parameter of the device includes at least one of title, clue and the input value of control of control type;Output parameter packet Include the control element of control to be measured.Wherein, clue is the ginseng of the control element for searching control to be measured of tester's input Examine information.For example, clue may include the identity of the program node on the page to be measured, the title of program node and page member At least one of element.The input value of control includes the input content etc. of text box.
Therefore, automatization test system provided by the embodiments of the present application will walk the interface operation of the control in Web page Suddenly it is simplified to the calling to an API, manually performs interface operation step without tester, improves automatic test effect Rate.
The embodiment of the present application provides a kind of acquisition device of control element, and as shown in Figure 1B, which includes: storage Device 011, processor 012 and is stored in the computer program that can be run on memory 011 and on processor 012, works as processing When device 012 executes computer program, the acquisition methods of control element are realized.
Optionally, which further includes communication bus 013 and communication interface 014.
Wherein, processor 012 includes one or more than one processing core, and processor 012 passes through operation computer journey Sequence and unit, thereby executing various function application and data processing.
Memory 011 can be used for storing computer program and unit.Specifically, memory can storage program area and extremely Application program unit needed for a few function.Operating system can be real time operating system (Real Time eXecutive, RTX), the operating system of LINUX, UNIX, WINDOWS or OS X etc.
Communication interface 014 can be to be multiple, and communication interface 014 with other storage equipment or the network equipment for being led to Letter.Such as in the embodiment of the present application, parameter needed for communication interface 014 can be used for inputting automatic test, and to certainly Dynamicization test frame exports control element.
Memory 011 is connect by communication cabling 013 with processor 012 respectively with communication interface 014.
Fig. 2A is a kind of flow chart of the acquisition methods of control element provided by the embodiments of the present application, as shown in Figure 2 A, should Method may include:
In a step 101, all control types on the page to be measured are named, determine the name of each control type Claim.
Optionally, the control type on the page to be measured may include button control type, Input type, common chain Meet one in control type, combobox control type, grid control type, tree control type and date selection control type etc. Kind is a variety of.
Exemplary, the title of button control type can be determined as " Button ", and the title of Input type can be with It is determined as " Text ", the title of general link control type can be determined as " LinkNormal ", the name of combobox control type Title can be determined as " ComboBox ", and the title of grid control type can be determined as " Table ", the title of tree control type It can be determined as " Tree ", the title of date selection control type can be determined as " DateTime ".
It should be noted that in the embodiment of the present application, the control type on the page to be measured can also include control combing Type can then correspondingly be named control combing type.It is exemplary, for searching for control type, search for control Including Input and button control, the title for searching for control type can be determined as " Search ".
In a step 102, all control types on the page to be measured are defined, determination is special correspondingly with title Sign mark, to obtain corresponding relationship.
Optionally, signature identification may include CSS selector expression formula.
It is exemplary, after being defined to above-mentioned each control type, obtain the title and signature identification of control type Corresponding relationship can be expressed as follows:
Button control type: Button=input [type=button] .btn_normal
Input type: Text=input [type=text], input [type=password], textarea
General link control type: LinkNormal=[href], p, svg, span, a, img
Combobox control type: ComboBox=.comboxBox
Grid control type: Table=table.grid
Tree control type: Tree=.tree_container
Date selects control type: DateTime=.ui-date .ui-datetime
Wherein, input [type=button] .btn_normal are the CSS selections of the corresponding program node of button control Device expression formula;Input [type=text], input [type=password], textarea are the corresponding journeys of Input The CSS selector expression formula of sequence node;[href], p, svg, span, a, img are the corresponding program nodes of general link control CSS selector expression formula;It .comboxBox is the CSS selector expression formula of the corresponding program node of combobox control; Table.grid is the CSS selector expression formula of the corresponding program node of grid control;It .tree_container is tree control The CSS selector expression formula of corresponding program node;.ui-date .ui-datetime is the corresponding program of date selection control The CSS selector expression formula of node.
It should be noted that in the embodiment of the present application, program node is alternatively referred to as flow nodes, refer to when engineering need to be several A distinct program (process) or point several stages are come when completing, a certain program or a certain stage terminate, another program or another Transit point (classification point or time point) when stage starts.
In step 103, the encapsulation that interface operation code is carried out to the control type after definition, obtains institute on the page to be measured There is the encapsulation of control to realize class.
In the embodiment of the present application, automatic test cases are in face of object designs, it is therefore desirable to the control after definition Part type carries out the encapsulation of interface operation code, realizes that class realizes that the interface of the control of each type is grasped by obtained encapsulation Make, such as realizes that class realizes the clicking operation etc. to button by the encapsulation of button control.
Exemplary, the encapsulation for carrying out interface operation code to above-mentioned each control type can be expressed as follows:
Button control type: Button=com.huawei.test.webget.uicomponent.ButtonHandler
Input type: Text=com.huawei.test.webget.uicomponent.TextHandler
General link control type: LinkNormal= com.huawei.test.webget.uicomponent.LinkNormalHandler
Combobox control type: ComboBox= com.huawei.test.webget.uicomponent.ComboBoxHandler
Grid control type: Table=com.huawei.test.webget.uicomponent.TableHandler
Tree control type: Tree=com.huawei.test.webget.uicomponent.TreeHandler
Date selects control type: DateTime= com.huawei.test.webget.uicomponent.DateTimeHandler
Wherein, com.huawei.test.webget.uicomponent.ButtonHandler is the envelope of button control Dress realizes class.
At step 104, according to the title of the target widget type of input, preset corresponding relationship, determining and mesh are based on The corresponding target signature mark of title of control type is marked, target widget type is the control type of control to be measured.
Wherein, corresponding relationship include on the page to be measured the title of all control types and with the one-to-one feature of title Mark.
Optionally, control to be measured includes button control, Input, general link control, combobox control, table control At least one of part, tree control and date selection control.
It is exemplary, can based on control type each in step 102 title and signature identification corresponding relationship determine with The corresponding target signature mark of the title of target widget type.
In step 105, target signature mark is searched in the program node of the page to be measured.
Optionally, it when the control type on the page to be measured is unique, that is to say, when there was only target widget type on the page to be measured When, target signature mark can be searched directly in the program node of the page to be measured.
Optionally, it when on the page to be measured including at least two control types, is searched in the program node of the page to be measured Target signature mark method may include: as shown in Figure 2 B
In step 1051, clue on the page to be measured based on input obtains all program nodes where clue.
It should be noted that since clue includes the identity of the program node on the page to be measured, the name of program node Claim and at least one of page elements, that is to say that clue is the element on the page to be measured, therefore the program node where clue Including at least a program node.
In step 1052, all program nodes where traversing clue are identified with searching target signature.
Optionally, all program nodes where traversal clue may include: in the method for searching target signature mark
Depth is searched in setting, and searches process to each program node performance objective signature identification where clue, until Traversal completes all program nodes where clue.
Optionally, it is 0 that initial lookup depth, which can be set, or 1, the embodiment of the present application looks into initial setting up Look for depth value without limitation.
Wherein, target signature identifier lookup process is as shown in Figure 2 C, may include:
In step 21, whether the own node where judging clue matches target signature mark;When own node matches When target signature identifies, step 22 is executed;When own node mismatches target signature mark, step 23 is executed.
Wherein, the own node where clue that is to say the program node where clue.
In step 22, the page elements object of own node is added in initial page element object list, is recorded Depth is searched, and target end signature identification searches process.
Wherein, the lookup depth that target signature mark is matched in own node is the lookup depth of initial setting up, such as The lookup depth of record can be 0.
It should be noted that all page elements objects in initial page element object list, which record to have, obtains the page Lookup depth when surface element object.
In step 23, judge whether the child node of own node matches target signature mark;When the son section of own node There are when target child node matching target signature mark in point, step 24 is executed;When own node all child nodes not When with target signature mark, step 25 is executed.
In step 24, the page elements object of target child node is added in initial page element object list, is remembered Depth is searched in record, and target end signature identification searches process.
It should be noted that in the embodiment of the present application, target signature mark is matched in the child node of own node Search the lookup depth that depth is also initial setting up.
In step 25, own node is switched to the father node of own node, and father node is made to replace own node, is made It searches depth and adds 1, obtain updated lookup depth.
In step 26, judge to search whether depth is greater than predetermined depth threshold value;It is greater than predetermined depth threshold when searching depth When value, target end signature identification searches process;When searching depth no more than predetermined depth threshold value, return step 21.
Wherein, judge to search whether depth is greater than predetermined depth threshold value, that is to say, judge own node switching to itself Whether the switching times of the father node of node reach preset threshold.For example, preset threshold can be 4, i.e., cut when by own node When shifting to the switching times of the father node of own node and reaching 4 times, target end signature identification searches process.
Exemplary, the embodiment of the present application is by taking control to be measured is to select control on the date as an example, it is assumed that the date selects control type Signature identification be CSS selector expression " .ui-date .ui-datetime ", initial lookup depth be 0, in page to be measured The process that target signature mark is searched in the program node in face is illustrated:
Assuming that the interface display of date selection control is as shown in Figure 3A in Web page, corresponding Dom structure such as Fig. 3 B institute Show.
As shown in Figure 3B, the date selects the top mode of control for L1, and the optional clue of date selection control has 2, In a clue be top mode L1 child node --- value (Value) X1 of label (label) node, i.e. Web page are shown " Date of Birth ", another clue is the identity with subregion (division, div) node of Lable child node peer " id=" BirthDate that mark X2, i.e. Web page are shown " ".
By taking the clue of input is " Date of Birth " as an example, search procedure is as follows:
S1, it is searched according to clue " Date of Birth " and navigates to lable node;
S2, judge whether lable node itself matches CSS selector expression formula;
S3, the content based on lable node determine that own node mismatches CSS selector expression formula, and lable node Without child node;
S4, lable node is switched to father node (i.e. top mode L1:<div class=" ui-date... ">), made It searches depth and adds 1, judge whether top mode L1 matches CSS selector expression formula;
S5, it determines that top mode L1 matches CSS selector expression formula, the page elements object of top mode L1 is added to In initial page element object list, the corresponding lookup depth of page elements object of record top mode L1 is 1, and terminates to look into Look for process.
In the Dom structure as shown in Fig. 3 B, the program node where clue only has label node, therefore top mode L1 Page elements object be unique page elements object in the list of initial page element object.
In step 106, the page elements object at least one program node target signature mark being matched to is true It is set to the control element of control to be measured, control element is for inputting automated test frame, so that automated test frame is based on The encapsulation of control to be measured realizes that class treats observing and controlling part and carries out automatic test.
Optionally, by the page elements object of at least one program node that target signature mark is matched to be determined as to The method of the control element of observing and controlling part may include:
Page elements object in initial page element object list is screened, target pages element object column are obtained Table;Using the page elements object in target pages element object list as the control element of control to be measured.
Wherein, the page elements object in initial page element object list is screened, obtains target pages element List object, comprising: delete and hide the corresponding page elements object of control in the list of initial page element object, obtain intermediate page Surface element list object;It obtains and searches at least one the smallest page elements object of depth in the list of intermediate page element object, Obtain target pages element object list.
It is exemplary, by taking the date in step 105 selects control as an example, by the page elements object of top mode L1 and selection Date value input automated test frame, automated test frame call the date selection control type encapsulation realize class carry out Interface automation operation, to realize the test to date selection control as shown in Figure 3A.
Wherein, above-mentioned hiding control be Web page on sightless control, i.e., can not in Web page direct editing Control.The control element at least one the smallest page elements object of depth will be searched be determined as control to be measured, i.e., based on nearest Principle obtains the control element of control to be measured, and the accuracy rate of the control element of acquisition can be improved, to improve automatic test Reliability.
It should be noted that the sequencing of the acquisition methods step of control element provided by the embodiments of the present application can be into Row appropriate adjustment, step according to circumstances can also accordingly be increased and decreased, and anyone skilled in the art is in this Shen In the technical scope that please be disclosed, the method that can readily occur in variation should all cover within the scope of protection of this application, therefore not It repeats again.
In conclusion the acquisition methods of control element provided by the embodiments of the present application, in advance to the control on the page to be measured Type is named, defines and encapsulates, after the title and related thread for inputting control to be measured, according to the program section where clue Control element of the point based on nearby principle dynamic lookup control to be measured.Compared with the relevant technologies, on the one hand, writing test case When, XPath is carried out without tester and is spliced by hand, and the development efficiency of automatic test cases is improved;On the other hand, this Shen Please in be according to the signature identification of clue and control to be measured search control element, even if the layout of Web page surface element changes Become, the operation of automatic test cases code will not be influenced, correspondingly, without tester after the change of Web page surface element Automatic test cases code is constantly modified or recorded again, reduces maintenance cost, and automatic test is steady in the application It is qualitative higher, so as to improve the efficiency of automatic test.
Fig. 4 A is a kind of structural schematic diagram of the acquisition device of control element provided by the embodiments of the present application, such as Fig. 4 A institute Show, device 40 includes:
First determining module 401 is based on preset corresponding relationship for the title according to the target widget type of input, Determine that target signature mark corresponding with the title of target widget type, target widget type are the control type of control to be measured, Corresponding relationship include on the page to be measured the title of all control types and with the one-to-one signature identification of title.
Searching module 402, for searching target signature mark in the program node of the page to be measured.
Second determining module 403, for target signature to be identified to the page member at least one program node being matched to Plain object is determined as the control element of control to be measured, and control element is for inputting automated test frame, for automatic test Frame realizes that class treats observing and controlling part and carries out automatic test based on the encapsulation of control to be measured.
Optionally, when on the page to be measured including at least two control types, searching module 402, as shown in Figure 4 B, packet It includes:
Acquisition submodule 4021 obtains all programs where clue for the clue on the page to be measured based on input Node;
Submodule 4022 is traversed, is identified for all program nodes where traversing clue with searching target signature.
Wherein, traversal submodule can be used for:
Depth is searched in setting, and searches process to each program node performance objective signature identification where clue, until Traversal completes all program nodes where clue;
Wherein, target signature identifier lookup process includes:
Whether the own node where judging clue matches target signature mark;
When own node matching target signature mark, the page elements object of own node is added to initial page face element In plain list object, record search depth, and target end signature identification searches process;
When own node mismatches target signature mark, whether the child node for detecting own node matches target signature mark Know;
When being identified in the child node of own node there are target child node matching target signature, by the page of target child node Surface element object is added in initial page element object list, record search depth, and target end signature identification searches stream Journey;
When all child nodes of own node mismatch target signature mark, own node is switched into own node Father node, and make father node replace own node, make search depth add 1, obtain updated lookup depth, repeat mesh It marks signature identification and searches process, until the switching times for the father node that own node switches to own node are reached default threshold Value.
Correspondingly, the second determining module 403, as shown in Figure 4 C, comprising:
Screening submodule 4031 is obtained for screening to the page elements object in initial page element object list To target pages element object list;
Submodule 4032 is determined, for using the page elements object in target pages element object list as control to be measured Control element.
Wherein, screening submodule can be used for:
It deletes and hides the corresponding page elements object of control in the list of initial page element object, obtain intermediate page element List object;It obtains and searches at least one the smallest page elements object of depth in the list of intermediate page element object, obtain mesh Mark page elements list object.
Optionally, signature identification includes CSS selector expression formula.
Optionally, as shown in Figure 4 D, device 40 further include:
Module 404 is named to determine each control type for being named to all control types on the page to be measured Title;
Definition module 405, it is determining to be corresponded with title for being defined to all control types on the page to be measured Signature identification, to obtain corresponding relationship.
Further, as shown in Figure 4 E, device 40 further include:
Package module 406 obtains the page to be measured for carrying out the encapsulation of interface operation code to the control type after definition Class is realized in the encapsulation of upper all controls.
Optionally, control to be measured may include button control, Input, general link control, combobox control, table At least one of lattice control, tree control and date selection control.
Optionally, clue may include the identity of the program node on the page to be measured, the title of program node and page At least one of surface element.
In conclusion the acquisition device of control element provided by the embodiments of the present application, in advance to the control on the page to be measured Type is named, defines and encapsulates, and after the title and related thread of control to be measured are inputted to the device, device can be according to line Control element of the program node based on nearby principle dynamic lookup control to be measured where rope, and exported to automated test frame Control element.Compared with the relevant technologies, on the one hand, when writing test case, carry out XPath without tester and spell by hand It connects, improves the development efficiency of automatic test cases;On the other hand, in the application it is feature according to clue and control to be measured Identifier lookup control element, even if the layout of Web page surface element changes, automatic test cases code will not be influenced Operation, correspondingly, without tester Web page surface element change after constantly modify or record again automatic test use Example code, reduces maintenance cost, and automatic test high stability in the application, so as to improve automatic test Efficiency.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely the alternative embodiments of the application, not to limit the application, it is all in spirit herein and Within principle, any modification, equivalent replacement, improvement and so on be should be included within the scope of protection of this application.

Claims (23)

1. a kind of acquisition methods of control element, which is characterized in that the described method includes:
According to the title of the target widget type of input, it is based on preset corresponding relationship, it is determining and the target widget type The corresponding target signature mark of title, the target widget type is the control type of control to be measured, and the corresponding relationship includes On the page to be measured the title of all control types and with the one-to-one signature identification of the title;
The target signature mark is searched in the program node of the page to be measured;
The page elements object at least one program node that target signature mark is matched to is determined as described to be measured The control element of control, the control element is for inputting automated test frame, so that automated test frame is based on described The encapsulation of control to be measured realizes that class carries out automatic test to the control to be measured.
2. the method according to claim 1, wherein when including at least two controls on the page to be measured It is described that the target signature mark is searched in the program node of the page to be measured when type, comprising:
Clue on the page to be measured based on input, obtains all program nodes where the clue;
All program nodes where traversing the clue are identified with searching the target signature.
3. according to the method described in claim 2, it is characterized in that, all program nodes where the traversal clue with Search the target signature mark, comprising:
Depth is searched in setting, and searches process to each program node performance objective signature identification where the clue, until Traversal completes all program nodes where the clue;
Wherein, the target signature identifier lookup process includes:
Whether the own node where judging the clue matches the target signature mark;
When the own node matches target signature mark, the page elements object of the own node is added to just In beginning page elements list object, the lookup depth is recorded, and terminates the target signature identifier lookup process;
When the own node mismatches target signature mark, whether the child node for detecting the own node matches institute State target signature mark;
When matching target signature mark there are target child node in the child node of the own node, by target The page elements object of node is added in the initial page element object list, records the lookup depth, and terminate institute State target signature identifier lookup process;
When all child nodes of the own node mismatch target signature mark, the own node is switched to The father node of the own node, and the father node is made to replace the own node, so that the lookup depth is added 1, obtains more Lookup depth after new, repeats the target signature identifier lookup process, until the own node is switched to described The switching times of the father node of own node reach preset threshold.
4. according to the method described in claim 3, it is characterized in that, described be matched to target signature mark at least The page elements object of one program node is determined as the control element of the control to be measured, comprising:
Page elements object in the initial page element object list is screened, target pages element object column are obtained Table;
Using the page elements object in the target pages element object list as the control element of the control to be measured.
5. according to the method described in claim 4, it is characterized in that, the page in the initial page element object list Surface element object is screened, and target pages element object list is obtained, comprising:
It deletes and hides the corresponding page elements object of control in the initial page element object list, obtain intermediate page element List object;
Lookup at least one the smallest page elements object of depth described in the intermediate page element object list is obtained, is obtained The target pages element object list.
6. the method according to claim 1, wherein
The signature identification includes cascading style sheets CSS selector expression formula.
7. the method according to claim 1, wherein be based on preset corresponding relationship described, it is determining with it is described Before the corresponding target signature mark of the title of target widget type, the method also includes:
All control types on the page to be measured are named, determine the title of each control type;
All control types on the page to be measured are defined, the determining and one-to-one signature identification of the title, To obtain the corresponding relationship.
8. the method according to the description of claim 7 is characterized in that the method also includes:
The encapsulation that interface operation code is carried out to the control type after definition, obtains the encapsulation of all controls on the page to be measured Realize class.
9. the method according to claim 1, wherein
The control to be measured includes button control, Input, general link control, combobox control, grid control, tree-shaped At least one of control and date selection control.
10. according to the method described in claim 2, it is characterized in that,
The clue includes the identity of program node on the page to be measured, in the title and page elements of program node At least one.
11. a kind of acquisition device of control element, which is characterized in that described device includes:
First determining module is based on preset corresponding relationship, determining and institute for the title according to the target widget type of input The corresponding target signature mark of title of target widget type is stated, the target widget type is the control type of control to be measured, The corresponding relationship include on the page to be measured the title of all control types and with the one-to-one signature identification of the title;
Searching module, for searching the target signature mark in the program node of the page to be measured;
Second determining module, the page elements pair of at least one program node for target signature mark to be matched to Control element as being determined as the control to be measured, the control element is for inputting automated test frame, for automation Test frame realizes that class carries out automatic test to the control to be measured based on the encapsulation of the control to be measured.
12. device according to claim 11, which is characterized in that when on the page to be measured include at least two controls When part type, the searching module, comprising:
Acquisition submodule obtains all programs where the clue for the clue on the page to be measured based on input Node;
Submodule is traversed, is identified for all program nodes where traversing the clue with searching the target signature.
13. device according to claim 12, which is characterized in that the traversal submodule is used for:
Depth is searched in setting, and searches process to each program node performance objective signature identification where the clue, until Traversal completes all program nodes where the clue;
Wherein, the target signature identifier lookup process includes:
Whether the own node where judging the clue matches the target signature mark;
When the own node matches target signature mark, the page elements object of the own node is added to just In beginning page elements list object, the lookup depth is recorded, and terminates the target signature identifier lookup process;
When the own node mismatches target signature mark, whether the child node for detecting the own node matches institute State target signature mark;
When matching target signature mark there are target child node in the child node of the own node, by target The page elements object of node is added in the initial page element object list, records the lookup depth, and terminate institute State target signature identifier lookup process;
When all child nodes of the own node mismatch target signature mark, the own node is switched to The father node of the own node, and the father node is made to replace the own node, so that the lookup depth is added 1, obtains more Lookup depth after new, repeats the target signature identifier lookup process, until the own node is switched to described The switching times of the father node of own node reach preset threshold.
14. device according to claim 13, which is characterized in that second determining module, comprising:
It screens submodule and obtains mesh for screening to the page elements object in the initial page element object list Mark page elements list object;
Submodule is determined, for using the page elements object in the target pages element object list as the control to be measured Control element.
15. device according to claim 14, which is characterized in that the screening submodule is used for:
It deletes and hides the corresponding page elements object of control in the initial page element object list, obtain intermediate page element List object;
Lookup at least one the smallest page elements object of depth described in the intermediate page element object list is obtained, is obtained The target pages element object list.
16. device according to claim 11, which is characterized in that
The signature identification includes cascading style sheets CSS selector expression formula.
17. device according to claim 11, which is characterized in that described device further include:
Module is named to determine the name of each control type for being named to all control types on the page to be measured Claim;
Definition module, it is determining a pair of with the title one for being defined to all control types on the page to be measured The signature identification answered, to obtain the corresponding relationship.
18. device according to claim 17, which is characterized in that described device further include:
Package module obtains on the page to be measured for carrying out the encapsulation of interface operation code to the control type after definition Class is realized in the encapsulation of all controls.
19. device according to claim 11, which is characterized in that
The control to be measured includes button control, Input, general link control, combobox control, grid control, tree-shaped At least one of control and date selection control.
20. device according to claim 12, which is characterized in that
The clue includes the identity of program node on the page to be measured, in the title and page elements of program node At least one.
21. a kind of automatization test system, which is characterized in that the system comprises: automated test frame and such as claim The acquisition device of 11 to 20 any control elements;
The acquisition device of the control element is used to input the control element of control to be measured to the automated test frame;
The automated test frame realizes that class carries out automatically the control to be measured for the encapsulation based on the control to be measured Change test.
22. a kind of acquisition device of control element, which is characterized in that described device includes: memory, processor and is stored in institute The computer program that can be run on memory and on the processor is stated, when the processor executes the computer program When, realize the acquisition methods of the control element as described in claims 1 to 10 is any.
23. a kind of computer readable storage medium, which is characterized in that instruction is stored on the computer readable storage medium, When described instruction is executed by processor, the acquisition methods of the control element as described in claims 1 to 10 is any are realized.
CN201810244272.4A 2018-03-23 2018-03-23 Acquisition methods and device, automatization test system, the storage medium of control element Pending CN110297752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810244272.4A CN110297752A (en) 2018-03-23 2018-03-23 Acquisition methods and device, automatization test system, the storage medium of control element

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810244272.4A CN110297752A (en) 2018-03-23 2018-03-23 Acquisition methods and device, automatization test system, the storage medium of control element

Publications (1)

Publication Number Publication Date
CN110297752A true CN110297752A (en) 2019-10-01

Family

ID=68025848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810244272.4A Pending CN110297752A (en) 2018-03-23 2018-03-23 Acquisition methods and device, automatization test system, the storage medium of control element

Country Status (1)

Country Link
CN (1) CN110297752A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990264A (en) * 2019-11-11 2020-04-10 中国建设银行股份有限公司 Element identification method, device and equipment for UI automation test and storage medium
CN111125605A (en) * 2019-12-31 2020-05-08 北京创鑫旅程网络技术有限公司 Page element acquisition method and device
CN111666220A (en) * 2020-06-30 2020-09-15 成都新潮传媒集团有限公司 Method and device for generating Web page object test file
CN111679976A (en) * 2020-05-28 2020-09-18 泰康保险集团股份有限公司 Method and device for searching page object
CN111881043A (en) * 2020-07-27 2020-11-03 山石网科通信技术股份有限公司 Page testing method and device, storage medium and processor
CN112162735A (en) * 2020-10-28 2021-01-01 北京三快在线科技有限公司 Control identification generation method and device, computer equipment and storage medium
CN113094617A (en) * 2021-03-30 2021-07-09 厦门立林科技有限公司 Web element positioning method and application and storage medium thereof
CN113177168A (en) * 2021-04-29 2021-07-27 上海云扩信息科技有限公司 Positioning method based on Web element attribute characteristics
CN113395360A (en) * 2021-08-17 2021-09-14 苏州浪潮智能科技有限公司 Windows system user operation simulation method, system, terminal and storage medium
CN113485909A (en) * 2021-06-01 2021-10-08 杭州网易云音乐科技有限公司 Test method, test device, computing device, and medium
CN113971058A (en) * 2020-07-22 2022-01-25 北京奇虎科技有限公司 Control positioning method, device, equipment and storage medium
CN114385514A (en) * 2022-03-23 2022-04-22 杭州天谷信息科技有限公司 Method, equipment and storage medium for detecting webpage elements
CN114463730A (en) * 2021-07-15 2022-05-10 荣耀终端有限公司 Page identification method and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780448A (en) * 2012-10-23 2014-05-07 百度在线网络技术(北京)有限公司 Widget layer code generation method and device
US8972946B2 (en) * 2011-05-31 2015-03-03 International Business Machines Corporation Interactive semi-automatic test case maintenance
CN105224462A (en) * 2015-10-27 2016-01-06 小米科技有限责任公司 The recognition methods of control element and device
CN105739962A (en) * 2014-12-12 2016-07-06 金蝶软件(中国)有限公司 Table cell editor control expansion method and system based on HTML (Hypertext Markup Language)
CN107729230A (en) * 2017-09-18 2018-02-23 郑州云海信息技术有限公司 A kind of WEB automatic test devices and method of testing based under control scheme

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8972946B2 (en) * 2011-05-31 2015-03-03 International Business Machines Corporation Interactive semi-automatic test case maintenance
CN103780448A (en) * 2012-10-23 2014-05-07 百度在线网络技术(北京)有限公司 Widget layer code generation method and device
CN105739962A (en) * 2014-12-12 2016-07-06 金蝶软件(中国)有限公司 Table cell editor control expansion method and system based on HTML (Hypertext Markup Language)
CN105224462A (en) * 2015-10-27 2016-01-06 小米科技有限责任公司 The recognition methods of control element 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

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990264A (en) * 2019-11-11 2020-04-10 中国建设银行股份有限公司 Element identification method, device and equipment for UI automation test and storage medium
CN111125605A (en) * 2019-12-31 2020-05-08 北京创鑫旅程网络技术有限公司 Page element acquisition method and device
CN111679976A (en) * 2020-05-28 2020-09-18 泰康保险集团股份有限公司 Method and device for searching page object
CN111666220A (en) * 2020-06-30 2020-09-15 成都新潮传媒集团有限公司 Method and device for generating Web page object test file
CN113971058A (en) * 2020-07-22 2022-01-25 北京奇虎科技有限公司 Control positioning method, device, equipment and storage medium
CN111881043A (en) * 2020-07-27 2020-11-03 山石网科通信技术股份有限公司 Page testing method and device, storage medium and processor
CN111881043B (en) * 2020-07-27 2022-10-14 山石网科通信技术股份有限公司 Page testing method and device, storage medium and processor
CN112162735A (en) * 2020-10-28 2021-01-01 北京三快在线科技有限公司 Control identification generation method and device, computer equipment and storage medium
CN113094617A (en) * 2021-03-30 2021-07-09 厦门立林科技有限公司 Web element positioning method and application and storage medium thereof
CN113094617B (en) * 2021-03-30 2022-07-19 厦门立林科技有限公司 Web element positioning method and application and storage medium thereof
CN113177168B (en) * 2021-04-29 2023-12-01 上海云扩信息科技有限公司 Positioning method based on Web element attribute characteristics
CN113177168A (en) * 2021-04-29 2021-07-27 上海云扩信息科技有限公司 Positioning method based on Web element attribute characteristics
CN113485909A (en) * 2021-06-01 2021-10-08 杭州网易云音乐科技有限公司 Test method, test device, computing device, and medium
CN113485909B (en) * 2021-06-01 2023-10-27 杭州网易云音乐科技有限公司 Test method, test device, computing equipment and medium
CN114463730A (en) * 2021-07-15 2022-05-10 荣耀终端有限公司 Page identification method and terminal equipment
CN113395360A (en) * 2021-08-17 2021-09-14 苏州浪潮智能科技有限公司 Windows system user operation simulation method, system, terminal and storage medium
CN114385514A (en) * 2022-03-23 2022-04-22 杭州天谷信息科技有限公司 Method, equipment and storage medium for detecting webpage elements

Similar Documents

Publication Publication Date Title
CN110297752A (en) Acquisition methods and device, automatization test system, the storage medium of control element
CA2653887C (en) Test script transformation architecture
US20090217309A1 (en) Graphical user interface application comparator
CN105743736B (en) Automated testing method and system
JP7218793B2 (en) Control flow system, non-transitory readable medium, and method for enhancing program functionality
US11966312B2 (en) Operation logs visualization device, operation logs visualization method and operation logs visualization program
WO2014188502A1 (en) Management system, management program, and management method
Sacramento et al. Web application model generation through reverse engineering and UI pattern inferring
CN108804300A (en) Automated testing method and system
CN107153606A (en) A kind of program analyzes process visualization method and system
CN108170602B (en) Test case generation method and device, terminal and computer readable medium
CN108694114A (en) Method and its system for detaching test case, test script and test data
EP2096536A2 (en) Graphical user interface application comparator
JP7077909B2 (en) Dead code analysis program, dead code analysis method and dead code analysis device
US20050086647A1 (en) Apparatus for and method of creating computer program specifications, and computer program product
US10884711B2 (en) Code management system and code management method using a visual programming tool
JP7380851B2 (en) Test script generation device, test script generation method and program
CN109656816A (en) Control recognition methods, device, equipment and storage medium
CN115481025A (en) Script recording method and device for automatic test, computer equipment and medium
CN111221610B (en) Page element acquisition method and device
CN109960497A (en) Call method and device between a kind of script file
CN114356783A (en) Method and device for automatically generating unit test code, storage medium and equipment
Kaushalya et al. Framework to Migrate AngularJS Based Legacy Web Application to React Component Architecture
CN112579456B (en) Web automatic testing method and device
CN114064157B (en) Automatic flow implementation method, system, equipment and medium based on page element identification

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
TA01 Transfer of patent application right

Effective date of registration: 20200212

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 210000 HUAWEI Nanjing base, 101 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Applicant before: Huawei Technologies Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20191001

RJ01 Rejection of invention patent application after publication