If you are just getting started with Iridium, please read the article An Introduction to Iridium, an Open Source Selenium and Cucumber Testing Tool.
The most prominent aspect of Iridium that testers interact with are the steps that make up the test scripts. There are literally hundreds of steps, and a good number of them have optional phrases which are powerful, but can be hard to remember. I wrote these steps, and even I have trouble remembering them :)
Because the steps are just Java code, we have documentation that you can browse which details all of the steps and how they are written. But unless you are a Java developer, and have a good grasp or regular expressions, this documentation is still to low level.
So, to reduce the time it takes to get started with Iridium, we have written a package for the open source Atom editor which will provide testers with easy to use prompts that they can browse and search as they write tests.
Installing the Atom package has been covered in detail in the Iridium documentation, and there is little sense repeating those steps here. Instead, I’ll show you a few quick tips that will get you up and running with Atom and Iridium in no time.
This screencast shows you the Iridium snippets package in action.
The first thing you need to know are the verbs that trigger the list of snippets. Typing these words while writing an Iridium test in Atom with the package installed will display a list of suggested steps. This list is not exhaustive, but covers the most common verbs you’ll use when writing tests (you can find a complete list here).
The list of steps associated with some of these verbs can be quite long and tedious to scroll through. To narrow down the list, continue adding keywords to the initial verb without any spaces.
For example, if you know that you want to click an element found by an ID alias, enter the text “clickIDalias”. As you can see in the screenshot below, Atom will find these additional keywords in the step snippets and narrow down the list.
The Iridium snippets package for Atom is an integral component of our goal to make Iridium easy to use with minimal training and effort for those in your team who want to contribute to the testing cycle. It takes the pain out of remembering the exact format of the steps and learning what steps are available, and significantly reduces the amount of time it takes to write Iridium test scripts.