Skip to content
axemclion edited this page Nov 11, 2014 · 9 revisions

Frequently asked questions

How do I run tests like clicking buttons instead of simply scrolling the page?

Use the browser-perf node module, and define custom actions.

How can I test a page that requires login?

You can use the prescript option to log in and ensure that a cookie is set. When running the test, the cookie will still be used and you will be able to test the page as a logged in user.

Any recommendations on how to store and view this data later?

Perfjankie is a module built on top of browser-perf that saves the results and HTML to display graphs in a CouchDB database. We use it for generating graphs like this and this.

What if I run into errors/cannot run the tests?

The steps to debug the issue would be

  1. Is selenium running?
  2. Can you open a browser using selenium? You can use the wd module directly to see if selenium works.
  3. Run browser-perf with a debug flag and verbose flags. This will leave the browser windows open after the tests and give you extensive logging.
  4. Contact us if you still encounter issues.
Clone this wiki locally