Description
An Oracle Applications sign-on window.
Operations
The sections below list the built-in methods and properties that you can use as operations for the OracleLogon object.
Note: You can also view a list and descriptions of the OracleLogon description properties, for use in object repository descriptions, programmatic descriptions, checkpoint and output value steps, and as argument values for the GetTOProperty and GetROProperty methods.
Methods
Properties
Exist | Checks whether the object currently exists in the open application. |
Back to top
Activate Method
Description
Activates the form.
Syntax
object.Activate
Return Type
None.
Example
Make the Logon Window Active (VBScript) 'The following example uses the Activate method to make the Logon window active (bring it
'to the top) before closing it.
OracleApplications("OracleApplications").Sync 60
OracleLogon("OracleLogon").Logon "OPERATIONS", "4259010bd162d3a772a2c7618359e6ba5e590516"
OracleListOfValues("Responsibilities").Select "Application Developer"
OracleNavigator("OracleNavigator").SelectMenu "File->Log on as a Different User..."
OracleLogon("OracleLogon").Activate
OracleLogon("OracleLogon").CloseForm
Back to top
Click Method
Description
Clicks the specified location with the specified mouse button.
Syntax
object.Click ([x], [y], [BUTTON])
Arguments
Parameter | Description |
---|
x |
Optional. An integer value. The x-coordinate of the click. Note that the specified coordinates are relative to the upper left corner of the object. Default = micNoCoordinate (center of the object). Default value = -1
|
y |
Optional. An integer value.
The y-coordinate of the click. Note that the specified coordinates are relative to the upper left corner of the object. Default = micNoCoordinate (center of the object).
Tip: You can enter micNoCoordinate for the x and y argument values if you want to enter a value for the button argument without specifying x- and y- coordinates for the click. micNoCoordinate indicates the center of the object. Default value = -1
|
BUTTON |
Optional. A predefined constant or number. The mouse button used to click the object. Default value = micLeftBtn
|
Return Type
None.
Example
Click a Specified Button on a Form (VBScript) 'The following example uses the Click method to click the "Attribute Groups" button in
'the "Master Item" form.
OracleFormWindow("Master Item").OracleTable("ORG_ASSIGN").EnterField 2, "Assigned", True
OracleFormWindow("Master Item").OracleButton("Attribute Groups").Click
OracleFormWindow("Master Item").OracleTabRegion("Work In Process").OracleList("Type").Select "Push"
OracleFormWindow("Master Item").Save
OracleFormWindow("Master Item").CloseForm
Click a Text Field at a Specified Coordinate (VBScript) 'The following example uses the Click method to perform a left mouse-button click at
'coordinates (5,5) inside the "Item" text field.
OracleFlexWindow("Parameters").OracleTextField("Range").OpenDialog
OracleListOfValues("Range").Select "Specific item"
OracleFlexWindow("Parameters").OracleTextField("Specific Item").SetFocus
OracleFlexWindow("Parameters").OracleTextField("Engineering Bills").Enter "NO"
OracleFlexWindow("Parameters").OracleTextField("Engineering Bills").CaptureBitmap "c:\temp\capture.bmp", True
OracleFlexWindow("Parameters").OracleTextField("Engineering Bills").Check CheckPoint("Engineering Bills")
OracleFlexWindow("Parameters").OracleTextField("Engineering Bills").InvokeSoftkey "NEXT FIELD"
OracleFlexWindow("System Items").OracleTextField("Item").Click 5, 5, 0
OracleFlexWindow("System Items").OracleTextField("Item").Enter "AT23808"
If (OracleFlexWindow("System Items").OracleTextField("Item").GetROProperty("Value") = "AT23808") Then
OracleFlexWindow("System Items").OracleTextField("Item").Enter "AT23809"
End If
OracleFlexWindow("System Items").OracleTextField("Item").Output CheckPoint("Item")
Back to top
CloseForm Method
Description
Closes the form using the Exit softkey.
Syntax
object.CloseForm
Return Type
None.
Example
Exit Oracle Applications (VBScript) 'The following example uses the CloseForm method to exit Oracle Applications.
OracleApplications("OracleApplications").Sync 60
OracleLogon("OracleLogon").Logon "OPERATIONS", "4259010bd162d3a772a2c7618359e6ba5e590516"
OracleListOfValues("Responsibilities").Select "Application Developer"
OracleNavigator("OracleNavigator").SelectMenu "File->Log on as a Different User..."
OracleLogon("OracleLogon").Activate
OracleLogon("OracleLogon").CloseForm
OracleNotification("Caution").Approve
Back to top
CloseWindow Method
Description
Closes the form using the X button in the form window title bar.
Syntax
object.CloseWindow
Return Type
None.
Example
Close the Oracle Applications Logon Window (VBScript) 'The following example uses the CloseWindow method to close the Oracle Applications
'Logon window.
OracleNavigator("OracleNavigator").SelectMenu "File->Log on as a Different User..."
OracleLogon("OracleLogon").CloseWindow
OracleNavigator("OracleNavigator").SelectMenu "File->Log on as a Different User..."
OracleLogon("OracleLogon").SelectMenu "File->Exit Oracle Applications"
OracleNotification("Caution").Approve
Back to top
GetMenuItemProperty Method
Description
Get MenuItem Property.
Syntax
object.GetMenuItemProperty (MenuPath, PropertyName)
Arguments
Parameter | Description |
---|
MenuPath |
Required. A String value.
|
PropertyName |
Required. A String value.
|
Return Type
A Boolean value.
Back to top
GetMenuSubItems Method
Description
Get Menu SubItems separated by vbLf.
Syntax
object.GetMenuSubItems (MenuPath)
Arguments
Parameter | Description |
---|
MenuPath |
Required. A String value.
|
Return Type
A String value.
Back to top
InvokeSoftkey Method
Description
Invokes the specified Oracle softkey.
Syntax
object.InvokeSoftkey (Softkey)
Arguments
Parameter | Description |
---|
Softkey |
Required. A String value.
The softkey function to perform. You can view the functions available in a specific form by pressing Ctrl+K in an Oracle Applications session. Softkey functions are not case sensitive. The following functions can be specified: NEXT FIELD | CLEAR RECORD | DISPLAY ERROR | PREVIOUS FIELD | DELETE RECORD | PRINT | CLEAR FIELD | DUPLICATE RECORD | COUNT QUERY | UP | INSERT RECORD | UPDATE RECORD | DOWN | NEXT SET OF RECORDS | FUNCTION 0 | SCROLL UP | NEXT RECORD | FUNCTION 1 | SCROLL DOWN | PREVIOUS RECORD | FUNCTION 2 | EDIT | CLEAR BLOCK | FUNCTION 3 | RETURN | BLOCK MENU | FUNCTION 4 | LIST OF VALUES | NEXT BLOCK | FUNCTION 5 | HELP | PREVIOUS BLOCK | FUNCTION 6 | EXIT | DUPLICATE FIELD | FUNCTION 7 | SHOW KEYS | CLEAR FORM | FUNCTION 8 | COMMIT | ENTER QUERY | FUNCTION 9 | NEXT PRIMARY KEY | EXECUTE QUERY | LIST TAB PAGES |
|
Return Type
None.
Example
Close a Tree (VBScript) 'The following example uses the InvokeSoftkey method to close the "Navigator" tree.
OracleFormWindow("Navigator").OracleTree("Navigator").Check CheckPoint("Navigator")
Reporter.ReportEvent micDone, "OracleTree CheckPoint", "Indicates if all captured properties are correct. "
OracleFormWindow("Navigator").OracleTree("Navigator").Select "Personal Shortcuts"
OracleFormWindow("Navigator").OracleTree("Navigator").Expand "Public Shortcuts"
OracleFormWindow("Navigator").OracleTree("Navigator").Collapse "Profiles"
OracleFormWindow("Navigator").OracleTree("Navigator").InvokeSoftkey "EXIT"
OracleNavigator("OracleNavigator").SelectMenu "File->Switch Responsibility..."
Exit a Specified Form After Modifying a Text Field (VBScript) 'The following example uses the InvokeSoftkey method to exit the "Item Costs_2" form
'after modifying the value in the "Rate or Amount" field.
OracleFormWindow("Item Costs_2").OracleTabbedRegion("Cost Information").OracleTextField("Rate or Amount").Enter "100"
OracleNavigator("OracleNavigator").SelectMenu "File->Save"
OracleStatusLine("OracleStatusLine").Check CheckPoint("OracleStatusLine")
OracleFormWindow("Item Costs_2").OracleTabbedRegion("Cost Information").OracleTextField("Rate or Amount").InvokeSoftkey "EXIT"
Move to the Next Field in a Flexfield Window (VBScript) 'The following example uses the InvokeSoftkey method to move to the next field in the
'"Parameters" flexfield window.
OracleFlexWindow("Parameters").OracleTextField("Range").OpenDialog
OracleListOfValues("Range").Select "Specific item"
OracleFlexWindow("Parameters").OracleTextField("Specific Item").SetFocus
OracleFlexWindow("Parameters").OracleTextField("Engineering Bills").Enter "NO"
OracleFlexWindow("Parameters").OracleTextField("Engineering Bills").CaptureBitmap "c:\temp\capture.bmp", True
OracleFlexWindow("Parameters").OracleTextField("Engineering Bills").Check CheckPoint("Engineering Bills")
OracleFlexWindow("Parameters").OracleTextField("Engineering Bills").InvokeSoftkey "NEXT FIELD"
OracleFlexWindow("System Items").OracleTextField("Item").Click 5, 5, 0
OracleFlexWindow("System Items").OracleTextField("Item").Enter "AT23808"
If (OracleFlexWindow("System Items").OracleTextField("Item").GetROProperty("Value") = "AT23808") Then
OracleFlexWindow("System Items").OracleTextField("Item").Enter "AT23809"
End If
OracleFlexWindow("System Items").OracleTextField("Item").Output CheckPoint("Item")
Clear All the Fields in the Table (VBScript) 'The following example uses the InvokeSoftkey method to clear all the fields in the
'"HEADERS_SUMMARY" table.
OracleNavigator("OracleNavigator").SelectFunction "Cash Forecasting:Forecasts"
OracleFormWindow("Find Cash Forecasts").OracleButton("Find").Click
OracleFormWindow("Cash Forecasts").OracleTable("HEADERS_SUMMARY").SetFocus 1, "Template Name"
OracleFormWindow("Cash Forecasts").OracleTable("HEADERS_SUMMARY").InvokeSoftkey "CLEAR BLOCK"
Close a Form (VBScript) 'The following example uses the InvokeSoftkey method to close the "Service Request" form.
OracleFormWindow("Service Request").InvokeSoftkey ("EXIT")
If OracleNotification("Forms").Exist Then
OracleNotification("Forms").Choose ("Yes")
End If
Back to top
Logon Method
Description
Logs the specified user in to the Oracle application.
Syntax
object.Logon (UserName, Password)
Arguments
Parameter | Description |
---|
UserName |
Required. A String value. The username with which you want to sign on to the Oracle Applications session.
|
Password |
Required. A String value. The encrypted value of the password for the specified username. The text is encrypted while recording, and decrypted during the run session.
To find the encrypted value to use, do one of the following: For more information, refer to the UFT One User Guide. |
Return Type
None.
Example
Log on to Oracle Applications (VBScript) 'The following example uses the Logon method to log on to Oracle Applications, using
'a specified user name and a password saved in the Data pane.
OracleApplications("OracleApplications").Sync 60
Password = DataTable("Login_pass", dtGlobalSheet)
OracleLogon("OracleLogon").Logon "OPERATIONS", Password
logon_fail_count = 0
Do Until OracleListOfValues("Responsibilities").Exist(10)
Reporter.ReportEvent micFail, "Logon", "Failed to logon properly"
logon_fail_count = logon_fail_count + 1
If logon_fail_count = 3 Then
If OracleLogon("OracleLogon").Exist Then
OracleLogon("OracleLogon").OracleButton("Cancel").Click
End If
Browser("Oracle Applications 11i").Close
ExitTest
End If
OracleLogon("OracleLogon").Logon "OPERATIONS", Password
Loop
Back to top
PressToolbarButton Method
Description
Presses a toolbar button.
Syntax
object.PressToolbarButton (ButtonName)
Arguments
Parameter | Description |
---|
ButtonName |
Required. A String value.
|
Return Type
None.
Back to top
Save Method
Description
Performs a Save operation using the Commit softkey.
Syntax
object.Save
Return Type
None.
IMPORTANT
This method performs a Ctrl+S operation (it does not save the sign-on window using the File > Save menu).
Note: This method is not recorded. To add this method to your test, use the Step Generator or enter it manually in the Keyword View or Editor. For more information, refer to the UFT One User Guide.
Example
Perform a Commit Operation on the Logon Window (VBScript) 'The following example uses the Save method to perform a Commit operation on the Oracle Applications
'Logon window.
OracleApplications("OracleApplications").Sync 60
OracleLogon("OracleLogon").Logon "OPERATIONS", "4259010bd162d3a772a2c7618359e6ba5e590516"
OracleListOfValues("Responsibilities").Select "Application Developer"
OracleNavigator("OracleNavigator").SelectMenu "File->Log on as a Different User..."
OracleLogon("OracleLogon").Activate
OracleLogon("OracleLogon").CloseForm
OracleNotification("Caution").Cancel
OracleLogon("OracleLogon").Save
OracleListOfValues("Responsibilities").Select "Application Developer"
Back to top
SelectMenu Method
Description
Selects a menu option.
Syntax
object.SelectMenu (Item)
Arguments
Parameter | Description |
---|
Item |
Required. A String value. The name of the menu item. You must specify the full path to the menu item, using "->" as the separator between menu options. For example, you would specify the Print menu option as follows: "File->Print...".
|
Return Type
None.
Example
Exit the Oracle Applications Session (VBScript) 'The following example uses the SelectMenu method to exit the Oracle Applications session
'by selecting "Exit" from the "File" menu.
OracleApplications("OracleApplications").Sync 60
OracleLogon("OracleLogon").Logon "OPERATIONS", "4259010bd162d3a772a2c7618359e6ba5e590516"
OracleListOfValues("Responsibilities").Select "Application Developer"
OracleNavigator("OracleNavigator").SelectMenu "File->Log on as a Different User..."
OracleLogon("OracleLogon").SelectMenu "File->Exit Oracle Applications"
OracleNotification("Caution").Approve
Back to top
SelectPopupMenu Method
Description
Invoke context menu and select the specified menu option.
Syntax
object.SelectPopupMenu (Path)
Arguments
Parameter | Description |
---|
Path |
Required. A String value. The path of the menu to open.
|
Return Type
None.
Example
Select an Option in a Pop-Up Menu (VBScript) 'This example uses the SelectFunction method to select a function containing a tree, and navigates to the "Default - Enhancement [40]" node.
'It then uses the SelectPopupMenu method to open the pop-up menu and select the "Find..." option, and enters a search query.
OracleNavigator("OracleNavigator").SelectFunction "Territory Management:Territory Administration"
'Expand the nodes to navigate to an item with a pop-up menu.
OracleFormWindow("Navigator").OracleTree("Navigator").Expand "Territories->Catch All->Oracle Defect Management"
OracleFormWindow("Navigator").OracleTree("Navigator").Expand "Territories->Catch All->Oracle Defect Management->Default - Enhancement [40]"
'Open the pop-up menu and select the Find option.
OracleFormWindow("Navigator").OracleTree("Navigator").SelectPopupMenu "Find..."
'Enter a search query.
OracleFormWindow("Territory Search").OracleTextField("Usage").OpenDialog
Back to top
See also: