Recover the result of renderResults

10 views
Skip to first unread message

merahi majda

unread,
Apr 9, 2014, 10:57:39 AM4/9/14
to casp...@googlegroups.com
Hello,

I would like to retrieve the result of this.test.renderResults (true) in a variable to get the result as follows:

Exemple:PASS 13 tests executed in 8.255s, 11 passed, 2 failed.

Here is the code I tried:

casper.run(function() {
      casper.echo(this.test.suiteResults.countFailed());
                      });

here is the error I have:
TypeError: 'undefined' is not an object (evaluating 'this.test.suiteResults.countFailed')

thanks for helping
Majda

Reply all
Reply to author
Forward
0 new messages