Results 1 to 2 of 2

Thread: I want to use the same variable in another scripted component

  1. #1
    Geek_Guest
    Guest

    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


  2. #2
    Expert Member
    Join Date
    Apr 2007
    Answers
    147

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact