Resurrectio

CasperJS 测试记录器 Chrome 扩展。「CasperJS test recorder Chrome extension」

Github星跟蹤圖

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 <http://casperjs.org/>_
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 <http://code.google.com/p/phantomjs/wiki/Installation>_,
be careful CasperJS requires PhantomJS >= 1.8.2.

Install CasperJS <http://casperjs.org/installation.html>_ version 1.1.

Resurrectio installation

From Chrome store:

Go to Chrome store Resurrectio page <https://chrome.google.com/webstore/detail/resurrectio/kicncbplfjgjlliddogifpohdhkbjogm>_ 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 Start Recording.

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 <http://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|_

  • Makina Corpus blog <http://makina-corpus.com/blog/metier/>_
  • Contact us <mailto:python@makina-corpus.org>_

.. |makinacom| image:: http://depot.makina-corpus.org/public/logo.gif
.. _makinacom: http://www.makina-corpus.com

.. image:: https://d2weczhvl823v0.cloudfront.net/ebrehault/resurrectio/trend.png
:alt: Bitdeli badge
:target: https://bitdeli.com/free

主要指標

概覽
名稱與所有者ebrehault/resurrectio
主編程語言JavaScript
編程語言JavaScript (語言數: 3)
平台
許可證GNU General Public License v2.0
所有者活动
創建於2012-06-01 22:05:42
推送於2017-12-11 08:37:42
最后一次提交2017-12-11 09:37:41
發布數5
最新版本名稱0.5 (發布於 )
第一版名稱0.1 (發布於 )
用户参与
星數721
關注者數45
派生數106
提交數95
已啟用問題?
問題數30
打開的問題數14
拉請求數9
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?