zombie.js

PHP Mink/Zombie - handling hanging processes after a fatal exception?

泄露秘密 提交于 2019-11-28 12:48:19
问题 I'm using the PHP script with Mink+Zombie driver (install as on nodejs cannot find module 'zombie' with PHP mink) from here: PHP Mink/Zombie - page visit returns status code 0? ; re-posting for completeness: <?php $nodeModPath = "/home/USERNAME/.nvm/versions/node/v4.0.0/lib/node_modules"; # composer autoload: require_once __DIR__ . '/vendor/autoload.php'; $URL = "https://demo.centreon.com/centreon"; $USERNAME = "admin"; $PASSWORD = "centreon"; $LFID = "useralias"; $PFID = "password"; $BFID =

Mocha and ZombieJS

倖福魔咒の 提交于 2019-11-28 04:34:13
I'm starting a nodejs project and would like to do BDD with Mocha and Zombiejs. Unfortunately I'm new to just about every buzzword in that sentence. I can get Mocha and Zombiejs running tests fine, but I can't seem to integrate the two - is it possible to use Mocha to run Zombiejs tests, and if so, how would that look? Just looking for "hello world" to get me started, but a tutorial/example would be even better. Thanks! Assuming you already have installed mocha , zombie and expect.js according to instructions, this should work for you: // Put below in a file in your *test* folder, ie: test

nodejs cannot find module 'zombie' with PHP mink

醉酒当歌 提交于 2019-11-28 02:10:48
I'm trying out Mink (PHP) on Ubuntu 14.04; I basically did the following: $ apt-show-versions nodejs nodejs:amd64/trusty 0.10.45-1nodesource1~trusty1 uptodate $ npm -v 2.15.1 $ sudo npm install -g zombie npm WARN engine zombie@4.2.1: wanted: {"node":"^4.0.0"} (current: {"node":"0.10.45","npm":"2.15.1"}) ... zombie@4.2.1 /usr/lib/node_modules/zombie ├── ms@0.7.1 ├── debug@2.2.0 ... $ ls /usr/lib/node_modules/zombie/node_modules/ babel-runtime bluebird debug eventsource iconv-lite jsdom lodash mime ms request tough-cookie ws So, basically, even if I get a warning, the modules build, and should

Mocha and ZombieJS

▼魔方 西西 提交于 2019-11-27 00:30:11
问题 I'm starting a nodejs project and would like to do BDD with Mocha and Zombiejs. Unfortunately I'm new to just about every buzzword in that sentence. I can get Mocha and Zombiejs running tests fine, but I can't seem to integrate the two - is it possible to use Mocha to run Zombiejs tests, and if so, how would that look? Just looking for "hello world" to get me started, but a tutorial/example would be even better. Thanks! 回答1: Assuming you already have installed mocha, zombie and expect.js

nodejs cannot find module 'zombie' with PHP mink

戏子无情 提交于 2019-11-26 22:10:39
问题 I'm trying out Mink (PHP) on Ubuntu 14.04; I basically did the following: $ apt-show-versions nodejs nodejs:amd64/trusty 0.10.45-1nodesource1~trusty1 uptodate $ npm -v 2.15.1 $ sudo npm install -g zombie npm WARN engine zombie@4.2.1: wanted: {"node":"^4.0.0"} (current: {"node":"0.10.45","npm":"2.15.1"}) ... zombie@4.2.1 /usr/lib/node_modules/zombie ├── ms@0.7.1 ├── debug@2.2.0 ... $ ls /usr/lib/node_modules/zombie/node_modules/ babel-runtime bluebird debug eventsource iconv-lite jsdom lodash