Disclosure of Invention
The invention aims to overcome the defects of the prior art, provides a website information barrier-free detection tool, has the advantages of intelligent detection, automatic detection, increment support, pause continuous detection, intelligent sampling and easy analysis, can display detection results in a classification manner according to perceptibility, operability, understandability, compatibility and the like in standards, can count according to standard grades and the like, can generate reports to export compliance detection software which can support multiple standards of the country, the industry and the like, and has complete, rigorous, rapid and accurate detection flow.
In order to achieve the above object, the present invention provides a website information barrier-free detection tool: the method comprises the following steps: crawler design, structural design, interface design, module design and data structure design;
[ Reptile design ] includes:
s1: initiating a request to a server: initiating a Request to a target site through an HTTP library, namely sending a Request, wherein the Request can contain additional headers information and waits for the response of a server;
s2: acquiring response content: if the server normally responds, a Response is obtained, the content of the Response is the content of the page to be obtained, and the types of the content of the Response comprise HTML, JSON and binary files (such as pictures and videos);
s3: analyzing the content: the content obtained is as follows:
the first one is HTML, which is analyzed by a regular expression and a webpage analysis library;
the second is JSON, which is directly converted into JOSN object for analysis;
the third is binary data, which is stored or further processed;
s4: and (4) saving the content: the storage form is various, and the storage form comprises a text, a database or a file with a specific format;
[ structural design ] is as follows: the software is developed by adopting CS framework design JAVA language, the user interface adopts SWT development kit, the core module adopts JXBrowse open source chrome browser, and the database adopts Sqlite embedded database;
[ mouthpiece design ] includes: the system comprises a file interface, an interface setting, a viewing setting, a toolbar setting, a control bar setting, a detection window setting, a detection state setting, a detection result setting, a screening setting and a progress state setting;
the file interface includes: storing or loading the detection result, inquiring the website or the source code, and performing single page or summary report and quitting;
the interface setting comprises mode setting, level setting, overtime setting, depth setting and webpage filtering;
mode setting: in-station frame depth retrieval: the method comprises the steps that default starting is carried out, and webpage content and connection can be detected by an inline frame in an automatic identification station during retrieval;
in-station connected depth retrieval: defaulting to an open state, and searching the website through the address of the connected href attribute, which is a main website searching mode;
and (3) intelligent domain name retrieval in the station: when the system is started, the main domain name and the sub domain name are not searched, and the system is in a closed state under the default condition;
level setting: the function is that the user can use the function when detecting and modifying the single standard by dividing the three levels, each level corresponds to the index of the standard response, the index can be set in detail and only one or more indexes can be selected;
and (4) setting timeout: asynchronous load isochronous setting: when the webpage has asynchronously loaded data or codes, the waiting time is not longer than the time, and the next detection stage is continued;
page load timeout setting: the page loading waiting time cannot be accessed within the webpage loading time due to network reasons and website self reasons, and the next webpage is loaded by neglecting the skipped loaded webpage after the time is out;
depth setting: the method is characterized in that the method is a hierarchy of a tree structure from a website homepage, and a general webpage is about 3-4 layers and generally does not exceed 6 layers;
and (3) web page filtering: all files, audio and video of the website are filtered under the default condition, and if a special website or type needs to be set;
the viewing settings comprise detection results, source codes, previews and charts;
tool bar setting: the operation function is indicated by an icon mode to facilitate the operation of a user, and the display interface mainly comprises: saving the detection result, loading the detection result, setting the mode, setting the level, setting the overtime, setting the depth, filtering the webpage, setting the high level, reporting the list, reporting the summary, helping and quitting;
setting a control column: the control column is mainly used for controlling the detection process, and has the main functions of: detecting stop, pause and continue; a detected website input box, a detection start button and a local file are loaded for detection;
setting a detection window: the detection window is composed of four type selection cards which are respectively as follows: detecting a window, detecting a code, a source code and previewing; four interfaces in the menu interface are needed;
setting a detection state: displaying the detected state in the detection process, wherein the display state comprises normal state, overtime state, invalid state and failure state, and the operation comprises the following steps: refreshing, starting refreshing, and displaying all and page numbers;
setting a detection result: the two tabs respectively comprise: test results and graphs; and correspondingly checking a detection result interface, wherein the detection result is formed by: index, detection classification, standard number, grade, detection mode, detection result, position and detection point;
screening and setting: the data in the detection result can be screened by the perception, operability, comprehension, compatibility, machine detection, auxiliary detection, manual detection and all display combinations in the screening column, so that the content desired by the user can be conveniently viewed;
setting the progress state: the method mainly displays the detection depth and the overall progress, the depth is generally divided into 1-10 layers which can be set by self-definition, and the depth is 10 layers at most, and the progress is the number of captured websites and the detection number of detection completion;
[ Modular design ] comprising: the device comprises a verification module, a downloading module, a screening module, an analog module, a detection module, a storage module and an analysis module;
a verification module: accessing the website through the input detection website, and verifying whether the input website can be normally accessed;
a downloading module: after the verification module passes, starting a webpage accessed according to a set level, completely simulating the access of a browser through a JXBrowse plug-in, and downloading a website source code after the browser loads the webpage (including a static webpage code and a dynamic loaded code);
a screening module: filtering the resource path website according to a webpage filtering rule, wherein the file downloading is not related to the default filtering for improving the efficiency and speed in the information barrier-free detection standard;
a simulation module: simulating operation is carried out on the keyboard operation part of the webpage through simulation operation, whether barrier-free standards are met or not is detected, whether focus of the keyboard is sunk and link access can be normally accessed or not can be detected, and whether problems related to operability exist in barrier-free information of all webpages accessed through the keyboard or not are detected;
a detection module: detecting the problems of code attribute relevance and the like one by one according to various indexes of a line standard or a national standard;
a storage module: the detection result is stored in a database through four aspects of perceptibility, operability, intelligibility and compatibility and three detection modes of machine detection, manual detection and auxiliary detection;
an analysis module: analyzing the detection result in the database, summarizing the detection condition of the whole website, and exporting a report and a chart;
[ data structure design ] includes: a detection standard information database, a detection information database and a derivation summary table;
the detection standard information database comprises a standard information table and a standard description table, and the detection information database comprises a detection summary table, a detection information table, a detection source code storage table and a detection link storage table;
standard information table: the method mainly stores standard content information for displaying corresponding standard information when detecting problems, and creates a statement: CREATE TABLE esd _ info _ Standard (ID UNIQUE NOT NULL, DESCRIPTION NOT NULL, LVL VARCHAR, PROP, STANDARD _ CODE, IS _ CHECKED VARCHAR DEFAULT (1), STANDARD _ NAME VARCHAR);
table of standard description: for displaying standard descriptions or technical descriptions;
creating a statement: CREATE TABLE "esd _ info _ accesssibi l ity" ([ ID ] UNIQUE NOT NULL, [ DESCRIPTION ] NOT NULL);
detection summary table: storing the detected summary information; creating a statement
CREATE TABLE esd_check_count(ID INTEGER PRIMARY KEY AUTOINCREMENT,SITE,STATE,FIRST,SECOND,THIRD,MACHINERYCOUNT,URL UNIQUE,LVL,DEPTH,TIME,DOWNLOADTIME,CHECKTIME);
Detection information table: storing various information in the detection process; creating a statement:
CREATE TABLE esd_check_information(SITE COLLATE RTRIM,URL COLLATE
RTRIM,PROP COLLATE RTRIM,TYPE,LVL,ID,ANCHOR,UNIQUE_ID VARCHAR,ELEMENT_INDEX INT DEFAULT(0));
CREATE INDEX I_queryLvlCount ON esd_check_information(URL COLLATE
RTRIM ASC,SITE COLLATE RTRIM ASC,LVL COLLATE BINARY ASC);
CREATE INDEX I_queryTypeCount ON esd_check_information(URL COLLATE
RTRIM ASC,TYPE COLLATE BINARY ASC,SITE COLLATE RTRIM ASC);
CREATE INDEX TYPE_SITE_INDEX
on esd_check_information(TYPE,SITE);
CREATE INDEX ID_INDEX
on esd_check_information(ID);
detecting a source code storage table: source code for storing a web page; creating a statement: CREATE TABLE esd _ HTML _ source (SITE COLLATE BINARY, URL COLLATEBINARY, HTML, CHARST, ORIGIN _ LINK); CREATE INDEX QUERyhtml ON esd _ html _ source (SITE COLLATE BINARY ASC, URLCOLLATE BINARY ASC);
detecting a linked memory table: for storing the link address of the crawling website, creating a statement:
CREATE TABLE esd_url(id INTEGER PRIMARY KEY AUTOINCREMENT,url
VARCHAR(256)UNIQUE,parent_url VARCHAR(256),depth INT,checkStatusVARCHAR DEFAULT(0));
and (4) exporting a summary table: when the report is exported, temporarily summarizing the report esd _ printAllreports _ key, and exporting the statement: CREATE TABLESd _ printReports _ key (id VARCHAR PRIMARY KEY, "key" VARCHAR, path VARCHAR).
The Response includes:
the request mode comprises the following steps: mainly comprises GET and POST, and additionally comprises HEAD, PUT, DELETE and OPTIONS;
request URL: the URL full name is a uniform resource locator, and a webpage document, a picture, a video and the like can be uniquely determined by the URL;
a request head: including header information when requested, such as User-Agent, Host, Cookies information;
a request body: and additionally carrying data when the form is requested, such as form data when the form is submitted.
The Response includes:
response state: there are multiple response states, 200 for success, 301 for jump, 404 for no page found, 502 for server error;
a response head: content type, content length, server information, and cookies;
a responder: including the content of the requested resource, such as web page HTML, picture binary data.
The page content includes web page text, picture files, videos, and other files.
The analysis method comprises the following steps: direct processing, Json parsing, regular expressions, Beautiful Soup, Pyquery, and XPath.
The content saving comprises the following steps: text, relational databases, non-relational databases, and binary files.
Compared with the prior art, the invention has the advantages of intelligent detection, automatic detection, increment support and measurement continuation suspension. The intelligent sampling is easy to analyze, and detection results can be classified and displayed according to perceptibility, operability, understandability, compatibility and the like in the standard, and are counted according to standard levels. The detection result can generate a report and export compliance detection software which can support multiple standards of the country, the industry and the like, and the detection process is complete, rigorous, rapid and accurate.
Detailed Description
The invention will now be further described with reference to the accompanying drawings.
Referring to fig. 1-7, the present invention provides a website information barrier-free detection tool:
the method comprises the following steps: crawler design, structural design, interface design, module design and data structure design;
[ Reptile design ] includes:
s1: initiating a request to a server: initiating a Request to a target site through an HTTP library, namely sending a Request, wherein the Request can contain additional headers information and waits for the response of a server;
s2: acquiring response content: if the server normally responds, a Response is obtained, the content of the Response is the content of the page to be obtained, and the types of the content of the Response comprise HTML, JSON and binary files (such as pictures and videos);
s3: analyzing the content: the content obtained is as follows:
the first one is HTML, which is analyzed by a regular expression and a webpage analysis library;
the second is JSON, which is directly converted into JOSN object for analysis;
the third is binary data, which is stored or further processed;
s4: and (4) saving the content: the storage form is various, and the storage form comprises a text, a database or a file with a specific format;
[ structural design ] is as follows: the software is developed by adopting CS framework design JAVA language, the user interface adopts SWT development kit, the core module adopts JXBrowse open source chrome browser, and the database adopts Sqlite embedded database.
[ mouthpiece design ] includes: the system comprises a file interface, an interface setting, a viewing setting, a toolbar setting, a control bar setting, a detection window setting, a detection state setting, a detection result setting, a screening setting and a progress state setting;
the file interface includes: storing or loading the detection result, inquiring the website or the source code, and performing single page or summary report and quitting;
the interface setting comprises mode setting, level setting, overtime setting, depth setting and webpage filtering;
the mode setting is as follows: in-station frame depth retrieval: the method comprises the steps that default starting is carried out, and webpage content and connection can be detected by an inline frame in an automatic identification station during retrieval;
in-station connected depth retrieval: defaulting to an open state, and searching the website through the address of the connected href attribute, which is a main website searching mode;
and (3) intelligent domain name retrieval in the station: when the system is started, the main domain name and the sub domain name are not searched, and the system is in a closed state under the default condition;
level setting: the function is that the user can use the function when detecting and modifying the single standard by dividing the three levels, each level corresponds to the index of the standard response, the index can be set in detail and only one or more indexes can be selected;
and (4) setting timeout: asynchronous load isochronous setting: when the webpage has asynchronously loaded data or codes, the waiting time is not longer than the time, and the next detection stage is continued;
page load timeout setting: the page loading waiting time cannot be accessed within the webpage loading time due to network reasons and website self reasons, and the next webpage is loaded by neglecting the skipped loaded webpage after the time is out;
depth setting: the method is characterized in that the method is a hierarchy of a tree structure from a website homepage, and a general webpage is about 3-4 layers and generally does not exceed 6 layers;
and (3) web page filtering: all files, audio and video of the website are filtered under the default condition, and if a special website or type needs to be set;
the viewing settings comprise detection results, source codes, previews and charts;
tool bar setting: the operation function is indicated by an icon mode to facilitate the operation of a user, and the display interface mainly comprises: saving the detection result, loading the detection result, setting the mode, setting the level, setting the overtime, setting the depth, filtering the webpage, setting the high level, reporting the list, reporting the summary, helping and quitting;
setting a control column: the control column is mainly used for controlling the detection process, and has the main functions of: detecting stop, pause and continue; a detected website input box, a detection start button and a local file are loaded for detection;
setting a detection window: the detection window is composed of four type selection cards which are respectively as follows: detecting a window, detecting a code, a source code and previewing; four interfaces in the menu interface are needed;
setting a detection state: displaying the detected state in the detection process, wherein the display state comprises normal state, overtime state, invalid state and failure state, and the operation comprises the following steps: refreshing, starting refreshing, and displaying all and page numbers;
setting a detection result: the two tabs respectively comprise: test results and graphs; and correspondingly checking a detection result interface, wherein the detection result is formed by: index, detection classification, standard number, grade, detection mode, detection result, position and detection point;
screening and setting: the data in the detection result can be screened by the perception, operability, comprehension, compatibility, machine detection, auxiliary detection, manual detection and all display combinations in the screening column, so that the content desired by the user can be conveniently viewed;
setting the progress state: the method mainly displays the detection depth and the overall progress, the depth is generally divided into 1-10 layers which can be set by self-definition, and the depth is 10 layers at most, and the progress is the number of captured websites and the detection number of detection completion;
[ Modular design ] comprising: the device comprises a verification module, a downloading module, a screening module, an analog module, a detection module, a storage module and an analysis module;
a verification module: accessing the website through the input detection website, and verifying whether the input website can be normally accessed;
a downloading module: after the verification module passes, starting a webpage accessed according to a set level, completely simulating the access of a browser through a JXBrowse plug-in, and downloading a website source code after the browser loads the webpage (including a static webpage code and a dynamic loaded code);
a screening module: filtering the resource path website according to a webpage filtering rule, wherein the file downloading is not related to the default filtering for improving the efficiency and speed in the information barrier-free detection standard;
a simulation module: simulating operation is carried out on the keyboard operation part of the webpage through simulation operation, whether barrier-free standards are met or not is detected, whether focus of the keyboard is sunk and link access can be normally accessed or not can be detected, and whether problems related to operability exist in barrier-free information of all webpages accessed through the keyboard or not are detected;
a detection module: detecting the problems of code attribute relevance and the like one by one according to various indexes of a line standard or a national standard;
a storage module: the detection result is stored in a database through four aspects of perceptibility, operability, intelligibility and compatibility and three detection modes of machine detection, manual detection and auxiliary detection;
an analysis module: analyzing the detection result in the database, summarizing the detection condition of the whole website, and exporting a report and a chart;
[ data structure design ] includes: a detection standard information database, a detection information database and a derivation summary table;
the detection standard information database comprises a standard information table and a standard description table, and the detection information database comprises a detection summary table, a detection information table, a detection source code storage table and a detection link storage table;
standard information table: the method mainly stores standard content information for displaying corresponding standard information when detecting problems, and creates a statement: CREATE TABLE esd _ info _ Standard (ID UNIQUE NOT NULL, DESCRIPTION NOT NULL, LVL VARCHAR, PROP, STANDARD _ CODE, IS _ CHECKED VARCHAR DEFAULT (1), STANDARD _ NAME VARCHAR);
table of standard description: for displaying standard descriptions or technical descriptions;
creating a statement: CREATE TABLE "esd _ info _ accesssibi l ity" ([ ID ] UNIQUE NOT NULL, [ DESCRIPTION ] NOT NULL);
detection summary table: storing the detected summary information; creating a statement
CREATE TABLE esd_check_count(ID INTEGER PRIMARY KEY AUTOINCREMENT,SITE,STATE,FIRST,SECOND,THIRD,MACHINERYCOUNT,URL UNIQUE,LVL,DEPTH,TIME,DOWNLOADTIME,CHECKTIME);
Detection information table: storing various information in the detection process; creating a statement:
CREATE TABLE esd_check_information(SITE COLLATE RTRIM,URL COLLATE
RTRIM,PROP COLLATE RTRIM,TYPE,LVL,ID,ANCHOR,UNIQUE_ID VARCHAR,ELEMENT_INDEX INT DEFAULT(0));
CREATE INDEX I_queryLvlCount ON esd_check_information(URL COLLATE
RTRIM ASC,SITE COLLATE RTRIM ASC,LVL COLLATE BINARY ASC);
CREATE INDEX I_queryTypeCount ON esd_check_information(URL COLLATE
RTRIM ASC,TYPE COLLATE BINARY ASC,SITE COLLATE RTRIM ASC);
CREATE INDEX TYPE_SITE_INDEX
on esd_check_information(TYPE,SITE);
CREATE INDEX ID_INDEX
on esd_check_information(ID);
detecting a source code storage table: source code for storing a web page; creating a statement: CREATE TABLE esd _ HTML _ source (SITE COLLATE BINARY, URL COLLATEBINARY, HTML, CHARST, ORIGIN _ LINK); CREATE INDEX QUERyhtml ON esd _ html _ source (SITE COLLATE BINARY ASC, URLCOLLATE BINARY ASC);
detecting a linked memory table: for storing the link address of the crawling website, creating a statement:
CREATE TABLE esd_url(id INTEGER PRIMARY KEY AUTOINCREMENT,url
VARCHAR(256)UNIQUE,parent_url VARCHAR(256),depth INT,checkStatus
VARCHAR DEFAULT(0));
and (4) exporting a summary table: when the report is exported, temporarily summarizing the report esd _ printAllreports _ key, and exporting the statement: CREATE TABLE esd _ printReports _ key (id VARCHAR PRIMARY KEY, "key" VARCHAR, path VARCHAR).
The Response includes:
the request mode comprises the following steps: mainly comprises GET and POST, and additionally comprises HEAD, PUT, DELETE and OPTIONS;
request URL: the URL full name is a uniform resource locator, and a webpage document, a picture, a video and the like can be uniquely determined by the URL;
a request head: including header information when requested, such as User-Agent, Host, Cookies information;
a request body: and additionally carrying data when the form is requested, such as form data when the form is submitted.
The Response includes:
response state: there are multiple response states, 200 for success, 301 for jump, 404 for no page found, 502 for server error;
a response head: content type, content length, server information, and cookies;
a responder: including the content of the requested resource, such as web page HTML, picture binary data.
The page content includes web page text, picture files, videos, and other files.
The analysis method comprises the following steps: direct processing, Json parsing, regular expressions, Beautiful Soup, Pyquery, and XPath.
The content saving comprises the following steps: text, relational databases, non-relational databases, and binary files.
In the actual use process, the method is operated as follows:
detecting software home pages
And (4) storing a detection result: and saving the detection completion result. The generated file is a file of db.
Loading a detection result: loading the detection result, and setting the file mode of db: and designing a mode for acquiring the website in the webpage and whether to intelligently search the secondary domain name.
In-station frame depth search: the method is mainly used for setting whether to detect the src attribute in the < frame > tag and the < iframe >.
Intra-site chained depth settings: mainly for setting whether to detect the href attribute in the < a > tag.
Searching intelligent domain names in the station: the method is mainly used for detecting whether the website with the second-level domain name is set. Selecting: and (3) not searching a secondary domain name, and not checking: and searching a secondary domain name.
Level setting: the detection software divides the detection points into 4 classes (perceptibility, operability, comprehensibility, compatibility). There are 3 levels (level 1, level 2, level 3) in each class. Here, 4 classes are set for detection, and all detection is done at that level. Meanwhile, whether the standard corresponding to each grade is detected or not can be set.
And (4) setting timeout: setting how long the web page source code is to be downloaded. A timeout is considered if the download is not completed within a set time. Web pages that appear to be overtime in the software are not detected as are web pages that are invalid. But the web page in the time-out state can be changed to the normal state by increasing the time-out time.
Depth setting: the number of layers to be detected is set. To be used in conjunction with the set-up mode.
And (3) web page filtering: adding some has no meaning. Or web addresses that do not want to be detected, such as (. avi. mp3), etc.
Single page report form: reports are generated for a single web page.
Batch reporting: and summarizing reports of all detected web pages.
And (3) helping: and (5) software use instructions. And introduction to software.
And (3) exiting: and exiting the program.
And (3) detecting a control field: may be at the time of detection. Operation control of stop, pause, and continuation is performed.
An address column: the web address or local path to be detected is entered.
A detection button: clicking to start detecting the input website or file.
Loading a local file: clicking on the path may select the local file. After selecting the file to be tested, clicking the "open" program automatically sets the path into the address bar.
The main window mainly comprises (detection window, source code and preview);
and (3) detecting a window: the method is mainly used for displaying the detected webpage. Each row represents a web page with completed detection.
And (4) checking the website: and checking the website information of the current webpage.
All the marks are as follows: and marking the information of all detection points in the webpage in the previewed browser.
And viewing the link source: and viewing the current webpage link source information.
The meaning of each column of the table:
indexing: representing the row number.
And (3) downloading state: the status of the source code includes (normal, timeout, invalid)
A first stage: the total number of the first-level detection results of the current webpage.
And a second stage: the total number of the second-stage detection results of the current webpage.
And a third stage: the total number of the third-level detection results of the current webpage.
And (3) machine detection: and (5) detecting the current webpage machine. If 0, a YES is displayed.
Detecting a website: displaying website information of current webpage
Source code window: click on a record in the detection window (a record represents a web page). And correspondingly displaying the html source code with the processed line number in the source code window.
Previewing: click on a record in the detection window (a record represents a web page). The preview window will display the page of the current web site.
The auxiliary window includes (test results, graph);
and (3) detection and classification query: the method is divided into two parts (a characteristic query area and a detection mode query area).
A characteristic query area: the multi-selection button can be used for screening the detection results according to any combination of the characteristics to be inquired.
A detection mode query area: is a radio button and is screened according to the detection mode. All displays refer to both machine and manual detection, which is equivalent to no screening for detection mode.
And (3) detection results: and displaying the detection information corresponding to the selected webpage. Each row represents information of a detection result corresponding to one detection point. When a left key clicks a certain line, the current element position information is marked in a red frame form in a detection window (preview). When a left key is double-clicked on a certain line, the source code information of the current detected element is displayed in a detection window (source code).
And (4) passing the audit: marking the selected detection point or the corresponding standard, and whether the detection is passed under the current website or webpage.
And (3) whole station: the currently selected criteria, under the entire web site, are marked as passing detection.
Web page: the currently selected criteria, under the current web page, are marked as passing detection.
Detecting points: and under the current webpage, all detection records corresponding to the selected detection points are marked as passing detection.
Single bar: and under the current webpage, marking a detection result corresponding to the currently selected detection point as passing detection.
And (4) viewing description: and checking the standard description corresponding to the current detection point. Test results table all column meanings:
indexing: representing the row number.
And (3) detection and classification: 4 major features in the detection standard.
Standard numbering: and detecting the number of the standard corresponding to the point.
And (3) testing grade: the name and grade of the standard corresponding to the detection point.
The detection mode is as follows: the method is divided into two types of machine detection, auxiliary detection and manual detection.
And (3) machine detection: it is the machine that can completely judge that this detection point is erroneous. Auxiliary detection: the machine detects this detection point. But cannot be completely determined to be erroneous. Human judgment is required.
Manual detection: the machine cannot detect or the machine detection is passed, and manual detection judgment is needed.
And (3) detecting point results: and detecting standard information corresponding to the detection points.
Position: the specific location of the point error location is detected.
Detecting points: current detection point number information
Graph: and displaying the summary of the detection points of the currently selected webpage. The histogram is displayed in 4-attribute categories.
The status bar is divided into 4 areas which are sequentially from left to right (running dynamic, downloading status, depth and detection progress).
And (3) motion state: the dynamic display (initialization, start of download, downloading, completion of download, start of detection, completion of detection) can be used for knowing the running state of the software according to the displayed prompt.
And (3) downloading state: the download status is divided into (normal, timeout, invalid).
Depth: the depth to be detected, the current detected depth, is displayed, (1/10) indicates. To detect 10 layers, layer 1 is currently being detected.
Detecting the progress: indicating the number of web pages to be tested and the number of web pages for which testing is complete. The number of web pages to be detected increases according to the number of layers.
Mode setting: at least one mode is selected to capture the web site. Otherwise only the incoming web page is detected.
Depth setting: the depth (also called the number of layers) is selected according to the requirements. The software can grab the website by layers for detection according to the mode selected by the user in the mode setting. "Page restriction" is set to 0.
And (4) setting timeout: the timeout is preferably 30 seconds for the entire site to detect, and setting too few may result in excessive timeouts and invalid web pages.
The operation is as follows: the homepage address of the website to be detected is input in the website bar. Click the detect button.
Note that: the detection software of the whole station can detect the website in the station and cannot detect the externally linked website. How to distinguish whether the website is the website in the website is judged according to the characteristics of the homepage website input by you, for example: http:// www.163.com, http:// www.hao123.com, then (.163.) (. hao123.) are features. If the "intelligent hyperlink in site detection" is cancelled in the pattern setting for the complete match detection for the input website, the feature is changed to (www.163.com /) where represents arbitrary.
Depth setting: for the single page detection, only the web page of the website input by the user is detected, and the layer number setting is not needed, so that the detection of the page is recommended only by setting the detection depth to be 0. The effect of detecting only the current web page can also be achieved by setting the value in the "page limit" to 1 without limiting the detection depth, but the method is not recommended.
And inputting the homepage address of the website to be detected in the website column, and clicking a detection button.
Local page, file detection:
depth setting: local file depth settings will also work. The depth setting 0 is also detected if only the local file is detected. If a number of layers is provided. The software will operate with the file as the effect of the home page, but there will be no home page feature and the foreign link will be detected, resulting in an endless detection.
The operation is as follows: two methods
The first method comprises the following steps: click the load local file button. Selecting a file to be detected, clicking 'open', seeing the selected file path in the website bar, and then clicking for detection.
And the second method comprises the following steps: directly inputting a file path in a website bar, and clicking for detection;
saving and loading test results
Note that: the load and file and saved file are preferably the same version of software. If the software is not in the same version, errors and other problems can occur.
And (3) storage: and clicking the storage detection result in the toolbar to select the path to be stored.
Loading: and clicking the loading detection result in the toolbar to select the file to be loaded.
Single page detection generated report
Note that: the single page report can be exported when being detected. The displayed web addresses in the detected form can be selected and exported.
And selecting a website to export the report form in the detection window. Clicking on the single page report in the toolbar. The single-page report can be exported.
Generating a summary report form in the whole station
Note that: the summary report is only detected when the software stops detecting or after the detection is finished. Can be summarized. The pause is such that no summary report can be exported.
And clicking the summary report in the toolbar after the detection is finished and clicking the 'determination'. Not only can the summary report be exported.
During the detection process. Clicking the stop button confirms that the summary report in the toolbar is clicked. A summary report may also be derived. The detailed operation is as follows:
and clicking the determining button to store the detection result data in db format.
[ all leads ] of: export summary pages, and individual sub-pages, [ export summary pages ]: only the summary page is exported.
The invention solves the problems of low efficiency and high human error in testing, provides a website information barrier-free detection tool, has the advantages of intelligent detection, automatic detection, increment support, pause continuous detection, intelligent sampling and easy analysis, can display detection results in classification according to the perceptibility, operability, understandability, compatibility and the like in standards, can count according to standard grades and the like, can generate reports to export compliance detection software which can support multiple standards of countries, industries and the like, and has complete, rigorous, rapid and accurate detection flow.
The embodiments of the present invention have been described above, but the scope of the present invention is not limited to the above, and the present invention can be implemented by a user by making various modifications within a range not departing from the gist of the present invention, but the present invention is included in the scope of protection of the present patent.