SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Apr 2008
    Posts
    34
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    string find/replace

    Hi to all,
    is there a way to find (and also replace it) a string in ALL the modules included in a test partner project using the visual basic functionality "find in current project" ? It doesn't seem to work (I'm currently running version 6.1.0 build 251)

    Thanks in advance

  2. #2
    Senior Member
    Join Date
    Jun 2002
    Location
    farmington hills, MI, US
    Posts
    713
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: string find/replace

    The "project" in "find in current project" refers to the VBA project that is created when working with an asset and all it's included assets, not the TestPartner project. This is a pretty common question and I've never really looked into it at any depth, but theoretically if you had an asset, such as a script, that linked to all other assets in the TP project this may work.

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

    Re: string find/replace

    sorry but I'm new to test partner :what do you mean with "an asset that linked to all other assets in the TP project " ?
    By the way, I found out a utility called "TestPartner Global Find Replace Utility 1.0.6" that should match the requirement that I have that is to change a particular instruction into hundreds of test scripts. Unfortunately it doesn't seem to work with build 251...

  4. #4
    Senior Member
    Join Date
    Jun 2002
    Location
    farmington hills, MI, US
    Posts
    713
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: string find/replace

    If you have a script that includes all other assets in the project then they would all be linked together which in theory would allow find and replace to work in the entire project. You would probably be better off using the utility that you found.

    There may be a more up to date verion of this utility available in the TestPartner yahoo user group. You may want to check there.

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

    Re: string find/replace

    I have a main script that launch several scripts in this way :

    Run ("script1")
    Run ("script2")
    ....
    etc.

    is this the correct way to operate ? With this hyerarchy of scripts the find/replace function does not work.

  6. #6
    Senior Member
    Join Date
    Jun 2002
    Location
    farmington hills, MI, US
    Posts
    713
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: string find/replace

    Ok, here is the easiest way I can explain it. Create a new script and then open up the workspace window. You should see a top level node with the name of the open script. This is actually the VBA project. If you expand this node you should see the actual script, approximately two levels deep. Now use '$Tpinclude to include a module or class module and then save the script. You should see that the module or class module is added to the VBA project which the script exists within in the workspace. You should be able to do a search and replace on any asset that falls within this VBA project. Your probably better off using the utility if you can find an updated version rather than attempting to include everything into one script.

 

 

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.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 09:03 PM.

Copyright BetaSoft Inc.