To get data from table which method will be used in QTP

Answers were Sorted based on User's Feedback



To get data from table which method will be used in QTP..

Answer / nag

to get whole data in web table using loops
run exactly below script(explorer should be default browser
) let me know if i am wrong

Systemutil.Run"https://www.iciciprulife.com/ipru/Current_UnitValue.jsp"
Browser("Browser").Page("ICICI").WebList("navType").Select
"Golden Years"
x=Browser("Browser").Page("ICICI").WebTable("Fund
Name").RowCount
For i=1 to x
y=Browser("Browser").Page("ICICI").WebTable("FundName").ColumnCount(i)
Next
For i=1 to x
For j=1 to y
n=Browser("Browser").Page("ICICI").WebTable("Fund
Name").GetCellData(i,j)
print n

Next

Next
print "no of rows"" "& x
print "no of cplumns"" "&y

Is This Answer Correct ?    2 Yes 0 No

To get data from table which method will be used in QTP..

Answer / mythreyi

In data table we have 2 fields like Uname,pwd
To get data from data table as
username=datatable("uname",dtglobalsheet)
or
username=datatable("uname",1)

Is This Answer Correct ?    1 Yes 0 No

To get data from table which method will be used in QTP..

Answer / shiak ejiaj

DataTable("ColumnName",dtlocalsheet)
DataTable("ColumnName",dtglobalsheet)

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More VB Script Interview Questions

How should i Create Email invite with server-side Coding?

0 Answers   Altair,


how to find greatest of n numbers!

3 Answers   Syscon,


when you use For Loop, While..do, do..while? at what situations which loop will use.

1 Answers  


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

0 Answers  


how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me

3 Answers   TCS,






hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?

0 Answers   Livetek,


Hi I don't have any idea on VBscript. can any one point me to a good web site to learn VBscript. Regards lina

2 Answers  


write script to open Gmail.com, and to write script for entering username and password and show whether the result as pass or fail

2 Answers   Thomson Reuters,


Explain the operator precedence in vb script?

0 Answers  


a function that takes an integer array as an argument and returns the largest value in the array. Use the function in a program

1 Answers  


What is select case statement?

0 Answers  


How are values assigned to string type and numeric type variables?

0 Answers  


Categories