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 i can change shared repository to per test repository in qtp
How will u find that how many List boxes( and check boxes) are present in one particular window
how to write testcases for web based insurance,from the script by using qtp.
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)?
Describe the process for writing text check point for a web application?
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
What is expert view in qtp?
Explain about the Test Fusion Report of QTP?
Is the provision for integrating QTP with QC ,available from the version 9.0 onwards only or even 8.2 version has such provisions?
Please guide me release notes of Automation once scripts are completed
when to start the automation?
4. what is the use of Text output value in Qtp?