Custom Tests Introduction to Oracle Application Testing Suite: e-Tester
e-Tester Programmability <ul><li>e-Tester provides the behavior of a visual script can be modified with test Scriptlets: <...
Table Tests Introduction to Oracle Application Testing Suite: e-Tester
Table Test <ul><li>e-Tester includes a table test functional test case for validating page content stored in HTML tables. ...
Table Tests <ul><li>Select the page to insert the test on. </li></ul><ul><li>Make sure that the page is loaded in the e-Te...
Table Tests <ul><li>Specify a name for the Test </li></ul>
Select Table <ul><li>Click on the table to be tested on the web page. </li></ul><ul><li>The “Object Selector” places  the ...
Table Tests <ul><li>For each row in the table, </li></ul><ul><ul><li>Choose the test type: </li></ul></ul><ul><ul><ul><li>...
Table Tests <ul><li>The Table Test is inserted in the User Defined Tests sub-node under the Frame node </li></ul>
Dialog and Authentication Manager Introduction to Oracle Application Testing Suite: e-Tester
Dialog Box <ul><li>Many websites use custom pop-up dialog boxes for input or for specific questions to the user. </li></ul>
Automatically Dismiss Dialogs <ul><li>E-Tester is enabled to dismiss dialog boxes by default </li></ul><ul><li>To disable,...
Dialog Manager <ul><li>Dialogs are actually windows objects and therefore require special handling on playback. The dialog...
Configure Dialog Manager <ul><li>To add a new dialog box perform the following: </li></ul><ul><ul><li>Select “Admin / Dial...
Dialog Box Selector <ul><li>Open the “Dialog Box Selector” by clicking on the “Point” button to select a dialog box anywhe...
Dialog Definitions <ul><li>Dialog Definitions can be modified in the “Dialog Definition” and “Action Editor.” </li></ul><u...
Dialog Actions <ul><li>Text should be enclosed within single quotes - ‘’ </li></ul><ul><li>Switch tags are enclosed within...
Dialog Actions <ul><li>Text should be enclosed within single quotes - ‘’ </li></ul><ul><li>Switch tags are enclosed within...
Data Banked Dialog Actions <ul><li>Some Actions require Form Input </li></ul><ul><li>These Actions may be Databanked </li>...
Authentication Manager <ul><li>Authentication manager allows automated testing of sites that require a challenge login to ...
Configure Authentication Manager <ul><li>Configure Authentication Manager by: </li></ul><ul><ul><li>Selecting “Admin/Authe...
Configure Authentication Manager <ul><li>Realm:  Specifies the URL that requires authentication </li></ul><ul><li>Username...
Data Banked Username/Password <ul><li>Create a Data Bank variable, and bind it to a Data Bank file. </li></ul><ul><li>Map ...
Review 8 <ul><li>Is it possible to databank the values to be inserted into a dialog box? If so, how would you do it? </li>...
Upcoming SlideShare
Loading in …5
×

Less09 2 e_testermodule_8

715 views

Published on

