Code Monkey home page Code Monkey logo

cloaked_probe's Introduction

#Cloaked Probe Automation of nPerf test using CasperJS/PhantomJS

##Version 1.0.0

##Requirements

  • PhantomJS 1.9.1 or greater available as phantomjs command
  • Python 2.6 or greater for casperjs in the bin/ directory
  • CasperJS 1.1.0 or greater

If you don't know how to install them: http://docs.casperjs.org/en/latest/installation.html

If you are using a Raspberry PI, you may compile phantomjs yourself or use a pre-compiled binary such as https://github.com/piksel/phantomjs-raspberrypi

Make sure client has the right date and time for accurate logging.

##How to use

  • Edit settings in cloakedProbe.js
var nPerfUrl = 'https://www.nperf.com/fr/'; // url of nPerf
var username = 'myusername'; // your nPerf account username
var password = 'mypassword'; // your nPerf account password
var maxLoop = 10; // number of tests to perform
var intervalBetweenTest = 3600; // waiting time between each test in sec
var maxPageLoadingDuration = 30; // waiting time of page loading before timeout in sec
var maxTestDuration = 90; // waiting time of test duration before timeout in sec
var verbose = true; // log verbosely
var logLevel = 'debug'; // log level ie. debug, info, warning, error
  • Run command
casperjs cloakedProbe.js >> cloakedProbe.log

##Additional notes ¯_(ツ)_/¯

cloaked_probe's People

Contributors

aquoc avatar

Watchers

James Cloos avatar  avatar

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.