Sahi Pro - Scenario Editor

From Sahi Pro V5.1, a web based UI for creating scenarios is available. It is a user-friendly, easy and interactive
user interface for running and developing Sahi scripts which are in .xls, .xlsx or .s.csv format.
It uses most of the shortcuts available in Microsoft Excel.

Sahi understands csv files with .s.csv extension as a scenario file (eg. sample.s.csv).

warning This application is not supported on IE versions lower than IE9.

Launching the Scenario Editor

  1. Click on the (Web) link in the Dashboard to bring up the Script Explorer (Web based TestRunner).
  2. Launch the Scenario Editor by clicking on the New scenario link. Start by saving the new scenario.
  3. You may edit an existing scenario file by locating the file and clicking on the Edit icon next to it.

Introduction to the Web UI


1Open a new file.
2Load an existing file.
3Save file.
4Save file As.
5Insert a new testcase.
6Load Sahi Library.
7Load Sample excel file.
8Load Sample scenario file.
9Shortcut info.

Key features


  • loadSahi

    loadSahi loads a .sah file. All of the functions defined in the .sah file get dynamically added. They can all be seen in the autocomplete dropdown.
  • Detail box

    The UI contains a box on the right side of the screen that displays information regarding the selected cell. It gives details of the selected function and its arguments. This gives a basic idea as to what the type and number of arguments are.
  • Red colored notification

    The SpreadSheet UI notifies the user about mistakes by marking problematic cells in red color.

    If the path or name of the file specified in loadSahi is wrong, it gets shown in red.
    If the user adds a wrong function, i.e. a function that is not defined in the included files, or if he makes a mistake with the function name, the name appears in red.
    Only if the function is defined in the file included through 'loadSahi', does it appear in black.
    If the number of arguments added in the UI for a function is more than the number of arguments in the function definition, the extra arguments are shown in red.

    List of shortcuts


    CTRL combination shortcut keys

    CTRL + ASelect all contents of the worksheet.
    CTRL + HOMEMove to column header cell.
    CTRL + CCopies the selected cells.
    CTRL + XCuts the selected cells.
    CTRL + VPastes in the selected cell.
    CTRL + YRepeats the last command or action, if possible.
    CTRL + ZUses the Undo command to reverse the last command or to delete the last entry you typed.
    CTRL + /Comment/ Un-comment the selected row/s.
    CTRL + DELETEDeletes the selected row/s.

    ALT combination shortcut keys

    ALT + ENTERWhile typing text in a cell pressing Alt + Enter will move to the next line allowing for multiple lines of text in one cell.
    ALT + NLoads the new worksheet.
    ALT + OOpens the dialog to load existing scenario.
    ALT + F2Displays the Save As dialog box.
    ALT + SHIFT + EDisplays the names of the feature developers.
    ALT + INSERTInsert Testcase shortcut.
    ALT + SLoad Sahi library shortcut.
    ALT + 1Insert new row above the current row.
    ALT + 2Insert new row below the current row.

    Function keys

    F2Edit the selected cell.
    ALT + F2Displays the Save As dialog box.
    SHIFT + F10Displays the shortcut information pop-up.

    Other useful shortcut keys

    ARROW KEYSMove one cell up, down, left, or right in a worksheet.
    SHIFT + ARROW KEYExtends the selection of cells by one cell.
    DOWN ARROWSelects the next command when a context menu or Auto-complete option is open.
    UP ARROWSelects the previous command when a context menu or Auto-complete option is open.
    BACKSPACEDeletes one character to the left in the Formula Bar. Also clears the content of the active cell.
    DELETERemoves the cell contents from selected cells. In cell editing mode, it deletes the character to the right of the insertion point.
    CTRL + DELETEDeletes the selected row/s.
    ENDMoves to the last cell in the same row. Also selects the last command on the menu when a menu is visible.
    CTRL + ENDMoves to the last cell in same column
    CTRL + SHIFT + ENDExtends the selection of cells to the last used cell on the worksheet (lower-right corner).
    ENTERCompletes a cell entry from the cell, and selects the cell below (by default). Edits the selected cell. Selects the selected command when a context menu or Auto-complete option is open. In a dialog box, it performs the action for the default command button in the dialog box (the button with the bold outline, ofte
    Alt + EnterWhile typing text in a cell pressing Alt + Enter will move to the next line allowing for multiple lines of text in one cell.
    ESCCancels an entry in the cell or Formula Bar. It also closes an open menu dialog box or message window.
    HOMEMoves to the beginning of a row in a worksheet. Selects the first command on the menu when a context menu is visible.
    CTRL + HOMEMove to column header cell.
    PAGE DOWNMoves to the last cell in the same column.
    PAGE UPMoves to the first cell in the same column.
    TABMoves one cell to the right in a worksheet. Moves to the next option in the context menu.
    SHIFT + TABMoves to the previous cell in a worksheet.