-
I want to use the same variable in another scripted component
Hi all,
I am using QTP to write script components. These components use parameters i created via mercury quality centre. I've created multiple components, each containing its own local variables (declared as dim x,y etc).
If by any chance, I want to use the same variable in another scripted component i am having troubles. I tried using the Environment method but no sucess. Can some one plz assist.
Question asked by visitor Kayd
-
Expert Member
Re: I want to use the same variable in another scripted component
If you are mapping the components one by one in Test Plan of QC, and want to use any of the parameters of one component in the next ones....Then just make that particular component as an output parameter in the previous component and make it as an input parameter to the rest of the components as required.
Then when you enter parameter values for each component with "{}"....then just check the check box for "Output of prev component" for the particular parameter.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules