Permalink

I have both casperjs and phantomjs in local folders inside my project and still can't run casperjs to test my spring-boot webapp using phantomcss

I am currently using this in a Jenkinsfile:
stage('Test') {
withEnv(['PATH+PHANTOMJS=phantomcss/node_modules/phantomjs/bin/']) {
sh "phantomcss/node_modules/casperjs/bin/casperjs test phantomcss/test/testsuite.js"
}
}

Stage test gives me the error 127: phantomcss/node_modules/casperjs/bin/casperjs.exe: not found

Any help is much appreciated. Thanks.

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.