How to use PhantomJS plugin in Jenkins?
There is no plugin available for PhantomJS than can be integrated with Jenkins.
As far as installing PhantomJS goes, you have to setup the same on the slave/build agent and it is ready to go. If you are ok with using any other CI tool, then you can also look for TravisCI (http://docs.travis-ci.com/user/gui-and-headless-browsers/). It has built-in support for PhantomJS.
These links might also help you start with the process:
How can I setup & run PhantomJS on Ubuntu?
https://code.google.com/p/phantomjs/wiki/BuildInstructions
http://attester.ariatemplates.com/usage/phantom.html
Once you're done setting up PhantomJS, you can check this video link which talks about Speed Up Your Selenium Tests with PhantomJS: https://www.youtube.com/watch?v=wqxkKIC2HDY
privotester
Updated on June 25, 2022Comments
-
privotester almost 2 years
I am a newbie on testing web apps. I am trying to do a headless regression testing with Selenium and Jenkins with help of PhantomJS but i am having problem in setting up this process.
Please provide me a solution. If there is already a discussion on this topic, please help me with the link.
-
privotester over 9 yearsThis is my scenario: 1. Jenkins already installed on my PC(windows 7) 2. selenium test cases are built and checked already on ff browser. 3. but now its required to do headless testing through jenkins. 4. for that to run my selenium test cases, i need a tool to be integrated in jenkins. 5. if its not phantomJS, which tool i can use to get this whole process done?
-
Technext over 9 yearsWhy are you looking for an alternative when PhantomJS is available for Windows? You should try downloading PhantomJS and see how it goes.
http://phantomjs.org/download.html
-
Technext over 9 yearsCheck the video link in my answer too once you've setup PhantomJS.
-
privotester over 9 yearsI have downloaded it already and the examples are working fine when i execute from command line. my problem is that i am not able to make it work in integration with jenkins, 1.i schedule tests in jenkins 2.the tests should run with help of phantomjs
-
privotester over 9 yearsThank you. will do some more research and post the solution here soon.
-
Technext over 9 yearsI have never used Selenium with Jenkins but this link should help you:
http://www.appneta.com/blog/automated-testing-java/
-
privotester over 9 yearsThank you sir, but I tried this before asking question here
-
user3920295 almost 7 yearshere is the answer to this. In your jenkins job, run the selenium server locally - java -jar selenium-server-standalone-2.46.0.jar & >> /dev/null (run the selenium server in the background and direct output to null). Now invoke your phantomjs scripts, the same way you do in your local