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
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 |
How can we redirect QTP results in to a excel sheet after the execution
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.
Any limitation to XML Checkpoints?
What is the descriptive programming?
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
What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance..
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.
How QTP recognizes Objects in AUT?
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?
What is the pros and cons between QTP and Rational Robot
what is the automation framework that ur company using(actual procedure,not theoritically explination)
How qtp identifies objects?