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 can we redirect QTP results in to a excel sheet after the execution

3 Answers   SAP Labs, Virtusa,


I register user defined function in one test, I tried to call that function into other test. But that function not works in other test please give the direction for that.

1 Answers  


Any limitation to XML Checkpoints?

1 Answers  


What is the descriptive programming?

0 Answers  


if Object repository contain x and y properties. we do not know whether they are mandatory or assistive properties. While executing the script qtp will use both the properties or only sufficient properties to identify the object. It means it use OR (or) AND

8 Answers   ADP,






What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance..

12 Answers   Wipro,


My Project is HOSPITAL CONTROL SYSTEM. In this MY testing modules are In-patient and Out-patient. plz explain those modules. i.e. How explain to Interviewer. with full details also . Waht types of bugs we can fond ? NOTE : IT is a web project plz urgent.

2 Answers  


How QTP recognizes Objects in AUT?

8 Answers   Blue Star,


Hi, Where should I get all the test's results If I ran the scripts in Batch run. At the result window I found only last test result. Could any one help me on this?

3 Answers   Livetek,


What is the pros and cons between QTP and Rational Robot

0 Answers   Virtusa,


what is the automation framework that ur company using(actual procedure,not theoritically explination)

1 Answers  


How qtp identifies objects?

0 Answers  


Categories