GithubHelp home page GithubHelp logo

nvdnkpr / resurrectio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ebrehault/resurrectio

0.0 2.0 0.0 494 KB

CasperJS test recorder Chrome extension

License: GNU General Public License v2.0

JavaScript 99.30% CSS 0.70%

resurrectio's Introduction

Resurrectio

Any phantom deserves a resurrection.

Resurrectio is a Chrome extension allowing to record a sequence of browser actions and to produce the corresponding CasperJS script.

Resurrectio uses minimalist and functional-oriented selectors, so recorded sequences stay valid across layout and design changes.

As CasperJS evaluates JavaScript, recorded sequences are not limited to pure HTML interactions, targeted pages JavaScript-supported behaviors will be accurately reproduced.

Resurrectio also provides a way to produce screenshots alongside your test scenario, and can export comments + screenshots in ReStructuredText format in order to generate documentation automatically from the test sequences.

Installation

CasperJS / PhantomJS

Install PhantomJS, be careful CasperJS requires PhantomJS >= 1.8.2.

Install CasperJS version 1.1.

Resurrectio installation

From Chrome store:

Go to Chrome store Resurrectio page and click on the Add button.

OR

From Github sources:

git clone git://github.com/ebrehault/resurrectio.git

It will produce a ./resurrectio folder.

Then, in Chrome:

  • go to Tools / Extensions,
  • expand Developer mode,
  • click Load unpacked extension,
  • select the ./resurrectio folder.

Usage

Click on the Resurrectio extension icon.

Enter the start URL, and click Go.

Then execute your usage scenario, all the events will be recorded.

By right-clicking on the page, you might also record some assertion (about the current url, about existing text, etc.).

You can request a screenshot at any moment (they will be produced everytime you run the resulting test).

You might also record some comments (click again on the extension icon, and click Add comment).

When you are done, click again on the extension icon, and click Stop recording.

Now, generate the CasperJS test script by clicking Export Casper test.

You might run the script directly on CasperBox.com, or you can copy/paste the resulting code into a local file, and run the test:

casperjs test my_scenario.js

It will play your entire scenario and generate the screenshots.

Future features

Implement more mouse events, like drag & drop and mousewheel.

Credits

Author

Companies

makinacom_

Bitdeli badge

resurrectio's People

Contributors

altryne avatar bitdeli-chef avatar ebrehault avatar jpoliva avatar ognian avatar rudyrigot avatar thinkstylestudio avatar

Watchers

 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.