You have a WebTable in Web application. When you Record a
Scenario using QTP, WebTable didn't recognized and also
Repository is not having Webtable information. In this case
How to find RowCount and Coloumn Count?

Answers were Sorted based on User's Feedback



You have a WebTable in Web application. When you Record a Scenario using QTP, WebTable didn't ..

Answer / lakshmi

As per my knowlege, we can solve this by using Descriptive
Programing.Based on your question, we can't record webtable
and this object information is not available in Object
Repositiory but we can get the properties and their values
by using object spy. so in this case we can solve this by
using descriptive programing.

Function Web_Table(ProName,EProVal)

Set BP=Browser("Micclass:=Browser").Page("Micclass:=Page")
Set Desc= Descriptin.Create
Desc("Miclass").Value="WebTable"
Set Objs =BP.ChildObjects(Desc)
For i=0 to Objs.count-1

ProVal=Objs(i).GetROproperty(ProName)
If ProVal=EProVal then
Msgbox Objs(i).GetRowcount
Exit for
End if
Next

End Function.

Call Web_Table "name","WebTable_X"



I hope this will work to get the row count of a webtable.

Please let me know if you have answers.

Thx

Is This Answer Correct ?    7 Yes 0 No

You have a WebTable in Web application. When you Record a Scenario using QTP, WebTable didn't ..

Answer / raemsh

Yes, It worked.. Thanks for your answer9

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How i can change shared repository to per test repository in qtp

1 Answers  


How will u find that how many List boxes( and check boxes) are present in one particular window

8 Answers  


how to write testcases for web based insurance,from the script by using qtp.

1 Answers  


What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?

0 Answers  


Describe the process for writing text check point for a web application?

2 Answers   ssinformatics,






i need to learn the descriptive programming very well so for that what to do am reading the qtp user mannual but it is not so any materials or links with examples i want please help me

2 Answers  


What is expert view in qtp?

0 Answers  


Explain about the Test Fusion Report of QTP?

1 Answers  


Is the provision for integrating QTP with QC ,available from the version 9.0 onwards only or even 8.2 version has such provisions?

1 Answers  


Please guide me release notes of Automation once scripts are completed

0 Answers  


when to start the automation?

0 Answers   Accenture,


4. what is the use of Text output value in Qtp?

1 Answers   Wipro,


Categories