IF statment in open script

Hi,
I want to use If condition in the script, I have forms validation there a error message comes on there I want to use IF.
I had written like
if("//forms:alertdialog".equals(true))
          beginStep("[5] Message", 0);
               forms.captureScreenshot(26);
                    think(1.106);
               forms.alertDialog(27, "//forms:alertDialog").clickYes();
          endStep();
else
But it fails. That even if the alert message comes the script not recognizing it and it goes on to else statement
any suggestion please
Regards,
Srinivas

Hi,
Thank you very much I got the solution.
Regards,
Srinivas

Similar Messages

  • Unable to capture the adf table column sort icons using open script tool

    Hi All,
    I am new to OATS and I am trying to create script for testing ADF application using open script tool. I face issues in recording two events.
    1. I am unable to record the event of clicking adf table column sort icons that exist on the column header. I tried to use the capture tool, but that couldn't help me.
    2. The second issue is I am unable to capture the panel header text. The component can be identified but I was not able to identify the supporting attribute for the header text.

    Hi keerthi,
    1. I have pasted the code for the first issue
    web
                             .button(
                                       122,
                                       "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1824fhkchs_6']/web:form[@id='pt1:_UISform1' or @name='pt1:_UISform1' or @index='0']/web:button[@id='pt1:MA:0:n1:1:pt1:qryId1::search' or @value='Search' or @index='3']")
                             .click();
                        adf
                        .table(
                                  "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1c9nk1ryzv_6']/web:ADFTable[@absoluteLocator='pt1:MA:n1:pt1:pnlcltn:resId1']")
                        .columnSort("Ascending", "Name" );
         }

  • Open script cannot get connection from the brower helper after 15 seconds.

    Error:
    ===
    Open script cannot get connection from the brower helper after 15 seconds. Do you want to continue waiting for the browser to load?
    Please Note:
    ========
    1. I have tried this only on IE
    2. I am running OATS on a Remote desktop
    Situation:
    ======
    Trying to stop the recording
    Try to get xpath of an object using Inspect Path
    Setup details
    ========
    Windows XP 5.1 Service Pack 3, x86
    OpenScript 12.1.0.1.383
    Internet Explorer 8.0.6001.18702
    FireFox 13.0.1
    Mitigation steps done till now:
    ==================
    1. Disabled windows firewall
    2. Disable XSS filter setting
    3. Restarted the ATS services (3 of them)
    4. Run the Open Script Diagnosis Tool (PS: There are 3 errros even after running it. The 3 errros are listed in the workspace_log log file snippet below...)
    Error in worspace_log:
    =============
    To Change setting:
    Go to Tools > Internet Options and Choose Security Tab
    Select the Zone to modify and Press Custom level
    Find Enable XSS filter Setting - Select Disable and click Ok
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Failure found when diagnosing Oracle EBS/Forms Load Testing Forms LT Diagnoser
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Did not auto-fix the problem.
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Suggestion for fixing: Please change your Java proxy setting to Use Browser Settings
    Aprreciate help on this.

    To resolve this, you need to reconfigure the "Oracle Application Testing Suite Helper Service" (OATSHelperSvr) to start as a user who has privledges to run open script tests rather than the default SYSTEM user.
    Reconfiguring the OATSHelperSvr Service:
    1. Open the services panel (Start > Run > services.msc)
    2. Find the Oracle Application Testing Suite Helper Service
    3. Right Click > Properties then select the Log On Tab
    4. Specify an interactive user that has rights to run OpenScript (test by logging in as that user and running tests):
    5. Click OK
    6. Restart the service after dialogs are closed by Right Click > Restart
    7. You should now repeat this process for the "Oracle Application Testing Suite Agent Service" (eLoadAgentMon) Service (Two services in
    total)
    You should now retry running the test in Oracle Test Manager

  • In oracle Open Script (OATS) OracleEBS/Forms project all the elements or fields are being identified as web objects.

    In oracle Open Script (OATS), we have created an OracleEBS/Forms project. But when we try to record the script all the elements or fields are being identified as web objects. Due to this we are unable to use the functions like getText. Hence, please help.
    Example: The below line when executed gives an error " Failed to connect to the Oracle Forms applet after 90 seconds. Verify that the applet launching page opens, and that the Forms Startup Timeout setting is high enough for this site."
    forms.textField("/web:window[@index='0' or @title='Person']/web:document[@index='7' or @name='tabPage']/web:input_text[@id='PER_ID' or @name='PER_ID' or @index='0']").getText();
    We have already set the event timeouts in OpenScript Preferences -> Playback -> OracleEBS/Forms Functional as
    Forms startup time out = 90Sec
    Forms Action timeout = 120Sec
    Forms Response Timeout = 120 Sec.
    OpenScript
    Version: 12.4.0.1 Build 139

    If it is a name resolution I would try either replacing the server name in the script with the IP address or making an entry in the local host file of the machine trying to play back the script
    If you try one or both of those approaches does the script play back?

  • Open Script how to Retrive Databank record values

    Hi,
    I am trying get a value from Open script and then assign it to a variable for validation.
    Can anyone let me know if either of the below possible using Open script
    1) Getting Total column count in a Databank file.
    2) Getting a field value and assigning it to a variable.
    I know that getDatabank("") has some options but it does not include the above mentioned also this has {{DatabankName.FieldName, Recorded Value}} for setting a value while running. Apart from these options are there any other keywords using which we can retrive a databank field values and assign it to variables.
    Also there are utilities through which we can access a csv file. But how to assign the value to a Variable.
    Example:
    Table table = utilities.loadCSV("Directory with File name");
              Row row = table.getRow(0);
              getLogger().info(row.get(Field Name));
    I am looking to get the value and assign it to a variable example Variable1 = row.get(Field Name).
    Thanks
    Open Script User
    Edited by: Openscript User 100 on Oct 20, 2009 4:03 AM

    hi,Kate,
    Do you resolve this problem?
    And here i'm trying to compare two column values in the if () {} condition,for example:
    String headerNum1 = eval("{{db.po_tsk_0002b_1.headerNum}}");
    String headerNum2 = eval("{{db.po_tsk_0002b_2.headerNum}}");
    info(" 2_headernum is :"+ headerNum2);
    info(" 1_headernum is :"+ headerNum1);
    if(headerNum2 !=headerNum1 ){
                   fail("The headerNum column is not the same with the header.");
    I can see in the result window,it show:
    2_headernum is :1
    1_headernum is :1
    Error in section Run at line (script.java:47). Failure when running child script po_tsk_po0002b. Caused by: The headerNum column is not the same with the header.
    Can anyone tell me why?
    Thks.

  • Can not open script editor in HDS

    Hi everybody,
    When we open Script Editor, we see the notice: "cannot connect to distributor, script editor will now exit"
    Can you help me to resovle it?
    We use ICM 7.1
    Thanks you so much!

    You might also see this message if the services are running, but you are using Windows Remote Desktop (RDP), and are not logged in with console mode.
    Try this:  mstsc aaa.bbb.ccc.ddd /admin
    where aaa.bbb.ccc.ddd is the IP address or hostname of your HDS.  The /admin switch gets you in with console mode. 
    Net-net, you should see the ICM process' console windows on the taskbar.  If you don't, then either the service isn't running, or you're not in /console mode.
    fyi - ICM 7.1 is long-since end-of-life.  You should seriously consider upgrading to a more recent, supported release.

  • CS4 open script using Bridge batch processing

    I wrote a script in CS to open a logo file (.psd) and copy it onto a photo
    Since upgrading to CS4 the script will not work with batch processing in bridge. It does work in Photoshop on a single image however.
    Here is my open script....when I batch process it brings up an open dialog instead of just opening the file
    ///CODE
    var activeDoc = activeDocument;
    var logoDoc = open(File("/c/stlg.psd"), OpenDocumentType.PHOTOSHOP, false);

    That didn't work either :(
    I was looking at the OpenDocument.jsx sample in the scripting samples directory and tried batch processing it....it opens a photoshop sample psd file and it worked...though I don't understand the code or why my code above won't work
    /////OpenDocument.jsx code
    //var strSamplesFolderDirectory = localize( "$$$/LocalizedFilenames.xml/SourceDirectoryName/id/Extras/[LOCALE]/[LOCALE]_Samples/value =Samples" );
    //var strSampleFileNameLayerComps = localize ("$$$/LocalizedFilenames.xml/SourceFileName/id/Extras/[LOCALE]/[LOCALE]_Samples/Layer_Com ps.psd/value=Layer Comps.psd");
    var fileRef = new File(app.path.toString() + "/" + strSamplesFolderDirectory + "/" + strSampleFileNameLayerComps);
    open (fileRef);
    fileRef = null;

  • Document Upload in ADF protocol using Open script

    Hi ,
    My transaction is to upload a document into a portal.
    I have recorded this transaction in OPEN SCRIPT using ADF protcol.
    When i playback the script, it uploads a document with no contents in it.
    if i open the uploaded file it has only "Null". The content is missing.
    How do i resolve this?
    Thanks,
    Pradeep

    One more observation.
    While recording the Contents of the file are getting stored in a resourceFile.
    http.postdata(http
                                                .param("{{@resourceFile(2283.postData.rsc, OracleBinary, true)}}")),
    But while playing back the script , no content goes
    Thanks,
    Pradeep

  • Open script play doesnt work in the clustered env

    We have Clustered Webcenter env. Here, we record our flow in the open script. If we play back as the recorded user, it works fine.
    However if we randomize the users it fails with the following two errors :
    1.Failed to solve variable web.input.wccontextURL_1 using path .//INPUT[@name='wc.contextURL']/@value
    2.Failed to solve variable afrloop3
    ** This issue is not seen, if we done through browser multiple times with different users.
    **However if we run this in a non-clustered environemnt, it works fine.
    **Also if we bring down one of the managed servers, the script works fine.
    Can you plesae help?

    I don't think play() is the problem.  That error occurs when an object the code is trying to target does not exist as far as the code is concerned.  If that is the only code you have in the file, then you have a problem with "b2" not being seen by the code in frame 1.
    Did you assign "b2" as the instance name via the Properties panel, or is that the library name of the button?
    Are both the code and the button in frame 1 of the same timeline?  The way you said it can give the impression the code is in frame 1 inside the button.

  • Open Script supports Oracle Fusion Middleware Application

    Hi,
    Can anybody please confirm whether Oracle Open Script 9.2 supports scripting for Oracle Fusion Middleware Applications?
    We have received a project proposal to do load test for the same.
    Appreciate for early response
    Thanks in advance
    Regards,
    Mahesh

    Hi Mahesh
    ATS supports different protocols when you say Fusion Middleware do you know which protocols you are testing ?
    I have used ATS to test Middleware a lot but is really the protocol that you need to test so find out the protocol that you are testing and you will know if its supported by ATS.
    Regards
    Alex

  • Images are not displayed in Details Page of Open script

    I am trying to record a web application with open script.
    After recording the images are not displayed when playing back the script.
    Are there any option we have to enable to get the images.

    Hi
    As per default OpenScript will ignore any URL that contains an image, to change the filters you can:
    View -> OpenScript Preferences > Record -> HTTP Module -> Select the URL filters Tab to add/remove or edit any filters
    You can un-check the first one on the list to enable image recording.
    Regards
    Alex

  • How to handle Java popup in oracle forms application through Open Script?

    I want to record and test oracle form application but it popup java dialogue box and Open Script can't handle java object.
    So how to handle the Java popups in forms application?

    Hi, Have you been able to resolve this?

  • CUCM 4.1(3) installing Dev Pack 89 - "can't open script file"

    Hello All,
              I'am trying to isntall the 4.1 dev pack 89 on CUCM 4.1(3) server.  It unpacks the contents then says "can't open script file".  I closed the CSA agent and I have no virus scanners running.  Has anyone had this issue before?  Thanks
    Jason Steig

    Paul,
    I assume you are referring to 10.1.3 DP4. The previews are not reverse compatible with previous previews. Unfortunately this means that you will need to re-map any project created in 10.1.3 DP3 or earlier.
    We believe we have finalized the file formats for the release and our intention is to have the DP4 projects be completely compatible with the final release.
    Sorry for the inconvenience,
    Doug

  • Oracle Open Script - Failed to open script error

    I am receiving the following error when trying to open a script in Oracle open script
    'Failed to open script' has encountered a problem.Failed to open <script_name>. See error log for details.
    I have tried the Giri Mandalika's solution but there is no "<failing_script_name>" folder in specified path.
    Can someone please help me to resolve this issue ?

    Hi ,You can try deleting the osworkspace folder .The folder should be at C:\Users\<username>\. May be take a back up copy of the folder before deleting it.Let me know if it works.

  • How to run Open scripts on Mozilla Firefox?

    Hi,
    My open scripts are working fine on IE7. I want to run same scripts on Firefox 5.0.
    Can you please tell me the steps?
    Regards,
    Deepti

    Hi,
    Not all the firefox versions are supported. Let me point you to Error  while recording with fire fox (4.0)  browser. So, you'll end up getting errors like that.
    As far as using firefox goes (i.e. once you have the right version),
    Go to "View" menu in openscript and under
    Openscript>Preferences>General>Browsers select firefox.
    Thank you,
    Narayan
    Edited by: nryn on Aug 9, 2011 10:12 PM (link insert went wrong)

Maybe you are looking for

  • Oracle 10g express edition ..ampersand substitution variable

    when i enter the ampersand substitution variable and run the script in the oracle 10g express edition it is giving me the error of (ORA-01008: not all variables bound)...can someone please indicate what the problem is.. thank you

  • Is Apple TV compatible with Sony WEGA KV34HS420?

    Is Apple TV compatible with Sony WEGA KV34HS420?

  • Tolerance Group for G/L Accounts

    Hello, In the spro Financial Accounting>General Ledger Accounting>Business Transactions>Open Item Clearing>Clearing Differences-->Define Tolerance Groups for G/L Accounts, according to SAP documentation it is possible: "For G/L account clearing, tole

  • Sending web pages as body of email.

    Hi everyone, So, I know how to open webpage and go to FILE> Mail contents of this page. But for some reason when I do this and email someone and they try to forward this on to another person everything becomes all jumbled up in the body of the messag

  • Using more than one song in a slideshow

    Hi, has anyone figured out how to use more than one song in a slide show to play on the appletv? I set it up in Iphoto, but it seems to only allow me to choose one song. I'm having a party and want to have my slideshow play continuously, but would li