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


Please Help Members By Posting Answers For Below Questions

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)

1945


What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.

1841


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

2673


How to check bitmap output value?

842


Explain the concept of object repository and how quicktest professional (qtp) recognises objects?

808


How QTP support all types of applications (platforms)?

4253


How to data driven test for Win objects in QTP ?

1660


What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?

829


Analyzing the checpoint results?

767


What the differences are and best practical application of Object Repository?

808


what is error and fault in terms of software quality?

1716


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

1954


What is throw object?

1999


How do I get the QTP scripts result in xml format by using vb script function?

1980


Suggest and Define a solution for an application whose objects are not recognized by UFT?

864