Creating Custom Application DLL for Oracle Forms Application

  1. Create custom application DLL for an Oracle Forms application, use the below steps to perform automation for the Oracle Forms application.
  2. Application automation logic is implemented in the DoAutomation method. After successful signin in Oracle application, a web page is displayed with different web links. These links are clicked using .Net, just like any other web application. These links download the Oracle forms and use the Utilities.JavaAutomationWrapper DLL to automate the Oracle form controls.
  3. Once the oracle form is downloaded, get its PID using user32.DLL. Create the MappingServer object and call the method getPortNoForPID to get the unique port no. assigned to the Oracle form.

  4. This port no. is used for further communication between .Net and Java. Create the JavaAutomaionAPI object passing the portNo as a parameter to the constructor. The JavaAutomationAPI object is used for calling rest of the exposed Oracle APIs. Each Oracle API takes searchpath of the control as one of the input parameters which is obtained by calling the startScrapingUSP API. Use these APIs to write the automation logic.

 

NOTE:  

All the events must be raised in the main thread, using Dispatcher as mentioned in section 13.1 Creating DLL for Custom Application