Giter Site home page Giter Site logo

sitemapextension's Introduction

Behat Sitemap Extension

Synopsis

Behat Sitemap Extension provides a way to smoke/sanity test all site pages by getting the URLs from /sitemap.xml and visiting them to see if we get 200 response.

Motivation

  • Provide a simple way to start with behat
  • With minimal effort, sanity check all pages.

Installation

Quick start

Clone this repository and then run:

export BEHAT_PARAMS='{"extensions":{"Behat\\MinkExtension":{"base_url":"http://localhost"}}}'; bin/behat

Note: Replace http://localhost with your site URL.

Run for multiple sites

Add a CSV file of site URLs and tags to run with (Only available tag with this extension is "@smoke") and run:

./script/run-test.sh

Contributors

Feel free to open an issue or pull request to improve, add new features and bug fixes.

License

This project is distributed under the terms of the GNU General Public License version 2

sitemapextension's People

Contributors

vijaycs85 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sitemapextension's Issues

Every URL resolves even if it's a 404

Found an issue that all URLS "success" because a 404 page that has a design technically is still resolving. If you would like to repeat the situation that I came across:

  1. Search for bbc.co.uk as an example
  2. One of the results is a 404

New command: check sitemap exists

Provide a full list of all the sites you want to check in the CSV file but instead of chekcing all the sitemap URL's, it just checks if there are any URL's in the sitemap. If it finds at least 1 then it returns true and if it fails it returns false.

Ability to then export the results as a CSV :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.