This is part of R12 Testing Suite for Oracle Applications or E-Business suite.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
715
On SlideShare
0
From Embeds
0
Number of Embeds
16
Actions
Shares
0
Downloads
20
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Oracle Application Testing Suite: Introduction 9 -
  • Oracle Application Testing Suite: Introduction 9 - Table Test e-Tester includes a Table Test functional test case for validating page content stored in HTML tables. This allows you to check the content of specific tables and table cells for content validation during playback.
  • Oracle Application Testing Suite: Introduction 9 - Table Tests Uncheck the checkbox in the cell that you do not wish to test. By default testing for all the cells is enabled.
  • Oracle Application Testing Suite: Introduction 9 -
  • Oracle Application Testing Suite: Introduction 9 -
  • Oracle Application Testing Suite: Introduction 9 - Dialog Manager The Dialog Manager lets you specify actions to perform if an unexpected dialog box appears during playback of a Visual Script. You can define specific properties of dialog boxes, the priority of dialog boxes, an action to perform if a dialog box appears, and if the appearance of the dialog box should cause a fatal error.
  • Oracle Application Testing Suite: Introduction 9 -
  • Oracle Application Testing Suite: Introduction 9 - Dialog Box Selector To capture dialog information: 1. Select Admin &gt; Dialog Manager to start the Dialog Manager. 2. Click the capture button. 3. Click the left mouse-button on the dialog box to capture. The caption and text information is captured directly from the displayed dialog box. 4. Select or enter the Action to perform if the dialog appears during playback. You can enter Data Bank variable names and special keyboard actions into the Action field. See “ Using Action Options” for additional information about the valid values. 5. Select or clear the Dialog is fatal, abort playback check box if the appearance of the dialog box should indicate a fatal error. 6. Click the Add button. 7. Click OK to save and apply any changes.
  • Oracle Application Testing Suite: Introduction 9 -
  • Oracle Application Testing Suite: Introduction 9 - Dialog Actions Switch Tags - Switch tags are use to change the focus within a dialog box. Enclose switch tags between square brackets. The following switch tags are defined: [Label] Switch to next control labeled Label. [DEFAULT] Switch to the default control [NEXTTAB]Switch to next control in the Tab order. [PREVTAB] Switch to previous control in the Tab order. [TOPTAB] Switch to top-level dialog window. Text - The action field can contain text to enter into a dialog box control. Enclose text between single quotation marks. &apos;text&apos; Any text. &apos; Use the backslash character to include a single quotation mark within a text string. Key Tags - Key tags are use to perform keyboard actions within a dialog box. Enclose key tags between curly braces. The following key tags are defined: + Press and hold the Shift key. Used as a prefix for other keys (i.e. {+Enter}). ^ Press and hold the Crtl key. Used as a prefix for other keys (i.e. {^Enter}). % Press and hold the Alt key. Used as a prefix for other keys (i.e. {%Enter}).
  • Oracle Application Testing Suite: Introduction 9 - Dialog Actions (continued) {key} Press any alphanumeric key. Keys {A}-{Z} and {0}-{9} are valid. {DOWN} Press the down-arrow key. {ENTER} Press the Enter key. {ESC} Press the Esc key. {ESCAPE} Press the Esc key. {F#} Press a function number key. Keys {F1} through {F12} are valid. {LEFT} Press the left-arrow key. {RIGHT} Press the right-arrow key. {SPACE} Press the Space key. {SPC} Press the Space key. {UP} Press the up-arrow key. Special Actions Tags - Special action tags are use to perform other actions within a dialog box. Enclose special action tags between curly braces. The following special action tags are defined: {CANCEL} Click the Cancel button. {CLICK} Click the dialog item with the focus. {DEFAULT}Click the default button. {OK} Click the OK button. {NO} Click the No button. {WAIT:n} Wait for n milliseconds. {YES} Click the Yes button. Variable Tags - Variable tags are use to pass data from the Authentication Manager or a Data Bank to a dialog box. Enclose variable tags between double angle brackets. The following variable tags are defined: &lt;&lt;var_name&gt;&gt; Any Data Bank variable name. &lt;&lt;_username_&gt;&gt; Authentication Manager user name variable. &lt;&lt;_password_&gt;&gt; Authentication Manager password variable.
  • Oracle Application Testing Suite: Introduction 9 -
  • Oracle Application Testing Suite: Introduction 9 -
  • Oracle Application Testing Suite: Introduction 9 -
  • Oracle Application Testing Suite: Introduction 9 -
  • Oracle Application Testing Suite: Introduction 9 - Databank Username/Password Authentication Manager: Lists the defined Authentication records available to Visual Scripts. Realm - the full Uniform Resource Locator (URL) for the Web application that requires a user name and password. User Name - the user name value to pass to the Web application. Password - the password value to pass to the Web application. Map User Name to Variable - shows the name of the data Bank variable, if any, that maps the User Name value. Map Password to Variable - shows the name of the Data Bank variable, if any, that maps the Password value. Add - adds new authentication information to the list. Modify - updates the selected authentication information in the list. Remove - removes the currently selected authentication information from the list.
  • Oracle Application Testing Suite: Introduction 9 -
  • Less09 2 e_testermodule_8

    1. 1. Custom Tests Introduction to Oracle Application Testing Suite: e-Tester
    2. 2. e-Tester Programmability <ul><li>e-Tester provides the behavior of a visual script can be modified with test Scriptlets: </li></ul><ul><ul><li>Test Scriptlets: Customized test cases using VBScript code that executes inline during playback. </li></ul></ul>
    3. 3. Table Tests Introduction to Oracle Application Testing Suite: e-Tester
    4. 4. Table Test <ul><li>e-Tester includes a table test functional test case for validating page content stored in HTML tables. </li></ul><ul><li>This allows you to check the content of specific tables and table cells for content validation during playback. </li></ul><ul><li>The Table test is essentially many text matching tests in one. </li></ul>
    5. 5. Table Tests <ul><li>Select the page to insert the test on. </li></ul><ul><li>Make sure that the page is loaded in the e-Tester browser. </li></ul><ul><li>Launch the Custom Object Test Wizard </li></ul><ul><li>Tests can be inserted by any one of the following methods: </li></ul><ul><ul><li>Click “Insert Table Test” toolbar icon </li></ul></ul><ul><ul><li>Select Tests/Insert Table Test… </li></ul></ul>
    6. 6. Table Tests <ul><li>Specify a name for the Test </li></ul>
    7. 7. Select Table <ul><li>Click on the table to be tested on the web page. </li></ul><ul><li>The “Object Selector” places the path of the selected table in the “Selected Path” field. </li></ul>
    8. 8. Table Tests <ul><li>For each row in the table, </li></ul><ul><ul><li>Choose the test type: </li></ul></ul><ul><ul><ul><li>Numeric: Perform numeric operator tests </li></ul></ul></ul><ul><ul><ul><li>String: Compare text to a string or expression </li></ul></ul></ul><ul><ul><ul><li>Boolean: Evaluate true, false, or a databank variable </li></ul></ul></ul><ul><ul><li>Specify the test expression </li></ul></ul><ul><li>Click the “Finish” button </li></ul>
    9. 9. Table Tests <ul><li>The Table Test is inserted in the User Defined Tests sub-node under the Frame node </li></ul>
    10. 10. Dialog and Authentication Manager Introduction to Oracle Application Testing Suite: e-Tester
    11. 11. Dialog Box <ul><li>Many websites use custom pop-up dialog boxes for input or for specific questions to the user. </li></ul>
    12. 12. Automatically Dismiss Dialogs <ul><li>E-Tester is enabled to dismiss dialog boxes by default </li></ul><ul><li>To disable, select “Options/Playback” </li></ul><ul><li>Uncheck the “Automatically Dismiss Dialogs During Playback” checkbox </li></ul>
    13. 13. Dialog Manager <ul><li>Dialogs are actually windows objects and therefore require special handling on playback. The dialog manager identifies dialog boxes and uses listed actions to dismiss an expected dialog box appears during playback. </li></ul>
    14. 14. Configure Dialog Manager <ul><li>To add a new dialog box perform the following: </li></ul><ul><ul><li>Select “Admin / Dialog Manager…” </li></ul></ul>
    15. 15. Dialog Box Selector <ul><li>Open the “Dialog Box Selector” by clicking on the “Point” button to select a dialog box anywhere on the screen. </li></ul><ul><li>The dialog box properties will be displayed in the dialog manager. </li></ul><ul><li>Click Add to accept. </li></ul>
    16. 16. Dialog Definitions <ul><li>Dialog Definitions can be modified in the “Dialog Definition” and “Action Editor.” </li></ul><ul><li>Captions, Text, Actions, and Dialog whether the dialog is fatal may be modified or partially specified using Wildcards </li></ul><ul><li>Use the asterisk (*) to specify wildcards </li></ul>
    17. 17. Dialog Actions <ul><li>Text should be enclosed within single quotes - ‘’ </li></ul><ul><li>Switch tags are enclosed within square brackets - [] </li></ul><ul><li>Key tags maybe used to perform keyboard actions within a dialog box - {ENTER} </li></ul><ul><li>Special actions tags are used to perform other actions within a dialog box - {CANCEL} </li></ul><ul><li>Variable tags are used to pass data from the Authentication Manager or a Data Bank to a Dialog Box - <<var_name>> </li></ul>
    18. 18. Dialog Actions <ul><li>Text should be enclosed within single quotes - ‘’ </li></ul><ul><li>Switch tags are enclosed within square brackets - [] </li></ul><ul><li>Key tags maybe used to perform keyboard actions within a dialog box - {ENTER} </li></ul><ul><li>Special actions tags are used to perform other actions within a dialog box - {CANCEL} </li></ul><ul><li>Variable tags are used to pass data from the Authentication Manager or a Data Bank to a Dialog Box - <<var_name>> </li></ul>
    19. 19. Data Banked Dialog Actions <ul><li>Some Actions require Form Input </li></ul><ul><li>These Actions may be Databanked </li></ul><ul><ul><li>Enclose variables within <<>> </li></ul></ul><ul><ul><li>Switch control between fields using [] </li></ul></ul><ul><ul><li>Enter databank value for Ticker </li></ul></ul><ul><ul><li>Hit the enter key </li></ul></ul>
    20. 20. Authentication Manager <ul><li>Authentication manager allows automated testing of sites that require a challenge login to authenticate users and works in association with the dialog manager. </li></ul><ul><li>Authentication dialogs are usually generated by either a proxy server or operating system controlled security. </li></ul>
    21. 21. Configure Authentication Manager <ul><li>Configure Authentication Manager by: </li></ul><ul><ul><li>Selecting “Admin/Authentication Manager.” </li></ul></ul>
    22. 22. Configure Authentication Manager <ul><li>Realm: Specifies the URL that requires authentication </li></ul><ul><li>Username: The username required for authentication </li></ul><ul><li>Password: The password needed for authentication </li></ul>
    23. 23. Data Banked Username/Password <ul><li>Create a Data Bank variable, and bind it to a Data Bank file. </li></ul><ul><li>Map the Username and password to the variables created. </li></ul><ul><ul><li>Use the <<VariableName>> syntax to specify variable names </li></ul></ul>
    24. 24. Review 8 <ul><li>Is it possible to databank the values to be inserted into a dialog box? If so, how would you do it? </li></ul><ul><li>Which record would be used if there were two records in the dialog manager with the same caption and text, but different actions? </li></ul><ul><li>What does the fatal checkbox do in the dialog manager? </li></ul><ul><li>What would you do to the authentication manager settings if you changed the domain (URL) for your scripts? </li></ul><ul><li>How would you handle an authentication dialog where you also have to enter the domain name? </li></ul>

    ×