Less10 2 e_testermodule_9

2,335 views

Published on

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

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,335
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 - Stand-Alone Scripts *Reset To Original State:* clears any left-over, persistent settings from a previous recording and playback. Selecting this option resets e-Tester to a clean start-up state. The default browser window name is reset to none, persistent cookies are cleared, user authentication is cleared, and any external browser windows that may have been opened are closed.
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 - Comparison Exclusion Options Content Content Comparison Filters - specifies regular expressions used to exclude specific text strings from the e-Tester playback comparison. Specify any regular expression and click Add. The following expressions are predefined: BV_SessionID=[0-9]*.[0-9]*& BV_EngineID=[a-z]*.[0-9]*& VALUE="[0-9]*" Automatic Contents Comparison Filters - specifies if specific types of machine-generated web page components should be included or excluded from the playback comparison. These settings are used in cases where HTML source appears to be machine-generated, but is necessary for page navigation or other testing, e-Tester must override the defaults heuristic comparison program for accurate playback comparison. URLs - when selected, parts of URLs that appear to be machine-generated are ignored during the playback comparison. Elements - when selected, parts of form elements that appear to be machine-generated are ignored during the playback comparison.
  • Oracle Application Testing Suite: Introduction 10 - Comparison Exclusion Options (continued) Scripts - when selected, parts of script literals that appear to be machine-generated are ignored during the playback comparison. HTML - when selected, parts of HTML that appears to be machine-generated is ignored during the playback comparison. The “Automatic Contents Comparison” filters settings apply globally to the Web page component types. Use the “Content Comparison” filters expressions with these settings to specify the exclusions for comparison filters.
  • Oracle Application Testing Suite: Introduction 10 - Comparison Exclusion Options (continued) URL Parameter Specifies components of a URL to exclude from the playback comparison. The settings can use pattern matching to specify components of the URL to exclude. The pattern matches are performed using the Visual Basic Like operator. Use the Add, Modify and Remove options to change the default parameters and parameter values. URL Parameters - specifies URL parameters to exclude from Visual Script playback comparison using the following format: LikePattern - the pattern to match for the value of the URL parameter. For example: param1=* param2=* param3=* paramN=* The following expressions are predefined: BV_EngineID=* BV_Operation=*
  • Oracle Application Testing Suite: Introduction 10 - Comparison Exclusion Options (continued) The following expressions are predefined (continued): BV_SessionID=* BV_ServiceName=* The following examples show how specific settings affect the playback comparison. For the following URL: http://www.foo.com/engine123/submit.pl?name1=value1&name2=value2 name*=value* excludes the URL parameters name1=value1 and name2=value2 from the playback comparison. For the following URL: <A HREF=/frameset/news.jsp?BV_SessionID=@@@@0166988701.0932590606@@@@&BV_EngineID=calfdfllemjbfdicfmjcfkkdhhm.0&selected=news.htm> BV_EngineID=* BV_SessionID=* BV_SourceName=* excludes the URL parameters BV_SessionID=@@@@0166988701.0932590606@@@@&BV_EngineID=calfdfllemjbfdicfmjcfkkdhhm.0 URL Parameter Values - specifies URL parameter values to exclude from Visual Script playback comparison using the following format: LikePattern - the pattern to match for the value of the URL parameter value. Each exclusion string must be separated from the other exclusion strings by commas, as follows: val1* val2* val3* valN* The following example shows how specific settings affect the playback comparison. For the following URL: http://www.foo.com/engine123/submit.pl?name1=value1&name2=value2 value* excludes the URL parameters value1 and value2 from the playback comparison.
  • Oracle Application Testing Suite: Introduction 10 - Comparison Exclusion Options (continued) URL Subpath - specifies URL path values to exclude from visual script playback comparison using the following format: LikePattern is the pattern to match for the path of the URL. Each exclusion string must be separated from the other exclusion strings by commas, as follows: path1* path2* path3* pathN* The following example shows how specific settings affect the playback comparison. For the following URL: http://www.oracle.com/engine123/submit.pl?name1=value1&name2=value2 www*.oracle.com,engine* excludes the URL path parameters www.oracle.com, engine123 and submit.pl from the playback comparison.
  • Oracle Application Testing Suite: Introduction 10 - Siebel Support Oracle Application Testing Suite supports Siebel versions 7.0.5 and above as leverages the Siebel Correlation library with Siebel 7.7 and above
  • Oracle Application Testing Suite: Introduction 10 - Settings Manager To change settings across multiple Visual Scripts in a Workspace: 1. Open the Settings Manager at the level where you want to change a setting (global, workspace, script, or page). 2. Expand the category. 3. Select the setting to change. 4. Click Replace. Settings Manager opens a dialog box for specifying which visual scripts to change. 5. Select the Visual Script(s) to change and click Add. 6. Double-click the setting name below the visual script list. 7. Change the setting value as needed. 8. Click OK.
  • Oracle Application Testing Suite: Introduction 10 - Settings Manager (continued) To use the Settings Manager 1. Open the setting manager at the level where you want to change a setting (global, workspace, script, or page). 2. Expand the appropriate category. 3. Double-click the setting name. The setting value changes to either a selector list or a text field. 4. Change the setting value (either by selecting from the list or by entering a string value into a text field). 5. Click OK.
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 -
  • Oracle Application Testing Suite: Introduction 10 - Windows Event Recorder e-Tester also includes a Windows Event recording mode that you can use to record actions on Flash/ActiveX objects. The Window Event Recorder records events on Windows objects rather than DHTML events. To Record Window Events: 1. Start e-Tester recording. 2. While recording a Visual Script, select Run > Record > Start Windows Event Recorder, or click the toolbar button, to enable the Window Event Recorder mode. 3. Navigate the Web site. 4. Select Run > Record > Stop Windows Event Recorder, or click the toolbar button, to disable the Window Event Recorder mode. 5. Stop e-Tester recording. The Start and Stop Event Recorder options are only available while e-Tester is in record mode. The Windows Events are recorded to the Address node properties.
  • Less10 2 e_testermodule_9

    1. 1. Cookie Handling Introduction to Oracle Application Testing Suite: e-Tester
    2. 2. Cookies <ul><li>Cookie: Information that a Web site puts on your hard disk so that it can remember something about you at a later time. </li></ul><ul><li>There are two different types of cookies: </li></ul><ul><ul><li>Persistent cookie: Stored in a file on the user’s machine, good until expiration date. </li></ul></ul><ul><ul><li>Session cookie: Lasts only for the duration of the browser’s session. </li></ul></ul><ul><li>Cookies can significantly affect the UI presentation of a Web Site. </li></ul><ul><li>“Edit / Reset Browser State” clears session cookies. </li></ul>
    3. 3. Use Distinct Cookie Directory <ul><li>By default the “Use Distinct Cookie Directory” is selected </li></ul><ul><li>The distinct cookie directory keeps all of the e-Tester cookies separate from the IE browser cookies. </li></ul>
    4. 4. Cookie Handling Options <ul><li>To change the cookie handling options: </li></ul><ul><ul><li>Select Options/Current Script/Playback </li></ul></ul><ul><li>The “Playback/Script Options” screen contains cookie handling options that are set on a per script basis. </li></ul>
    5. 5. Clear Session Cookies <ul><li>Start New Browser Session Before Playback: </li></ul><ul><ul><li>Clears all session cookies from the e-Tester browser. </li></ul></ul><ul><li>Reset Browser to Original State Before Playback: </li></ul><ul><ul><li>Closes all external e-Tester windows before playback. </li></ul></ul>
    6. 6. Delete Persistent Cookies <ul><li>Delete Persistent Cookies Before Playback: </li></ul><ul><ul><li>Deletes the cookies written to the e-Tester cookie directory. </li></ul></ul><ul><ul><li>Default options need to be changed when creating linked scripts. More on this later. </li></ul></ul>
    7. 7. Stand-Alone Scripts <ul><li>All stand-alone scripts should reset the browser and remove all cookies in order to ensure that the scripts play back consistently. </li></ul><ul><li>Stand-alone scripts should always reset the browser before recording, to clear any session cookies. </li></ul><ul><li>To reset the browser, select Edit/Reset To Original State </li></ul>
    8. 8. Linked Scripts <ul><li>When recording, it is common to repeat actions across multiple scripts. </li></ul>Login Script Sell Script Research Script Home Page Login Log Out Sell a Stock Confirm Sale Research a Stock Stock Search Results Company Details Home Page Login Log Out Home Page Login Log Out
    9. 9. Linked Scripts <ul><li>When actions are repeated, it may make sense to create smaller scripts and link them together. </li></ul>Logout Script Login Script Sell Script Research Script Home Page Login Sell a Stock Confirm Sale Research a Stock Stock Search Results Company Details Log Out
    10. 10. Linked Scripts <ul><li>In the previous example, the “Sell” script and “Research” script have been modified from their original format </li></ul><ul><li>Each script no longer contains the login or the log off Functionality </li></ul><ul><li>Instead Login and Log Off have become completely separate scripts </li></ul><ul><li>The “Sell”, “Research” and “Log Off” scripts can all execute following a successful login. </li></ul><ul><li>The “Sell” and “Research” scripts can execute following any successful script execution except the “Log Out” script. </li></ul>
    11. 11. Linked Scripts <ul><li>The linking of scripts allows multiple combinations of the same scripts. For example: </li></ul><ul><ul><li>Log in, log off </li></ul></ul><ul><ul><li>Log in, sell, log off </li></ul></ul><ul><ul><li>Log in, research, log off </li></ul></ul><ul><ul><li>Log in, sell, research, log off </li></ul></ul><ul><ul><li>Log in, research, sell, log off </li></ul></ul><ul><ul><li>Log in, sell, sell, sell, log off </li></ul></ul>
    12. 12. Think About Linked Scripts <ul><li>When linking scripts, it is important to maintain cookies across all of the scripts. </li></ul><ul><li>In the previous example: </li></ul><ul><ul><li>The login script should clear cookies and reset the browser. </li></ul></ul><ul><ul><li>The sell, research, and logoff script should NOT clear cookies or reset the browser. </li></ul></ul>
    13. 13. Think About Linked Scripts <ul><li>Benefits of Linked Scripts </li></ul><ul><ul><li>Allows the tester to focus load on specific functionality when using e-Load. </li></ul></ul><ul><ul><li>Allows for shorter scripts. </li></ul></ul><ul><li>Drawbacks of chaining scripts together </li></ul><ul><ul><li>May require more maintenance if used for functional testing. </li></ul></ul>
    14. 14. Job Scheduler Introduction to Oracle Application Testing Suite
    15. 15. Job Scheduler <ul><li>Job Scheduler can execute scripts on a scheduled basis and play scripts in e-Tester unattended </li></ul><ul><li>Job Scheduler is useful when: </li></ul><ul><ul><li>Scripts must be run on each new release. </li></ul></ul><ul><ul><li>Batching linked scripts. </li></ul></ul><ul><li>. </li></ul>
    16. 16. Job Scheduler Wizard - Step 1 <ul><li>Select scripts you want to execute from any Workspace </li></ul><ul><ul><li>Select scripts from multiple workspaces </li></ul></ul><ul><ul><li>Arrange the play order of added scripts </li></ul></ul>
    17. 17. Job Scheduler - Step 2a <ul><li>Customize the error message to report the results of the job execution. </li></ul>
    18. 18. Job Scheduler - Step 2b <ul><li>Set up email notification to report the results of the job </li></ul><ul><ul><li>Can send both and HTML summary and text log of results </li></ul></ul><ul><ul><li>Can specify multiple email recipients </li></ul></ul><ul><ul><li>Separate email addresses with comma or semicolon </li></ul></ul>
    19. 19. Schedule Jobs <ul><li>Schedule the days and times to execute the job by: </li></ul><ul><ul><li>Dragging the jobs to the schedule </li></ul></ul><ul><ul><li>Double-clicking on the schedule </li></ul></ul>
    20. 20. Schedule Jobs <ul><li>Job Scheduler will control the execution of the job at the scheduled time. </li></ul><ul><li>All scripts in the job are executed </li></ul><ul><li>Jobs can be run on an ad-hoc basis </li></ul>
    21. 21. Using Job Scheduler <ul><li>Configure email settings for sending results </li></ul><ul><ul><li>“Tools/Configure Mail Server” </li></ul></ul><ul><ul><li>Setup either SMTP or MAPI send options </li></ul></ul><ul><li>View job results through a browser display </li></ul><ul><ul><li>“Results/View Job Report” </li></ul></ul><ul><li>Send playback results to the Virtual User Display </li></ul><ul><ul><li>“Results/Virtual User Display” </li></ul></ul>
    22. 22. Miscellaneous Options Introduction to Oracle Application Testing Suite: e-Tester
    23. 23. Comparison Exclusion <ul><li>Enables exclusion of certain web page components from playback content comparison. </li></ul><ul><li>Comparison exclusion can be applied to </li></ul><ul><ul><li>HTML </li></ul></ul><ul><ul><li>URL </li></ul></ul><ul><ul><li>Scripts </li></ul></ul><ul><ul><li>Elements </li></ul></ul><ul><li>Uses regular expression syntax </li></ul>
    24. 24. Regular Expressions <ul><li>A standardized syntax that specifies a textual pattern </li></ul><ul><li>Example A: 2:15PM 11/12/2003 </li></ul><ul><li>Example B: 12:45AM 5/5/1902 </li></ul><ul><li>Similarities between Example A and B are that they represent a time/date stamp </li></ul><ul><li>Both use the same format of ##:##$$ ##/##/#### where # is any digit and $ is any alpha character. </li></ul>
    25. 25. Regular Expressions <ul><li>Regular expressions have some commonly used switches </li></ul><ul><ul><li>“*” The preceding character occurs 0 or more times. </li></ul></ul><ul><ul><li>“+” The preceding character occurs 1 or mor times. </li></ul></ul><ul><ul><li>“” The succeeding character is a literal, therefore always used and not variable. </li></ul></ul><ul><ul><li>“[]” are used to specify a range of characters to use </li></ul></ul><ul><ul><li>“|” used as “OR” </li></ul></ul>
    26. 26. Regular Expressions <ul><li>Regular Expressions can be used to specify a pattern to simulate the previous examples of </li></ul><ul><ul><li>2:15PM 11/12/2003 and </li></ul></ul><ul><ul><li>12:45AM 5/5/1902 </li></ul></ul><ul><li>This is the pattern: </li></ul><ul><ul><li>[0-9]+:[0-9]+[A|P]M [0-9]+/[0-9]+/[0-9]+ </li></ul></ul><ul><ul><li>If there were any other similarities between the two numbers, a less generic pattern could have been used </li></ul></ul>
    27. 27. Comparison Exclusion Options <ul><li>The Content tab allows the user to specify textual patterns to ignore within the HTML document </li></ul><ul><li>For example: Time/Date Stamps, Rotating Links/Images </li></ul>
    28. 28. Comparison Exclusion Options <ul><li>The content tab allows the user to specify textual patterns to ignore within the HTML document </li></ul><ul><li>For example: time/date stamps, rotating links/images </li></ul>
    29. 29. Comparison Exclusion Options <ul><li>The URL Parameter tab allows the user to ignore parameter information passed within URL’s </li></ul>
    30. 30. Comparison Exclusion Options <ul><li>The URL Parameter tab allows the user to ignore parameter information passed within URL’s </li></ul>
    31. 31. Comparison Exclusion Options <ul><li>Many applications pass dynamic information in the query string of the URL. </li></ul><ul><li>A query string encompasses everything following the “?” in a URL. The following is an example: </li></ul><ul><li>http://www.oracle.com/default.jsp?jSessionID=ffsu2sdr1 </li></ul><ul><li>In this case the “jSessionID=ffsu2sdr1” is the query string. </li></ul>
    32. 32. Comparison Exclusion Options <ul><li>In the previous example, the value, “ffsu2sdr1” is dynamic. If the whole string changes and it’s name is the only static item, “jSessionID=*” can be added to the “URL Parameter Filters” section. </li></ul><ul><li>“*” may also be used as a wildcard in this example. </li></ul><ul><li>If the value “ffsu2sdr1” changes dynamically, but only the value following “ffsu2” changes, a regular expression can be used in the URL “Parameter Value Filters” section. </li></ul>
    33. 33. Comparison Exclusion Options <ul><li>The URL sub path tab allows the user to ignore a portion of the URL </li></ul>
    34. 34. Comparison Exclusions Options <ul><li>A URL Subpath is a word used by Oracle Application Testing Suite to mean any portion of the URL between slashes. </li></ul><ul><li>For example: http://www.oracle.com/AKDR1asd34/default.jsp </li></ul><ul><li>“ www.oracle.com,” “AKDR1asd34,” and “default.jsp” all are considered URL subpaths. </li></ul><ul><li>Any subpath text pattern that is updating dynamically can be added to the URL subpath section. </li></ul>
    35. 35. Comparison Exclusions Summary <ul><li>Regular Expressions help users specify textual patterns. It’s commonly used in, but not limited to, Unix and Perl </li></ul><ul><li>Empirix uses Regular Expressions to help the Oracle Application Testing Suite ignore dynamically changing data </li></ul><ul><li>This functionality allows the QA Engineer to be highly specific in what is ignored in a dynamically updating web page </li></ul>
    36. 36. Siebel Support <ul><li>Options/Current Script/Advanced/Siebel Support </li></ul><ul><li>Enable Siebel Support </li></ul>
    37. 37. Settings Manager Introduction to Oracle Application Testing Suite: e-Tester
    38. 38. Settings Manager <ul><li>Settings can be applied at various levels: </li></ul><ul><ul><li>Global </li></ul></ul><ul><ul><li>Workspace </li></ul></ul><ul><ul><li>Script </li></ul></ul><ul><ul><li>Page </li></ul></ul><ul><li>Select the Options/Settings Manager/and so on… menu option. </li></ul><ul><li>Be careful when changing settings here. There should be a specific reason for modifying settings here. </li></ul>
    39. 39. Settings Manager <ul><li>Select level on which to apply the setting </li></ul><ul><li>Select Advanced in the Filter section to display all settings </li></ul>
    40. 40. Java Applets Introduction to Oracle Application Testing Suite: e-Tester
    41. 41. Java Applets <ul><li>e-Tester has the ability to test Java Applet applications on two predominant Java Virtual Machines (JVM): </li></ul><ul><ul><li>Microsoft </li></ul></ul><ul><ul><li>Sun (versions 1.2, 1.3, 1.3.1) </li></ul></ul><ul><li>To use the Sun JVM, install the Java Plugin 1.3 (or higher) from http://java.sun.com/products/plugin/ </li></ul>
    42. 42. Recording Java Applets <ul><li>e-Tester automatically captures user interaction with applets. </li></ul>
    43. 43. Java Options <ul><li>Select Options/Current Script/Advanced/Java Applets </li></ul><ul><li>Choose the Default Support (Recommended) option. </li></ul><ul><li>To use Sun Applets, check the Sun Plug-in Applet Version 1.3 checkbox. </li></ul>
    44. 44. Java Object Node <ul><li>An java or object node is displayed in the tree view of the visual script for applets. </li></ul>
    45. 45. Page Snapshot <ul><li>When recording Java applets, actions can be executed without a page navigation occurring. </li></ul><ul><li>e-Tester records page actions after each navigation. </li></ul><ul><li>To capture Applet navigations manually: </li></ul><ul><ul><li>Click on the Snap the current state of the page button. </li></ul></ul><ul><ul><li>Select Run/Record/Page Snapshot. </li></ul></ul>
    46. 46. Windows Event Recorder <ul><li>In order to record interactions with Flash and Active X, the Windows Event Recorder must be used </li></ul><ul><li>Either select from the toolbar or Run > Record > Start Windows Event Recorder </li></ul><ul><li>The recorded actions are coordinate based </li></ul>
    47. 47. Workshop <ul><li>Browse to http://localhost/fmstocks </li></ul><ul><li>Navigate through pages building a script that buys, researches and sells stocks. </li></ul><ul><li>Build multiple sections for “modular” construction in job scheduler </li></ul><ul><li>Apply data banking, manual tests and data driven tests and any or all items learned during our time together. </li></ul>
    48. 48. Support <ul><li>Customer Support Center </li></ul><ul><ul><li>http://metalink.oracle.com </li></ul></ul>

    ×