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?
Answer Posted / 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 |
Post New Answer View All Answers
1. wat are the main diff b/w QTP 8.0 AND QTP 9.2 ( not user interface) 2. wat is the meaning of Keyword in keyword driven frame work? 3. how u will handle the unknown errors while exucution. (not recovery scenario)
What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti
How to check bitmap output value?
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
How QTP support all types of applications (platforms)?
How to data driven test for Win objects in QTP ?
What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?
Analyzing the checpoint results?
What the differences are and best practical application of Object Repository?
what is error and fault in terms of software quality?
Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations
What is throw object?
How do I get the QTP scripts result in xml format by using vb script function?
Suggest and Define a solution for an application whose objects are not recognized by UFT?