SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1
    Junior Member
    Join Date
    Apr 2006
    Location
    Sydney
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Passing test parameters from QC to QTP script

    Has anyone used QC to execute QTP scripts?. I would like to know if it is possible to write test scripts with design step parameters passed into QTP scripts.

    EG: TestCase 1 has a username and password parameter that i want to use in my QTP login script.

    basically, I'm trying to get away from using business process testing software from mercury.
    Regards,

    Paul

  2. #2
    Moderator
    Join Date
    Oct 2006
    Location
    Atlanta, GA
    Posts
    650
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Passing test parameters from QC to QTP script

    You may want to ask this in the QC Forum or the QTP forum. The real experts tend to be available more readily there.

    Make sure you read the FAQs and provide the information they request. You will get the best response this way.

  3. #3
    Member
    Join Date
    Apr 2007
    Location
    Louisville, KY, USA
    Posts
    193
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Passing test parameters from QC to QTP script

    [ QUOTE ]
    You may want to ask this in the QC Forum or the QTP forum. The real experts tend to be available more readily there.


    [/ QUOTE ]

    Eh? Last time I looked, this IS the QC Forum...

    Hmmmm.... could be a stealth move by a moderator???

  4. #4
    Junior Member
    Join Date
    Jun 2007
    Location
    San Francico, CA
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Passing test parameters from QC to QTP script

    Did you get an answer to your question, Paul?

    We pass parameters from QC to QTP here and I may be able to help you.

  5. #5
    Member
    Join Date
    Apr 2007
    Posts
    65
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Passing test parameters from QC to QTP script

    I'd love to see a quick example.

    Thanks,
    Alex...

  6. #6
    Junior Member
    Join Date
    Jun 2007
    Location
    San Francico, CA
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Passing test parameters from QC to QTP script

    You need to set up parameters in three places:
    1. Test Settings (File > Settings)
    2. Action Properties (Edit > Action Properties)
    3. Action Call Properties (Keyword View > Edit Action Call Properties)

    As I understand it, the relationship between the three is as follows:
    Test Properties define the input parameters (what will pass into the test in QC) and the output parameters (what will get passed back to QC in the Report).
    Action Properties define the input and output parameters for each action.
    Action Call Properties define how the Test Parameters and Action Parameters are related.

    In my experience, it will only work if I have all three sections filled out.

    So for example, I define three test-level input parameters for a smoketest: username, password, and url. And also several output parameters: record ID numbers, record titles, build number, etc.

    My test is composed of several individual actions something along the lines of:
    1. Login
    2. Add Record
    3. Edit Record
    4. Find Record

    Action 1 has three input params: username, password, and url. It has one output param: BuildNumber.

    Action 2 has no input params and one output param: Record ID#

    Action 3 has no input params and one output param: Record Title (the edit step modifies the record's title and saves)

    Action 4 has two input params: Record ID# and Record Title, and no output params

    Then in the Action Call Properties for each action, I define the relationships. This is pretty straightforward because I've named the params the same in test settings and action settings.

    Then in the code, to get a value of a parameter (usually done at the beginning of an action), you do it like this:
    Dim sRecordTitle
    sRecordTitle = Parameter("RecordTitle")

    and to set the value (usually at the end of an action):
    Parameter("RecordTitle") = sRecordTitle

    Once you have that all set up in your QTP test, then when you're in QC setting up a test set, you can set the params via the test run settings. That's a basic rundown of how I use params. It sure makes test execution much easier!

    ...Joe

  7. #7
    Junior Member
    Join Date
    Apr 2006
    Location
    Sydney
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Passing test parameters from QC to QTP script

    I have managed to successfully pass parameters from QC to QTP just like joegolike has described above. This works great however, I have to type in the parameter into the configuration area in testlab for each test case I want to run. Has anyone managed to build some QC API that can copy a value from the test plan into the test lab configuration area?

    This would make passing parameters to QTP so easy that even non-technical testers could execute automation scripts. All they'd have to do is provide a value while creating their test case.
    Regards,

    Paul

  8. #8
    Junior Member
    Join Date
    Apr 2003
    Location
    INDIA
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Passing test parameters from QC to QTP script

    You can set the default parameter values in the test case and they will get shown in the QC.
    Also, you need to set the default values for the first time in QC. Any non-technical user can directly run the test case after that.
    aa

  9. #9
    Member
    Join Date
    Dec 2004
    Location
    Seattle, WA
    Posts
    163
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Passing test parameters from QC to QTP script

    the bigger problem here, from what i can see, is that there is no way in QC to map output parameters from one test to input parameters for another test. or is there?

  10. #10
    Junior Member
    Join Date
    Jan 2008
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Passing test parameters from QC to QTP script

    How if we have to pass more than one data(eg:10 records of data to parameters) to our test sets??
    can we specify in Test Lab ?? or have to mention in parameter settings in QTP??

 

 
Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 7.89%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 11:44 AM.

Copyright BetaSoft Inc.