# SiteScan

{% file src="<https://1916024011-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVX-yOtIHRnx7UtstUT-320325635%2Fuploads%2FYW1hw7TGsdykw8LfEYyU%2Fsitescan%20template.xlsx?alt=media&token=4e147169-bd9f-417c-aab4-783ce0f211a5>" %}
Site Scan File Template
{% endfile %}

Argument Name: Mode

Multiple options can be given with comma separation.  &#x20;

Example Options: &#x20;

* saveContent -> Saves content of the site to task folder
* scanOnly -> Scans complete websites and extracts information&#x20;
* sample -> Used for dry run. Will extract first 10 pages and its Childs
* sample:50 -> Used for dry run. Customize number of pages in the sample. Will extract first 50 pages and its Childs
* PageValidations -> Validates all the pages with w3 standards
* SpellChecks -> Performs spell check for new & changed pages and will be added to the site scan report
* ConsoleErrors -> Extract console error after each page load and logs in ConsoleError sheet of site scan report

| Prop Name            | Prop Desc                                                     | More Info                                                                                                                                |
| -------------------- | ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| props.page.checks    | Active tag names to checked                                   | Default Options: link:src,link:href,img:src,a:href                                                                                       |
| props.page.element   | Check based on an element. Give UI Element name               | Links to product element. To use this props.page.checks must be set to "**custom**"                                                      |
| baseURL              | URL on which we are performing the scan                       | This must a valid URL. Main URL or can give sub domain                                                                                   |
| cdnURL               | List URLs of CDN                                              | multiple CDN urls can be by comma separation                                                                                             |
| props.page.include   | Only matching URL to be included                              | <p>startsWith:\[phrase in the URL]</p><p>endsWith:\[phrase in the URL]</p><p>regex:\[expression]</p><p>contains:\[phrase in the URL]</p> |
| props.page.exclude   | All matching URL's will be excluded                           | same as include rules. multiple can be given with comma separation                                                                       |
| inputSiteData        | File of approved site scan data                               | <p>Site Scan Excel file format</p><p>File must be in Test Data folder</p>                                                                |
| defaultMissingImages | List of default missing images                                | Multiple image path can be given as comma separated                                                                                      |
| ignoreChildPages     | When true, scan will not check for any child pages            | Default is false                                                                                                                         |
| ignoreSiteMap        | When true, scan checks for skips reading the siteMap xml file | Default is false                                                                                                                         |
| scanCheckType        |                                                               | <p>FirstOccurance</p><p>AllOccurance</p>                                                                                                 |

Compare Site Scan

{% file src="<https://1916024011-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVX-yOtIHRnx7UtstUT-320325635%2Fuploads%2Fyilz7Zjd5Kc661QogsQe%2Fbasescan.xlsx?alt=media&token=6ba79dcd-5559-4009-88ce-19ec571dce7a>" %}
Base Scan Template Excel
{% endfile %}

When performing site scan, it is very important to compare and drive test based on previous result. Run site scan once to extract data from the website. This will be used as reference point hence forth. In addition to extracted site scan data, Compare Site scan data must have extra columns, A**ction** & S**tatus**.&#x20;

Action Values:

* spellcheck&#x20;
* brokenlinks
