Академический Документы
Профессиональный Документы
Культура Документы
LAB OBJECTIVE
Overview of UML
RAM : 256 MB
Hard Disk : 40 GB
Software
All systems are configured in DUAL BOOT mode i.e., Students can boot from Windows
XP or Linux as per their lab requirement.
This is very useful for students because they are familiar with different Operating
Systems so that they can execute their programs in different programming
environments.
Oracle 9i client version is installed in all systems. On the server, account for each
student has been created.
Software Testing and Case Tools Lab
This is very useful because students can save their work ( scenarios’, pl/sql
programs, data related projects ,etc) in their own accounts. Each student work is safe and
secure from other students.
Latest Technologies like DOT NET and J2EE are installed in some systems.
Before submitting their final project, they can start doing mini project from 2nd year
onwards.
Students can execute their assembly language programs using MASM. MASM is
very useful students because when they execute their programs they can see
contents of Processor Registers and how each instruction is being executed in the
CPU.
Using this software, students can depict UML diagrams of their projects.
Softwares installed: C, C++, JDK1.5, MASM, OFFICE-XP, J2EE and DOT NET,
Rational Rose.
Systems are assigned numbers and same system is allotted for students when they
do the lab.
Software Testing and Case Tools Lab
Guidelines to Students
1. Learn what the UML is, what it is not and why it is relevant to the process of developing software-
intensive systems
2. Master the vocabulary rules and idioms of the UML and in general how to speak the language
efficiently
The user guide provides a reference to the use of specific UML features, However it is not
intended to be a comprehensive reference manual for UML. That is focus on other book, The
Unified Modeling Language Reference Manual
For the developer approaching the UML for the first time, the user guide is best-read
linearly. All chapters are constructed so that each builds upon the contents of previous one, thus
lending it as linear progression.
Software Testing and Case Tools Lab
S. No Programs
1. ATM system
1. Model
A model is a simplification of reality.
A model provides the blueprints of a system.
A model may be structural, emphasizing the organization of the system,
or it may be behavioral, emphasizing the dynamics of the system.
We build models so that we can better understand the system we are
developing.
We build models of complex systems because we cannot comprehend
such a system in its entirety.
2. Principles of Modeling
Visualizing
Specifying
Constructing
Documenting
- State Diagram - The status condition and responses of the elements of a system
1.ATM system
Aim: UML software is designed for supporting from a computer ATM banking network.
Solutionution: All the process involves in the bank is computerized in the state. All accounts are
maintained in the bank and also the transaction affected including ATM transactions at the
process by the computers in the bank.
An AT M accepts a relevant cash card, interacts with the user, communicates with the
central system, carry out the transaction, dispenses cash and then print receipts. The system
designed and implemented must include appropriate record keeping and security provisions the
system must have concurrent access to the same account.
Diagrams:
1. Class diagram.
3. Activity diagram.
4. Sequence diagram.
5. Collaboration diagram.
6. Component diagram.
7. Deployment diagram.
Bank officer
Deposit funds
Customer Make payment
Client
Transfer funds
Software Testing and Case Tools Lab
Insert
card
Enter
PIN
Enter
transition
Any more transaction
No more transaction
Remove
card
Software Testing and Case Tools Lab
A : Atm ac : B : Bank
machine account client
1: Insert card
Insert PIN
3 : Enter PIN
4 : Verification
5 : PIN ok
7 : Process transaction
8 : Enter amount
9 : Amount entered
10 : Withdrawal
11 : Withdrawal success
12 : Dispense cash
13 : take cash
14 : Terminate
15 : Print slip
16 : Eject card
Software Testing and Case Tools Lab
ATM.exe
ATM Screen
Software Testing and Case Tools Lab
Solutionution: a system lends books and magazines to members who are registered in the
system .A member can reserve a book, receive and return a book by the person from the library.
Diagrams:
1. Class diagram.
3. Activity diagram.
4. Sequence diagram.
5. Collaboration diagram.
6. Component diagram.
7. Deployment diagram.
Purchase
Register
Lends
Reserve
Librarian1 User1
Update
Take
Reservation Return
Software Testing and Case Tools Lab
User_id
valid
Register
Carry operation
repeat
Log out
Software Testing and Case Tools Lab
User id
Check
Valid
Register
Not available
Receive
Lend
Return
Update
Software Testing and Case Tools Lab
1.User id
2.Register
3.Receive
8.Return
User Librarian
7.Take
4.Valid 2.checks
5.Not 9.Update
Data base
Software Testing and Case Tools Lab
Librarian
Student
Borrow_books
Software Testing and Case Tools Lab
Does
updation ...
Admin
Book
Aplies for
b...
registrat...
Student
Provides
b...
Software Testing and Case Tools Lab
Undelivered
Indicates
start o... No one at house
Indicates end
of a st...
Software Testing and Case Tools Lab
Solutionution:: A member can reserve a fight tickets, to specify their boarding and
destination place of passengers (adult & children) and date of travel.
Diagrams:
1. Class diagram.
3. Activity diagram.
4. Sequence diagram.
5. Collaboration diagram.
6. Component diagram.
7. Deployment diagram.
<<auto cancel>>
manage a reservation
make a reservation
check-in passanger
reservation maker
baggage agent
make
reservation
auto fuel
prepare cargo
hold
check-in
pilot check
board plane
close main
door
Software Testing and Case Tools Lab
4.valid()
6.destination()
7.destination() 8.show flights
Software Testing and Case Tools Lab
passang flight
er
ticket
Software Testing and Case Tools Lab
MS
Access
reserve
ticket
flight flight
details status
Software Testing and Case Tools Lab
purchased
price change (today=expiry date)
price change
(today<expiry date) excersible
knocked-in
exercise/exercise
References
Books / Material
Text Books
Grady Booch, James Rumbaugh, Ivar Jacobson : The Unified Modeling Language User Guide,
1.
Pearson Education.
Hans-Erik Eriksson, Magnus Penker, Brian Lyons, David Fado: UML 2 Toolkit,
2.
WILEY-dreamtech India Pvt. Ltd.
2) Atul Kahate: Object Oriented Analysis & Design, The McGraw-Hill Companies
Ivar Jacobson, Grady Booch, James Rumbaugh: The Unified Software Development Process,
4)
Pearson Education
Web sites
1) http://en.wikipedia.org/wiki/Unified_Modeling_Language
2) http://atlas.kennesaw.edu/~dbraun/csis4650/A&D/index.htm
Software Testing and Case Tools Lab
PART II
SOFTWARE TESTING
OBJECTIVES OF THE LAB
2. A good test case is one that has a high probability of finding an as yet undiscovered error.
REQUIREMENTS
System configuration :
128 MB of RAM , Win NT server, Win 2K server, IIS 5.0, MSAccess/Oracle 7.x,8.x,9/MS SQL
,WinRunner Tool,
Selenium Tool,
Test Director,
Bugzilla,
Test Link,
QTPTool.
Software Testing and Case Tools Lab
1. Write programs in „C‟ Language to demonstrate the working of the following a. constructs: i)
do...while ii) while….do iii) if…else iv) switch v) for
2. ―A program written in „C‟ language for Matrix Multiplication fails‖ Introspect the causes for its
failure and write down the possible reasons for its failure.
3. Take any system (e.g. ATM system) and study its system specifications and report the various bugs
4. Write the test cases for any known application (e.g. Banking application)
5. Create a test plan document for any application (e.g. Library Management System)
Solution:
// WHILE LOOP
#include<stdio.h>
int main()
{
int n,i=1,sum=0;
printf("ENTER THE VALUE OF N:");
scanf("%d",&n);
printf("First %d numbers are\n",n);
while (i<=n)
{
printf("%7d ",i); //%7 to print the digit within 7 slots
sum = sum +i;
i++;
}
printf("\nSum = %d\n",sum);
return 0;
}
// DO WHILE LOOP
#include<stdio.h>
int main ()
{
int n,i=1,sum=0;
printf("ENTER THE VALUE OF N:");
scanf("%d",&n);
printf("First %d numbers are\n",n);
do
{
Software Testing and Case Tools Lab
printf("%d,",i);
sum=sum+i;
i++;
}
while(i<=n);
printf("\n\nSum=%d\n",sum);
return 0;
}
//FOR LOOP
#include<stdio.h>
int main()
{
int n,i=1,sum=0;
printf("ENTER THE VALUE OF N:");
scanf("%d",&n);
printf("First %d numbers are\n",n);
for(i=1;i<=n;i++)
{
printf("%7d",i);
sum=sum+i;
}
printf("\n\nSum = %d",sum);
return 0;
}
//Switch Case:
#include<stdio.h>
#include<stdlib.h>
void main()
{
int a,b,res,ch;
printf("\t *********************");
printf("\n\tMENU\n");
Software Testing and Case Tools Lab
printf("\t********************");
printf("\n\t(1)ADDITION");
printf("\n\t(2)SUBTRACTION");
printf("\n\t(3)MULTIPLICATION");
printf("\n\t(4)DIVISION");
printf("\n\t(5)REMAINDER");
printf("\n\t(0)EXIT");
printf("\n\t********************");
printf("\n\n\tEnter your choice:");
scanf("%d",&ch);
if(ch<=5 & ch>0)
{
printf("Enter two numbers:\n");
scanf("%d%d",&a,&b);
}
switch(ch)
{
case 1:
res=a+b;
printf("\n Addition:%d",res);
break;
case 2:
res=a-b;
printf("\n Subtraction:%d",res);
break;
case 3:
res=a*b;
printf("\n Multiplication:%d",res);
break;
case 4:
res=a/b;
printf("\n Division:%d",res);
break;
case 5:
res=a%b;
printf("\n Remainder:%d",res);
break;
case 0:
printf("\n Choice Terminated");
exit(1);
Software Testing and Case Tools Lab
break;
default:
printf("\n Invalid Choice");
}
}
Out Put
SOLUTION:
include<stdio.h>
void main()
int m,n,p,q,c,d,sum=0;
int first[1000][1000],second[10],multiply[10][10];
clrscr();
scanf("%d%d ‘,&m,&n);
for(c=0;c<m;c++);
for(d=0;d<n;d++)
scanf("%d",&first[c][d));
scanf("%d%d",&p,&q);
if(n!=p)
else
for(c=0;c<p;c++)
for(d=0;d<q;d++)
scanf("%d",&second[c][d]);
for(c=0;c<m;c++)
for(d=0;d<q;d++)
for(k=0;k<p;k++)
sum=sum+first[c][k]*second[k][d];
multiply[c][d]=sum;
sum=0;
for(c=0;c<m;c++)
for(d=0;d<q;d++);
printf("%d\t",multiply[c][d]);
printf("\n");
}
Software Testing and Case Tools Lab
1. In the program array size is given as 1000 then the bug as “Array Size too
Large”. So Matrix Multiplication Fails.
2. In the program ‘;’ is missed so bug is ” Statement missing ;”.
3. In the program we entered “ ’ ” in place of ‘ “ ‘ then the bug as “Expression
Syntax” and “Unterminated String or character constant”.
4. The bug “Invalid indirection” comes when we miss array size of matrix [10].
5. The bug “Declaration Syntax error” when we miss # in header file.
6. The bug “Code has no Effect” when we took ‘)’ in place of ’]’.
7. When we kept “VOID MAIN “ then it returns as a warning of “void
functions may not return a value”.
8. When we insert an extra symbol of ‘)’ then it has a bug of “statement
missing ;”.
9. Then runtime error is found when give “print” in place of “printf” as shown
Undefined symbol –print in module MATRIXMUL.C
10.The bug “Undefined symbol ‘k’” when missed k in the declaration.
11.The program output when the two matrices are as follows
Enter first matrix no.of rows and columns 2 3
Enter second matrix no.of rows and columns 2 3
Then the bug as”Matrices with entered orders can’t be multiplied with each
other”.
Software Testing and Case Tools Lab
Ex:3 Take any system (e.g. ATM system) and study its system specifications and
report the various bugs.
Solution:
The software to be designed will control a simulated automated teller
machine (ATM) having a magnetic stripe reader for reading an ATM card, a
customer conSolutione (keyboard and display) for interaction with the customer, a
slot for depositing envelopes, a dispenser for cash (in multiples of $20), a printer
for printing customer receipts, and a key-operated switch to allow an operator to
start or stop the machine. The ATM will communicate with the bank's computer
over an appropriate communication link. (The software on the latter is not part of
the requirements for this problem.)
The ATM will service one customer at a time. A customer will be required
to insert an ATM card and enter a personal identification number (PIN) - both of
which will be sent to the bank for validation as part of each transaction. The
customer will then be able to perform one or more transactions. The card will be
retained in the machine until the customer indicates that he/she desires no further
transactions, at which point it will be returned - except as noted below. The ATM
must be able to provide the following services to the customer:
The ATM will communicate each transaction to the bank and obtain
verification that it was allowed by the bank. Ordinarily, a transaction will be
considered complete by the bank once it has been approved. In the case of a
deposit, a second message will be sent to the bank indicating that the customer has
deposited the envelope. (If the customer fails to deposit the envelope within the
timeout period, or presses cancel instead, no second message will be sent to the
bank and the deposit will not be credited to the customer.)If the bank determines
that the customer's PIN is invalid, the customer will be required to re-enter the
PIN before a transaction can proceed. If the customer is unable to successfully
enter the PIN after three tries, the card will be permanently retained by the
machine, and the customer will have to contact the bank to get it back.
If a transaction fails for any reason other than an invalid PIN, the ATM will
display an explanation of the problem, and will then ask the customer whether
he/she wants to do another transaction.
The ATM will provide the customer with a printed receipt for each successful
transaction, showing the date, time, machine location, type of transaction,
account(s), amount, and ending and available balance(s) of the affected account
("to" account for transfers).
The ATM will have a key-operated switch that will allow an operator to start
and stop the servicing of customers. After turning the switch to the "on" position,
the operator will be required to verify and enter
the total cash on hand. The machine can only be turned off when it is not servicing
a customer. When the switch is moved to the "off" position, the machine will shut
down, so that the operator may remove deposit envelopes and reload the machine
with cash, blank receipts, etc.
The ATM will also maintain an internal log of transactions to facilitate
reSolutionving ambiguities arising from a hardware failure in the middle of a
transaction. Entries will be made in the log when the ATM is started up and shut
down, for each message sent to the Bank (along with the response back, if one is
expected) for the dispensing of cash, and for the receiving of an envelope. Log
entries may contain card numbers and dollar amounts, but for security will never
contain a PIN.
Bug Priority:
World Web dictionary defines the word “Priority” as - Status established in order
of importance or urgency. Priority of a defect/bug tells us how soon it is required
Software Testing and Case Tools Lab
to fix the problem. Priority reflects a business decision as to how soon that bug
should be fixed. Priority of the bug determines what gets fixed next and what does
not. The priority of a bug can be decided from either the Project management point
of view or from the user’s point of view. A bug that is of high priority from the
Project management point of view may or may not be of high priority if assessed
from the user’s point of view. Check with your users; their prioritizations may
surprise you! Priority of a bug can be classified as:
P1 – FIX the bug ASAP before the release, preferably in the current development
iteration itself.
P2 – The Bug can be fixed in the successive iteration. But the fix must be done
before the next major release of the Product.
P3 – The bug can be left to be fixed in the subsequent releases.
P4 – There is no hurry. This bug can be fixed as and when time permits.
Low Severity and High Priority Bug: Suppose you are testing an ATM machine
Software Testing and Case Tools Lab
and you notice that the welcome screen displays a misspelled Bank name! (e.g. in
place of “Welcome to ICICI Bank” it rather displays “Welcome to UCICI Bank”.
This is quite possible, considering the fact that the letters “U” and “I” share close
neighborhood in a typical QWERTY type keyboard). This might be a cosmetic
error and would not hamper the functioning of the ATM machine in any possible
way; still this could prove to be a real pain in the eyes for a customer. Considering
that the spelling error is in a frequently used part of the program, it might give an
overall bad impression that could hurt the Bank’s reputation. These kinds of bugs
are real annoyance for the customers and no Bank would want to loose revenue for
a silly error like this one. So though this bug is of low severity, its priority would
be high for obvious reasons. It is quite interesting that often, low severity cosmetic
errors like these get a high priority.
High Severity and Low Priority Bug: Think of a bug that cause the ATM
machine to black out if an user tries to use an expired ATM card and try it for 13
consecutive times (even after the machine keeps rejecting it)! Sounds like a critical
crash? Well, it might be a critical bug as far as its severity is concerned, but don’t
be too surprised if you see a low Priority being assigned to it. Reason? I think its
obvious!
High Severity and High Priority Bug: These kinds of bugs are easier to imagine.
Any kind of bug that results in some major catastrophic failure (crashes, system
hang, memory corruptions, data loss, functionalities that does not work and so on)
and that occurs in areas of the application that are frequently used can be classified
under such types of high severity and high priority bugs. Think of scenarios where
the ATM machine - does not detect a valid card even after entering correct PIN
number, hangs if tried with an invalid card and/or PIN number, blocks the card
after just 1 unsuccessful entry of PIN (instead of 3 wrong entries), does not
dispense money even if there is sufficient cash in the a/c and in the ATM machine,
dispenses incorrect amount to the user, does not forget the previous session even
after the transaction is complete (in case of ATM machines where you have to
swipe your card instead of inserting it), does not return the card even after the
transaction is complete and so on. As you can imagine all of these cases of bugs
can fall under high severity and high priority type.
Software Testing and Case Tools Lab
Low Severity and Low Priority Bug: These are often low impact low on
urgency-meter bugs that are quite harmless and can be fixed without a hurry. These
kind of bugs do not harm the application in a disastrous way and the chance of an
end user/customer being annoyed by it is also very less. Think of a scenario where
the ATM machine does not append a title (Mr/Miss/Mrs) to the name of the
customer in the welcome screen. This would not affect the business in a drastic
way. And there might not be many customers who would mind it if their name is
displayed without a title.
Ex-4:
AIM: Write the test cases for any known application (e.g. Banking application)
Ex 5:
AIM: Create a test plan document for any application (e.g. Library Management
System)
Solution:
1 BACKGROUND
The Library Management System is an online application for assisting a librarian
in managing a book library in a University. The system would provide basic set of
features to add/update clients, add/update books, search for books, and manage
check-in / checkout processes. Our test group tested the system based on the
requirement specification.
2 INTRODUCTION
This test report is the result for testing in the LMS. It mainly focuses on two
problems: what we will test and how we will test.
Software Testing and Case Tools Lab
3 Result
3.1 GUI test
Pass criteria: librarians could use this GUI to interface with the backend library
database without any difficulties
Result: pass
3.2 Database test
Pass criteria: Results of all basic and advanced operations are normal
Result: pass
Result: pass
If customer were deleted, it would not appear in further search queries.
Result: pass
3.3.3.Add a book
Pass criteria:
Each book shall have following attributes: Call Number, ISBN, Title, Author
name.
Result: pass
Result: pass
3.3.4.Update/delete book
Pass criteria:
The book item can be retrieved using the call number
Result: did not pass. Can not retrieve using the call number
The data items which can be updated are: ISBN, Title, Author name
Result: pass
The product shall let Librarian query books’ detail information by their ISBN
number or Author or Title.
Result: pass
The search results would produce a list of books, which match the search
parameters with following Details: Call number, ISBN number, Title, Author
Result: pass
The display would also provide the number of copies which is available for
issue
Result: pass
The display shall provide a means to select one or more rows to a user-list
Result: pass
Result: pass
The check-in can be initiated from a previous search operation where user has
selected a set of books.
Result: pass
The return date would automatically reflect the current system date.
Result: did not pass.
Any late fees would be computed as difference between due date and return
date at rate of 10 cents a day.
Result: did not pass
A book, which has been checked in once, should not be checked in again
Result: pass
3.3.7.Check-out book
Pass criteria:
The checkout can be initiated from a previous search operation where user has
selected a set of books.
Result: pass
The issue date would automatically reflect the current system date.
Result: did not pass
The due date would automatically be stamped as 5 days from current date.
Result: did not pass
A book, which has been checked out once, should not be checked out again
Result: pass
Software Testing and Case Tools Lab
A student who has books due should not be allowed to check out any books
Result: did not pass
The max. No of books that can be issued to a customer would be 10. The
system should not allow checkout of books beyond this limit.
Result: pass
3.3.8.View book detail
Pass criteria:
This view would display details about a selected book from search operation
Result: pass
The details to be displayed are: Call number, IBN, Title, Author, Issue status (In
library or checked out), If book is checked out it would display, User ID &
Name, Checkout date, Due date
Result: for checkout date and due date, did not pass
Result: pass
b. The books issued by user with issue date, due date, call number, title
4 ENVIRONMENTAL USED
4.1 Hardware: Core2Duo
4.2 Software: Microsoft Windows XP
5 RESOURCES
5.1 Developers of the system are involved in testing process (debugging, unit
testing, even integrity testing)
5.2 Users of the system are involved in testing process (integrity testing)
Software Testing and Case Tools Lab
Testing Process
Learning (Objects/Windows Recognition)
Recording (Manual Test into an Automation)
Edit Script (Checkpoints & Ctrl Stmts)
Run Script (Execution of Automated Script)
Analyze Test Results (Defect Tracking for Test Engineers)
Testing an Application
After installing the software, invoke the WinRunner application
Start All Programs WinRunner WinRunner
Give Checkmarks for all Add-Ins in the boxes and click Ok.
Select “New test” to Create a New Test Script (or)
“Open test” to Open an Existing Test Script (or)
“Quick Preview” to View the Quick Preview of WinRunner
Recording Testcases
To test any application first run it and understand its operation.
Invoke WinRunner,again run the application and record the GUI operations.
During recording mode,it captures all your actions.
Once the recording is completed, WinRunner generates a script in TSL.
Run this Test Script to View the Results generated by WinRunner.
Software Testing and Case Tools Lab
In GUI Map Editor ,WinRunner automatically saves the information from the
application
Prepare Test Cases like Some of testcases with correct outputs and some of the
testcases with error messages.
Test cases and Expected outputs for Testing the Calculator Application
GUI Checkpoint used to Verify Properties Of objects which has 3 options such as
Navigation/Procedure
Bitmap Checkpoints
Database Checkpoints
Its used to Automate Backend Testing to verify the impact of frontend
operations on the content of backend tables.
Provides Data Integrity and Data Validation
Procedure:
1. Connect to the Database
2. Execute the Select Statement
3. Capture the result in the Excel Sheet
4. Analyze the result for Data Validation and Data Integrity.
It Consists of 3 Sub Options.
1. Default Check – Backend Testing depends on DB Content.
2. Custom Check – Depends on Rows/Columns Count & Content.
3. Runtime Record Check – Maps B/W Frontend & Backend Columns.
Text Checkpoints
Its used to Conduct Calculations and Other Text Based Tests we can use
gettext option in Create Menu.
It consists of 2 sub options
1. From Object/Window – captures an object value into a variable.
2. From Screen Area – capture the static text from screens.
Software Testing and Case Tools Lab
In Selenium IDE, Speed controller is used to control the speed of how fast your
test case runs. Set it on fast if you want to run fast test case and set it to slow if you
want to run your test case slow.
In Selenium IDE, Run All button is used to run the entire test suite. Suppose you
have created 5 test cases for you application and stored all them in one test suite
and if you like to run all they 5 then open your test suite and press this button. it
will run all the 5 test cases one by one.
Run Button :
Software Testing and Case Tools Lab
In Selenium IDE, Run All button is used to run the selected any one test case.
Pause/Resume Button :
In Selenium IDE, pause button is used to pause the running test case and resume
button is used to resume or restart paused test case.
Step Button :
In Selenium IDE, Step button is used to run test commands manually one by one.
Suppose you have paused your test case and now you like to run remaining
commands one by one then you can use step button. Basically step button is used
debug the script in selenium IDE.
In Selenium IDE, Record button is used to record the users browser navigation and
creating test script for reusing it and stop record button is used to stop recording.
Command Table :
Software Testing and Case Tools Lab
Command table shows the recorded commands. you can also modify commands or
insert any command in between. there are three elements in each command.
SOLUTION:
Introduction
Bugzilla is the most popular bug tracking system available today. Bugzilla’s
popularity is due to its highly customizable interface, easy configuration, and
a large community of very active users. With Bugzilla, you can begin
configuring your products, users, and bugs within minutes of starting up the
Software Testing and Case Tools Lab
Adding Products
You’ll add a product in Bugzilla for every product you are developing. To start
with, when you first login to Bugzilla, you’ll find a test product called
TestProduct. You should delete this and create a new product.
To add a product:
1. At the bottom of the page, click Products.
2. In the TestProduct listing, click Delete.
Software Testing and Case Tools Lab
Specifying Requirements
Planning Tests
Running Tests
Tracking Defects
Starting Test Director
Software Testing and Case Tools Lab
You start TestDirector from your Web browser, using the TestDirector URL.
To start TestDirector:
1 Open the TestDirector Options window.
In your Web browser, type your TestDirector URL:
http://<TestDirector server name>/<virtual directory name>/default.htm
The TestDirector Options window opens.
2 Open TestDirector.
Click the TestDirector link.
The first time you run TestDirector, the application is downloaded to your
computer. Then, each time you open TestDirector, it automatically carries out a
version check. If TestDirector detects a newer version, it downloads the latest
version to your machine.
3 Select a domain.
In the Domain list, select DEFAULT.
4 Select a project.
In the Project list, select TestDirector_Demo.
➤Click the Defects tab. The Defects module enables you to add defects, determine
repair priorities, repair open defects, and analyze the data.
Defining Requirements
Viewing Requirements
Modifying Requirements
Converting Requirements
Planning Tests
Running Tests
Solution:
Test Link: An open source test management tool. It enables creation and
organization of test cases and helps manage into test plan. Allows execution of test
cases from test link itself. One can easily track test results dynamically, generate
reports, generate test metrics, prioritize test cases and assign unfinished tasks.
Software Testing and Case Tools Lab
Its a web based tool with GUI, which provides an ease to develop test cases,
organize test cases into test plans, execute these test cases and generate reports.
Test link exposes API, written in PHP, can help generate quality assurance
dashboards. The functions like AddTestCaseToTestPlan,
AssignRequirements,CreateTestCase etc. helps create and organize test cases per
test plan. Functions like GetTestCasesForTestPlan, GetLastExecutionResult allows
one to create quality assurance dashboard.
1. Initial step would be to create a new Test Project and assign QA testers or
engineers with tasks.
3.Create a content for empty test cases using test specifications that are being
organized into Test suites.
5.Create a Test Plan, Build and link all Test Cases in Test Suite to this Test Plan.
Assign resources to this test plan.
6.Assume QA got there first Build or Release Candidate from development team,
execute and record the testing with the result.
Software Testing and Case Tools Lab
7.Assume QA get new Build or Release Candidate with fixes for blocking issues,
verify these fixes for blocking issues, execute regression tests.
8.Manager (Test or Engineering) and other project related stakeholders want to see
results and status of testing. Then in such a case, these stakeholders including
managers can create accounts or use default Guest account to view test results for a
particular Build. An overall report gets generated for automated test suites, as a
Guest manager is able to view test results at a higher level in graphical format.
9.Suppose new changes happens to existing functionality, its very easy to modify
existing test plan and add new test cases or enhance/modify existing test cases and
attach them to a particular test plan.
11.For new project again QA creates a new Test , follows above steps to
implement TestLink for there project.
Solution:
If you have ever tested applications or Web sites manually, you are aware of the
drawbacks. Manual testing is time-consuming and tedious, requiring a heavy
Software Testing and Case Tools Lab
As QuickTest runs tests, it simulates a human user by moving the cursor in a Web
page or application window, clicking GUI (graphical user interface) objects, and
entering keyboard input; however, QuickTest does this faster than any human user.
Testing Process
1. Preparing to record
Before you record a test, confirm that your application and QuickTest
are set to match the needs of your test.
You run a test to check the behavior of your application or Web site.
While running, QuickTest opens the application, or connects to the
Web site, and performs each step in your test.
7. Reporting defects
If you have Quality Center installed, you can report the defects you
discover to a database. Quality Center is the Mercury test
management Solutionution.
QuickTest Window
Before you begin creating tests, you should familiarize yourself with the main
QuickTest window.
The image below shows a QuickTest window as it would appear after you record a
test, with all toolbars and the Data Table and Active Screen panes displayed:
Software Testing and Case Tools Lab
View toolbar. Contains buttons to view the various panes that can
assist you in the testing process.
Edit toolbar. Contains buttons to assist you in editing your test steps.
Note: The Debug toolbar is not displayed when you open QuickTest
for the first time. You can display the Debug toolbar by choosing
View > Toolbars > Debug, or by clicking the Debug Viewer button
. This tutorial does not describe how to debug a test. For
additional information, refer to the Mercury QuickTest Professional
User's Guide.
Test pane. Contains the Keyword View and Expert View tabs.
Active Screen. Provides a snapshot of your application as it appeared
when you performed a certain step during the recording session.
Data Table. Assists you in parameterizing your test.
Debug Viewer pane. Assists you in debugging your test. The Debug
Viewer pane contains the Watch, Variables, and Command tabs.
(The Debug Viewer pane is not displayed when you open QuickTest
for the first time. You can display the Debug Viewer by choosing
View > Debug Viewer, or by clicking the Debug Viewer button
.)
Information pane. Displays a list of syntax errors found in your test.
Missing Resources pane. Provides a list of the resources that are
specified in your test but cannot be found, such as unmapped shared
object repositories and parameters that are connected to shared object
repositories. (The Missing Resources pane is not displayed when you
open QuickTest for the first time. You can display the Missing
Resources pane by choosing View > Missing Resources, or by
clicking the Missing Resources button .)
Status bar. Displays the status of the QuickTest application and other
relevant information.
Some of the panes and toolbar options listed above are described in detail in
subsequent lessons. For information on other panes and toolbar options, refer to the
QuickTest Professional User's Guide.
You can also execute many menu commands using shortcut keys. For additional
information, refer to the "QuickTest at a Glance" chapter in the QuickTest
Professional User's Guide.
Now that you are familiar with the main QuickTest window, take a few minutes to
explore its components.
Software Testing and Case Tools Lab
Text Books
1.
2.
References
Web sites
1) http://www.wikipedia.com
2) www.utest.com
3) www.softwaretestingmentor.com