BackstopJS: Windows: Testing script failure with "the system can not find the path specified" console error.

I’m following the steps laid out in https://css-tricks.com/automating-css-regression-testing/

Attempting to run this on a Windows 7 Enterprise SP1 box. Both the reference gulp task (which is generating reference image files) and the test gulp task are throwing Testing script failed with code: 1 and the test page is not launching in the browser.

Here is the output from gulp test

C:\Users\bfisher1\Documents\development\myCoolProject\bower_components\BackstopJS>gulp test

BackstopJS Config loaded at location C:\Users\bfisher1\Documents\development\myCoolProject\backstop.json
[15:27:31] Using gulpfile ~\Documents\development\myCoolProject\bower_components\BackstopJS\gulpfile.js
[15:27:31] Starting 'init'...
[15:27:31] Finished 'init' after 82 μs
[15:27:31] Starting 'test'...

Running CasperJS with:  [ 'capture/genBitmaps.js' ]
The system cannot find the path specified.
The system cannot find the path specified.
[15:27:31] Finished 'test' after 233 ms
Ready event received.
CasperJS: Ready event received.
Current location is ../../index.html
CasperJS: Current location is ../../index.html
Screenshots for phone (320x480)
CasperJS: Screenshots for phone (320x480)
Ready event received.
CasperJS: Ready event received.
Current location is ../../index.html
CasperJS: Current location is ../../index.html
Screenshots for tablet_v (568x1024)
CasperJS: Screenshots for tablet_v (568x1024)
Ready event received.
CasperJS: Ready event received.
Current location is ../../index.html
CasperJS: Current location is ../../index.html
Screenshots for tablet_h (1024x768)
CasperJS: Screenshots for tablet_h (1024x768)
Comparison config file updated.
CasperJS: Comparison config file updated.

Testing script failed with code: 1

Looks like an error occured. You may want to try running `$ gulp echo`. This will echo the requested test URL output to the console. You can check this output to verify that the file requested is indeed being received in the expected format.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

@gerbilsinspace By the way I resolved the path issue in cmd by following the steps in the first answer on http://superuser.com/questions/727316/error-in-command-line-the-system-cannot-find-the-path-specified

Try the following.

  1. Open the Registry Editor(press + R, type regedit and hit Enter) .
  2. Navigate to HKCU\Software\Microsoft\Command Processor\AutoRun and clear the values.
  3. Also check HKLM\Software\Microsoft\Command Processor\AutoRun.

Make sure you back up your registry first though 😃