Getting started with PhantomJS and Jasmine

47 views
Skip to first unread message

Markus Neifer

unread,
Apr 18, 2017, 9:22:01 AM4/18/17
to phantomjs
Hi all, I'm currently evaluating PhantomJS and Jasmine for headless functional web application testing. I have read the PhantomJS quick start guide, the headless testing guide and have read about the Phantom-Jasmine npm module. However, I still don't know how to test my web application. I have added PhantomJS (2.1.1) to my path and tried the following:

npm init
npm install gulp
npm install gulp-util
npm install gulp-jasmine-browser
npm install phantom-jasmine

But when I try to execute "phantom-jasmine examples/TestRunner.html" on the command line (I'm on Windows 7), the command is not recognized. Is this the correct way to set up PhantomJS and Jasmine? Is there an easier way? Any ideas on what might be wrong?

Thanks in advance.

Markus

Sean McNamara

unread,
Apr 18, 2017, 10:16:02 AM4/18/17
to phan...@googlegroups.com
Are you aware that as of a few days ago PhantomJS is effectively unmaintained? It might get a few patches here and there, but I seriously doubt any continuing support for web standards or major bug fixes will happen unless another maintainer steps up.

The previous maintainer of PhantomJS, Vitaly, mentioned that Chrome Headless is nearly ready, and Firefox is also implementing headless mode in a similar way that should be ready this year. 

Since the major browsers are supporting headless testing using the WebDriver standard, you should really look to write any new code with a Selenium WebDriver based client, like WebdriverIO, Selenide, or pure Selenium out of the box.

I'd recommend you look elsewhere than PhantomJS, since its core developers acknowledged the effective obsolescence of the project.

Sean 

--
You received this message because you are subscribed to the Google Groups "phantomjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phantomjs+...@googlegroups.com.
Visit this group at https://groups.google.com/group/phantomjs.
For more options, visit https://groups.google.com/d/optout.

Markus Neifer

unread,
Apr 19, 2017, 3:13:56 PM4/19/17
to phantomjs
Well, I have read the message from Vitaly, but I wasn't aware that he is the only developer. Thanks for pointing this out.

A colleague recommended PhantomJS to me. He told me that it might be an alternative for Selenium. We have a full stack SpecFlow + Selenium WebDriver + TeamCity + BrowserStack test automation implemented, but some projects don't like the cost of this setup. I'm looking for alternatives.

Regards, Markus
Reply all
Reply to author
Forward
0 new messages