Micro Focus QTP (UFT) Forums
Part of parameters missing when passing between actions - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Part of parameters missing when passing between actions (/Thread-Part-of-parameters-missing-when-passing-between-actions)



Part of parameters missing when passing between actions - skumar007 - 10-09-2014

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,


RE: Part of parameters missing when passing between actions - skumar007 - 10-10-2014

Ok, I found the problem. The sequence of Parameters in the RunAction statement was incorrect. So, the first parameter was dropped.