Category Archives: REST API Testing

Test Automation Sherpa

“Test Automation Professional / Zealot” is the title I have in my resume.

But I’m not a tester, and still less a “quality” engineer.

Then what am I?

To borrow from mountain-climbing vocabulary, I’m not a climber, I’m a sherpa — one who does much of the heavy lifting, creates base camps, and keeps the climbers progressing happily and safely.

In that spirit, I aim to make it possible for others to do automated testing easily and reliably.

For a year now I’ve worked on my GitHub project, RubyTest, which embodies what I’ve learned in long years of building test automation.

It includes:

  • Core (application-independent) support:
    • Base classes
    • Helper classes
    • Logging
    • Reporting
  • Unit testing for the core (of course!).
  • Example domain-specific code:
    • Page objects, for web UI testing.
    • Endpoint objects, for TEST API testing.
    • Data objects, for both types of testing.
  • Example domain-specific tests.

Most recently, I’ve been building a Tester Tour of part of the project — the part that demonstrates testing for a REST API and a web UI. (The demo test targets are GitHub’s own REST API and web UI.)


You can see the tour here.

Any feedback appreciated, either as Issues on GH, comments here, or private email.

Method Name As Documentation

Hey, Ruby coders!

Do you recognize this idiom?


Or this one?


When I wanted to do these two things in my RubyTest project, I had to Google to find out how.

Now if I put this code into my project, will I recognize these idioms later on? Next month? Next year?

I could add comments to explain, but a comment can get stale (not keep up with code changes), or get separated from its code, or even get deleted.

You can help your downstream code enhancer/maintainer by pushing an unusual idiom into a well-named method.

(Hint: If you’re not sure who is the downstream enhancer/maintainer, it’s you!)

Thus, I created this:

class ObjectHelper

  def self.get_class_for_class_name(class_name)

  def self.instantiate_class_for_class_name(class_name, *args)


PS: My GitHub project is about test automation in Ruby. It has a Tester Tour of the demo testing for a web UI and for a REST API.