23
Copyright © 2008, Oracle. All rights reserved. Custom Tests Introduction to Oracle Application Testing Suite: e-Tester

Less09 2 e_testermodule_8

Embed Size (px)

DESCRIPTION

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

Citation preview

Page 1: Less09 2 e_testermodule_8

Copyright © 2008, Oracle. All rights reserved.

Custom Tests

Introduction to Oracle Application Testing Suite: e-Tester

Page 2: Less09 2 e_testermodule_8

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.

Page 3: Less09 2 e_testermodule_8

Copyright © 2008, Oracle. All rights reserved.

Table Tests

Introduction to Oracle Application Testing Suite: e-Tester

Page 4: Less09 2 e_testermodule_8

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.

Page 5: Less09 2 e_testermodule_8

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…

Page 6: Less09 2 e_testermodule_8

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

Table Tests

Specify a name for the Test

Page 7: Less09 2 e_testermodule_8

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.

Page 8: Less09 2 e_testermodule_8

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

Page 9: Less09 2 e_testermodule_8

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

Page 10: Less09 2 e_testermodule_8

Copyright © 2008, Oracle. All rights reserved.

Dialog and Authentication Manager

Introduction to Oracle Application Testing Suite: e-Tester

Page 11: Less09 2 e_testermodule_8

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.

Page 12: Less09 2 e_testermodule_8

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

Page 13: Less09 2 e_testermodule_8

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.

Page 14: Less09 2 e_testermodule_8

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

Configure Dialog Manager

To add a new dialog box perform the following:

• Select “Admin / Dialog Manager…”

Page 15: Less09 2 e_testermodule_8

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.

Page 16: Less09 2 e_testermodule_8

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

Page 17: Less09 2 e_testermodule_8

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

Page 18: Less09 2 e_testermodule_8

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

Page 19: Less09 2 e_testermodule_8

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.

Page 20: Less09 2 e_testermodule_8

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

Configure Authentication Manager

Configure Authentication Manager by:

• Selecting “Admin/Authentication Manager.”

Page 21: Less09 2 e_testermodule_8

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

Page 22: Less09 2 e_testermodule_8

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

Page 23: Less09 2 e_testermodule_8

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?