Windows Desktop Automation

abstract This section details how to test Windows Desktop Applications. If you are not familiar with Sahi Pro Flowcharts, see Introduction to Sahi Pro Flowcharts To automate windows desktop applications using Sahi Pro Classic, refer Windows Desktop Automation.

Start Windows Desktop Automation

Using the Controller

Element Identification

info
  1. Ensure that Window Automation is on from the Sahi Pro Dashboard's 'Processes' settings. Also, identification for Windows automation must be enabled by clicking on the Windows button in the Automate dialog.
  2. If during identification, Sahi Pro Flowcharts is identifying background elements, then go to display setting of PC and change Change the size of text, apps and other items to 100% (Recommended).
  3. For SilverLight, XBAP (i.e browser based desktop applications) during identification, if Sahi Pro Flowcharts is not identifying some boundary elements, then maximize the browser.

Restricted Identification/Recording

Automating a Keyword

This is similar to automating a Sahi Pro Flowcharts keyword for normal browser testing.
  • To automate a Keyword in WINDOWS mode, Window icon at the top left of the Automate dialog must be clicked during identification or automation and click on Start Record button. Actions done on the Windows Desktop application are recorded automatically.
  • Steps can also be recorded from the Flowcharts Controller.
  • info
    1. Ensure that Window Automation is on from the Sahi Pro Dashboard's 'Processes' settings. Also, identification for Windows automation must be enabled by clicking on the Windows button in the Automate dialog.
    2. Cursor Feedback:During recording, mouse cursor turns to Arrow with Red dot until the step is recorded.
    3. Refer Record a steps for a better understanding.

    Playback

    1. On the Automate dialog click on Runbutton.
    2. The Run Settings dialog opens. Select the Mode Windows if we did not mentioned in the scipt and click RUN.

    View Report

    1. Click on the Reports button..
    2. The Report opens in a new browser tab.
    infoNote: A script cannot be played back if Window Automation is not enabled from the Processes setting on Sahi Pro Dashboard.
    infoRefer Run Flowchart for a better understanding.

    Scripting Notes

    Additional Configurations