Less06 2 e_testermodule_5

568
-1

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
568
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
23
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Oracle Application Testing Suite: Introduction 6 -
  • Oracle Application Testing Suite: Introduction 6 -
  • Oracle Application Testing Suite: Introduction 6 -
  • Oracle Application Testing Suite: Introduction 6 - Think About What to Data Bank User input to form fields is recorded in visual script pages as parameters. Examine the Visual Script and find the page where the form field to be parameterized was captured. If a given field is the same for each iteration, there is no need to databank the field. In this case, the password is the same for all users, therefore there is no need to databank it.
  • Oracle Application Testing Suite: Introduction 6 - Create A Data File Top row contains column header names for the data bank fields. You can give then any name you want. Each succeeding row contains a set of records to be used for each iteration of the script To Data Bank multiple form fields, create multiple columns separated by commas Save file in the ETSeTestDatabank folder
  • Oracle Application Testing Suite: Introduction 6 - Save The Data File The Data Bank file contains the records that will be used as inputs for the form fields during playback The Data Bank may be a CSV (comma separated values) file, or a Text file May be saved in CSV format by Excel, or created by a text editor
  • Oracle Application Testing Suite: Introduction 6 - Data Bank Wizard Select the toolbar button or select Edit > Data Bank Wizard to start the Data Bank Wizard. In the Parameters section find the form field to be databanked.
  • Add Variable Use a naming convention that is easy to understand.
  • Oracle Application Testing Suite: Introduction 6 - Add Mapping Establish “communication” between the variable and the form field. Select the appropriate parameter in the parameters section and the corresponding variable, and then click “Add Mapping”
  • Oracle Application Testing Suite: Introduction 6 -
  • Oracle Application Testing Suite: Introduction 6 - Add Binding Establish “communication” between the variable and the data bank field Highlight the variable and corresponding data bank field and click “Add Binding” The field – variable pairs will appear in the bindings list
  • Oracle Application Testing Suite: Introduction 6 -
  • Oracle Application Testing Suite: Introduction 6 - Fetch Record (Make sure you’re getting good data) Use the Fetch Record button to verify your data bank setup
  • Oracle Application Testing Suite: Introduction 6 - Data Bank Node Indicators Click OK and then examine the Parameters node in the Visual Script The Data Bank Wizard now binds the parameter in the Parameters section to the external data source – indicated by a checkmark next to the parameter
  • Oracle Application Testing Suite: Introduction 6 - Iterate Click the iterate button on the toolbar or Select Run >Playback > Iterate Select Playback with Data Bank and Use All Records Click the Iterate button e-Tester plays back the script and each time populates the data banked form parameters with new data.
  • Oracle Application Testing Suite: Introduction 6 - Playback with Data Bank Click the iterate button on the toolbar or Select Run >Playback > Iterate Select Playback with Data Bank and Use All Records Click the Iterate button e-Tester plays back the script using a different data value for the form field input each time
  • Oracle Application Testing Suite: Introduction 6 -
  • Less06 2 e_testermodule_5

    1. 1. Data Banks Introduction to Oracle Application Testing Suite: e-Tester
    2. 2. Data Banks <ul><li>During recording of a visual script, the data entered into the form fields is recorded in the “Parameters” node. The recorded values are used, during playback. </li></ul><ul><li>A Data Bank allows you to pass data from an external file to forms on playback of a visual script. This allows you to iterate a single script with multiple input values. </li></ul><ul><li>Data can be generated from Notepad, Microsoft Excel, a database application, and so on. </li></ul><ul><li>Java applets and text matching tests can also be data banked. </li></ul>
    3. 3. Data Driven Scripts <ul><li>The user tests multiple input combinations by manually entering the data into the form fields. </li></ul><ul><li>Test Case: Login-Logout </li></ul><ul><li>Home Page </li></ul><ul><li>Enter Login Data & Submit </li></ul><ul><li>Welcome to FMStocks Home Page </li></ul><ul><li>Login Data Sets: </li></ul><ul><li>User Name Password </li></ul><ul><li>Ta1 ta </li></ul><ul><li>Ta2 ta </li></ul><ul><li>Ta3 ta </li></ul>
    4. 4. Automated Data Driven Tests <ul><li>e-Tester tests multiple input combinations by automatically entering the data, from the external file, into the form fields. </li></ul><ul><li>Test Case: Login </li></ul><ul><li>Home Page </li></ul><ul><li>Enter Login Data & Submit </li></ul><ul><li>Welcome to FMStocks Home Page </li></ul><ul><li>Login Data Sets: </li></ul><ul><li>User Name Password </li></ul><ul><li>Ta1 ta </li></ul><ul><li>Ta2 ta </li></ul><ul><li>Ta3 ta </li></ul>
    5. 5. Think About What to Data Bank <ul><li>When setting up a databank, locate where data was submitted within the script. </li></ul><ul><ul><li>Look for the “Parameters” node to find all points where data was submitted during recording of the script. </li></ul></ul><ul><li>Determine which data to change, during playback. </li></ul>
    6. 6. Create A Data File <ul><li>The first row must contain the column headers. </li></ul><ul><li>Each subsequent row will contain the data sets or records. </li></ul><ul><li>The file must be in Comma Separated Value format (each column is separated by a comma). </li></ul><ul><li>The file can be created using Notepad, Excel, or a Database Export. </li></ul>
    7. 7. Save The Data File <ul><li>Save the file as either a .TXT or .CSV file. </li></ul><ul><li>Data file must be saved in the DataBank folder (located in the e-Test Suite install directory) </li></ul><ul><ul><li>~installETSe-TestDatabank </li></ul></ul>
    8. 8. Data Bank Wizard <ul><li>Launch the Data Bank Wizard any one of the following: </li></ul><ul><ul><li>Click on the data bank wizard toolbar icon </li></ul></ul><ul><ul><li>Select Edit/Data Bank Wizard… </li></ul></ul>
    9. 9. Add Variable <ul><li>Variable: Temporary memory space that holds the values retrieved from the external data file. </li></ul><ul><ul><li>Click the “Add Variable” button. </li></ul></ul><ul><ul><li>Enter the variable name. </li></ul></ul>
    10. 10. Add Mapping <ul><li>Select the parameter, and the variable that will hold the matching data. </li></ul><ul><li>Click on the “Add Mapping” button. </li></ul><ul><li>The parameter and the variable will be joined in the mappings section. </li></ul><ul><li>Verify that the mappings are correct. </li></ul>
    11. 11. Data Binding <ul><li>Click the “Data Binding Tab.” </li></ul><ul><li>Click the “Select” button. </li></ul><ul><li>Choose the file to use from the DataBank folder. </li></ul><ul><li>Click Open. </li></ul>
    12. 12. Add Binding <ul><li>Once the Data Bank has been loaded, the headers will be listed in Data Bank Fields </li></ul><ul><li>Select the data bank field, and the variable to hold the data. </li></ul><ul><li>Click “Add Binding.” </li></ul><ul><li>The data bank field and the variable will be joined in the bindings section. </li></ul><ul><li>Verify that the bindings are correct. </li></ul>
    13. 13. Overall Picture <ul><li>Pages provide parameters </li></ul><ul><li>E-Tester (you) define variables </li></ul><ul><li>Databank file provides data </li></ul>Mapping Binding Script Development Playback Page Parameters Variables Databank
    14. 14. Fetch Record <ul><li>Fetch Record button will retrieve the next record in the data file each time it is clicked. </li></ul><ul><li>Use the “Fetch Record” button as a final check to verify that the data is being associated with the correct fields. </li></ul><ul><li>Once the data bank set-up is complete, click the OK button to save and exit. </li></ul>
    15. 15. Edit & Update Databank File <ul><li>The “Edit” button opens the databank file in Notepad and enables you to make changes </li></ul><ul><li>The “Update” button lets you update the current databank file that is selected to the databank wizard. </li></ul>
    16. 16. Data Bank Node Indicators <ul><li>Upon exiting the Data Bank Wizard, the Data Banked Parameters will have a new node icon. </li></ul><ul><ul><li>Checkmark: Parameter has been mapped to a variable and bound to a data field. </li></ul></ul><ul><ul><li>Arrow: Parameter has been mapped to a variable, but has NOT been bound to a data field. </li></ul></ul>
    17. 17. Iterate <ul><li>Playback the visual script with databank multiple times (iterations) by: </li></ul><ul><ul><li>Clicking on the “Iterate” toolbar icon </li></ul></ul><ul><ul><li>Selecting “Run/Playback/Iterate…” </li></ul></ul>
    18. 18. Playback with Data Bank <ul><li>To Iterate the Visual Script, using different data bank values for each iteration: </li></ul><ul><ul><li>Select the Playback with Data Bank radio button. </li></ul></ul><ul><ul><li>Click Iterate. </li></ul></ul>
    19. 19. Exercise <ul><li>Create a script that navigates through the registration page, enter information and submit. Save the script as “registration.” </li></ul><ul><li>Create a data bank file with login info. Save the file as login.txt </li></ul><ul><li>Set up the data bank to use the data from the data bank file. </li></ul><ul><li>Iterate the script using the Data Bank. </li></ul><ul><li>Save the script. </li></ul>
    20. 20. Review 5 <ul><li>What is an advantage to playing back with databank? </li></ul><ul><li>What does a databank variable do? </li></ul><ul><li>True/False When using databank, all fields must be mapped and bound to a databank file. </li></ul><ul><li>How is a script played back with databank? </li></ul><ul><li>What is “Iterate over range” in the iterate dialog? </li></ul>
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×