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 Fucntion to close all Opened browser expect desired one?

2 Answers   Ness Technologies,


What is variant in vb script?

0 Answers  


what is test scenario?

1 Answers  


how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.

0 Answers  


How to get path of the file through scripting?

1 Answers   Hexaware,






Write VB script to convert from feet to inches(hint 1feet=12 inches)

2 Answers  


What is the use of the date function in the vbscript language?

0 Answers  


Mention what is byref and byval parameters in vbscript?

0 Answers  


Input = 124 output should be 124421 Please do not use any string functions/variables

8 Answers   Cap Gemini,


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

0 Answers  


Mention how to assign a date value to a variable?

0 Answers  


Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards

0 Answers  


Categories