Taking the Pain Out of Writing Iridium Test Scripts

DZone 's Guide to

Taking the Pain Out of Writing Iridium Test Scripts

With support for the Atom editor, writing Iridium test scripts is quick and painless.

· Web Dev Zone ·
Free Resource

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).

  • click
  • save
  • select
  • open
  • populate
  • wait
  • set
  • press
  • verify
  • go
  • focus

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.

Screen Shot 2016-07-22 at 8.16.40 AM.png

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.

documentation ,steps ,atom ,open source ,snippets ,selenium ,cucumber ,testing

Published at DZone with permission of Matthew Casperson , DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}