Micro Focus QTP (UFT) Forums
Is Local sheet different from Global sheet in DataTable... - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Is Local sheet different from Global sheet in DataTable... (/Thread-Is-Local-sheet-different-from-Global-sheet-in-DataTable)



Is Local sheet different from Global sheet in DataTable... - Goldy - 10-04-2008

I did datadriven testing with Global_sheet which worked
well for series of different columns.

I am trying the same thing with Local sheet in
datatable and the script is running only for one column
what could be the problem


Thanks
Goldy


RE: Is Local sheet different from Global sheet in DataTable... - Ankur - 10-04-2008

Unless you put in the code you have tried, it would be difficult for us to give any answer.

Make sure the code is properly formatted.


RE: Is Local sheet different from Global sheet in DataTable... - niranjan - 10-06-2008

Try changing Action Call Properties to run on all rows.


RE: Is Local sheet different from Global sheet in DataTable... - Goldy - 10-07-2008

sample flight application (only login part)

Code:
invokeapplication "D:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe"




Dialog("Login").WinEdit("Agent Name:").Set DataTable("AgentName", dtLocalSheet)
Dialog("Login").WinEdit("Agent Name:").Type  micTab
Dialog("Login").WinEdit("Password:").Set DataTable("Password", dtLocalSheet)
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").Close




with some data in the Action sheet of data table
like

AgentName Password
Agent1 mercury
Agent2 mercury
Agent3 mercury

This works for Global sheet and behaves different for Action sheet.


Thank you Ankur
Goldy


RE: Is Local sheet different from Global sheet in DataTable... - Goldy - 10-07-2008

Run on all rows was set in File settings.
This works good for Global sheet, but not w.r.t action sheet.

Any other solution ?

Thanks
Goldy


RE: Is Local sheet different from Global sheet in DataTable... - niranjan - 10-07-2008

Yes, thats right. It will not work for Local Sheet. Local Sheet is driven by Action Call Properties.
Go to Keyword View > Right Click on Action name > Action Call Properties and choose the option "Run on All Rows"

Please correct me if I am wrong


RE: Is Local sheet different from Global sheet in DataTable... - Goldy - 10-08-2008

Hey Thanks Niranjan
My script is working.
NO mistakes in your answer

Thank you
Goldy