Skip to content
Sahi Pro Flowcharts is retired. These pages document the last release (v12) and are no longer updated. Go to the current documentation.Flowcharts is retired. Current docs
Get Free Trial
Sahi Pro Flowcharts is retired. These pages document the last release (v12) and are no longer updated. Go to the current documentation.

Automate the Flowchart

To automate a flow, we need to map the flowchart node to the actions performed on the application.

To automate the flowcharts, first we need to add settings for the launcher like, setting browser, start URL etc.

  1. On the Flowcharts window, click on the drop-down arrow next to Launch and then select Launcher Settings.

    Launcher Settings

  2. Launcher Settings dialog opens.

    Launcher Settings

    1. Select the browser: Chrome
    2. Enter the URL of the application under test. In this case, the URL will be: http://demoapps.testflowchart.com/oc/
  3. Click on Launch to launch the webpage, or you can simply close the dialog. It will save the changes automatically.

  1. Click on any node of the flowchart and select Automate.

    Automate a Node

  2. Automate dialog opens up.

  3. Observe that the selected keyword is highlighted and displayed in bold on the left pane. The right pane provides space for adding detailed information.

  4. You can select any keyword by clicking on it on the left pane.

    Automate dialog

  1. Record steps for Go to product page keyword:

    1. Select the first keyword i.e; Go to Product page.

    2. Click on Start Record button.

      Start Record Button

    3. Set the Run settings same as Launcher Settings if prompted. ( This is a one-time process.) Again click on Start Record.

    4. The website opens up in a new browser.

    5. Navigate to OpenCart window.

    6. Click on Phone & PDAs tab

      OpenCart

    7. Notice that in the right pane of the Automate dialog, your clicks have been recorded and shown as below.

      Recorded steps

    8. Click on Save Keyword.

    9. Notice that, now the implemented keyword has changed its colour to black.

  2. Record steps for Add item to cart keyword:

    1. Select Add item to cart keyword.

    2. Click on Start Record if it is not in recording mode.

    3. Navigate to the Open Cart browser window and select a phone : iPhone

    4. Click Add to cart. A Success message appears to show that the item has been added to the cart.

      OpenCart - Success message

    5. Notice the step added to the Automate dialog.

    6. Click on Save Keyword.

      Recorded Steps

  3. Click on Stop Record button to stop the recording process.

    Stop Record

  4. Add steps for Verify item added to cart keyword:

    1. Select Verify item added to cart keyword.

    2. Click on Add Step button or the

      Add Step button

      button.

      Add step

    3. The Add Step dialog opens. Navigate to Inspect Element tab by clicking on it.

      Add step Window: Inspect Element tab

    4. Navigate to the OpenCart browser window and press the Ctrl key and hover the mouse on the Success message (Ctrl + Mouse Hover). The green box gets highlighted by a red outline.

    5. Notice that the Add step dialog’s Inspect element tab has got populated with the success message’s UI Element and UI Element Value.

      Add step Window: Inspect Element tab-Success message

    6. Click on the Drop-down arrow near UI Element and select the option shown as the image below.

      Add step Window: Inspect Element tab-Select Option For UI  Element

    7. Click on the +(select action/assert) button.

      Add step Window: Click Assert Button

    8. Select Assert Text Equals from the pop-up menu.

      Add step Window: Assert Drop-down Assert Text Equals

    9. Notice the changes in left pane of the Add Step dialog.

      Add Step Update

      • The Action has been set to Get Text.
      • El has been set to the identified element from the web application.
      • The Assert has been set to Equals and it has the value of the success message.
      • The above means: Get the text from El and assert that it Equals (is the same) as the text specified.
    10. Click on Update button.

    11. The added step looks like this:

      Verify Item steps added

    12. Click on Save Keyword.

  1. On the Automate dialog click on Runbutton.

    Click on Run

  2. The Run Settings dialog opens. Select Run Normal Path and click the Run button.

    Run options

  3. During the process of execution/running the flow, the following can be observed:

    1. The target webpage will be launched in a browser.
    2. All the added steps will execute.
    3. Here the Product page will open and the product will get added to cart automatically.
    4. Finally it will verify the success message.
  1. Click on the Reports button..

    Click on Report button

  2. The Report opens in a new browser.

    Report

  3. Click further on it to see the individual steps performed.

Next: Data Drive