Skip to content

A runnerty chain demo which checks if a website is online

Notifications You must be signed in to change notification settings

Jhonsensf/runnerty-demo-check-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Runnerty Demo - Check a website

This a Runnerty demo for checking if a website is online.

It checks if http://www.google.com is online every 5 minutes. Everytime the chain is executed it checks if the web is online, if it is not, the procces retry it again in 30 seconds, if the web stills offine the process fails and show an error with throught the @runnerty/notifier-console.

The chain is set to fail intentionally. If you want to change this yo only have to change the "check_contains": "goOogle" property for a correct text

Note that it's possible to use any of the existing notifiers to get feed if the chain fails. Have a look at the documentation here

Usage

Clone the repo

git clone https://github.com/Jhonsensf/runnerty-demo-check-web

Go to the directory

cd runnerty-demo-check-web
npm install

Run Runnerty

runnerty

Force Run

runnerty -f CHECK_MY_WEB_CHAIN

Expected result

We will check if we can find the string "goOogle" at google.com every 5 minutes.

As we will not be able to, what we will do is show an error message throw the console

error: Process CHECK_GOOGLE Host http://www.google.com check_contains "gooogle" test fail.
error: www.google.com is offline!

We are writing the execution output at ./test.log

EXECUTION CHECK_GOOGLE - AT 2018-02-27 20:47:38

About

A runnerty chain demo which checks if a website is online

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published