Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Less06 2 e_testermodule_5


Published on

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

  • Be the first to comment

  • Be the first to like this

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>