Wednesday, February 2, 2011

QTP Framework


Frame Work is the model or structure we follow for a
Project. It is the approach that we follow to automate the
Project. There are so many types of framework in QTP.

1. Datadriven frame work
2. Keyword driven frame work
3. Module driven framework
4. Hybrid driven frame work

The framework you choose, depends on the model of your
Project. Usually most of projects fall under hybrid driven
frame work.

Datadriven framework: 
Here we divide the entire project in
to modules and start automation by writing data driven
scripting for each one of them. We will have test data
either in excel sheet or flat files or from database...we
will pass that test data in to the script and perform data
driven testing.

Keyword driven framework:
Firstly we should add the objects to repository( Shared
repository is preferable)
Then we can generate/write scripts for each functionality
and save them as the library files ( .vbs files)
Then we have to associate all these library files(which are
generated to test different funtionalities) to Quick Test.

Module driven frame work: 
we will divide entire project in
to modules and write functions or procedures for each and
every module and automate the project.

Hybrid driven framework: 
it is combination of Datadriven and module driven framework

Date Field Test Cases


1)  Check for the format as per requirement i.e. mm-dd-yy
2)  Check for day month and year( day should not be > 31 similarily month should be<=12 and year as per requirement)
3)  Also try characters and spcl. characters on date if textbox is editable.
4)  Try dates 30-02-2004 i.e validation for month of feb.
5)  Check as per requirement if all parts are separated with / or - or . sign
6)  Click on to the calender icon in front of the date field. calender should be opened.
7)  In the calender current date should be selected
8)  We should be able to select the desired date on to the calender
9)After click on to the selected date date should be come in to the box and calender should be disappeared from there.
10)Should not accept 000000 as a date
11)Should accept 01 or 1 as the month value. The same holds true for day value.