Expense Calculator Tests
The Expense Calculator Tests from the class are available at
http://genixcorp.com/testing/expcalc/ExpTests.zip
THIS SITE CONTAINS INFORMATION ABOUT AUTOMATED TESTING USING MERCURY TOOLS.
The Expense Calculator Tests from the class are available at
Below are the classroom assignments for the Flight Reservation application.
Due: 7/25/08
Labels: assignment
DUE: 3/23
The contents within this blog will be described within this tablef contents to make it easier to access material.
The following example loops though an input vlue and prints a triangle based on the number entered
rows = InputBox("enter rows")
x = 1
map = ""
While x <= Cint(rows)
y = 1
While y <= x
map = map & "*"
y = y + 1
Wend
map = map & vbcrlf
x = x + 1
Wend
Msgbox map
Please find attached some of the flight reservation tests. There are currently six tests and I will add the rest over the next few days. Some of the details needed ae:
Labels: Tests
These are flash based demos for specific materials covered in the class:
Labels: QTP
I have included in this post, links to QTP tests we have written in class.
Labels: QTP
Please click below for a rather excellent WinRunner flash based demo.
Labels: WinRunner
Introduction to Testing - A general introduction to the concepts of Quality Assurance.
Here are some examples of requirements documents. You will find the varied styles in use for the creation of these documents.
The site has been re-shuffled, and I hope, simplified. Several small articles have been combined to create a more logical flow.
I had always planned to include a list of links relevant to QA here. I've finally found the time to include them. I suggest creating these as bookmarks as you will find them very useful.
STRING MANIPULATION
Labels: Scripting
EXERCISES
Labels: Scripting
1. Modify the following code using comment and inserting missing symbols so that it would run properly
Labels: Scripting
1. Use comments liberally. It is helpful in every section to identify what is being done and how you intend to do it. This makes it much easier for people to understand what the test intends to do.
If blnTest=True Then
strMessage="Passed"
If numCount=2"
strMessage = strMessage & " again."
End If
Else
strName="Failed"
End If
If blnTest=True Then
strMessage="Passed"
If numCount=2"
strMessage = strMessage & " again."
End If
Else
strName="Failed"
End If
Labels: QTP
The problem of object recognition is a tricky one. Imagine receiving computer help over the phone when the caller tells you what to do to your machine by describing the objects they want you to interact with. For instance, if they want you to open the control panel (on a Windows XP machine), the steps involved might sound like
Labels: QTP
Click on the links below for material useful for testing the Flight Reservation application.
Active X controls are a programming technology that allow developers create objects within a programming language that can now be used in a different programming language. The ActiveX object created is often referred to as a component, because it often has to included inside another application to be used.
To be able to mimic what was done by a user, QTP learns the object the user interacts with by recording enough properties of the object to be able to uniquely identify the object. This, as you know, in QTP is the object repository. The object repository is simply a file that has to be stored on the system. QTP uses two file types for doing this. A TSR file and and MTR file.
The following document identifies some useful steps an process that must be implemented during the test planning phase.
Logical Name Mapping
This document is created to provide a simple guide on steps for performing certain operations in QTP, this does not provide a discussion of 'why', it simply shows 'how'
What is VBScript?
Why ODBC?
------- --------
APP ---> DB
------- --------
V
--------
config
file
-------
------- -------- ----------------
SQL Server DB
APP ---> ODBC ---->---------------
Oracle DB
------- -------- ----------------
What are folders?
Environments that are supported by both QTP and WinRunner. This means that for these environments, Mercury has provided add-ins for both QTP & WinRunner.
| Web | Desktop |
| Internet Explorer | Active X Controls |
| Netscape | Visual Basic |
| AOL | C/C++ |
|
| AWT & JFC |
Environments (different)
Environments that are supported by one of QTP or WinRunner.
| WinRunner | QTP |
| PowerBuilder | .NET |
| Forte | Flash |
| Delphi | XML Web Services |
| Centura |
|
| Stingray |
|
| SmallTalk |
|
User Model
How users interact with the application
| WinRunner | QTP |
| Focus on test script | Synchronized Test Script and Active Screen |
| Requires familiarity with programming | Has an expert mode for programmers |
| Very Powerful | Easy, yet powerful |
Test Creation Process
- Record Script
- Edit Script
Add one or more of the following
Verification
Synchronization
Checkpoints
Data Parameterization
Script Recording Modes
| WinRunner | QTP |
| Context Sensitive - Uses a flat object hierarchy | Context Sensitive - Uses a multi-level object hierarchy |
| Analog - Captures keyboard input, mouse click, mouse path | Low-level - Uses mouse co-ordinates |
Scripts
The process of how scripts are created and stored.
| WinRunner | QTP |
| Programmatic representation | Two modes. Icon based and programmatic representation |
| TSL, similar to C | VBScript, similar to VB |
| Procedural language | Object-oriented language |
| Uses objects from GUI Map | Uses objects from Object Repository |
Object Storage and Operations
How QTP/Winrunner recognize the objects in an AUT and how they store the information about these objects.
| WinRunner | QTP |
| Stored in a flat hierarchy | Multi level object hierarchy |
| Viewed using GUI Spy | Viewed using Object Spy |
| Stored in GUI Map | Stored in Object Repository |
| Creates temporary GUI Map file to hold new objects | Automatically saves object repository |
Additional Items
Miscellaneous details
| WinRunner | QTP |
| Transaction measurement - Through TSL programming | Transaction measurement - Through tree view and VBScript programming |
| Data Driven operations - Create iterations programmatically | Data Driven operations - Create iterations automatically and programmatically |
| Create code using Function generator | Create code using Method wizard generator |
| Exception Handling - Uses the Exception Editor | Exception Handling - Uses the Recovery Scenario Manager |
The most important thing to note about this section is that many of the testing types are not mutually exclusive. You can convievably be doing black-box testing at the same time as system testing.