Skip to content
Get Free Trial

Run Tests via Controller

Run a keyword, part of a test case or all of it from the Sahi Controller while you build it, step through a run, fill in missing variables and see the result.

While you build a keyword, the Sahi Controller runs it straight away in the browser you’re recording in, so you can check your work without leaving it.

You don’t always need to run the whole test case to check your work. Run only the part you’re working on, or all of it. Hover over Run and choose:

  • Run upto this keyword
  • Run this keyword
  • Run from next keyword
  • Run this testcase
  • Run everything
The Controller on the Add Books keyword with the Run menu open and Run this testcase highlighted

If a run fails and you can’t see why, pause it and go one step at a time to find the step that goes wrong. While it runs, use Pause, Play, Step (one step at a time) and Stop.

A keyword often gets its values from somewhere else: its parameters from the test case or a test data file, or a value stored by an earlier keyword. Run that keyword on its own, such as Login To Book Store with Run this keyword, and nothing passes those values in. Missing Variables lists them so you can type a value for each, then click Continue.

The Controller on the Login To Book Store keyword, with the Missing Variables panel listing $Username and $Password, a Value box for each, and Cancel and Continue buttons

When the run finishes, View Last Run Result shows each step’s result, and Reports in the bottom bar opens the full report.

The Controller on the Login To Book Store keyword with View Last Run Result highlighted and the Last Run Result panel open, listing the four steps that ran and Stopped Playback: SUCCESS

If a run waits for a long time, Diagnose in the ⋮ menu helps find out why. See Debugging slowness using Diagnose.