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

Write a Script for ATM in QTP

0 Answers  


When importing an excel file that has several columns each with different number of rows into QTP's Global datatable, how can you count the number of rows in a particular column?

3 Answers   Logica CMG, McGraw Hill,


write a vb script to display calculator using case statement?

1 Answers  


Could Anybody tell me the Script for REVERSE an Interger int reverse(int num) Ex:246 to 642.. Thanks in Advance.

3 Answers   Amazon,


How to write VB Script for selecting a particular row in a WebTable?

1 Answers   Patni,






I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.

0 Answers  


How to open a file. What is the perpose of true and false mode there?

0 Answers  


compare the string without using stringcomp function?

1 Answers   CSS Corp,


what is the purpose of the Reporter.ReportEvent in QTP and also please give the brief description about Reporter.ReportEvent ?

4 Answers   CybAge,


hai..friends ....what is the difference between function and sub procedure ....here every one know's theoretically here my question is what is the meaning of function can return the value and sub can't return the value...can you give one example with some values for that ....what does it mean ? how function can return the value...sub can not...any one please...........with example

1 Answers   Cap Gemini,


How do you declare a variable in vbscript?

0 Answers  


What's the difference between vbscript and vb.net?

0 Answers  


Categories