Please note that Sahi's development and support teams do not actively monitor this. This is more a community forum. If you are a Sahi Pro user looking for commercial support, please email support @ sahipro.com with your query.

I get Phantom JS failure when ran with Sahi Pro

petemcleanpetemclean Members
edited March 2015 in Sahi Pro
This is not the same as what I posted previously here a while a go : http://community.sahipro.com/forums/discussion/8059/sahi-pro-with-phantom-js-not-able-to-run-my-own-scripts-headless#latest

I am using a mac with Mavericks (also same issue with Windows 7 and Ubuntu 14.04) and each time I run
I am using Sahi Pro - Sahi Pro V6.0.1 I am using Phantom JS version 1.9.8 (I did phantomjs --version, is this correct ?)

I ran sahi pro, brough up the bin I then ran the example you gave in the documentation here: https://sahipro.com/docs/using-sahi/sahi-headless-execution-with-phantomjs.html

But for my example I recorded a script for one of our sites site, just clicking a few links. (I placed the file into the demo folder for ease of use its called test.sah I then ran this with heads and it passes.
So what I entered was sh testrunner.sh demo/test.sah http://uat.co.uk phantomjs
It then states INFO: phantomjs: FAILURE


The log below:
./setjava.sh: line 2: export: `Plug-Ins/JavaAppletPlugin.plugin/Contents/Home': not a valid identifier
email properties file path: /Users/me/sahi_pro/userdata/bin/email.properties
Mar 03, 2015 10:45:23 AM net.sf.sahi.test.TestRunner <init>
INFO:
suitePath=scripts%2Fdemo%2Ftest.sah
suiteId=sahi_64b4936f05d7c042ba090ad0720f99a92739
test=scripts%2Fdemo%2Ftest.sah
useSingleSession=false
browserPath=null
threads=5
isSendEmailS=false
browserType=phantomjs
emailPasswordHidden=true
logsInfo=html%2Cxml
baseURL=http%3A%2F%2Fuat.co.uk
sendEmail=false
emailProperties=email.properties
port=9999
isSingleSessionS=false
host=localhost
emailTrigger=success%2Cfailure
emailProp=
Mar 03, 2015 10:45:23 AM net.sf.sahi.test.TestRunner execute
INFO: Added shutdown hook.
Mar 03, 2015 10:45:23 AM net.sf.sahi.test.TestRunner execute
INFO: http://localhost:9999/_s_/dyn/Suite_start?a=a&suitePath=scripts/demo/Main_page_checks.sah&suiteId=sahi_64b4936f05d7c042ba090ad0720f99a92739&test=scripts/demo/Main_page_checks.sah&useSingleSession=false&browserPath=null&threads=5&isSendEmailS=false&browserType=phantomjs&emailPasswordHidden=true&logsInfo=html,xml&baseURL=http://pre-uat.co.uk&sendEmail=false&emailProperties=email.properties&port=9999&isSingleSessionS=false&host=localhost&emailTrigger=success,failure&emailProp=&sahisid=sahi_64b4936f05d7c042ba090ad0720f99a92739
Mar 03, 2015 10:48:57 AM net.sf.sahi.test.TestRunner$1 run
INFO: phantomjs: FAILURE
Mar 03, 2015 10:48:57 AM net.sf.sahi.test.ShutDownHook run
INFO: Shutting down ...

In that previous question you answered or one of you did by saying phantom JS doesnt work well with Sahi Pro and that to use an earlier version of it , if I am on version 1.9.8 how would I get Pahtom JS version 1.6.1 onto my mac windows and Ubuntu machines ?
cheers
Pete
Sign In or Register to comment.