Date post: | 18-Nov-2014 |
Category: |
Documents |
Upload: | suresh-mishra |
View: | 804 times |
Download: | 0 times |
Copyright © 2008, Oracle. All rights reserved.
The Frame Node
Introduction to Oracle Application Testing Suite: e-Tester
Copyright © 2008, Oracle. All rights reserved.4 - 2
Frame Node
• Images• Image Maps• Anchors• Applets• Active X
Page content is placed into object collections or “sub-nodes”:
• HTML• Scripts• Links• Frames• Forms
Copyright © 2008, Oracle. All rights reserved.4 - 3
Frame Sub-Nodes
HTML Node
Images Collection
Scripts Collection
Links Collection
Copyright © 2008, Oracle. All rights reserved.4 - 4
“Sub Nodes” of the Frame Node
All Sub Nodes of the frames node show node specific properties
All show what tests are executed and what the evaluation criteria are
The example used here is for images which execute two separate types of tests. The execute a Default Content Comparison test as well as a Validation Test
Copyright © 2008, Oracle. All rights reserved.4 - 5
Sub Nodes
For images and links, the default content comparison test validates that the object is referenced at the same point within the HTML document as it was originally recorded.
An additional test may be performed on images and links called resource validation. This submits requests and receives a server response with an HTTP status code for all images and links recorded in the script. The test is launched by selecting “Tests/Run Resource Validation…/Start.”
Other Sub Nodes such as HTML or scripts, may contain specific relevant comparison tests.
Copyright © 2008, Oracle. All rights reserved.
Manipulating the script’s pages
Introduction to Oracle Application Testing Suite: e-Tester
Copyright © 2008, Oracle. All rights reserved.4 - 7
Navigating to a Page in the Application
To navigate to a page:• Right click any page and
select “Goto Page” to navigate to it in the browser pane
• Drag and drop the page node onto the browser pane
Navigation may require session data, therefore previous pages may need to be played back first.
Copyright © 2008, Oracle. All rights reserved.4 - 8
Edit The Visual Script
The Visual Script page hierarchy can be modified to:
• Append pages
• Copy pages
• Cut pages
• Paste pages
• Delete pages
• Add comments
Copyright © 2008, Oracle. All rights reserved.4 - 9
Edit The Visual Script
Be careful when appending, copying, cutting or deleting pages in the middle of a script. Make sure that the recorded actions remain valid. Can I get there from here?
Note: Remember that each action is based on the previous page!
Copyright © 2008, Oracle. All rights reserved.4 - 10
Appending Pages
Append pages to the end of the script by:
• Clicking on the Record Script toolbar icon, to record multiple pages
• Clicking on the Append Current Page to Script toolbar icon
• Selecting Run/Record/Current Page
Copyright © 2008, Oracle. All rights reserved.4 - 11
Copy, Cut, Paste, or Delete a Page
Copy, Cut, Paste, or Delete pages:• Highlight the page to be
copied from the visual script
• Right-click and select one of the following:– Copy Page– Cut Page– Paste Page– Delete Page
Copyright © 2008, Oracle. All rights reserved.4 - 12
Script Comments
Add script comments:• Right-click on the script
node, and select “Script Comments”
• Selecting “Edit/Script Comments…”
Copyright © 2008, Oracle. All rights reserved.4 - 13
Script Comments
Script comments are useful for stating testing goals, or requirements the script tests.
e-Tester automatically writes the save date and version to the script comments each time the script is saved.
Copyright © 2008, Oracle. All rights reserved.4 - 14
Add Page Comments
To add page comments:• Highlight the page you
wish to to add the comment to
• Right-click the page, and selecting “Add Page Comment”
Copyright © 2008, Oracle. All rights reserved.4 - 15
Add Page Comments
Page comments are useful for storing information about custom test cases, or navigational data.
Copyright © 2008, Oracle. All rights reserved.4 - 16
Exercise
1. Create new Script:• http://localhost/fmstocks• Login: ta1 password: ta• Click “Buy a Stock”• Ticker: orcl; shares: 1, click “Purchase”• Click “Click here to view your portfolio”• Logout• Save the script as buyStock
2. Copy page 2 and paste it after the last page of the script
3. Playback the script
What happened?
5. Delete the page that was pasted
6. Do not save the script
Copyright © 2008, Oracle. All rights reserved.4 - 17
Review 3
1. Where can you find the fully qualified URL for page 1?
2. Where can you find the think time between page 1 and 2?
3. Was any user-input form data submitted during this transaction? How can you tell from analyzing the visual script?
4. Do any of the pages contain JavaScript or VBScript functions? What node indicates that?
5. Does the application make use of cookies? What node would indicate that?
Copyright © 2008, Oracle. All rights reserved.4 - 18
Review 3
6. Where can you you find the actions, that e-Tester builds, to navigate to page 3?
7. If the URL for page 3 is dynamic, will e-Tester be able to playback the script?
8. If you delete page 2, will the script playback? Why or why not?
9. If you have the same application residing on a different server, how can you change the script to play against the other application?
10. If a page is made up of multiple frames, how many HTML nodes be displayed for that page (in the visual script?)