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

what are the cases in which we use XML and accessibility check points.

2 Answers  


What is QTP and the use of QTP in TD?

0 Answers   MaxSolPro,


Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.

0 Answers  


How QTP integrate with application?

1 Answers  


What are the types of environment variables in qtp?

0 Answers  


Hi, My name is kishan. I have good Conceptual Knowledge on QTP. In order to Boost up my Confidence Level, I want to do a Project oriented Training only on QTP in Hyderabad. Kindly Let me know which is the Best QTP Project Training Institute in Hyderabad. Thanks in Advance kishan

0 Answers  


Tell me the QTP Advantages and Disadvatages ?

1 Answers  


In how many ways we can add check points to an application using QTP.

2 Answers   Infogain,


Please explain me frameworks & how to generate the scripts in framework

0 Answers   ADP,


what is difference betweein qtp 9.0 and 9.2

1 Answers  


What are test settings and global settings?

0 Answers  


Give me brief idea about QTP automation object model?

5 Answers   TCS,


Categories