question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
benjaminfishercommented, Mar 15, 2016

@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 😃

0reactions
christianhallercommented, Nov 8, 2016

I had the same problem. With slimerjs, the reference image was not saved. If you run backstopjs with debug: true, you can see the casperjs error:

Failed to save screenshot to …; please check permissions…

I changed my selector body to the <div> with the id page (luckily I have this on every page). After that, it references for all urls are generated. ps: selector ‘html’ was also failing for some urls.

It’s not happend with phantomjs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

11 Ways to Fix "The System Cannot Find The Path Specified ...
11 Ways to Fix "The System Cannot Find The Path Specified" Error on Windows · 1. Run Command Prompt as an Administrator ·...
Read more >
11 Ways To Fix “The System Cannot Find The Path Specified ...
A Command-line Interface shows the “The system cannot find the path specified” error when it can't find the folder that a code is...
Read more >
What is the reason for the error message "System cannot find ...
Open the Registry Editor (press windows key, type regedit and hit Enter ) . · Navigate to HKEY_CURRENT_USER\Software\Microsoft\Command Processor\ ...
Read more >
8 Useful Ways to Fix "The System Cannot Find the Path ...
The System Cannot Find the Path Specified; Fix 1. Run an Anti-Virus Scan; Fix 2. Verify Path; Fix 3. Recover Folders or Files;...
Read more >
[Solved] The System Can Not Find The Path Specified Error in ...
The above error can occur in three ways, 1. Incorrect directory name. 2. Try to compile the non-existing file using the directory (folder)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found