Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
constants in qtp
#5
Solved: 12 Years, 10 Months, 3 Weeks ago
I don't think its possible to declare the value of a constant from data table. When you declare a constant, you have to implicitly specify the value of that constant.

Say for example that you have "gmail.com" as value in column "A" row "1".
You cant simply declare,

Code:
const mybrowser = Datatable.Value("A",1)

you have to literally specify the value which the constant is gonna hold which will be
Code:
const mybrowser = "gmail.com
"

---
i would suggest you to use external environment variable file to store the values and access them thru code.

Let me know if you need any help.

Thanks,
Elango
Reply


Messages In This Thread
constants in qtp - by diya - 12-05-2012, 10:53 AM
RE: constants in qtp - by kalaivanan123 - 12-05-2012, 06:26 PM
RE: constants in qtp - by diya - 12-05-2012, 06:31 PM
RE: constants in qtp - by diya - 12-06-2012, 10:41 PM
RE: constants in qtp - by diya - 12-07-2012, 08:24 PM
RE: constants in qtp - by elango87 - 12-07-2012, 06:21 PM
RE: constants in qtp - by elango87 - 12-07-2012, 08:59 PM
RE: constants in qtp - by diya - 12-07-2012, 10:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Constants shayk1985 2 3,557 12-08-2012, 12:30 AM
Last Post: shayk1985

Forum Jump:


Users browsing this thread: 6 Guest(s)