Prepare for your Next Interview
This is a discussion on I want to use the same variable in another scripted component within the QTP forums, part of the Software Testing category; 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 ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
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 |
| Sponsored Links |
|
|||
|
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. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| redefine a variable | Geek_Guest | MainFrame | 1 | 05-18-2007 04:57 PM |
| Variable, Constants and Data types in C++ | Lokesh M | C and C++ | 0 | 04-27-2007 12:49 AM |
| Change the datatype of a variable | srisha | QTP | 0 | 04-12-2007 07:55 AM |
| How can I access a variable | Sheena_sankar | C and C++ | 6 | 03-08-2007 08:05 AM |
| Process of using parameter and variable | JobHelper | Data Warehousing | 0 | 01-09-2007 05:31 AM |