I’ve written about this in another post Find-use-and-share-your-thoughts-on-a-web-ui-testing-tool … but I have found codeceptJS to be a very simple, flexible, and reliable JS tool to use.
- The syntax is written in a simple BDD-type of language. Your test will read something like,
When I open (web page),
I see (some text),
I click (some button)
- Set up for a project takes mere minutes and tests run at lightning speed compared with other frameworks I’ve used.
- You can collect all the page objects as a list of objects in an array and reference the page and the object accordingly.
- On the same page as the page objects, you can create simple functions then call them later, in the test which makes the code easier to read, and easier to maintain.
- The learning-curve is minimal, and virtually non-existent for those of you versed in JS or other flavors like PhantomJS or Mocha/Chai.
As a noOb I found codeceptJS to be super-intuitive and after getting acclimated to some of the commands (and there are so many), I found the framework to be very reliable.
Devs liked it as it requires minimal overhead with regards to integrating into the build pipeline (compared with some other frameworks I’ve researched).
can’t recommend this enough