I put casperjs and slimerjs on a folder in my Desktop.
I add these folders in my PATH.
- C:\Users\User1\Desktop\Bins\casperjs
- C:\Users\User1\Desktop\Bins\slimerjs-0.9.0
I set a new user variable SLIMERJSLAUNCHER with this as value:
C:\Users\User1\Desktop\Bins\slimerjs-0.9.0\xulrunner\xulrunner.exe
But when I launch a script like that:
casperjs --engine=slimerjs test.js
I have a message box with:
Error: couldn't parse application.ini
What's wrong with my setup?
I don't know for xulrunner but if you have firefox, just as said in the readme.md -slimerjs package-,
$ casperjs test test.js --engine=slimerjs
(i'm speaking about testing because i use it mainly for that)And you should be able to launch your casperjs files (in slimerjs or phantomjs by specify the engine).
Warning : if you want to execute your whole suite like that : -
casperjs test mainTests/ --pre=pre.js --includes=inc.js --post=post.js --engine=slimerjs --xunit=parsetest.xml
(use inc.js to factorize some useful functions, like login...)You will have an error : "getMozFile : The path is not an absolute path".
So do that : -
casperjs test ./mainTests/ --pre=pre.js --includes=inc.js --post=post.js --engine=slimerjs --xunit=parsetest.xml
(the folder mainTests contains all my tests). It works for me, don't know if it's helpful.
Or you go in your folder with the slimer package and you specify the whole path of your test file/folder -> casperjs test c:/path/to/test.js