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 - 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 - 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