13

So I came across zombie.js, is this a headless browser?

If so, what browser engine does it use?

Could I rely on it for doing lot of automated tests? Basically, I am restricted to a single server, so I would like to squeeze as many browser tests as possible.

Currently, I am relying on Selenium FirefoxDriver to run my tests. How would zombie.js compare in performance and efficiency to Selenium Webdriver browser instances running? However, there's limitation to how many browser instances I can run in parallel.

KJW
  • 15,035
  • 47
  • 137
  • 243

2 Answers2

17

Yes, Zombie is headless.

"Whick browser engine?" - > well, it uses a mixture of technologies:

Performance: should be much faster, according to author's statement: http://labnotes.org/2010/12/30/zombie-js-insanely-fast-full-stack-headless-testing/

Michal Illich
  • 1,835
  • 1
  • 14
  • 10
  • last time I checked it still had some problems parsing JS....if those things get sorted out then god damn....we open a new era to functional testing....cheaper and faster and lighter. – KJW Sep 08 '11 at 21:28
5

is this a headless browser?

I haven't used it, but it certainly looks like a headless browser:

If you're going to write an insanely fast, headless browser, how can you not call it Zombie? Zombie it is.

Zombie.js is a lightweight framework for testing client-side JavaScript code in a simulated environment. No browser required.


what browser engine does it use?

From http://zombie.labnotes.org/guts.html#Grocking:

The DOM implementation is JSDOM, which provides an emulation of DOM Level 3.

Community
  • 1
  • 1
Matt Ball
  • 354,903
  • 100
  • 647
  • 710
  • so does firefox implement a different level dom? – KJW Jun 06 '11 at 15:52
  • That would depend on the version of Firefox - but in general, no, since DOM Level 3 is the current/latest iteration of the DOM spec. Since Zombie.js also supports HTML5 (through [this library](https://github.com/aredridel/html5)), it looks like it has fairly solid support for the newest web technologies. – Matt Ball Jun 06 '11 at 16:20
  • 1
    Wow....zombie.js just seems to good to be true. Of course, I will have to see for myself but if this can replace my current XVNC + HUDSON CI + FIREFOX + WEBDRIVER mix, it would save me lot of time and money. – KJW Jun 07 '11 at 02:54
  • I can't even install Zombie....some reports of pages not loading at all...this sounds awfully like HTMLUnit but better but not quite accurate as driving the actual browser via Selenium – KJW Jun 09 '11 at 02:25
  • That's about right, Kim Jong Woo. (I'm the author of the html parsing portion) – aredridel Feb 08 '12 at 14:44
  • jsdom is missing enough things (crypto, indexedb) that i've really never been able to use zombie.... but i did try to use it, and it works great – Erik Aronesty Jul 23 '20 at 03:43