CN110297751A - Detection method, device, storage medium and the processor of page elements - Google Patents
Detection method, device, storage medium and the processor of page elements Download PDFInfo
- Publication number
- CN110297751A CN110297751A CN201810241648.6A CN201810241648A CN110297751A CN 110297751 A CN110297751 A CN 110297751A CN 201810241648 A CN201810241648 A CN 201810241648A CN 110297751 A CN110297751 A CN 110297751A
- Authority
- CN
- China
- Prior art keywords
- page
- detection
- elements
- interactive elements
- detected
- 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
- 238000001514 detection method Methods 0.000 title claims abstract description 155
- 230000002452 interceptive effect Effects 0.000 claims abstract description 124
- 238000012360 testing method Methods 0.000 claims abstract description 67
- 238000000034 method Methods 0.000 claims abstract description 20
- 230000003993 interaction Effects 0.000 claims abstract description 11
- 238000000605 extraction Methods 0.000 claims description 4
- 230000008901 benefit Effects 0.000 claims description 3
- 230000006870 function Effects 0.000 description 15
- 238000005516 engineering process Methods 0.000 description 5
- 238000007689 inspection Methods 0.000 description 5
- 238000012546 transfer Methods 0.000 description 5
- 201000001880 Sexual dysfunction Diseases 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 231100000872 sexual dysfunction Toxicity 0.000 description 4
- BUGBHKTXTAQXES-UHFFFAOYSA-N Selenium Chemical compound [Se] BUGBHKTXTAQXES-UHFFFAOYSA-N 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 229910052711 selenium Inorganic materials 0.000 description 3
- 239000011669 selenium Substances 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 230000004438 eyesight Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 208000029257 vision disease Diseases 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000000481 breast Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000035800 maturation Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
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)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of detection method of page elements, device, storage medium and processors.Wherein, this method comprises: obtain the page to be detected at least one can interactive elements, it is described can interactive elements be the page to be detected in support human-computer interaction page elements;Described in detection can interactive elements whether meet predetermined detection condition;Output test result.The present invention solves the technical issues of accessible detecting low efficiency of the page.
Description
Technical field
The present invention relates to computer fields, are situated between in particular to a kind of detection method of page elements, device, storage
Matter and processor.
Background technique
Website Accessibility (accessibility), indicate the website have can be to the user that accessibility goes wrong, can
Normally to access the ability of the website.Wherein, having the user up to sexual dysfunction includes the original of eyesight, hearing and body etc.
Because of user, no mouse user, also containing normal users, there is a situation where temporary sexual dysfunctions sometimes, such as bosom baby
User.
With the user up to sexual dysfunction, reading and behaviour due to eyesight, hearing and body etc., to website
Make very difficult.This just need website itself provide Accessibility characteristic and service help user preferably access.
Currently, had the Accessibility website standard standard of some maturations in foreign countries, such as
The specifications such as Section508, MAS website allows to meet these standards with the accessible use of the user up to sexual dysfunction
Website.Wherein, some more well-known websites all have passed through these standards, such as Microsoft, Google etc..
But there is presently no the automation tools detected to website Accessibility characteristic, and rely on artificial
Especially for the large-scale website for having thousands of webpages, how accurately detection, then there is a problem of under being costly and inefficient,
Efficiently judge whether a website meets Accessibility characteristic standard and become very difficult.
Aiming at the problem that accessible detecting low efficiency of the above-mentioned page, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of detection method of page elements, device, storage medium and processors, at least
The technical issues of solving the accessible detecting low efficiency of the page.
According to an aspect of an embodiment of the present invention, a kind of detection method of page elements is provided, comprising: obtain to be checked
Survey the page at least one can interactive elements, it is described can interactive elements be the page to be detected in support human-computer interaction the page
Element;Described in detection can interactive elements whether meet predetermined detection condition;Output test result.
Further, obtain at least one of the page to be detected can be before interactive elements, the method also includes parsings
The page to be detected obtains the whole page elements of the page to be detected;Extract the attribute letter of the page elements
Breath;Judge whether the attribute information meets predetermined attribute condition;The attribute information is met to the page of predetermined attribute condition
It can interactive elements described in element conduct.
Further, the predetermined detection condition has multiple;Described in the detection can interactive elements whether meet predetermined detection
After condition, the method also includes: according to multiple predetermined detection conditions detections can interactive elements, obtain multiple inspections
Survey result;Summarize the multiple testing result, generates examining report.
Further, described in detection can interactive elements whether to meet predetermined detection condition include at least one of: detection
Described at least one can the numbered sequences of interactive elements whether meet predetermined order;Described in detection can interactive elements specified attribute
Whether value meets predetermined attribute condition.
According to another aspect of an embodiment of the present invention, a kind of detection device of page elements is additionally provided, comprising: obtain single
Member, for obtain the page to be detected at least one can interactive elements, it is described can interactive elements be the page to be detected in prop up
Hold the page elements of human-computer interaction;Detection unit, for detect it is described can interactive elements whether meet predetermined detection condition;Output
Unit is used for output test result.
Further, described device further include: resolution unit, for that can be interacted at least one for obtaining the page to be detected
Before element, the page to be detected is parsed, the whole page elements of the page to be detected are obtained;Extraction unit is used
In the attribute information for extracting the page elements;Judging unit, for judging whether the attribute information meets predetermined attribute item
Part;Determination unit, the page elements for the attribute information to be met to predetermined attribute condition can interactive elements as described in.
Further, the predetermined detection condition has multiple;Described device further include: result acquiring unit, for examining
It can be handed over according to multiple predetermined detection conditions detections after whether interactive elements meet predetermined detection condition described in survey
Mutual element obtains multiple testing results;Summarizing module generates examining report for summarizing the multiple testing result.
Further, the detection unit includes at least one of: first detection module, for detecting at least one institute
State can the numbered sequences of interactive elements whether meet predetermined order;Second detection module, for detect it is described can interactive elements
Whether specified attribute value meets predetermined attribute condition.
According to another aspect of the present invention, the embodiment of the invention also provides a kind of storage medium, the storage medium packets
Include the program of storage, wherein equipment where controlling the storage medium in described program operation executes the page described above
The detection method of element.
According to another aspect of the present invention, the embodiment of the invention also provides a kind of processors, and the processor is for transporting
Line program, wherein described program executes the detection method of page elements described above when running.
In embodiments of the present invention, at least the one of the page to be detected is obtained in multiple page elements of the page to be detected
It is a support human-computer interaction can interactive elements, then detect acquisition at least one can interactive elements whether meet predetermined detection item
Part, complete to the page to be detected can interactive elements detection, and output test result, reached to the page can interactive elements inspection
The purpose of survey, so can according to can the testing results of interactive elements determine page Accessibility (accessibility), from
And the technical effect to page accessible detecting is realized, and then the technology for solving the accessible detecting low efficiency of the page is asked
Topic.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the detection method of page elements according to an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of website Accessibility Characteristics Detection tool according to an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of the detection device of page elements according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Firstly, the part noun or term that occur during the embodiment of the present invention is described are suitable for following solution
It releases:
Accessibility characteristic: the accessibility and user friendly of website.
URL: uniform resource locator is one kind of the position and access method to the resource that can be obtained from internet
Succinct expression is the address of standard resource on internet, i.e. a website or the address Internet of a webpage.
Case: the test point detected in webpage.
Selenium: one tool for web application test, Selenium test run directly in browser
In.
According to embodiments of the present invention, a kind of detection method embodiment of page elements is provided, it should be noted that attached
The step of process of figure illustrates can execute in a computer system such as a set of computer executable instructions, though also,
So logical order is shown in flow charts, but in some cases, it can be to be different from shown by sequence execution herein
Or the step of description.
It should be noted that the detection method of page elements provided by the present invention, is mainly used in the page
The detection of Accessibility (accessibility).
The Accessibility (accessibility) of the page, is mainly used in the accessible ancillary service to the page
(AccessibilityService).Accessible ancillary service to webpage, can be according to specific rule or function to the page
Can interactive elements be configured to realize.
For example, can in the page it is multiple can interactive elements setting transfer sequence or the page in commutative element be
It is no to be in designated position, or voice broadcast function etc. can be set in interactive elements in the page.
Therefore, to the Accessibility of the page (accessibility) detection can by the page can interactive elements carry out
Detection is to realize.
Fig. 1 is a kind of flow chart of the detection method of page elements according to an embodiment of the present invention, as shown in Figure 1, the party
Method includes the following steps:
Step S102, obtain the page to be detected at least one can interactive elements, can interactive elements be the page to be detected in
Support the page elements of human-computer interaction;
Step S104, detection can interactive elements whether meet predetermined detection condition;
Step S106, output test result.
Through the above steps, at least one branch of the page to be detected is obtained in multiple page elements of the page to be detected
Hold human-computer interaction can interactive elements, then detect acquisition at least one can interactive elements whether meet predetermined detection condition, it is complete
The pairs of page to be detected can interactive elements detection, and output test result, reached to the page to be detected can interactive elements
The purpose of detection, so can according to can the testing results of interactive elements determine that page Accessibility to be detected (can
Up to property), so that the technical effect to page accessible detecting is realized, and then solve the accessible detecting low efficiency of the page
Technical problem.
In the scheme that step S102 is provided, by being parsed to the page to be detected, the available page to be detected
Then whole page elements extract corresponding to testing conditions (i.e. predetermined detection condition) in these page elements and interact member
Element.
Optionally, can interactive elements can according to testing conditions (i.e. predetermined detection condition) determine, according to predetermined detection item
Part can choose that predetermined detection condition is to be detected in page elements analytically can interactive elements.
For example, then the first predetermined detection condition can be in the case where predetermined detection condition is the first predetermined detection condition
To type-A can interactive elements detect, and then the type-A of the available page to be detected can interactive elements.
It should be noted that above-mentioned selection process can be chosen in the page elements of the page to be detected, can also to
The detection page can be chosen in interactive elements.
In the scheme that step S104 is provided, predetermined detection condition can be determined according to detection project.
For example, need to detect the page to be detected can interactive elements whether there is voice broadcast function in the case where, can
Testing conditions corresponding to the voice broadcast function (i.e. predetermined detection condition) is arranged.
Optionally, predetermined detection condition can be arranged by testing staff, and testing staff can be in preset multiple detection projects
In, the detection project detected is chosen, and then can choose according to the detection project can corresponding to the page to be detected
Interactive elements.
Optionally, predetermined detection condition can be chosen from predetermined detection condition.
It is alternatively possible to transfer detection instruction corresponding to predetermined detection condition from predetermined instruction library, and then according to this
Detection instruction complete to can interactive elements detection.
In the scheme that step S106 is provided, complete to the page to be detected can be after the detection of interactive elements, Ke Yisheng
At testing result, convenient for testing staff according to testing result to the page to be detected can interactive elements be adjusted.
Optionally, include in testing result can interactive elements unique identification, testing staff can be according to can interactive elements
Unique identification determine do not meet predetermined detection condition can interactive elements, realize to it is ineligible can interactive elements repair
Change.
Optionally, in testing result include can interactive elements defective item, for example, can interactive elements do not have language
In the case that sound broadcasts function, can be shown in testing result this can interactive elements voice broadcast function it is abnormal.
Optionally, website (Website) refers on the internet according to certain rule, uses HTML (standard universal mark
An application under note language) etc. tool makings for showing the set of specific content related web page.To the accessibility of website
Detection, can obtain the whole page to be detected of the website, and then again to each to be checked according to website URL (uniform resource locator)
The detection that the page carries out page elements is surveyed, so as to realize the accessible detecting to website.
Optionally, it in the case where carrying out accessible detecting to website, multiple pages to website can carry out simultaneously simultaneously
Row detection, so as to accelerate detection efficiency.
, can be before interactive elements obtaining at least one of the page to be detected as a kind of optional embodiment, method is also
Include: the parsing page to be detected, obtains whole page elements of the page to be detected;Extract the attribute information of page elements;Judgement
Whether attribute information meets predetermined attribute condition;Attribute information is met into the page elements of predetermined attribute condition as can interact member
Element.
Using the above embodiment of the present invention, the page to be detected can be parsed, obtain whole pages of the page to be detected
Surface element, then the attribute information of page elements is successively extracted, whether predetermined attribute item can be met according to the attribute information of extraction
Part come determine the page elements whether belong to can interactive elements, then attribute information can be met to the page of predetermined attribute condition
Element is used as can interactive elements.
Optionally, predetermined attribute condition can be determined according to project to be detected, for example, for having the function of to switch webpage
Can interactive elements, can be the page elements with link by predetermined attribute condition setting, and then can be in whole pages member
Page elements in element in selection attribute information including link are used as can interactive elements.
As a kind of optional embodiment, predetermined detection condition has multiple;Detection can interactive elements whether meet it is predetermined
After testing conditions, method further include: according to multiple predetermined detection conditions detection can interactive elements, obtain multiple testing results;
Summarize multiple testing results, generates examining report.
Using the above embodiment of the present invention, during carrying out accessible detecting to the page, the page can be carried out multinomial
Accessible detecting, that is, multiple predetermined detection conditions can be set, then respectively using multiple predetermined detection conditions respectively to the page
Can interactive elements detected, obtain multiple testing results corresponding to multiple predetermined detection conditions, and multiple detections are tied
Fruit is summarized, and examining report is produced.
As a kind of optional embodiment, member can be interacted to the type-A of the page by the first predetermined detection condition
Element is detected, and the first testing result is obtained;Can by the second predetermined detection condition to the B type of the page can interactive elements
It is detected, obtains the second testing result, and then summarize the first testing result and the second testing result, the inspection of the page can be generated
Observe and predict announcement.
Optionally, multiple predetermined detection conditions, can simultaneously to the page can interactive elements carry out parallel detection.
As a kind of optional embodiment, detection can interactive elements whether meet predetermined detection condition include it is following at least it
One: detect at least one can the numbered sequences of interactive elements whether meet predetermined order;Detection can interactive elements specified attribute
Whether value meets predetermined attribute condition.
Using the above embodiment of the present invention, detection can interactive elements whether meet predetermined detection condition may include detection page
At least one of face can putting in order for interactive elements detected, can also to can the specified attribute values of interactive elements examine
It surveys.
It should be noted that detection can interactive elements whether to meet predetermined detection condition include but is not limited to above-mentioned detector bar
The particular content of part, detection can be extended according to actual use demand setting, testing conditions according to detection demand.
It is alternatively possible to according to the page to be detected browsing sequence obtain it is multiple can interactive elements label, and then determine
It is multiple can the sequence of label composed by interactive elements, then determine the page to be detected can the numbered sequences of interactive elements whether meet
Predetermined order, so that it is determined that whether the page to be detected meets predetermined detection condition.
Optionally, can interactive elements numbered sequence can indicate can interactive elements transfer sequence, by judgement can hand over
The numbered sequence of mutual element come determine this can the transfer sequences of interactive elements whether meet predetermined detection condition.
It is alternatively possible to according in the page to be detected, can interactive elements specified attribute value, then member can be interacted by judgement
Whether the specified attribute value of element meets predetermined attribute condition to determine whether the page to be detected meets predetermined detection condition.
Optionally, need to detect the page to be detected can interactive elements whether there is voice broadcast function in the case where,
Can detecte can the specified attribute values for being used to indicate voice broadcast function of interactive elements whether meet predetermined attribute condition, thus
Can determine this can interactive elements whether meet predetermined detection condition.
The present invention also provides a kind of preferred embodiment, the preferred embodiment provides a kind of website Accessibility
Characteristics Detection tool.
Testing tool provided by the present invention obtains web site url (URL), then voluntarily selects to need by tester again
The test point Case of test.
Fig. 2 is a kind of schematic diagram of website Accessibility Characteristics Detection tool according to an embodiment of the present invention, is such as schemed
Shown in 2,
Detection instrument provided by the present invention can parse the web page contents using Selenium technology according to URL and obtain
All page elements, then page elements (can interactive elements) are tested according to selected test point Case, most
The result tested at last is stored in database, and issues test report.
Detection instrument provided by the present invention, detection logic are embodied in inside test point Case, it is only necessary to be write corresponding
Test point Case, which tests logic, then can carry out diversity test to website.
Detection instrument provided by the present invention, by test point Case can to website to be detected can interactive elements Tab
Function order and can interactive elements phonetic function detected.
It should be noted that can interactive elements can be in the page to be detected support human-computer interaction page elements.
Optionally, can interactive elements Tab order detection function detection, comprising: to the page can interactive elements transfer sequence
It is detected.
Optionally, can interactive elements Tab refer to accession page can interactive elements when, continuously by tab key can be successively
The cursor that the page selects can be switched to specified page member by pressing the tab key of predetermined number of times by the page elements of switching
On element.In order to realize the function, then needing the tab of page elements to number has good order.If tab times of page elements
Sequence is mixed and disorderly, will lead and cause the reading of vision disorder personage inconvenient, can not understand web page contents, can not also determine the page of selection
Element.The testing principle is: whether the actual order for detecting page elements is consistent with Tab order.
Optionally, interactive elements phonetic function refers to: in the case where opening reading screen switch, when focus is moved on webpage
One can interactive elements when, the element relevant information can be quoted with voice, and (such as focus then can when being moved on open button
Quote the voice of similar " button is opened "), so that vision disorder personage be facilitated to read and operate webpage.When the certain letters of the element
When breath missing, screen reader can not provide complete information to help strength impedient people to determine operation.The testing principle is: inspection
Survey whether page elements contain legal attribute-readable value (such as text, type, Alt etc.).
Testing tool provided by the present invention can use computer resource to detect the Accessibility of website spy
Property, there is big advantage in terms of efficiency, and the present invention supports distributed deployment, so being suitable for the net of webpage enormous amount
It stands.
Testing tool provided by the present invention can make to test to avoid the human negligence and fault that artificial detection occurs
As a result complete and accurate.
Testing tool provided by the present invention, support test point Case hold extension, can at any time according to different standards into
Row addition and modification test Case.
Testing tool provided by the present invention, the result of test also supports the presentation and statistics of different modes, highly beneficial
In the standardization of web site contents and the raising of quality, keep website more humane and more Experience Degree.
Testing tool provided by the present invention can be used computer resource analyzing web page and go to detect according to page elements
Whether website meets Accessibility characteristic standard.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, storage medium includes the program of storage,
Wherein, the detection method of the page elements of any of the above-described is executed when program is run.
According to still another embodiment of the invention, a kind of processor is additionally provided, processor is for running program, wherein
The detection method of the page elements of any of the above-described is executed when program is run.
According to embodiments of the present invention, a kind of detection device embodiment of page elements is additionally provided, it should be noted that should
The detection device of page elements can be used for executing the detection method of the page elements in the embodiment of the present invention, the embodiment of the present invention
In the detection methods of page elements can be executed in the detection device of the page elements.
Fig. 3 is a kind of schematic diagram of the detection device of page elements according to an embodiment of the present invention, as shown in figure 3, the dress
Setting may include: acquiring unit 31, for obtain the page to be detected at least one can interactive elements, can interactive elements be it is to be checked
It surveys in the page and supports the page elements of human-computer interaction;Detection unit 33, for detect can interactive elements whether meet predetermined detection
Condition;Output unit 35 is used for output test result.
It should be noted that the acquiring unit 31 in the embodiment can be used for executing the step in the embodiment of the present application
S102, the detection unit 33 in the embodiment can be used for executing the step S104 in the embodiment of the present application, in the embodiment
Output unit 35 can be used for executing the step S106 in the embodiment of the present application.Above-mentioned module is shown with what corresponding step was realized
Example is identical with application scenarios, but is not limited to the above embodiments disclosure of that.
In embodiments of the present invention, at least the one of the page to be detected is obtained in multiple page elements of the page to be detected
It is a support human-computer interaction can interactive elements, then detect acquisition at least one can interactive elements whether meet predetermined detection item
Part, complete to the page to be detected can interactive elements detection, and output test result, reached to the page can interactive elements inspection
The purpose of survey, so can according to can the testing results of interactive elements determine page Accessibility (accessibility), from
And the technical effect to page accessible detecting is realized, and then the technology for solving the accessible detecting low efficiency of the page is asked
Topic.
As a kind of optional embodiment, device further include: resolution unit, for obtaining at least the one of the page to be detected
It is a to parse the page to be detected, obtain whole page elements of the page to be detected before interactive elements;Extraction unit, for mentioning
Take the attribute information of page elements;Judging unit, for judging whether attribute information meets predetermined attribute condition;Determination unit,
For attribute information to be met to the page elements of predetermined attribute condition as can interactive elements.As a kind of optional embodiment,
Detection unit includes but is not limited at least one of: first detection module, for detect at least one can interactive elements volume
Whether number sequence meets predetermined order;Second detection module, for detect can interactive elements specified attribute value whether meet it is pre-
Determine attribute conditions.
As a kind of optional embodiment, predetermined detection condition has multiple;Device further include: result acquiring unit is used for
Detection can after whether interactive elements meet predetermined detection condition, according to the detection of multiple predetermined detection conditions can interactive elements,
Obtain multiple testing results;Summarizing module generates examining report for summarizing multiple testing results.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of detection method of page elements characterized by comprising
Obtain the page to be detected at least one can interactive elements, it is described can interactive elements be the page to be detected in backer
The page elements of machine interaction;
Described in detection can interactive elements whether meet predetermined detection condition;
Output test result.
2. the method according to claim 1, wherein at least one in the acquisition page to be detected can interactive elements
Before, the method also includes:
The page to be detected is parsed, the whole page elements of the page to be detected are obtained;
Extract the attribute information of the page elements;
Judge whether the attribute information meets predetermined attribute condition;
It can interactive elements as described in using the page elements that the attribute information meets predetermined attribute condition.
3. the method according to claim 1, wherein the predetermined detection condition have it is multiple;It can described in the detection
After whether interactive elements meet predetermined detection condition, the method also includes:
According to multiple predetermined detection conditions detections can interactive elements, obtain multiple testing results;
Summarize the multiple testing result, generates examining report.
4. the method according to claim 1, wherein detection described in can interactive elements whether meet predetermined detection item
Part includes at least one of:
Detect described at least one can the numbered sequences of interactive elements whether meet predetermined order;
Described in detection can the specified attribute values of interactive elements whether meet predetermined attribute condition.
5. a kind of detection device of page elements characterized by comprising
Acquiring unit, for obtain the page to be detected at least one can interactive elements, it is described can interactive elements be it is described to be checked
It surveys in the page and supports the page elements of human-computer interaction;
Detection unit, for detect it is described can interactive elements whether meet predetermined detection condition;
Output unit is used for output test result.
6. device according to claim 5, which is characterized in that described device further include:
Resolution unit, at least one for obtaining the page to be detected the page to be detected can be parsed before interactive elements,
Obtain at least one described page elements of the page to be detected;
Extraction unit, for extracting the attribute information of the page elements;
Judging unit, for judging whether the attribute information meets predetermined attribute condition;
Determination unit, the page elements for the attribute information to be met to predetermined attribute condition can interactive elements as described in.
7. device according to claim 5, which is characterized in that the predetermined detection condition has multiple;Described device is also wrapped
It includes:
As a result acquiring unit, for can be after whether interactive elements meet predetermined detection condition, according to multiple institutes described in the detection
State predetermined detection condition detection described in can interactive elements, obtain multiple testing results;
Summarizing module generates examining report for summarizing the multiple testing result.
8. device according to claim 5, which is characterized in that the detection unit includes at least one of:
First detection module, for detect described at least one can the numbered sequences of interactive elements whether meet predetermined order;
Second detection module, for detect it is described can the specified attribute values of interactive elements whether meet predetermined attribute condition.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein when described program is run
The detection method of page elements described in any one of perform claim requirement 1 to 4.
10. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run
Benefit require any one of 1 to 4 described in page elements detection method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810241648.6A CN110297751A (en) | 2018-03-22 | 2018-03-22 | Detection method, device, storage medium and the processor of page elements |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810241648.6A CN110297751A (en) | 2018-03-22 | 2018-03-22 | Detection method, device, storage medium and the processor of page elements |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110297751A true CN110297751A (en) | 2019-10-01 |
Family
ID=68025861
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810241648.6A Pending CN110297751A (en) | 2018-03-22 | 2018-03-22 | Detection method, device, storage medium and the processor of page elements |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110297751A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112559375A (en) * | 2020-12-23 | 2021-03-26 | 深圳迅策科技有限公司 | Method for parallel automatic testing by using multiple different browsers |
WO2024059961A1 (en) * | 2022-09-19 | 2024-03-28 | Pricewaterhousecoopers Llp | Automated accessibility assessment tool |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101989303A (en) * | 2010-11-02 | 2011-03-23 | 浙江大学 | Automatic barrier-free network detection method |
CN103218286A (en) * | 2012-01-20 | 2013-07-24 | 阿里巴巴集团控股有限公司 | Method and system for detecting accessibility of webpage |
CN103279548A (en) * | 2013-06-06 | 2013-09-04 | 浙江大学 | Method for performing barrier-free detection on websites |
WO2015120787A1 (en) * | 2014-02-11 | 2015-08-20 | Tencent Technology (Shenzhen) Company Limited | Webpage detection method and apparatus |
CN106708502A (en) * | 2016-11-10 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Webpage processing method and device |
CN107544903A (en) * | 2017-08-04 | 2018-01-05 | 东软集团股份有限公司 | Page specification detection method, device and computer equipment |
-
2018
- 2018-03-22 CN CN201810241648.6A patent/CN110297751A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101989303A (en) * | 2010-11-02 | 2011-03-23 | 浙江大学 | Automatic barrier-free network detection method |
CN103218286A (en) * | 2012-01-20 | 2013-07-24 | 阿里巴巴集团控股有限公司 | Method and system for detecting accessibility of webpage |
CN103279548A (en) * | 2013-06-06 | 2013-09-04 | 浙江大学 | Method for performing barrier-free detection on websites |
WO2015120787A1 (en) * | 2014-02-11 | 2015-08-20 | Tencent Technology (Shenzhen) Company Limited | Webpage detection method and apparatus |
CN106708502A (en) * | 2016-11-10 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Webpage processing method and device |
CN107544903A (en) * | 2017-08-04 | 2018-01-05 | 东软集团股份有限公司 | Page specification detection method, device and computer equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112559375A (en) * | 2020-12-23 | 2021-03-26 | 深圳迅策科技有限公司 | Method for parallel automatic testing by using multiple different browsers |
CN112559375B (en) * | 2020-12-23 | 2024-05-10 | 深圳迅策科技有限公司 | Method for parallel automatic test by using multiple different browsers |
WO2024059961A1 (en) * | 2022-09-19 | 2024-03-28 | Pricewaterhousecoopers Llp | Automated accessibility assessment tool |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110825618B (en) | Method and related device for generating test case | |
US8335845B2 (en) | Web application management method and web system | |
CN107957872A (en) | A kind of full web site source code acquisition methods and illegal website detection method, system | |
CN110309049A (en) | Web page contents monitor method, device, computer equipment and storage medium | |
CN109446075A (en) | Interface testing method and device | |
CN103544257B (en) | Method and device for webpage quality detection | |
KR101950208B1 (en) | Method and device for assessing web accessibility and openness | |
CN110472203A (en) | A kind of duplicate checking detection method, device, equipment and the storage medium of article | |
CN110401580A (en) | Webpage status monitoring method and relevant device based on heartbeat mechanism | |
CN105117340B (en) | URL detection methods and device for iOS browser application quality evaluations | |
CN110297751A (en) | Detection method, device, storage medium and the processor of page elements | |
CN103955425B (en) | Webpage (WEB) exploring testing device and method | |
CN112615873A (en) | Internet of things equipment safety detection method, equipment, storage medium and device | |
CN108268362A (en) | A kind of method and device that curve graph is drawn under NVcaffe frames | |
CN107832221A (en) | Platform semi-automation function test method, apparatus and system based on Burpsuit plug-in units | |
CN110908892A (en) | Interface data testing method and device and readable storage medium | |
JP6526890B1 (en) | Evaluation system | |
CN108614849A (en) | A kind of web advertisement detection method based on dynamic pitching pile and static more script page feature extractions | |
CN110515829A (en) | Application testing method, device, equipment and computer readable storage medium | |
CN110232019A (en) | Page test method and Related product | |
Rukshan et al. | Automated usability testing: Analysing asia web sites | |
CN106126538A (en) | The transformation processing method of the page and device | |
CN110147477B (en) | Data resource modeling extraction method, device and equipment of Web system | |
JP2011070541A (en) | Method and device for supporting internet marketing | |
JP4726683B2 (en) | EXPERIENCE INFORMATION EXTRACTION METHOD AND DEVICE, PROGRAM, AND COMPUTER-READABLE RECORDING MEDIUM |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191001 |