I am using windows. I am trying to use CasperJS test environment.
I am using phantomjs version 1.9.0. I am using casperjs version version 1.0.2.
When i started
casperjs test cow-test.js
The following is returned.
Test file: cow-test.js FAIL TypeError: 'undefined' is not a function (evaluating 'casper.test.begin') # type: uncaughtError # error: "TypeError: 'undefined' is not a function (evaluating 'casper.test.begin')" TypeError: 'undefined' is not a function (evaluating 'casper.test.begin') C:/cow-test.js:16 FAIL 1 tests executed in 0.116s, 0 passed, 1 failed. Details for the 1 failed test: In cow-test.js:0 uncaughtError: TypeError: 'undefined' is not a function (evaluating 'casper.test.begin') var cow = {}; test.assert(cow); test.done(); })')
If I only do
console.log(casper.test);
Coming back
[object Object]
If I only do
console.log(casper.test.begin);
The following is returned.
undefined
What should I do? Should I run "casperjs test cow-test.js" from a specific directory?
Or something else?
Thanks Andre Andre_Mikulec@Hotmail.com
source share