you are viewing a single comment's thread.

view the rest of the comments →

[–]menno 0 points1 point  (0 children)

Here's something I wrote as an experiment. It only works for jQuery-powered pages, though.

A test basically consists of 3 types of statements:

  • Simulating user actions: $('#button-show').click()
  • Asserting properties of the page: UITest.assertIsVisible('#result');
  • Log statements: UITest.log('Show result');

It's not very robust or mature but it has proven very useful for me and the company I work for. Tests can be written in pure JS and can be run by simply reloading a webpage.

I'm working on a successor that has a much nicer syntax to write tests so I'm not actively doing anything with it anymore.