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.

Java Web Start Automation

This section details how to test Java Web Start Automation. If you are not familiar with Sahi Pro Flowcharts, see Introduction to Sahi Pro Flowcharts To automate java applications using Sahi Pro Classic, refer Java Web Start Automation.

Sahi Pro Desktop Engine provides support for automation of Java Application.

Identifying and Automating Java Application

Section titled “Identifying and Automating Java Application”
  1. On the Flowcharts window, click on the dropdown arrow next to Launch and then select Launcher Settings.

    Launcher Settings

  2. Launcher Settings dialog opens.

    Description of the image labeling:

    1. Select the Mode: Java
    2. Type or paste the absolute Application path (The Application for which you are making this automated flowchart).
  3. Click on Launch to launch the Application.

  4. On the Flowcharts window, click on the dropdown arrow next to Launch and then select Open Controller. You can now start identifying/automating. Like normal Sahi Pro Flowcharts for web pages, you can use CTRL-Hover to identify various elements on the Java Web Start application.

  1. Open a command prompt and cd to sahi/userdata/bin (or click on the “Bin” link on the Sahi Dashboard)

  2. For Windows: Invoke java_app.bat with the jnlp application path to start the application (Download and save the JNLP application on local file system before hand.)

    D:\Sahi_Pro\userdata\bin>java_app.bat <javaws applicationPath>
  3. For Linux: Invoke java_app.sh with the jnlp application path to start the application (Download and save the JNLP application on local file system before hand.)

    ~/sahi_pro/userdata/bin>./java_app.sh <javaws applicationPath>
  4. To Launch Flowcharts Controller, click on the dropdown arrow next to Launch and then select Open Controller On the Flowcharts window.

    You can now start automating. use CTRL-Hover to identify various elements on the Java Application.

  • To start a JNLP file, use inbuilt action Launch Java Application.

    Launch JNLP

  • If you need to download the JNLP everytime, navigate to the page with JNLP, and once Sahi downloads it, use Save Downloaded As inbuilt action to save it to desired location and then call Launch Java Application Inbuilt Action.

  • All code interactions with Java application will need to be preceded by

    Java Mode

    inbuilt action Set Mode and Application Type as JAVA.