SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    SQA Knight bklabel1's Avatar
    Join Date
    Sep 2012
    Location
    Kew Gardens, United States
    Posts
    2,596
    Post Thanks / Like
    Blog Entries
    1
    Mentioned
    2 Post(s)
    Tagged
    2 Thread(s)
    Total Downloaded
    0

    Action only in resources

    I have code in an action along with a local repository attached to it. Also there is a sheet in the Workbook belonging to the action.

    I want to temporarily remove the action from the workflow. Later I may want to bring it back.

    I have noticed that if the action is called from another action and then the action is deleted that it remains in the resource panel. If it is not called by another action is seems to be completely deleted.

    I don't want to have to call the action from another action and then delete it each time.

    Is there an easy way to get an action into resources so it can be available for later use?

    QTP 11.0 Windows 7.

    Thanks,

    Kevin
    Last edited by bklabel1; 01-26-2013 at 07:09 PM. Reason: Need to add QTP version

  2. #2
    Member
    Join Date
    Jan 2008
    Posts
    336
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    You can do that manually, by commenting the action in Action0 script file.

    Explanation:
    When you save a test with path say, c:\QTPTests\Test1 which have say 4 actions like Action1 to Action 4.
    Now go to c:\QTPTests\Test1\Action0 folder where you see Script file, which contains the flow of actions to be executed.

    Whichever action you dont want to execute, comment that action by putting "'".

    And then relaunch your QTP/Test and execute it.

    You will see the action commented will not be executed.

  3. #3
    SQA Knight bklabel1's Avatar
    Join Date
    Sep 2012
    Location
    Kew Gardens, United States
    Posts
    2,596
    Post Thanks / Like
    Blog Entries
    1
    Mentioned
    2 Post(s)
    Tagged
    2 Thread(s)
    Total Downloaded
    0
    Uday,

    I have done this in the past. It could have been a co-incidence, but I noticed that sometimes the entire scirpt would not open. It seemed as if something else maybe in a binary file was unhappy that the Action0 file was manulally changed. Has anyone else noticed this behavior?

    Thanks,

    Kevin

 

 

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 12.50%
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 07:19 AM.

Copyright BetaSoft Inc.