|
|
|
|
parameterization
|
|
03-11-2010, 10:59 AM
Post: #1
|
|||
|
|||
|
parameterization
Hi, can anybody help me in doing parameterization, i hv written the following script, 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 |
|||
|
03-11-2010, 11:49 AM
Post: #2
|
|||
|
|||
|
RE: parameterization
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? Thanks, ~Saket Kumar [Linkedin][pdf Api for QTP] It's so hard when I have to, and so easy when I want to... |
|||
|
03-11-2010, 11:56 AM
Post: #3
|
|||
|
|||
|
RE: parameterization
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. |
|||
|
03-12-2010, 12:08 PM
Post: #4
|
|||
|
|||
(03-11-2010 10:59 AM)seenu Wrote: Hi, can anybody help me in doing parameterization, i hv written the following script, 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 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 |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| "QTP Parameterization" | suresz449 | 1 | 3,839 |
08-19-2011 02:22 PM Last Post: sreeswetha |
|
| Parameterization of function. | sudhirzpatil | 0 | 732 |
02-25-2011 10:39 PM Last Post: sudhirzpatil |
|
| Check point and Parameterization problem | gohar2500 | 1 | 1,469 |
08-10-2010 02:05 PM Last Post: balaji4u |
|
| Parameterization | bfakruddin | 1 | 1,001 |
06-16-2010 09:46 PM Last Post: Jackomcnabb |
|
| Parameterization | vijayendra.shukla | 4 | 926 |
06-04-2010 05:49 PM Last Post: vijayendra.shukla |
|
User(s) browsing this thread: 1 Guest(s)
|
|

Search
Member List
Calendar
Help



