SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Apprentice
    Join Date
    Dec 2007
    Location
    South Africa, Centurion
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Specify a path when using a RunAction

    How do I specify a path on a 'RunAction' function.

  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: Specify a path when using a RunAction

    the action is stored within a test. you need to assign this test to your script, then you can call the reusable action. there is no path available
    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
    Apprentice
    Join Date
    Dec 2007
    Location
    South Africa, Centurion
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Specify a path when using a RunAction

    Hi rscholz660, I have a script that has different actions and it is sitting on a different location. I am also going to have a global variable that will contain a path of the script I have specifies above. How then will I combine a global variable with the RunAction?

    eg.
    instead of RunAction "action[scriptname]"

    I want something like RunAction "action[global_var & scriptname]".

    Hope I made you understand.

  4. #4
    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: Specify a path when using a RunAction

    i'm not sure but i think its impossible to call the action on this way, because the script with the reusable action must be assigned to the "parent" or "frame" script.
    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

  5. #5
    Super Member Jonty's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    1,266
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Specify a path when using a RunAction

    You would to have use relative path concept when calling the actions.

    When you create the driver script, do not blindly insert call to existing actions, instead set up the folder path in the Options/folder tab and then provide only the action name in the next field.

    If you search the forum for relative path, you will get more solutions.

    The problem with ur approach will be once the call is established the original hard coded path in the Action/properties , which is read only.
    Cheers
    Jonty..
    -- Here to Learn and share ---

  6. #6
    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: Specify a path when using a RunAction

    Hum, conflicting opinions here...

    I do not think Jonty is correct, as you are going to need to specify the location of the Action when it is "inserted". Unlike a called function in a shared function library (which are resolved at runtime) QTP seems to required the physical location of the shared Action at the time it is inserted, which is at design time, because QTP places all the shared Action's code (read-only) into the inserting script.

    At the time of insertion QTP will default to a fully qualified path to the called Action, but it can be changed--but only at insertion time--to a relative path in the form: ..\blah\...\theCalledAction. I do not believe the alternative relative path mechanism offered by QTP and suggested by Jonty can be used to resolve the location of a share Action--at least I could not get that to work.

    Here is a more detailed thread on my evaluation last Spring on this issue:

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

    -Hope this helps, Terry

  7. #7
    Apprentice
    Join Date
    Dec 2007
    Location
    South Africa, Centurion
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Specify a path when using a RunAction

    Hi Terry, I tried the solution on the link that you gave me but to be honest with you, I didn't understand it. What code do I actually type in my script?

    Thanks, Chief

  8. #8
    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: Specify a path when using a RunAction

    My thread provides a screen shot of the path relative inclusion syntax using the insert shared Action dialog. Perhaps a 2nd reading of the full thread and then a review of the attached screen shot (to the thread's starter article) will clarify your confusion.

    I have also PM'd Jonty and asked him/her to refute my disagreement, if I am thought to be wrong in my comments on the alternative path relative inclusion method.

    -Terry

  9. #9
    Apprentice
    Join Date
    Dec 2007
    Location
    South Africa, Centurion
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Specify a path when using a RunAction

    Terry, I think you are absolutely right. I didn't see the attachment before.

    But the problem with mine is when I add those dots, it disables the OK button. Which means it is not finding the location. Any clue?

  10. #10
    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: Specify a path when using a RunAction

    Yes. Specify the correct relative path.

 

 
Page 1 of 2 12 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 12:11 AM.

Copyright BetaSoft Inc.