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.
Sunday, August 3, 2008
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.
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.
* 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.
select column name, count(column name)from table name.
Saturday, August 2, 2008
8.Tell about descriptive programming in qtp8.2?
A.Descriptive Programming is all about identifying an object uniquely. And there is no defined frame work for it. Frame work depends on the project. This is the code for Yahoo Photos Website you can do the Same for the yahoo by changing the values in the required places.
CODE: Browser ("title: =Yahoo! Photos*.*").page
("title:=Yahoo! Photos*.*").Web Edit
("name:=login").set "srinivas"
Browser ("title:=Yahoo! Photos*.*").page("title:=Yahoo!
Photos*.*").WebEdit("name:=passwd").set "test"
Browser("title:=Yahoo! Photos*.*").page("title:=Yahoo!
Photos*.*").WebButton("name:=Sign In").click
CODE: Browser ("title: =Yahoo! Photos*.*").page
("title:=Yahoo! Photos*.*").Web Edit
("name:=login").set "srinivas"
Browser ("title:=Yahoo! Photos*.*").page("title:=Yahoo!
Photos*.*").WebEdit("name:=passwd").set "test"
Browser("title:=Yahoo! Photos*.*").page("title:=Yahoo!
Photos*.*").WebButton("name:=Sign In").click
9.Can we do qtp testing without creating objects in Object repository? Can we do it completely writing code i.e. in expert view only? Are there any b
A.I feel object repository is a must.bcoz whatever recording, debugging etc are to be done they r done on these application itself which r available in the
Repository ......so why do u wants to do coding....???
ey good question, but we do not have application ready. we are creating mock pages and meanwhile we want to keep the scripts ready. so once the application is ready we will run the scripts immediately.
Repository ......so why do u wants to do coding....???
ey good question, but we do not have application ready. we are creating mock pages and meanwhile we want to keep the scripts ready. so once the application is ready we will run the scripts immediately.
10.What is Optional step?
A.When running a test, if a step does not succeed in opening dialog box, QTP does not necessarily abort the test run. It bypasses any step designated "optional" and continues running the test. By default, automatically QTP marks as optional steps that open certain dialog boxes. You can manually designate additional steps as optional
11.How many check points are there in QTP and what are they?
A.QTP supports 9 types of check points.
1. Standard check point.
2. Image check point.
3. Bitmap check point.
4. Page check point.
5. Text check point.
6. Text Area check point.
7. Database check point.
8. Accessibility check point.
9. XML check point.
1. Standard check point.
2. Image check point.
3. Bitmap check point.
4. Page check point.
5. Text check point.
6. Text Area check point.
7. Database check point.
8. Accessibility check point.
9. XML check point.
12.How to export QTP results to an ".xls" file?
A.In qtp automatically .xls file will export to result wind
13.How to get the object property?
A.Using getroproperty or using objspy or in the tree view we can select particular object and right-clicking we can see all properties right any thing mistake make it correct. Just spy that object by using GUI spy, then it will show the object properties, if it is not having the standard properties then go for GUI map configuration and add whatever the properties u want
14.How to retrieve the property of an object in QTP?
A.Using Getroproperty ("text") we will find out the what ever object properties u want other wise by using object spy also we will get object properties
15.Among all the check points what is the most important checkpoint?
A.Each checkpt is imp in its own respect. According to me, database checkpts are more imp than the other
16.Inserting a Call to Action is not importing all columns in Data table of global sheet. Why?
A.As the call is to an Action, the data in the Global sheet will not be available. Only which are necessary for the Action like repository, action's sheet will be imported. So
The test's global sheet and its data will not be available in the calling test.
The test's global sheet and its data will not be available in the calling test.
17.How you handle Pop-up windows which are dynamically changing in Runtime?
A.We use smart-identification for this
18.How do you handle XML exceptions in QTP (Here it is Exception, not the checkpoint)?
A.Using recovery scenario in QTP we can handle any type of exceptions
19.What happen in object repository (shared)if we call an existing action from an external action? And what happen in object repository (per action) i
A.As you said, the existing action already recorded the objects into object repository pertaining to the when you call the external action, it will add the objects to the existing one
20.How to do Batch run in qtp? Provide the steps?
A.Go to tools select the batch test runner. Add the items to be tested and say run
Subscribe to:
Posts (Atom)