Saturday, January 5, 2008

QTP Questions - 12

1. How to get the column count and column name from resultset in database connction program?

1. i am giveing examples so that u can under sand easily.

1).example for recordcount

Set dbconn=createobject("adodb.connection")
dbconn.open "dsn=xxx"

Set objRecordset=createobject("ADODB.Recordset")
objRecordset.open "select * from logintable",dbconn,1,3

msgbox objRecordset.recordcount

2).for field names

For each x in objRecordset.fields
msgbox (x.name)
Next

2. Is Addins enough to work in Flex based applications? or do we have to get a licence for multimedia for Addins. When i record the application the script is not coming. QTP 9.0 trial version is not able to recognise the objects.

3. 1. How to write QTP scripts?

1. First try to record any of the web application like google. So that, you will be understanding the syntax of the the script and try to learn basics of the VB script.

4. Any related website resource to learn QTP?

1. QTP tutorial is more than enough to learn QTP scripting.

5. What steps the to be follwed to write scipts in QTP?

1. To write scripts in QTP first we have to build Object Repository. So, first add objects to the object repository, then set the properties for the objects.

2. Then write script in QTP depends on your requirements.

No comments: