10-09-2014, 08:26 PM
Hi,
I am facing a problem with my QTP script and could not get a viable solution from quite a number of websites. Requesting help from anyone who knows what is that I am doing wrong here.
Requirement:
Pass 4 parameters from Action 1 to Action 2
What i did:
Action 1 calls Action 2. So, I defined all 4 parameters as Output parameters in the Action 1's properties. Similarly, I defined the same 4 parameters (with same name) as Input parameters in Action 2. Here is the sample list of values to the parameters:
Parm 1: A1
Parm 2: B1
Parm 3: C1
Parm 4: D1
I put in some Print statements in Action 2 such as:
Print Parameter("Parm 1")
Print Parameter("Parm 2")
Print Parameter("Parm 3")
Print Parameter("Parm 4")
Result:
Upon executing the test, the result was missing Parm 1 value. Here is the result of the print statements:
B1
C1
D1
I do not know why the first Parameter is not getting passed. I checked so many times the Action properties but could not find what is wrong. Please help.
Thanks,
I am facing a problem with my QTP script and could not get a viable solution from quite a number of websites. Requesting help from anyone who knows what is that I am doing wrong here.
Requirement:
Pass 4 parameters from Action 1 to Action 2
What i did:
Action 1 calls Action 2. So, I defined all 4 parameters as Output parameters in the Action 1's properties. Similarly, I defined the same 4 parameters (with same name) as Input parameters in Action 2. Here is the sample list of values to the parameters:
Parm 1: A1
Parm 2: B1
Parm 3: C1
Parm 4: D1
I put in some Print statements in Action 2 such as:
Print Parameter("Parm 1")
Print Parameter("Parm 2")
Print Parameter("Parm 3")
Print Parameter("Parm 4")
Result:
Upon executing the test, the result was missing Parm 1 value. Here is the result of the print statements:
B1
C1
D1
I do not know why the first Parameter is not getting passed. I checked so many times the Action properties but could not find what is wrong. Please help.
Thanks,