09-01-2011, 04:51 AM
Hi,
I am facing problem in doing parameterization. I am sending you the script for how i am doing parameterization. Tell me where I am doing wrong?
1. First I have created the script for login page.
Agent name, Password and OK button because for recording script these steps remain same.
2. one way of doing parameterziation is I am doing copy paste the script in expert view and change the agent name and password manually.
3. The other way I am using parameterization Below are the steps:
a) Click on keyword view. Then click on the Parameterization icon <=>
b) Value configuration dialog box opens
c) Click radio button parameter
By default it takes name P_text
I renamed it Agentname and then click OK.
d) In the global data sheet the column name Agent name is created and value guru automatically comes.
script for this is below:
Now When i Try to run this It's giving me an error.
Cannot find the "AgentName" object "Parent Login"(class Dialog). Verify that parent properties match an object currently displayed in your application.
Please help me in parameterization.
:-(
Thanks & Regards,
Ashita
I am facing problem in doing parameterization. I am sending you the script for how i am doing parameterization. Tell me where I am doing wrong?
1. First I have created the script for login page.
Agent name, Password and OK button because for recording script these steps remain same.
2. one way of doing parameterziation is I am doing copy paste the script in expert view and change the agent name and password manually.
3. The other way I am using parameterization Below are the steps:
a) Click on keyword view. Then click on the Parameterization icon <=>
b) Value configuration dialog box opens
c) Click radio button parameter
By default it takes name P_text
I renamed it Agentname and then click OK.
d) In the global data sheet the column name Agent name is created and value guru automatically comes.
script for this is below:
Code:
invokeapplication("C:\ProgramFiles(x86)\MercuryInteractive\QuickTestProfessional\bin\QTPro.exe")
dialog("Login").WinEdit("AgentName").SetDataTable("agentname,dtGlobalSheet")
dialog("Login").WinEdit("Password").SetDataTable("password,dtGlobalSheet")
dialog("Login").WinButton("OK").Click
Wait(1)
Now When i Try to run this It's giving me an error.
Cannot find the "AgentName" object "Parent Login"(class Dialog). Verify that parent properties match an object currently displayed in your application.
Please help me in parameterization.
:-(
Thanks & Regards,
Ashita