Geeks Talk

Prepare for your Next Interview




I want to use the same variable in another scripted component

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 ...


Go Back   Geeks Talk > Software Testing > QTP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-23-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 164 Times in 138 Posts
Geek_Guest is on a distinguished roadGeek_Guest is on a distinguished road
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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-23-2007
Expert Member
 
Join Date: Apr 2007
Location: Kolkata
Posts: 151
Thanks: 3
Thanked 10 Times in 9 Posts
debleena23 is on a distinguished road
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.
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP


Thread Tools
Display Modes


Similar Threads

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


All times are GMT -4. The time now is 01:33 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved