This discussion is archived
2 Replies Latest reply: Feb 1, 2013 1:14 AM by Deepu M RSS

Not able to record the Oracle Forms Application Objects in Open Script

977772 Newbie
Currently Being Moderated
Hi All

I was trying to record the Oracle Forms Application in OpenScript tool.However the tool is not recognising the Forms Object.

Please find the step followed

1.Launched IE and Logged into the Forms Application.
2.Tool recorded only the Browser activities..

Pre-requisite Settings made

1. Enabled the Tools-->OpenScript Preference-->OpenScript-->Record-->Oracle EBS/Forms Functional
2.Under Oracle EBS/Forms Functional-General Tab-->Selected all the Checkbox under Miscellaneous frame.

Please advise me how to record the Forms Objects in Open Script

Please find the recorded script below.

import oracle.oats.scripting.modules.basic.api.*;
import oracle.oats.scripting.modules.browser.api.*;
import oracle.oats.scripting.modules.functionalTest.api.*;
import oracle.oats.scripting.modules.utilities.api.*;
import oracle.oats.scripting.modules.utilities.api.sql.*;
import oracle.oats.scripting.modules.utilities.api.xml.*;
import oracle.oats.scripting.modules.utilities.api.file.*;
import oracle.oats.scripting.modules.webdom.api.*;
import oracle.oats.scripting.modules.formsFT.api.*;
import oracle.oats.scripting.modules.applet.api.*;

public class script extends IteratingVUserScript {
@ScriptService oracle.oats.scripting.modules.utilities.api.UtilitiesService utilities;
@ScriptService oracle.oats.scripting.modules.browser.api.BrowserService browser;
@ScriptService oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService ft;
@ScriptService oracle.oats.scripting.modules.webdom.api.WebDomService web;
@ScriptService oracle.oats.scripting.modules.applet.api.AppletService applet;
@ScriptService oracle.oats.scripting.modules.formsFT.api.FormsService forms;

public void initialize() throws Exception {
browser.launch();
}
/**
* Add code to be executed each iteration for this virtual user.
*/
public void run() throws Exception {
beginStep("[1] Sign In", 0);
{
web
.window(37, "{{obj.ObjectsInfo.web_window_0_1}}")
.navigate(
"URL");
web.window(39, "{{obj.ObjectsInfo.web_window_0}}").capturePage();
{
think(1.124);
}
web.textBox(40, "{{obj.ObjectsInfo.web_input_text_c2}}").click();
{
think(1.732);
}
web.textBox(41, "{{obj.ObjectsInfo.web_input_text_c2}}").setText(
"XXXXXXX");
{
think(0.328);
}
web.textBox(42, "{{obj.ObjectsInfo.web_input_text_c2}}").pressTab();
{
think(0.827);
}
web.textBox(43, "{{obj.ObjectsInfo.web_input_password_c3}}")
.setPassword(deobfuscate("rPrPC3Yy7Rmn/JVhg8XGIg=="));
{
think(0.437);
}
web.textBox(44, "{{obj.ObjectsInfo.web_input_password_c3}}")
.pressTab();
{
think(0.249);
}
web.button(45, "{{obj.ObjectsInfo.web_input_submit_Login}}")
.pressEnter();
}
endStep();
beginStep("[2] COMS - WebUtil", 0);
{
web.window(46, "{{obj.ObjectsInfo.web_window_0_2}}").capturePage();
}
endStep();


}

public void finish() throws Exception {
}


}


Thanks
Ajith

Edited by: 974769 on Dec 3, 2012 11:24 PM
  • 1. Re: Not able to record the Oracle Forms Application Objects in Open Script
    GunjanAhuja Newbie
    Currently Being Moderated
    Hi

    Did you selected component as Oracle EBS/Forms before proceeding with your recordings?

    Pls confirm

    Thanks
    Gunjan
  • 2. Re: Not able to record the Oracle Forms Application Objects in Open Script
    Deepu M Journeyer
    Currently Being Moderated
    Hi,


    Select 'Force HTTP Recording' in OpenScript Preference, ie open OpenScript Preference, the expand Record node, then select Oracle EBS/Forms Load, Then check checkbox 'Force HTTP Recording' true.


    If it doesnt work try following:

    Dont install a new java version. Openscript comes along with java.

    Go to OracleATS intalled folder, open openscript, you can see some batch files there. Open 'UninstallBrowserHelpers.bat', after that open 'InstallBrowserHelpers.bat'. Then open 'HelperService' folder in openScript. Then inside 'bin' open 'UninstallHelperService.bat' and 'InstallHelperService.bat' one after another.

    Then try to record forms.

    See console whether jar files are been downloaded during recording of forms.



    Another solution is there, but not a correct procedure.

    If you have another machine with OATS working fine with forms, then go to run, type %temp%. Copy 3 folders - OpenScript_FormsFT, OpenScript_Applet, OatsTempRTCache and paste it to %temp% in your machine(machine in which forms are not get recorded)

    Regards,
    Deepu M

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points