Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reading values form data table
#5
Not Solved
My data table is like following,


Browser Page type value
Login Login Link Help_link

Browser,Page,type,value names are column names and the values for those are Login,Login,Link,Help_link

I am storing the values in variables,

Code:
strBrowser = DataTable("Browser","Action1")
strPage = DataTable("Page","Action1")
strType = DataTable("Link","Action1")
strValue = DataTable("value","Action1")

here i am writing a command using the above values

Code:
Browser(strBrowser).Page(strPage).strType(strValue).Click

When I run the code it fails, because it replace the above line as

Code:
Browser("Login").Page("Login")."Link"("Help_link").Click

Here I need to remove the quotes for Link.

Thanks!
Reply


Messages In This Thread
Reading values form data table - by new4qtp - 08-02-2010, 02:02 PM
RE: Reading values form data table - by new4qtp - 08-02-2010, 02:12 PM
RE: Reading values form data table - by new4qtp - 08-02-2010, 02:43 PM
RE: Reading values form data table - by PrabhatN - 08-02-2010, 04:24 PM
RE: Reading values form data table - by new4qtp - 08-02-2010, 04:55 PM
RE: Reading values form data table - by PrabhatN - 08-02-2010, 05:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading Global Sheet's DataTable Value Bhuvana 0 1,634 01-05-2020, 10:03 PM
Last Post: Bhuvana
  Can we test Salesforce Standard form using QTP? yona34 0 1,072 05-22-2018, 10:57 AM
Last Post: yona34
  Reading Value from Java Table arjun.singh 8 24,388 10-11-2017, 02:51 PM
Last Post: sivaji
  Reading data from excel sheet serenediva 1 9,598 03-03-2017, 10:07 AM
Last Post: vinod123
  data table use uft_usr 1 2,235 06-29-2016, 05:23 PM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 2 Guest(s)