Windows: Testing script failure with "the system can not find the path specified" console error.
See original GitHub issueI’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:
- Created 8 years ago
- Comments:16 (5 by maintainers)
Top 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 >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
@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.
Make sure you back up your registry first though 😃
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:
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.