BackstopJS reference error
See original GitHub issueWhen i try run local CasperJS script with BackstopJS I get error:
Command reference
ended with an error after [0.024s]
COMMAND | Error: ‘echo’ is not defined on a target object.
This happend on every method (echo, then, thenOpen, etc.).
module.exports = function(casper, scenario, vp) { casper.echo(“Hello world”); };
Can anyone helps me ?
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
backstopjs - npm
backstop test : BackstopJS creates a set of test screenshots and compares them with your reference screenshots.
Read more >Highest scored 'backstop.js' questions - Stack Overflow
I'm using backstop to test my app, but it fails on random test with message like COMMAND | Command `test` ended with an...
Read more >Testing Your Website for Visual Regressions With BackstopJS
This article explains how to set up BackstopJS visual regression tests and some good practices I've picked up from using it in anger....
Read more >Quickly compare two environments for visual errors - Beech.it
If you have this installed, we can download BackstopJS with NPM. ... As soon as you give this command, Backstop makes screenshots of...
Read more >Automated Visual Regression Testing with BackstopJS
If there's any failure, we could see the errors in command-line window. Modify the backstop.json & rerun the reference command until getting a ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mirec810 Thank you for posting this! I just noticed an error in the sample phantom test. It is pointing to the wrong onBefore and onReady directories. I will post a fix for this.
@mirec810 You are using
chrome
as the browser engine but you are trying to usecasper
in your script.casper
will only work if your browser engine isphantomjs
. You have to usechromy
syntax for thechrome
engine.See here for example https://github.com/garris/BackstopJS/blob/master/test/configs/backstop_data/engine_scripts/chromy/overrideCSS.js