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

What is the syntax to call one script from another?

540


How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?

614


How to interact tool & application build in QTP?

1465


What are the two types of repositories available, explain them?

594


How will you report the bug and explain the defect tracking sheet you handled?

2557






Explain the types of object repositorys in qtp?

578


Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.

1393


Why is Client side image is preferred over server side image?

1446


describe some problems that u had with automating testing tool?

1415


What is use of object spy?

616


Explain calling sub procedure.

624


Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

1610


Why is action split used by qtp?

562


Explain the concept of object repository?

529


what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?

1378