CN110399586A - Automatic processing method, device, equipment and the medium of web interface element - Google Patents
Automatic processing method, device, equipment and the medium of web interface element Download PDFInfo
- Publication number
- CN110399586A CN110399586A CN201910711776.7A CN201910711776A CN110399586A CN 110399586 A CN110399586 A CN 110399586A CN 201910711776 A CN201910711776 A CN 201910711776A CN 110399586 A CN110399586 A CN 110399586A
- Authority
- CN
- China
- Prior art keywords
- page elements
- web interface
- page
- interface element
- automatic processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 32
- 238000012545 processing Methods 0.000 claims abstract description 74
- 238000004891 communication Methods 0.000 claims abstract description 22
- 238000004321 preservation Methods 0.000 claims abstract description 19
- 238000000034 method Methods 0.000 claims description 27
- 238000012360 testing method Methods 0.000 claims description 17
- 238000012216 screening Methods 0.000 claims description 11
- 230000004807 localization Effects 0.000 claims description 6
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 241000239290 Araneae Species 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/986—Document structures and storage, e.g. HTML extensions
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses automatic processing method, device, equipment and the media of a kind of web interface element, it is related to financial technology technical field, the automatic processing method of the web interface element includes: to obtain the corresponding full page in the address URL when web interface detects the input completion instruction of the address URL;The htlm text in the full page is parsed by third party's tool of default communication, the htlm text is traversed and corresponds to all page elements, to screen object element from all page elements according to preset configuration information;Automatically it names and positions preservation and handle the object element.The present invention solves the processing for carrying out web interface element by way of recording and playback in the prior art, and human and material resources expends excessive technical problem.
Description
Technical field
The present invention relates at financial technology (Fintech) technical field more particularly to a kind of automation of web interface element
Manage method, apparatus, equipment and medium.
Background technique
With financial technology (Fintech), the especially continuous development of internet techno-financial, more and more technologies are answered
Used in financial field.Wherein, the automatic processing of the web interface element in financial field is related to numerous technical applications, however,
It is all the place that web interface element is carried out by the way of recording and playback in the automation process of existing web interface element
Reason, the mode of recording and playback are manually to carry out clicking the acquisition that the operations such as sliding carry out web interface element information,
If first opened the page to be measured, acquisition and preservation that page elements to be measured carry out element property information are clicked.Pass through recording and playback
Mode carries out the processing of web interface element, expends excessive human and material resources.
Summary of the invention
The main purpose of the present invention is to provide automatic processing method, device, equipment and the Jie of a kind of web interface element
Matter, it is intended to solve the processing for carrying out web interface element by way of recording and playback in the prior art, human and material resources expends
Excessive technical problem.
To achieve the above object, the embodiment of the present invention provides a kind of automatic processing method of web interface element, described
The automatic processing method of web interface element includes:
When web interface detects the input completion instruction of the address URL, the corresponding full page in the address URL is obtained;
The htlm text in the full page is parsed by third party's tool of default communication, traverses the htlm text pair
Page elements that should be all, to screen object element from all page elements according to preset configuration information;
Automatically it names and positions preservation and handle the object element.
Optionally, it the automatic name and positions preservation and handles the object element step and include:
The each naming rule for being directed to all page elements in preset configuration information is obtained, and is obtained described each
The priority orders of naming rule, wherein the priority orders of each naming rule and the attribute of the page elements close
Connection;
The objective attribute target attribute for obtaining the object element, it is automatic to name according to the objective attribute target attribute and the priority orders
The object element;
The grade of the page where obtaining the object element according to the mark of each page, according to where the object element
Object element described in the grade localization process of the page, and save the object element.
Optionally, the automatic processing method of the web interface element further include:
All page elements are traversed at interval of preset time period;
The each page elements saved in all page elements and presetting database are compared, are with determination
It is no to there are the new page elements being not held in the presetting database;
When there are the new page elements being not held in the presetting database, naming automatically and positioning preservation processing
The new page elements.
Optionally, described traverse after all page elements steps at interval of preset time period includes:
The each page elements saved in all page elements and presetting database are compared, to determine
It states in the page elements in presetting database with the presence or absence of removing element;
When there is removing element in the page elements in the presetting database, preset alert processing is carried out.
Optionally, when there is removing element in the page elements when in the presetting database, preset alert is carried out
Include: after processing step
The test case in the presetting database with the removing elements correlation is determined according to Keywords matching mode;
Processing is purged to the test case.
Optionally, described to compare each page elements saved in all page elements and presetting database
It is right, to include: later with the presence or absence of removing element step in the page elements in the determination presetting database
When not existing in the page elements in the presetting database, when removing element, determining in the presetting database is
It is no that there are the change elements of attribute changes;
When in the presetting database there are when the change element of attribute changes, according to the change element, to described pre-
If database is updated processing.
Optionally, third party's tool by default communication parses the htlm text in the full page, traverses institute
It states htlm text and corresponds to all page elements steps and include:
The htlm text of each subpage frame in the full page is parsed by third party's tool of default communication, described in traversal
Htlm text corresponds to all page elements.
The present invention also provides a kind of automatic processing device of web interface element, at the automation of the web interface element
Managing device includes:
Module being obtained, when for detecting that instruction is completed in the input of the address URL in web interface, obtaining the address pair URL
The full page answered;
Screening module is traversed for parsing the htlm text in the full page by third party's tool of default communication
The htlm text corresponds to all page elements, to screen mesh from all page elements according to preset configuration information
Mark element;
Preserving module handles the object element for naming and positioning to save automatically.
Optionally, the preserving module includes:
First acquisition unit is advised for obtaining in preset configuration information for each name of all page elements
Then, and the priority orders of each naming rule are obtained, wherein the priority orders of each naming rule with it is described
The Attribute Association of page elements;
Second acquisition unit, for obtaining the objective attribute target attribute of the object element, according to the objective attribute target attribute with it is described excellent
First grade sequence, names the object element automatically;
Third acquiring unit, the grade of the page, root where obtaining the object element for the mark according to each page
According to object element described in the grade localization process of the page where the object element, and save the object element.
Optionally, the automatic processing device of the web interface element further include:
Spider module, for traversing all page elements at interval of preset time period;
First comparison module, each page elements for will be saved in all page elements and presetting database
It is compared, to determine whether there is the new page elements being not held in the presetting database;
Name locating module, for when exist be not held in the presetting database new page elements when, automatically
It names and positions preservation and handle the new page elements.
Optionally, the automatic processing device of the web interface element further include:
Second comparison module, each page elements for will be saved in all page elements and presetting database
It is compared, removes element whether there is in the page elements in the determination presetting database;
Processing module is alerted, for when removing element, progress to be pre- when existing in the page elements in the presetting database
If warning is handled.
Optionally, the automatic processing device of the web interface element further include:
First determining module, for according to Keywords matching mode determine in the presetting database with the removing element
Associated test case;
Processing module is removed, for being purged processing to the test case.
Optionally, the automatic processing device of the web interface element further include:
Second determining module, for determining when not there is no removing element in the page elements in the presetting database
It whether there is the change element of attribute changes in the presetting database;
Update processing module, for when in the presetting database there are when the change element of attribute changes, according to described
Element is changed, processing is updated to the presetting database.
Optionally, the screening module includes:
Screening unit, for parsing the htlm of each subpage frame in the full page by third party's tool of default communication
Text traverses the htlm text and corresponds to all page elements.
The present invention also provides a kind of medium, the automatic processing program of web interface element is stored on the medium, it is described
The automatic processing such as above-mentioned web interface element is realized when the automatic processing program of web interface element is executed by processor
The step of method.
It is corresponding complete to obtain the address URL when web interface detects the input completion instruction of the address URL by the present invention
The page;The htlm text in the full page is parsed by third party's tool of default communication, it is corresponding to traverse the htlm text
All page elements, to screen object element from all page elements according to preset configuration information;Automatic name
And it positions preservation and handles the object element.It in this application, is no longer that web interface element is carried out by recording and playback mode
Processing, but when web interface detects the input completion instruction of the address URL, realize that the htlm of the whole pages is extracted in automation
Text, to screen object element from all page elements according to preset configuration information, namely it is complete in automation extraction
After the htlm text of portion's page, automatically screening object element can be realized by the setting of preset configuration information, and order automatically
Name simultaneously positions the preservation processing object element, thus avoids excessively expending excessive human and material resources.
Detailed description of the invention
Fig. 1 is the flow diagram of the automatic processing method first embodiment of web interface element of the present invention;
Fig. 2 be web interface element of the present invention automatic processing method second embodiment in name automatically and position preservation
Handle the refinement flow diagram of the object element step;
Fig. 3 is the device structure schematic diagram for the hardware running environment that present invention method is related to.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of automatic processing method of web interface element, in the automatic processing side of web interface element
In one embodiment of method, referring to Fig.1, the automatic processing method of the web interface element includes:
It is corresponding to obtain the address URL when web interface detects the input completion instruction of the address URL by step S10
Full page;
Step S20 parses the htlm text in the full page by third party's tool of default communication, described in traversal
Htlm text corresponds to all page elements, to screen target element from all page elements according to preset configuration information
Element;
Step S30 is named automatically and is positioned the preservation processing object element.
Specific step is as follows:
It is corresponding to obtain the address URL when web interface detects the input completion instruction of the address URL by step S10
Full page;
In the present embodiment, the automatic processing method of web interface element is applied to the automatic processing of web interface element
The automated programming system of system, the web interface element provides an interface towards all testers, should be towards all surveys
Realize to include the concrete functions such as element management, case designing, the setting page, on the surface, tester in the interface of examination personnel
After click " obtaining element " button, the default method for calling element can be called, which can be by institute
There is customized element to list, show on this page, and show association attributes, wherein this towards all testers'
It further include addition table, the controls such as element combobox, to realize different functions on interface.
In the present embodiment, the input in web interface namely Interface detection to the address URL towards all testers is complete
When at instruction, the corresponding full page in the address URL is obtained, for example, at web interface namely interface towards all testers
Detect that microblogging perhaps complete to obtain pair of the microblogging or the address of WebAuto when instruction by the input of the address of WebAuto
The full page answered, wherein full page refers to that the interface of the address URL and URL address boundary face correspond to subpage frame, specifically, leads to
The method for crossing recursive call completes all acquisitions including deeper grade subpage frame in the address URL interface, namely obtains the URL
The subpage frame being hyperlinked in the page of address.
When due to detecting that instruction is completed in the input of the address URL in web interface, the corresponding full page in the address URL is obtained
Face may be implemented to obtain the corresponding full page in the address URL automatically when the address URL is the input of system self-timing, when
The address URL is that may be implemented to obtain the corresponding full page in different addresses URL when artificially inputting, to realize the web of disparity items etc.
The automatic processing of interface element.
Step S20 parses the htlm text in the full page by third party's tool of default communication, described in traversal
Htlm text corresponds to all page elements, to screen target element from all page elements according to preset configuration information
Element;
In the present embodiment, the automated programming system of web interface element is communicated with third party's tool, to call
Functional module in third party's tool.
Third party's tool by default communication parses the htlm text in the full page, traverses the htlm text
This corresponds to all page elements steps
Step S21 parses the htlm text of each subpage frame in the full page by third party's tool of default communication,
It traverses the htlm text and corresponds to all page elements.
Wherein, the automated programming system of web interface element can call the hypertext markup language in third party's tool
Resolver jar packet Jsoup and web application driving WebDriver etc., pass through the hypertext markup language in third party's tool
Resolver jar packet Jsoup parses the htlm text in the full page, wherein parses htlm text in the full page not
It illustrates, after parsing the htlm text in the full page, by pre- in the automated programming system of web interface element
If the acquisition program segments of all page elements traverse the htlm text and correspond to all page elements, traverse the htlm
The purpose that text corresponds to all page elements is to be screened from all page elements according to preset configuration information
Object element, that is, in ergodic process, after one page elements of every traversal, by the page elements and preset configuration of the traversal
Information carries out matching comparison, specifically, after one page elements of every traversal, by the page elements of the traversal and preset configuration information
Middle configuration rule carries out matching comparison, to screen object element from all page elements according to preset configuration information,
For example, screening common element from all page elements according to preset configuration information, the common element is in preset configuration
It is determined in advance in information, or it is not empty that name attribute is screened from all page elements according to preset configuration information
Element, perhaps screened from all page elements according to preset configuration information entry attributes be not empty element or
Screening element content attribute from all page elements according to preset configuration information is not empty element etc..
Step S30 is named automatically and is positioned the preservation processing object element.
After obtaining object element, automatic name handles the object element, and determine automatically to the object element
Position, is being named automatically, and after automatic positioning object element, the object element is stored in presetting database, and according to pre-
If saving rule, the object element is saved in the preset database.
Referring to Fig. 2, the automatic name simultaneously positions preservation and handles the object element step and include:
Step S31 obtains each naming rule for being directed to all page elements in preset configuration information, and obtains
The priority orders of each naming rule, wherein the priority orders of each naming rule and the page elements
Attribute Association;
It in the present embodiment, is to name and position preservation automatically according to certain rules to handle the object element, tool
Body, there is each naming rule for all page elements in preset configuration information, thus, obtain preset configuration
Each naming rule of all page elements is directed in information, which includes according to the label in attribute
Name attribute is named, and specifically such as with label, input, button, img, text, the keywords such as textarea are ordered
Name, which further includes being had value such as attribute attribute id to have the keywords such as value according to the type attribute in attribute
It is named, wherein the priority orders of each naming rule and the Attribute Association of the page elements, for example, mark
The priority that signature attribute is named is higher than the priority that type attribute has value.
Step S32 obtains the objective attribute target attribute of the object element, according to the objective attribute target attribute and the priority orders,
Automatically the object element is named;
The objective attribute target attribute of the object element is obtained, namely searches the objective attribute target attribute of the object element, according to the mesh
Attribute and the priority orders are marked, name the object element automatically, that is, first looking in object element with the presence or absence of mark
Signature attribute, tag name attribute, names the object element according to tag name attribute, if it does not exist tag name category automatically if it exists
Property, check in object element there is value with the presence or absence of type attribute, type attribute has value if it exists, then has value certainly according to type attribute
The dynamic name object element, type attribute has value if it does not exist, then names the object element automatically according to other attributes,
In, other attributes include that attribute attribute class has value etc..
Step S33, the grade of the page where obtaining the object element according to the mark of each page, according to the target
Object element described in the grade localization process of the page where element, and save the object element.
In the present embodiment, it is also automatically positioned the object element, the object element is automatically positioned and mainly determines institute
The place page of object element and the grade of the place page are stated, specifically, the target is obtained according to the mark of each page
The grade of the page where element, according to object element described in the grade localization process of the page where the object element, and saves
The object element.
It is corresponding complete to obtain the address URL when web interface detects the input completion instruction of the address URL by the present invention
The page;The htlm text in the full page is parsed by third party's tool of default communication, it is corresponding to traverse the htlm text
All page elements, to screen object element from all page elements according to preset configuration information;Automatic name
And it positions preservation and handles the object element.It in this application, is no longer that web interface element is carried out by recording and playback mode
Processing, but when web interface detects the input completion instruction of the address URL, realize that the htlm of the whole pages is extracted in automation
Text, to screen object element from all page elements according to preset configuration information, namely it is complete in automation extraction
After the htlm text of portion's page, automatically screening object element can be realized by the setting of preset configuration information, and order automatically
Name simultaneously positions the preservation processing object element, thus avoids excessively expending excessive human and material resources.
Further, it is based on first embodiment, the present invention provides another implementation of automatic processing method of web interface element
Example, in this embodiment, the automatic processing method of the web interface element further include:
Step S40 traverses all page elements at interval of preset time period;
In the present embodiment, the another method of the automatic processing of web interface element, in the method, every are also provided
All page elements are traversed every preset time period, the mesh of all page elements is traversed at interval of preset time period
Be that determining in presetting database whether each page elements for saving synchronize is updated.
The each page elements saved in all page elements and presetting database are compared step S50,
To determine whether there is the new page elements being not held in the presetting database;
The each page elements saved in all page elements and presetting database are compared, specifically,
The each page elements title saved in all the page elements title and presetting database is compared, is with determination
It is no to there are the new page elements being not held in the presetting database.
Step S60 is named automatically and is positioned when there are the new page elements being not held in the presetting database
It saves and handles the new page elements.
In the present embodiment, by traversing all page elements at interval of preset time period;It will be described all
The each page elements saved in page elements and presetting database are compared, with determine whether there is be not held in it is described pre-
If the new page elements in database;When there are the new page elements being not held in the presetting database, automatically
It names and positions preservation and handle the new page elements.In the present embodiment, the updated page of the maintenance on simple boundary is realized
Surface element.
Further, another embodiment of automatic processing method of web interface element is provided in the present invention, in the embodiment
In, described traverse after all page elements steps at interval of preset time period includes:
The each page elements saved in all page elements and presetting database are compared step S70,
Element is removed whether there is in the page elements in the determination presetting database;
In the present embodiment, each page elements saved in all page elements and presetting database are carried out
It compares, removes element whether there is in the page elements in the determination presetting database, wherein remove element and refer to
There is element that is still current deleted or removing in web interface element in the past.
Step S80 is carried out at preset alert when there is removing element in the page elements in the presetting database
Reason.
When there is removing element in the page elements in the presetting database, preset alert processing is carried out.Warning
Purpose is whether need to further determine that by the test case for removing element influences.
When there is removing element in the page elements when in the presetting database, preset alert processing step is carried out
Include: later
Step S90 determines the survey in the presetting database with the removing elements correlation according to Keywords matching mode
Example on probation;
In the present embodiment, it determines in the presetting database also according to Keywords matching mode and is closed with the removing element
The test case of connection, that is, in test case there are content including the removing element term in lookup system.
Step S100 is purged processing to the test case.
The test case in the presetting database with the removing elements correlation is being determined according to Keywords matching mode
Afterwards, the test case is purged or delete processing.
In the present embodiment, each page elements by will be saved in all page elements and presetting database
It is compared, removes element whether there is in the page elements in the determination presetting database;When the presetting database
In page elements in exist remove element when, carry out preset alert processing.It is determined according to Keywords matching mode described default
In database with it is described remove elements correlation test case;Processing is purged to the test case.In the present embodiment
It realizes automatic processing and removes the test case of elements correlation.
Further, another embodiment of automatic processing method of web interface element is provided in the present invention, in the embodiment
In, it is described that each page elements saved in all page elements and presetting database are compared, to determine
It states in the page elements in presetting database and includes: later with the presence or absence of removing element step
Step A1 determines the present count when not there is no removing element in the page elements in the presetting database
According to the change element that whether there is attribute changes in library;
In the present embodiment, when element is not removed in presence in the page elements in the presetting database, described in determination
It whether there is the change element of attribute changes in presetting database, that is, with the presence or absence of the change that only attribute such as entry changes
More element.
Step A2, when in the presetting database there are when the change element of attribute changes, it is right according to the change element
The presetting database is updated processing.
When in the presetting database there are when the change element of attribute changes, according to the change element, to described pre-
If database is updated processing, that is, updating the changed content for changing element in presetting database.
In the present embodiment, when element is not removed in presence in the page elements in the presetting database, described in determination
It whether there is the change element of attribute changes in presetting database;When there are the change of attribute changes members in the presetting database
When plain, according to the change element, processing is updated to the presetting database.It is realized in the present embodiment and automatically updates processing
Presetting database.
Referring to Fig. 3, Fig. 3 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
The automated processing equipment of web interface element of the embodiment of the present invention can be PC, be also possible to smart phone, plate
The terminal devices such as computer, portable computer.
As shown in figure 3, the automated processing equipment of the web interface element may include: processor 1001, such as CPU, deposit
Reservoir 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the company between processor 1001 and memory 1005
Connect letter.Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile
), such as magnetic disk storage memory.Memory 1005 optionally can also be that the storage independently of aforementioned processor 1001 is set
It is standby.
Optionally, the automated processing equipment of the web interface element can also include target user interface, network interface,
Camera, RF (Radio Frequency, radio frequency) circuit, sensor, voicefrequency circuit, WiFi module etc..Target user interface
It may include display screen (Display), input unit such as keyboard (Keyboard), optional target user interface can also include
Standard wireline interface and wireless interface.Network interface optionally may include standard wireline interface and wireless interface (such as WI-FI
Interface).
It will be understood by those skilled in the art that the automated processing equipment structure of web interface element shown in Fig. 3 is not
The restriction to the automated processing equipment of web interface element is constituted, may include than illustrating more or fewer components or group
Close certain components or different component layouts.
As shown in figure 3, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium
Believe the automatic processing program of module and web interface element.Operating system is to manage and control the automation of web interface element
The program of processing equipment hardware and software resource, support web interface element automatic processing program and other softwares and/or
The operation of program.Network communication module for realizing the communication between each component in the inside of memory 1005, and with web interface member
It is communicated between other hardware and softwares in the automated processing equipment of element.
In the automated processing equipment of web interface element shown in Fig. 3, processor 1001 is for executing memory 1005
The automatic processing program of the web interface element of middle storage, at the automation for realizing web interface element described in any of the above embodiments
The step of reason method.
The automated processing equipment specific embodiment of web interface element of the present invention is automatic with above-mentioned web interface element
Change each embodiment of processing method is essentially identical, and details are not described herein.
In addition, the embodiment of the present invention also proposes a kind of automatic processing device of web interface element, the web interface member
Element automatic processing device include:
Module being obtained, when for detecting that instruction is completed in the input of the address URL in web interface, obtaining the address pair URL
The full page answered;
Screening module is traversed for parsing the htlm text in the full page by third party's tool of default communication
The htlm text corresponds to all page elements, to screen mesh from all page elements according to preset configuration information
Mark element;
Preserving module handles the object element for naming and positioning to save automatically.
Optionally, the preserving module includes:
First acquisition unit is advised for obtaining in preset configuration information for each name of all page elements
Then, and the priority orders of each naming rule are obtained, wherein the priority orders of each naming rule with it is described
The Attribute Association of page elements;
Second acquisition unit, for obtaining the objective attribute target attribute of the object element, according to the objective attribute target attribute with it is described excellent
First grade sequence, names the object element automatically;
Third acquiring unit, the grade of the page, root where obtaining the object element for the mark according to each page
According to object element described in the grade localization process of the page where the object element, and save the object element.
Optionally, the automatic processing device of the web interface element further include:
Spider module, for traversing all page elements at interval of preset time period;
First comparison module, each page elements for will be saved in all page elements and presetting database
It is compared, to determine whether there is the new page elements being not held in the presetting database;
Name locating module, for when exist be not held in the presetting database new page elements when, automatically
It names and positions preservation and handle the new page elements.
Optionally, the automatic processing device of the web interface element further include:
Second comparison module, each page elements for will be saved in all page elements and presetting database
It is compared, removes element whether there is in the page elements in the determination presetting database;
Processing module is alerted, for when removing element, progress to be pre- when existing in the page elements in the presetting database
If warning is handled.
Optionally, the automatic processing device of the web interface element further include:
First determining module, for according to Keywords matching mode determine in the presetting database with the removing element
Associated test case;
Processing module is removed, for being purged processing to the test case.
Optionally, the automatic processing device of the web interface element further include:
Second determining module, for determining when not there is no removing element in the page elements in the presetting database
It whether there is the change element of attribute changes in the presetting database;
Update processing module, for when in the presetting database there are when the change element of attribute changes, according to described
Element is changed, processing is updated to the presetting database.
Optionally, the screening module includes:
Screening unit, for parsing the htlm of each subpage frame in the full page by third party's tool of default communication
Text traverses the htlm text and corresponds to all page elements.
The automation of the automatic processing device specific embodiment of the web interface element and above-mentioned web interface element
Each embodiment of processing method is essentially identical, and details are not described herein.
In addition, the embodiment of the present invention also proposes a kind of automated processing equipment of web interface element, equipment includes: storage
Device 109, processor 110 and the automation for being stored in the web interface element that can be run on memory 109 and on processor 110
Processing routine, the automatic processing program of web interface element realize above-mentioned web interface element when being executed by processor 110
The step of each embodiment of automatic processing method.
In addition, the present invention also provides a kind of computer media, the computer media be stored with one or one with
Upper program, the one or more programs can also be executed by one or more than one processor for realizing upper
The step of stating each embodiment of automatic processing method of web interface element.
The expansion content of present device and the specific embodiment of medium (i.e. computer media) and above-mentioned web interface member
Each embodiment of automatic processing method of element is essentially identical, and this will not be repeated here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (10)
1. a kind of automatic processing method of web interface element, which is characterized in that the automatic processing of the web interface element
Method includes:
When web interface detects the input completion instruction of the address URL, the corresponding full page in the address URL is obtained;
The htlm text in the full page is parsed by third party's tool of default communication, the htlm text is traversed and corresponds to institute
Some page elements, to screen object element from all page elements according to preset configuration information;
Automatically it names and positions preservation and handle the object element.
2. the automatic processing method of web interface element as described in claim 1, which is characterized in that the automatic name is simultaneously
Positioning saves the processing object element step
The each naming rule for being directed to all page elements in preset configuration information is obtained, and obtains each name
The priority orders of rule, wherein the priority orders of each naming rule and the Attribute Association of the page elements;
The objective attribute target attribute for obtaining the object element, according to the objective attribute target attribute and the priority orders, described in automatic name
Object element;
The grade of the page where obtaining the object element according to the mark of each page, according to the page where the object element
Grade localization process described in object element, and save the object element.
3. the automatic processing method of web interface element as described in claim 1, which is characterized in that the web interface element
Automatic processing method further include:
All page elements are traversed at interval of preset time period;
The each page elements saved in all page elements and presetting database are compared, to determine whether to deposit
In the new page elements being not held in the presetting database;
When there are the new page elements being not held in the presetting database, naming and being positioned described in preservation processing automatically
New page elements.
4. the automatic processing method of web interface element as claimed in claim 3, which is characterized in that described at interval of default
Period traverses all page elements steps
The each page elements saved in all page elements and presetting database are compared, it is described pre- with determination
If with the presence or absence of removing element in the page elements in database;
When there is removing element in the page elements in the presetting database, preset alert processing is carried out.
5. the automatic processing method of web interface element as claimed in claim 4, which is characterized in that described when described default
When there is removing element in the page elements in database, carry out preset alert processing step includes: later
The test case in the presetting database with the removing elements correlation is determined according to Keywords matching mode;
Processing is purged to the test case.
6. the automatic processing method of web interface element as claimed in claim 4, which is characterized in that described described to own
Page elements and presetting database in each page elements for saving be compared, with the page in the determination presetting database
Include: later with the presence or absence of removing element step in surface element
When not there is no removing element in the page elements in the presetting database, determine in the presetting database whether deposit
In the change element of attribute changes;
When in the presetting database there are when the change element of attribute changes, according to the change element, to the present count
Processing is updated according to library.
7. the automatic processing method of web interface element as claimed in any one of claims 1 to 6, which is characterized in that described logical
The third party's tool for crossing default communication parses htlm text in the full page, traverses the htlm text and corresponds to all pages
Surface element step includes:
The htlm text that each subpage frame in the full page is parsed by third party's tool of default communication, traverses the htlm
Text corresponds to all page elements.
8. a kind of automatic processing device of web interface element, which is characterized in that the automatic processing of the web interface element
Device includes:
Module being obtained, when for detecting that instruction is completed in the input of the address URL in web interface, it is corresponding to obtain the address URL
Full page;
Screening module, for parsing the htlm text in the full page by third party's tool of default communication, described in traversal
Htlm text corresponds to all page elements, to screen target element from all page elements according to preset configuration information
Element;
Preserving module handles the object element for naming and positioning to save automatically.
9. a kind of automated processing equipment of web interface element, which is characterized in that the equipment include: memory, processor and
It is stored in the automatic processing program for the web interface element that can be run on the memory and on the processor, the web
The web as described in any one of claims 1 to 7 is realized when the automatic processing program of interface element is executed by the processor
The step of automatic processing method of interface element.
10. a kind of medium, which is characterized in that the automatic processing program of web interface element is stored on the medium, it is described
The web as described in any one of claims 1 to 7 is realized when the automatic processing program of web interface element is executed by processor
The step of automatic processing method of interface element.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910711776.7A CN110399586A (en) | 2019-07-31 | 2019-07-31 | Automatic processing method, device, equipment and the medium of web interface element |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910711776.7A CN110399586A (en) | 2019-07-31 | 2019-07-31 | Automatic processing method, device, equipment and the medium of web interface element |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110399586A true CN110399586A (en) | 2019-11-01 |
Family
ID=68327212
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910711776.7A Pending CN110399586A (en) | 2019-07-31 | 2019-07-31 | Automatic processing method, device, equipment and the medium of web interface element |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110399586A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110888810A (en) * | 2019-11-19 | 2020-03-17 | 广东润联信息技术有限公司 | Method and device for automatic identification and marking, computer equipment and storage medium |
CN111291208A (en) * | 2020-05-09 | 2020-06-16 | 支付宝(杭州)信息技术有限公司 | Front-end page element naming method and device and electronic equipment |
CN111797026A (en) * | 2020-07-17 | 2020-10-20 | 上海复深蓝软件股份有限公司 | Test case generation method and device, computer equipment and storage medium |
CN112612469A (en) * | 2020-12-30 | 2021-04-06 | 深圳市联谛信息无障碍有限责任公司 | Interface element processing method and device and electronic equipment |
CN112631704A (en) * | 2020-12-26 | 2021-04-09 | 深圳集智数字科技有限公司 | Interface element identification method and device, storage medium and electronic equipment |
CN113568843A (en) * | 2021-09-18 | 2021-10-29 | 深圳市明源云科技有限公司 | HTML element processing method and device and storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130067432A1 (en) * | 2011-09-12 | 2013-03-14 | Microsoft Corporation | Application development toolkit |
US20130086560A1 (en) * | 2011-09-30 | 2013-04-04 | International Business Machines Corporation | Processing automation scripts of software |
CN103873318A (en) * | 2012-12-18 | 2014-06-18 | 阿里巴巴集团控股有限公司 | Website automated testing method and automated testing system |
CN105095067A (en) * | 2014-05-21 | 2015-11-25 | 北京奇虎科技有限公司 | User interface element object identification and automatic test method and apparatus |
CN105373468A (en) * | 2014-06-20 | 2016-03-02 | 阿里巴巴集团控股有限公司 | A detection method and system for WEB automation testability |
US9436669B1 (en) * | 2011-09-06 | 2016-09-06 | Symantec Corporation | Systems and methods for interfacing with dynamic web forms |
WO2016178068A1 (en) * | 2015-05-06 | 2016-11-10 | Yandex Europe Ag | System and method for testing web pages |
CN106547689A (en) * | 2016-10-20 | 2017-03-29 | 金航数码科技有限责任公司 | A kind of automatic test cases development system and method based on web |
CN107562936A (en) * | 2017-09-12 | 2018-01-09 | 中山大学 | A kind of crawl of web page news list based on Jsoup and store method |
CN109324969A (en) * | 2018-09-27 | 2019-02-12 | 平安普惠企业管理有限公司 | Generation method, device, computer equipment and the storage medium of test report |
CN109471793A (en) * | 2018-09-29 | 2019-03-15 | 天津大学 | A kind of webpage automatic test defect positioning method based on deep learning |
-
2019
- 2019-07-31 CN CN201910711776.7A patent/CN110399586A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9436669B1 (en) * | 2011-09-06 | 2016-09-06 | Symantec Corporation | Systems and methods for interfacing with dynamic web forms |
US20130067432A1 (en) * | 2011-09-12 | 2013-03-14 | Microsoft Corporation | Application development toolkit |
US20130086560A1 (en) * | 2011-09-30 | 2013-04-04 | International Business Machines Corporation | Processing automation scripts of software |
CN103873318A (en) * | 2012-12-18 | 2014-06-18 | 阿里巴巴集团控股有限公司 | Website automated testing method and automated testing system |
CN105095067A (en) * | 2014-05-21 | 2015-11-25 | 北京奇虎科技有限公司 | User interface element object identification and automatic test method and apparatus |
CN105373468A (en) * | 2014-06-20 | 2016-03-02 | 阿里巴巴集团控股有限公司 | A detection method and system for WEB automation testability |
WO2016178068A1 (en) * | 2015-05-06 | 2016-11-10 | Yandex Europe Ag | System and method for testing web pages |
CN106547689A (en) * | 2016-10-20 | 2017-03-29 | 金航数码科技有限责任公司 | A kind of automatic test cases development system and method based on web |
CN107562936A (en) * | 2017-09-12 | 2018-01-09 | 中山大学 | A kind of crawl of web page news list based on Jsoup and store method |
CN109324969A (en) * | 2018-09-27 | 2019-02-12 | 平安普惠企业管理有限公司 | Generation method, device, computer equipment and the storage medium of test report |
CN109471793A (en) * | 2018-09-29 | 2019-03-15 | 天津大学 | A kind of webpage automatic test defect positioning method based on deep learning |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110888810A (en) * | 2019-11-19 | 2020-03-17 | 广东润联信息技术有限公司 | Method and device for automatic identification and marking, computer equipment and storage medium |
CN111291208A (en) * | 2020-05-09 | 2020-06-16 | 支付宝(杭州)信息技术有限公司 | Front-end page element naming method and device and electronic equipment |
CN112307235A (en) * | 2020-05-09 | 2021-02-02 | 支付宝(杭州)信息技术有限公司 | Front-end page element naming method and device and electronic equipment |
WO2021227951A1 (en) * | 2020-05-09 | 2021-11-18 | 支付宝(杭州)信息技术有限公司 | Naming of front-end page element |
CN112307235B (en) * | 2020-05-09 | 2024-02-20 | 支付宝(杭州)信息技术有限公司 | Naming method and device of front-end page element and electronic equipment |
CN111797026A (en) * | 2020-07-17 | 2020-10-20 | 上海复深蓝软件股份有限公司 | Test case generation method and device, computer equipment and storage medium |
CN112631704A (en) * | 2020-12-26 | 2021-04-09 | 深圳集智数字科技有限公司 | Interface element identification method and device, storage medium and electronic equipment |
CN112612469A (en) * | 2020-12-30 | 2021-04-06 | 深圳市联谛信息无障碍有限责任公司 | Interface element processing method and device and electronic equipment |
CN113568843A (en) * | 2021-09-18 | 2021-10-29 | 深圳市明源云科技有限公司 | HTML element processing method and device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110399586A (en) | Automatic processing method, device, equipment and the medium of web interface element | |
US10862905B2 (en) | Incident response techniques | |
CN106102164B (en) | A kind of method and apparatus of determining access point position | |
KR102317535B1 (en) | Methods and systems for implementing data tracking with software development kits | |
US20170215024A1 (en) | Methods and apparatuses for recommending application and presenting recommended applications | |
JP5723128B2 (en) | Dynamic hyperlinks for process control systems | |
US20170220633A1 (en) | Context-Adaptive Selection Options in a Modular Visualization Framework | |
CN1744074A (en) | Method and apparatus for configuring computing devices using reference groups | |
KR20050012881A (en) | System for realtime rss/atom reader on web browser and method thereof | |
CN111078556B (en) | Application testing method and device | |
US20150286505A1 (en) | Computing system resource provisioning | |
CN103313289A (en) | Wap system automatic test system and method | |
CN107644075B (en) | Method and device for collecting page information | |
CN104834759B (en) | The implementation method and device of Electronic Design | |
CN105447383B (en) | Browser execution environment detection method, client, server and system | |
KR20150033453A (en) | Method of big data processing, apparatus performing the same and storage media storing the same | |
CN111831176A (en) | Application program management method and device | |
CN105577472A (en) | Data acquisition test method and device | |
CN103370695A (en) | Database update notification method | |
CN110245149A (en) | The method for edition management and device of metadata | |
CN114116065A (en) | Method and device for acquiring topological graph data object and electronic equipment | |
US20180052862A1 (en) | Log collection system and log collection method | |
CN111597112B (en) | Automatic test method and device and electronic equipment | |
CN109240916A (en) | Information output controlling method, device and computer readable storage medium | |
EP3188417B1 (en) | Information display method, terminal and server |
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 |