mercredi 16 décembre 2015

Continues adding of tests to phantomjs

I am new to PhantomJS, so this is maybe stupid.

I would like to create a testing environment, that will allow user to add tests (predefined) instantly and every test is run immediately.

Example (this tests are added dynamically):

  • load page, compare load speed
  • click on button, check if dialog opens
  • close dialog, check if dialog is closed,...

Now in phantomjs I see this phantom.exit, and as I understand it, it closes phantomjs process. Is it possible to get the result and add new tests dynamically, without canceling phantomjs (phantom.exit)?

Aucun commentaire:

Enregistrer un commentaire