# How to automate testing for Oracle Forms application in Katalon Studio?

**URL:** <https://forum.katalon.com/t/how-to-automate-testing-for-oracle-forms-application-in-katalon-studio/175144>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [June 1, 2025, 2:04pm UTC](https://forum.katalon.com/t/how-to-automate-testing-for-oracle-forms-application-in-katalon-studio/175144 "2025-06-01T14:04:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![moath.abukharmh](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@moath.abukharmh](https://forum.katalon.com/u/moath.abukharmh)\
**Post date:** [June 1, 2025, 2:04pm UTC](https://forum.katalon.com/t/how-to-automate-testing-for-oracle-forms-application-in-katalon-studio/175144/1 "2025-06-01T14:04:14Z")

</div>

I’m attempting to automate tests for a legacy **Oracle Forms application** (launched via browser but runs as a Java applet) using Katalon Studio. Standard web locators fail to recognize form elements (text fields, buttons, etc.) since the UI renders as a Java applet, not HTML.

**What I’ve tried** :

- Katalon’s native Windows Recorder/Spy: Cannot identify objects inside the applet.

Has anyone successfully automated Oracle Forms _within Katalon_? If so:

1. What integration approach did you use (e.g., WinAppDriver, JAB Access Bridge, third-party tools)?
2. Are there reusable libraries/plugins for Java applet interaction?

Thanks for any guidance!

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [June 1, 2025, 2:04pm UTC](https://forum.katalon.com/t/how-to-automate-testing-for-oracle-forms-application-in-katalon-studio/175144/2 "2025-06-01T14:04:14Z")

</div>

Hi there, and thanks for posting in the Katalon community! 🤗

To help you faster, please review our guide on Spy Web Utitliy here: [Spy Web utility in Katalon Studio | Katalon Docs](https://docs.katalon.com/katalon-studio/record-and-spy/webui-record-and-spy-utilities/spy-web-utility-in-katalon-studio). Double-checking the steps and configurations might resolve the issue.

If the doc doesn’t help, feel free to provide more details, and a community member will assist you soon.

Thanks for being a part of our community!  
Best,  
Elly Tran

---

<div class="post-metadata">

**Author:** ![moath.abukharmh](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@moath.abukharmh](https://forum.katalon.com/u/moath.abukharmh)\
**Post date:** [June 2, 2025, 2:48am UTC](https://forum.katalon.com/t/how-to-automate-testing-for-oracle-forms-application-in-katalon-studio/175144/3 "2025-06-02T02:48:05Z")

</div>

> [@moath.abukharmh](#):
>
> I’m attempting to automate tests for a legacy **Oracle Forms application** (launched via browser but runs as a Java applet) using Katalon Studio. Standard web locators fail to recognize form elements (text fields, buttons, etc.) since the UI renders as a Java applet, not HTML.
> 
> **What I’ve tried** :
> 
> - Katalon’s native Windows Recorder/Spy: Cannot identify objects inside the applet.
> 
> Has anyone successfully automated Oracle Forms _within Katalon_? If so:
> 
> 1. What integration approach did you use (e.g., WinAppDriver, JAB Access Bridge, third-party tools)?
> 2. Are there reusable libraries/plugins for Java applet interaction?
> 
> Thanks for any guidance!

I originally mentioned using Katalon’s _Web_ Recorder, but I’m actually using the **Windows Recorder/Spy**. The application is a **Java applet-based Oracle Forms** app that runs as a Windows desktop UI after launch. Updating the post accordingly.

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [June 2, 2025, 10:10am UTC](https://forum.katalon.com/t/how-to-automate-testing-for-oracle-forms-application-in-katalon-studio/175144/4 "2025-06-02T10:10:39Z")

</div>

Hi @moath.abukharmh,

Thank you for posting with more information. I am really familiar with Oracle Form. Bump this post to have more experts join support.

---

<div class="post-metadata">

**Author:** ![moath.abukharmh](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@moath.abukharmh](https://forum.katalon.com/u/moath.abukharmh)\
**Post date:** [June 30, 2025, 9:34am UTC](https://forum.katalon.com/t/how-to-automate-testing-for-oracle-forms-application-in-katalon-studio/175144/5 "2025-06-30T09:34:48Z")

</div>

![image](https://europe1.discourse-cdn.com/katalon/original/3X/8/f/8f8a16ec4558c956d2696d627af97c7c3d8f47e0.jpeg)

Hello,

This is what i got using Spy Windows Object

---

<div class="post-metadata">

**Author:** ![dineshh](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dineshh/32/24488_2.png) [@dineshh](https://forum.katalon.com/u/dineshh)\
**Post date:** [July 6, 2025, 12:05pm UTC](https://forum.katalon.com/t/how-to-automate-testing-for-oracle-forms-application-in-katalon-studio/175144/6 "2025-07-06T12:05:04Z")

</div>

structured approach to this:

* * *

## **1. Understand the Oracle Forms Architecture**

- Oracle Forms runs as a **Java applet** embedded in a browser, rendering UI elements as Java AWT/Swing components.
- Standard web locators (XPath, CSS) **will not work** because the UI is not HTML-based.

* * *

## **2. Recommended Tools/Approaches**

Since Katalon Studio lacks direct support for Java applets, use these integrations:

## **A. Java Access Bridge (JAB)**

- **What it does** : Enables accessibility tools to interact with Java AWT/Swing applications.
- **Setup** :
  1. Enable JAB in the Java Runtime Environment (JRE):

  - Add JAB DLLs (`WindowsAccessBridge-XX.dll`, `JavaAccessBridge-XX.dll`) to the JRE’s `bin` folder.
  - Enable accessibility in the JRE config:

text

```auto
# Add to `jre\lib\accessibility.properties`
assistive_technologies=com.sun.java.accessibility.AccessBridge

```

1. Use **Katalon + JAB libraries** to interact with Oracle Forms elements.

- **Limitations** : Requires JRE configuration and may need custom coding.

## **B. WinAppDriver + Katalon Desktop Automation**

- **What it does** : Use Windows Application Driver (WinAppDriver) to automate Java apps as desktop UIs.
- **Setup** :
  1. **Launch Oracle Forms as a standalone desktop app** (if possible) instead of via the browser.
  2. Use **Katalon’s Desktop Recorder** with WinAppDriver:

  - Identify elements using `Inspect.exe` (UIAutomation).
  - Use `ClassName`, `Name`, or `AutomationId` locators for Java AWT/Swing controls.

- **Example Katalon Script** :

groovy

```auto
import com.kms.katalon.core.desktop.keyword.DesktopBuiltinKeywords as Desktop

// Launch Oracle Forms app
Desktop.startApplication('C:\\path_to_app\\your_forms_app.exe')

// Click a button using WinAppDriver locators
Desktop.click(findWindowsObject('Object Repository/your_button'))

// Input text into a field
Desktop.setText(findWindowsObject('Object Repository/your_text_field'), 'Test Data')

```

## **C. AutoIt or SikuliX Integration**

- **AutoIt** : Scriptable tool for Windows GUI automation.
  - Write AutoIt scripts to interact with Java applet elements via coordinates/controls.
  - Execute AutoIt scripts from Katalon using `Runtime.getRuntime().exec('your_script.au3')`.

- **SikuliX** : Image-based automation (uses screenshots).
  - Use `SikuliX` keywords in Katalon to click/verify images of UI elements.

groovy

```auto
import org.sikuli.script.Screen

Screen screen = new Screen()
screen.click('path_to_image/button.png')

```

- **Limitations** : Fragile if UI changes; requires screenshot management.

* * *

## **3. Workflow for Katalon Integration**

1. **Configure Environment** :

- Enable JAB or install WinAppDriver.
- Ensure Oracle Forms runs in a compatible JRE.

1. **Identify Elements** :

- Use `Inspect.exe` (Windows SDK) or `JAB Explorer` to find locators (e.g., `Name`, `AutomationId`).

1. **Create Katalon Objects** :

- Use the **Desktop Recorder** to map Oracle Forms elements.
- Store locators in Katalon’s Object Repository.

1. **Write Scripts** :

- Use Katalon’s `Desktop` keywords for WinAppDriver or custom JAB/AutoIt scripts.

1. **Handle Security Dialogs** :

- Use AutoIt/SikuliX to automate Java security warnings during applet launch.

* * *

## **4. Example: WinAppDriver + Katalon**

groovy

```auto
// Verify a form field exists
WebUI.callTestCase(findTestCase('Launch Oracle Forms'), [:])
Desktop.verifyElementPresent(findWindowsObject('Object Repository/username_field'), 10)

// Input data and submit
Desktop.setText(findWindowsObject('username_field'), 'user123')
Desktop.setText(findWindowsObject('password_field'), 'pass123')
Desktop.click(findWindowsObject('submit_button'))

```

* * *

## **5. Troubleshooting Tips**

- **Element Not Found** : Ensure JAB/WinAppDriver is properly configured and the Oracle Forms app is running with accessibility enabled.
- **Performance Issues** : Java applets are resource-heavy; add delays between actions.
- **Security Restrictions** : Configure Java security settings to allow automation (may require lowering security levels).

* * *

## **6. Alternative Tools**

- **Oracle Application Testing Suite (OATS)**: Oracle’s official tool for Forms automation (paid).
- **Robot Framework + SwingLibrary** : Open-source alternative for Java GUI testing.

* * *

## **Final Notes**

- **Collaborate with Developers** : Request accessibility properties (e.g., `Name`, `Role`) for critical elements.
- **Legacy Workaround** : If automation is too complex, consider a hybrid approach (e.g., API testing for backend logic + minimal UI checks).
