Sunday, August 3, 2008

1.What is smart identification?

A.Smart identification comes into picture when Quick Test fals to recognise an object uniquely using the recorded properties. It follows the following process to identify
the object:

1. QuickTest “forgets” the recorded test object description and creates a new object candidate list containing the objects (within the object’s parent object) that match all of the properties defined in the base filter property list.

2. From that list of objects, QuickTest filters out any object that does not match the first property listed in the Optional Filter Properties list. The remaining objects become the new object candidate list.

3. If the new object candidate list contains more than one object, then step 2 is repeated with the second property listed in Optional Filter Properties list.

4. Step 3&4 are repeated until an the object in recognised
uniquely.

2.How to export data present in Datatable to an ".xls" file?

A.DataTable.Export("Path of the sheet") or DataTable.ExportSheet("Path of the sheet",Index of the runtime datatable u want to export")

3.How u perform exception handling in QTp,what is other name for ths

A.The other name for Exception handling is Recovery scenario.
There are 4 Triggers
1.Popup Window.
2.Object State.
3.Test Error.
4.System Crash.
The solution are
1.Function call.
2.Keyboard or mouse Operation.
3.Restart.

4.What are the enhancements u did after recording ur script?

A.After recording script:
* Placing for loop or If loop in order to get the messages as the operation passes or fails.
* Adding the Checkpoints in order to check the functions.
* Doing parameterization in order to using the multiple datafor more than one iteration or easy data changes. adding. Syncnronization Point.

5.can we run the scripts of qtp 8.2 in the qtp7.0?

A.No,becse 8.2 is the advansed version(add some additional properties) of 7.0.so,we run the scripts of qtp 7.0 in qtp 8.2

6.How to get the column count and column name from the result set in the database connection program?

A.you use following sql query

select column name, count(column name)from table name.

Saturday, August 2, 2008