SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Member
    Join Date
    Apr 2007
    Posts
    197
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    new toQTP. Plz help me pass values accross action

    Hi all,
    I newly joined the second job in my career.. i need help reg. this issue.

    Here they are using re-usable actions instead of functions.
    I need to output the values from an action to another
    action(to use then as input)

    I tried adding output parameters in the action properties but couldnt find a way save desired value to it, and to pass it another action.

    many thanks
    neethu.. [img]/images/graemlins/blush.gif[/img]

  2. #2
    Senior Member
    Join Date
    Dec 2006
    Location
    Germany, Dresden
    Posts
    1,536
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: new toQTP. Plz help me pass values accross act

    [ QUOTE ]
    Hi all,
    I newly joined the second job in my career.. i need help reg. this issue.

    Here they are using re-usable actions instead of functions.
    I need to output the values from an action to another
    action(to use then as input)

    I tried adding output parameters in the action properties but couldnt find a way save desired value to it, and to pass it another action.

    many thanks
    neethu.. [img]/images/graemlins/blush.gif[/img]

    [/ QUOTE ]

    do a search in this forum, there are a lot of posts with this content
    http://qcmt.pc-polis.de

    de omnibus dubitandum

    For all Questions: Please be sure to take a look at the QTP Manual before posting any Questions, thanks for doing this

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

    Re: new toQTP. Plz help me pass values accross act

    ya.. i tried. but it list all with respect OutPut check points.

    scripts are already created, i need to integrate them.
    and when i call an action i have to save few desired values from that action as output and pass them to next action...

    is any body aware of this.. plz help
    Regards,
    neethu...

  4. #4
    Senior Member
    Join Date
    Mar 2006
    Location
    Bristol, UK
    Posts
    1,530
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: new toQTP. Plz help me pass values accross act

    This can be done in a few ways and all have been discussed many times in this forum.

    The ways I can think of are;

    1) Action Parameters

    2) Global Dictionary

    3) DataSheets

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

    Re: new toQTP. Plz help me pass values accross act

    Robbie,
    can you please give an example on how it can be done with Action Parameters.

    many thanks,
    neethu

  6. #6
    Senior Member
    Join Date
    Mar 2006
    Location
    Bristol, UK
    Posts
    1,530
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: new toQTP. Plz help me pass values accross act

    Well, its pretty straight forward.

    Example; Pass value from Action to Action B

    Dim strValue

    RunAction "Action A", oneIteration, strValue

    RunAction "Action B", oneIteration, strValue

    Obviously this only works if you have set up the Output parameter in Action A, and the input parameter in Action B

  7. #7
    SQA Knight
    Join Date
    Jul 1999
    Location
    Grand Rapids, MI
    Posts
    3,727
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: new toQTP. Plz help me pass values accross act

    Searching this forum, with the crappy search tool currently provided (sorry team...) is frustrating to say the least. First here is a thread that attempts to help you learn the forum's search tool syntax and capabilities:

    http://www.sqaforums.com/showflat.ph...;Number=365107

    So after you read that article you could have found the link I am posting below, that discusses how to pass AND then dereference the pass parm in the called action. Here is the advanced search string you could have entered:

    +passing +action

    That's intuitive, isn't it? [img]/images/graemlins/confused.gif[/img]

    Anyway here is the link you want to start with. It also includes links to related articles--in particular an article that also shows how to pass object references:

    http://www.sqaforums.com/showflat.ph...;Number=362249

    -Hope this helps, Terry Horwath

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

    Re: new toQTP. Plz help me pass values accross act

    am glad for the responces.. i read thru all the links but unfortunately they dont talk about what i actually need...
    i'll simplify my question by giving an instance

    Action1(Login) - has two input parameters: User,Pwd and one Output parameter: CompleteName

    Action2(Search Records): input parameter:CompleteName; Outparameter:NoOfRecords

    My job is to Create a Script (lets name it MainScript) where i call reusable action: Action1 and Action2 and see that output from Action1 CompleteName is passed to Action2 as input.

    Firstly i need to write scritp in Action1 to output the Complete Name aquired from the application to output parameter:CompleteName
    and in the Mainscript i have pass it to Action 2

    Hope this is possible in QTP
    any takers....

    many thanks
    neethu

  9. #9
    Senior Member
    Join Date
    Dec 2006
    Location
    Germany, Dresden
    Posts
    1,536
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: new toQTP. Plz help me pass values accross act

    working with action parameters is described completely in the handbook and the onlinehelp of your qtp. look there for using and syntax, after doing this and still having problems you can ask her

    and: robbiewinston answered your question and give you a short but complete example (mainscript with 2 called actions and 1 parameter, Output for Action1, Input for Acxtion2)
    http://qcmt.pc-polis.de

    de omnibus dubitandum

    For all Questions: Please be sure to take a look at the QTP Manual before posting any Questions, thanks for doing this

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

    Re: new toQTP. Plz help me pass values accross act

    I have been trying to find the syntax help for a long time but there wans't a single line of syntax to save a value to output parameter. i dont any clue how to reference out parameter via script.

    i have tried robbie's eg. in ten different ways
    { Dim strValue
    RunAction "Action A", oneIteration, strValue
    RunAction "Action B", oneIteration, strValue }

    here i need to pass the input parameters: User,Pwd first and even if i have the third as StrValue,
    which make the action somthing like this
    RunAction "Action A", oneIteration, User,Pwd ,strValue
    lets assume this would work later but i should be first outputing the Complete Name found in the application to an output parameter right..

    that's what am searching hell and heaven for... [img]/images/graemlins/frown.gif[/img]

    hope someone would help me out

    many thanks
    neethu

 

 
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 10.71%
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 03:52 PM.

Copyright BetaSoft Inc.