Site Scan

Site scan page processes the web page and it's sub pages and analyzes the failures from the website and provides a detailed report.

Site scan is a Smarty which processes web page and it's sub pages and also analyzes the failures from the website and provides a detailed report.

What can Site Scan do ?

  1. It extracts all the links from the web page and check whether each link is broken or not.

  2. It navigates into each and every page and does the above for every link extracted

  3. It checks for the spelling mistakes in the whole web page.

  4. It checks the W3C Standard for the HTML page and provides inputs to the developer on failures for quick fixes with HTML line numbers.

  5. It provides the console error's of each web page scanned

  6. It provides the list of excluded links which were not starting with the base URL.

Why i have to use Site Scan for my website

  1. Easy to configure and execute a site scan with live reporting feature.

  2. Easy understanding and filtering of the failures, When we are scanning a big / complex website.

  3. Easy way to configure all the features on URL basis. Specific / Custom actions can be easily configured.

  4. Download your report and analyze anywhere.

  5. Rich analytics for the scanned data.

How to initiate site scan ?

Procedure :

  1. Configure your smarty in QATTS.

  2. Use your smarty in functionality.

  3. Prepare your suite with the functionality.

  4. Execute test run with your test suite.

QATTS will take care of scan and we can view and validate the site scan report with analytics. !!!

Now lets dive in deep understanding and doing the procedure.

Configuring the smarty :

What is smarty ?

Smarty is a function which does the beyond automation process. It does all the smart work requested by the user and return backs the simple value.

Step 1

  1. Navigate to Studio -> Add Smarty.

  2. Select the smarty type as "Site Scan".

  3. Configuration Begins !!! We can configure our scan like below

    1. Which page to launch.

    2. What URL's to be considered in the scan.

    3. How to identify and configure your "Image not Available".

    4. Cleaning your content which has some dynamically generated URI's.

Better understanding of configuration

Using Smarty in Functionality :

After configuring our smarty with requirements, Navigate to Functionality

// doSmarty('SMARTY_NAME','LIST_OF_MODES')

Lets understand modes of site scan and when to use

Best Practice's for the Site Scan

Site Scan Report

How to understand and analyze ?

Site scan report provides you 3 types of validations

  1. Time Taken Validation -> It gives us the Maximum time limit of the source and how much it has taken in the current scan.

Status : Slow -> When the request has taken more than the max limit

Result -> Fail

2. Content Checksum validation -> QATTS generate a checksum value for each source content, It also has to be provided in the input site scan.

Status : Changed -> When the generated checksum value is not matched with the input checksum value.

Result: Fail

3. Content Size Validation -> QATTS generate the size for each source, It also has to be provided in the input site scan.

Status : Fail -> When the generated size is not matched with the input size value

Error : When we were not able to get the response from server, ERROR message provided by the server will given in result message column.

Result :

Pass : When all the above validations were passed

Fail : When any one of above validation is failed

Error : When the server was not able to give response. In this case status code will be -1

New : When the scan is run in scanOnly mode, result would be NEW and no validations will happen

AND

When there were new URL's extracted and they were not provided in the input scan.

Missing : When the URL's were provided in the input site scan and they were not extracted during the site scan. (Complete analyzation is required in this case)

Status Code : It is a code provided by the standard HTTP as below

Missing Images : Missing a image is quite common these days, When we were having 100's of web pages in website. QATTS site scan will tell you "YES" when there were some missing images in a HTML page.

How to prepare the site scan INPUT data ?

Pre-Requisite : We have to be ready with our scanOnly report. It has to be analyzed and see there were no error's

Now in the report -> Filter status code (200) Only. Because giving the failure information will give failures again.

Copy base URL, resource URL, Max Limit, Check Sum, Content Size and paste in the input site scan.

Q : My site scan was stable, New pages were added. Do i need to do scanOnly again ?

A : No need, Along with the filter result (NEW) from your report and copy only those to your input.

Q : I want to run W3Checks / Console error / Spelling checks only for specific URL's. Is it possible ?

A : Yes, we can configure that in the input site scan ACTIONS column

Q : How can i maintain my site scan ?

A : Maintaining site scan is very easy, if the new URL's were added add them to input scan. If there were complete content changes, Run the base scan once with saveContent and then prepare your input data , execute.

Q : How can i get the report after site scan

A : Navigate to your test run -> click on download site scan. A .xlsx file will be generated and given along with analytics.

Q : How understand and filter failures in the site scan report

A : User can filter report on multiple basis Filter by status code -> To get the failure count easily

Filter by Result (New) -> To know how many new URL's have been extracted.

Filter by content size -> To see how many source's have changed -> Can send to dev for quick fixes.

Last updated