Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is Local sheet different from Global sheet in DataTable...
#1
Solved: 11 Years, 4 Months, 1 Week ago Question 
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
Reply
#2
Solved: 11 Years, 4 Months, 1 Week ago
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.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 11 Years, 4 Months, 1 Week ago
Try changing Action Call Properties to run on all rows.
Reply
#4
Solved: 11 Years, 4 Months, 1 Week ago
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
Reply
#5
Solved: 11 Years, 4 Months, 1 Week ago
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
Reply
#6
Solved: 11 Years, 4 Months, 1 Week ago
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
Reply
#7
Solved: 11 Years, 4 Months, 1 Week ago
Hey Thanks Niranjan
My script is working.
NO mistakes in your answer

Thank you
Goldy
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading Global Sheet's DataTable Value Bhuvana 0 1,643 01-05-2020, 10:03 PM
Last Post: Bhuvana
  Error as Global Not defined while trying to retrieve value from Datatable siddharth1609 0 965 09-11-2019, 02:52 PM
Last Post: siddharth1609
  Reading data from excel sheet serenediva 1 9,625 03-03-2017, 10:07 AM
Last Post: vinod123
Question QTP not performing iterations based on local data sheet Breaker 18 56,822 01-25-2016, 04:32 PM
Last Post: arunshuklainbox
  Local System Monitor kbhargava505 0 2,528 10-16-2015, 12:52 PM
Last Post: kbhargava505

Forum Jump:


Users browsing this thread: 1 Guest(s)