SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  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

    VBSedit connect to QTP

    QTP 11 or UFT 12
    VBSedit

    I want to use VBSedit to create an executable file that will probably run faster than QTP/UFT. I am creating objects inside of the exe.

    Is there a way to call the exe from UFT and use the objects that were created in the exe?

    Also is there a way that I can keep my VBScript code inside of the exe and call it from UFT. I may not want a client in the future to see some code.

    Thanks,

    Kevin

  2. #2
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    To hide the code you could Obfuscate it. There used to be a product called Stronix, not sure if its still supported.

    I've done this myself and squirrel'd the code in an obscure directory and re-created the VBS functions at runtime and destroyed them at the end but it wouldn't have taken much effort to find and de-crypt the code. It more of a way to stop the non-automators changing the code before they executed the tests.

    Mark Smith.

  3. #3
    SQA Knight
    Join Date
    Jun 2008
    Posts
    2,557
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0
    No, you can not access objects created in a separate executable.

  4. #4
    Advanced Member
    Join Date
    Nov 2007
    Location
    India
    Posts
    686
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Though R&D and trials needed, but it could be the answer you're looking for.

    Do check this article:-

    Writing QTP Tests in Visual Studio Advanced QTP

  5. #5
    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
    anandtambey,
    I looked at the article. It looks as if QTP has a loop that acts like a "listener". When it sees a change, then it performs the line of code.
    I don't know if I'd sell a client on the idea, but it sounds like there may be a use for it.
    Thanks,
    Kevin

  6. #6
    Apprentice
    Join Date
    Oct 2014
    Posts
    15
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    May I ask why you want to put the VBscript code into an .exe? Why not just put it into a .vbs and have that be the executable? Then you can do what you want with the objects and the file.

 

 

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 02:47 AM.

Copyright BetaSoft Inc.