Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
parameterization
#1
Not Solved
Hi, can anybody help me in doing parameterization, i hv written the following script,
Code:
vbwindow("frmlogin").vbedit("txtuserid").set DataTable ("username",dtGlobalSheet)

vbwindow("frmlogin").vbedit("txtuserid").set DataTable ("password",dtGlobalSheet)

i hv made the columns name with username and password in the globalsheet,
wn i execute the script i am getting the following error

"The retrive datatable.value operation failed.The<username> column doestnot exist".

can i any one help me out wts the mistake i hv done in this script...Thanks in advance
Reply
#2
Not Solved
are you sure you have created the columns in the global sheet not in local, check again.
also watch out the correctness of spelling.

can you attach the snapshot of datatable?

Reply
#3
Not Solved
Hi,
It seems,the column name you have used doesnot exist in the DataTable.
you have to doubleclick on the Header Where its written 'A','B'.... a popup will appear, change the Header to 'username' and then try executing.
Reply
#4
Not Solved Cool 
Hi,
Just ensure whether you having the column name called <username> in the global sheet.
If you have then copy the column name from the Global sheet then paste it in where you using in scripting, unfourtunality you may given space at end/begin.
please check the Capital/Small Character in parameter name, because it's case sensitive

or just try the following:-
--------------------------
let assume <username> and <password> are column name in global sheet.
in QTP
Code:
Dim UName, PWD
UName = DataTable.GetSheet("Global").GetParameter("username").ValueByRow(1)
PWD = DataTable.GetSheet("Global").GetParameter("password").ValueByRow(1)
Browser(BrName).Page(PgName).Frame(FrName).WebEdit(TextUser).Set UName
Browser(BrName).Page(PgName).Frame(FrName).WebEdit(TextPass).Set PWD
Browser(BrName).Page(PgName).Frame(FrName).Webbutton("ButtonName).Click

Regards,
Dhanavantha G Krishnan
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Action Parameterization Issue Slothman 1 1,980 10-31-2020, 01:05 PM
Last Post: Ankur
  Business Components Parameterization YogeshCallappa 0 1,633 06-07-2017, 04:32 PM
Last Post: YogeshCallappa
  Parameterization Hanskanika 0 1,651 11-20-2015, 04:45 PM
Last Post: Hanskanika
  Flight reservation basic parameterization not working on qtp 11.5 srs246 0 3,706 01-08-2013, 10:14 AM
Last Post: srs246
  "QTP Parameterization" suresz449 1 14,529 08-19-2011, 02:22 PM
Last Post: sreeswetha

Forum Jump:


Users browsing this thread: 1 Guest(s)