Less09 2 e_testermodule_8

Preview:

DESCRIPTION

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

Citation preview

Copyright © 2008, Oracle. All rights reserved.

Custom Tests

Introduction to Oracle Application Testing Suite: e-Tester

Copyright © 2008, Oracle. All rights reserved.9 - 2

e-Tester Programmability

e-Tester provides the behavior of a visual script can be modified with test Scriptlets:

• Test Scriptlets: Customized test cases using VBScript code that executes inline during playback.

Copyright © 2008, Oracle. All rights reserved.

Table Tests

Introduction to Oracle Application Testing Suite: e-Tester

Copyright © 2008, Oracle. All rights reserved.9 - 4

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.

The Table test is essentially many text matching tests in one.

Copyright © 2008, Oracle. All rights reserved.9 - 5

Table Tests

Select the page to insert the test on.

Make sure that the page is loaded in the e-Tester browser.

Launch the Custom Object Test Wizard

Tests can be inserted by any one of the following methods:

• Click “Insert Table Test” toolbar icon

• Select Tests/Insert Table Test…

Copyright © 2008, Oracle. All rights reserved.9 - 6

Table Tests

Specify a name for the Test

Copyright © 2008, Oracle. All rights reserved.9 - 7

Select Table

Click on the table to be tested on the web page.

The “Object Selector” places the path of the selected table in the “Selected Path” field.

Copyright © 2008, Oracle. All rights reserved.9 - 8

Table Tests

For each row in the table,• Choose the test type:

– Numeric: Perform numeric operator tests

– String: Compare text to a string or expression

– Boolean: Evaluate true, false, or a databank variable

• Specify the test expression

Click the “Finish” button

Copyright © 2008, Oracle. All rights reserved.9 - 9

Table Tests

The Table Test is inserted in the User Defined Tests sub-node under the Frame node

Copyright © 2008, Oracle. All rights reserved.

Dialog and Authentication Manager

Introduction to Oracle Application Testing Suite: e-Tester

Copyright © 2008, Oracle. All rights reserved.9 - 11

Dialog Box

Many websites use custom pop-up dialog boxes for input or for specific questions to the user.

Copyright © 2008, Oracle. All rights reserved.9 - 12

Automatically Dismiss Dialogs

E-Tester is enabled to dismiss dialog boxes by default

To disable, select “Options/Playback”

Uncheck the “Automatically Dismiss Dialogs During Playback” checkbox

Copyright © 2008, Oracle. All rights reserved.9 - 13

Dialog Manager

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.

Copyright © 2008, Oracle. All rights reserved.9 - 14

Configure Dialog Manager

To add a new dialog box perform the following:

• Select “Admin / Dialog Manager…”

Copyright © 2008, Oracle. All rights reserved.9 - 15

Dialog Box Selector

Open the “Dialog Box Selector” by clicking on the “Point” button to select a dialog box anywhere on the screen.

The dialog box properties will be displayed in the dialog manager.

Click Add to accept.

Copyright © 2008, Oracle. All rights reserved.9 - 16

Dialog Definitions

Dialog Definitions can be modified in the “Dialog Definition” and “Action Editor.”

Captions, Text, Actions, and Dialog whether the dialog is fatal may be modified or partially specified using Wildcards

Use the asterisk (*) to specify wildcards

Copyright © 2008, Oracle. All rights reserved.9 - 17

Dialog Actions

Text should be enclosed within single quotes - ‘’

Switch tags are enclosed within square brackets - []

Key tags maybe used to perform keyboard actions within a dialog box - {ENTER}

Special actions tags are used to perform other actions within a dialog box - {CANCEL}

Variable tags are used to pass data from the Authentication Manager or a Data Bank to a Dialog Box - <<var_name>>

Copyright © 2008, Oracle. All rights reserved.9 - 19

Data Banked Dialog Actions

Some Actions require Form Input

These Actions may be Databanked

• Enclose variables within <<>>

• Switch control between fields using []

• Enter databank value for Ticker

• Hit the enter key

Copyright © 2008, Oracle. All rights reserved.9 - 20

Authentication Manager

Authentication manager allows automated testing of sites that require a challenge login to authenticate users and works in association with the dialog manager.

Authentication dialogs are usually generated by either a proxy server or operating system controlled security.

Copyright © 2008, Oracle. All rights reserved.9 - 21

Configure Authentication Manager

Configure Authentication Manager by:

• Selecting “Admin/Authentication Manager.”

Copyright © 2008, Oracle. All rights reserved.9 - 22

Configure Authentication Manager

Realm: Specifies the URL that requires authentication

Username: The username required for authentication

Password: The password needed for authentication

Copyright © 2008, Oracle. All rights reserved.9 - 23

Data Banked Username/Password

Create a Data Bank variable, and bind it to a Data Bank file.

Map the Username and password to the variables created.

• Use the <<VariableName>> syntax to specify variable names

Copyright © 2008, Oracle. All rights reserved.9 - 24

Review 8

1. Is it possible to databank the values to be inserted into a dialog box? If so, how would you do it?

2. Which record would be used if there were two records in the dialog manager with the same caption and text, but different actions?

3. What does the fatal checkbox do in the dialog manager?

4. What would you do to the authentication manager settings if you changed the domain (URL) for your scripts?

5. How would you handle an authentication dialog where you also have to enter the domain name?

Recommended