+ All Categories
Home > Technology > Less08 2 e_testermodule_7

Less08 2 e_testermodule_7

Date post: 20-May-2015
Category:
Upload: suresh-mishra
View: 308 times
Download: 0 times
Share this document with a friend
Description:
This is part of R12 Testing Suite for Oracle Applications or E-Business suite.
Popular Tags:
26
Copyright © 2008, Oracle. All rights reserved. Inserting Specific “Tests” Introduction to Oracle Application Testing Suite: e-Tester
Transcript
Page 1: Less08 2 e_testermodule_7

Copyright © 2008, Oracle. All rights reserved.

Inserting Specific “Tests”

Introduction to Oracle Application Testing Suite: e-Tester

Page 2: Less08 2 e_testermodule_7

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

Test Cases

e-Tester provides a variety of test cases that can be inserted into a script.

• Text Matching: Searches for the presence or absence of the specified text on a page.

• Server Response: Measures the page download time for one or more pages in a script, and tests it against the specified thresholds.

• Form Element: Compares the attributes and values of a form element to those specified.

Page 3: Less08 2 e_testermodule_7

Copyright © 2008, Oracle. All rights reserved.

Text

Introduction to Oracle Application Testing Suite: e-Tester

Page 4: Less08 2 e_testermodule_7

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

Text Matching Test

Text Matching Tests can be used to:

• Verify that static text is contained in the returned page.

• Verify that the results returned from a data-driven form submission are accurate.

• Verify that values from a data file are contained in the returned page. The values would be referenced using a data bank variable name (<<variable>>).

Page 5: Less08 2 e_testermodule_7

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

Insert Text Matching Test

Load the page to test in the browser pane.

Highlight the text to search for on the page.

Select “Test/Insert TextMatching Test”

Page 6: Less08 2 e_testermodule_7

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

Insert Text Matching Test

Insert a text matching test by:

• Right-click a page node and select Insert Text Matching Test…

• Click on the “Insert Text MatchingTest” toolbar icon

• Select “Tests/Insert Text Matching Test”

Page 7: Less08 2 e_testermodule_7

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

Insert Text Matching Test

Enter a name for the text matching test.

Specify when to pass the test:• Selected text is present• Selected text is absent

If you did not select text in the browser, specify the text to verify in the “Selected Text” field.

Page 8: Less08 2 e_testermodule_7

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

Insert Text Matching Test

After the Text Matching Test has been inserted:

• A new Tests node will be added to the Visual Script.

• The HTML default test will be ignored automatically.

Multiple Text Matching Tests can be inserted on a page.

Page 9: Less08 2 e_testermodule_7

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

Exercise 1

1. Add a Text Matching Test to the results page of the “Research a Company” script.

2. Verify that the search does not return “0 matches found.”

Page 10: Less08 2 e_testermodule_7

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

Data Driven Text Matching Test

Text Matching Tests can receive variables as test criteria in the “Selected Text” field.

Data driven text matching tests are useful for verifying return values from a form submission.

Page 11: Less08 2 e_testermodule_7

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

Using the Databank to Text Match

Using variable in the “Selected Text” field of a text matching test requires the following syntax:

<<VariableName>>

Page 12: Less08 2 e_testermodule_7

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

Data Driven Text Matching - Example

A Research a Company script uses a Data Bank to search using a ticker symbol.

The search returns a list of results that include the ticker symbol and the company name.

The data driven text matching test can be used to verify that the correct company is listed in the results after a data driven search.

Page 13: Less08 2 e_testermodule_7

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

Exercise 2

1. Open the Research Script.

2. Create databank to test results for users ta1 thru ta5

3. Insert a text matching test to check that the company is Oracle Corporation

Page 14: Less08 2 e_testermodule_7

Copyright © 2008, Oracle. All rights reserved.

Server response test

Introduction to Oracle Application Testing Suite: e-Tester

Page 15: Less08 2 e_testermodule_7

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

Server Response Test

Server Response tests can be use to:

• Measure the time needed for a web server to return the page requested by the browser.

• Measure the total response time for a section of a transaction, spanning multiple pages.

• Verify corporate standards and/or architectural milestones

• Justify hardware and software upgrades, based on expected performance.

Page 16: Less08 2 e_testermodule_7

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

Insert Server Response Test

Select a page and insert a text matching test by:• Right-clicking a page node

and selecting Insert Server Response Test…

• Clicking on the Insert Server

Response Test toolbar icon• Selecting Tests/Insert Server

Response Test…

Page 17: Less08 2 e_testermodule_7

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

Insert Server Response Test

Enter a name for the server response test.

Specify the minimum amount of time allowed for page download.

Specify the maximum amount of time allowed for page download.• e-Tester automatically

selects a default maximum Time that doubles the recorded download time.

Page 18: Less08 2 e_testermodule_7

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

Multiple Page Server Response Test

To insert a server response test that spans multiple pages:

• Insert two server response tests:– One on the page that the test should start on. Uncheck “End

test on this page.”– One on the page that the test should end on. Uncheck

“Begin test on this page,” and specify the minimum/maximum page download times for the spanned pages.

• Name both tests with the same name. (it is not case sensitive.

Page 19: Less08 2 e_testermodule_7

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

Minimum Time Allowed For Playback

The minimum time allowed for playback is useful when a transaction references an external system that requires a certain amount of time to execute.

Example: If the external system requires 5 seconds to complete the transaction, and the page is returned in only 1 second, there could be a communication problem between the web application and the external system.

Page 20: Less08 2 e_testermodule_7

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

Maximum Time Allowed For Playback

The maximum time allowed for playback is useful when verifying that a page or transaction is returned within the amount of time that a user is willing to wait, or that is specified by a company’s business rules.

Example: Most internet users have an attention span of approximately 7 seconds for publicly hosted web pages. If the pages take more than 7 seconds to return, the user may try to find an alternative site.

Page 21: Less08 2 e_testermodule_7

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

Exercise 3

1. Add a Server Response test to verify that the results page (from the “buyStock” script), is returned within 5 seconds.

2. Add a text matching test to check for the text “Your order has been placed” after the purchase step.

3. Add a text matching test to check that the text “Database Unavailable” does not show up on the login page of the buyStock.

Page 22: Less08 2 e_testermodule_7

Copyright © 2008, Oracle. All rights reserved.

Form Element Test

Introduction to Oracle Application Testing Suite: e-Tester

Page 23: Less08 2 e_testermodule_7

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

Insert Form Element Test

Insert a Form Element test by any one of the following:• Right-click on a form

element and select “Insert Form Element Test.”

• Click on the “Insert Form Element” toolbar icon.

• Select “Tests/Insert Form Element Test…”

Page 24: Less08 2 e_testermodule_7

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

Insert Form Element Test

Enter a name for the Form Element Test

Select the Property to execute the test against

Select the Test Criteria

Enter an expression to compare the form element against (if applicable)

Page 25: Less08 2 e_testermodule_7

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

Insert Form Element Test

After the form element test has been inserted:

• A new node is added below the form element under test.

Page 26: Less08 2 e_testermodule_7

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

Review 7

1. Can you insert multiple Text Matching tests on each page?

2. When does it make sense to substitute a text matching test for the default HTML comparison test on a page?

3. If a server response test is not used, how can you tell how long it took for a page to download?

4. What types of pages would it make sense to insert a server response test on?

5. What is the appropriate value for the maximum response time of a server response test?

6. What is a reason to specify the minimum response time?


Recommended