SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Feb 2007
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    QTP. Resue same scripts over multiple applications

    Hey,
    I have an issue. I am working with QTP. I have an issue managing the scripts. I am currently evaluating QTP for purchase.
    We have about 10 web sites on the same platform. I need to reuse maximum scripts.
    The issue is that the events on each of the sites change. For instance on one site a particular page has 5 text boxes to enter and another site the same page has 10 different text boxes. Do I need to rewrite scripts each time for new application. Or can I script it in such a way that I can call the same function to write into 10 text boxs. (Looping may be?).

  2. #2
    Moderator ifraser's Avatar
    Join Date
    Jul 2004
    Location
    Brisbane, Australia
    Posts
    2,090
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP. Resue same scripts over multiple applications

    Put your script code out in VBS functions.

    Use Descriptive Programing to deal with the objects. Dont use QTP checkpoints write custom checkpoints
    You can buy my Art from: "Post Cards now available"
    Ian Fraser Landscape Photography
    World Wide Shipping.

    http://mowogman.wordpress.com/

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

    Re: QTP. Reu same scripts over multiple applications

    Thanks a lot. I have another question to this. How do I capture a link whose value changes and I cannot predict the value of the link. If I could predict the value then i could parametrize it so it would work but The value changes and i have no way to predict the new value.
    For example.
    When I log into Hotmail. If i have 4 new messages, It shows the link as Inbox (4) but After i check the first mail the link changes to Inbox (3) so in Play back I dont know how many mails I keep getting each time I run the script. Any inputs on this?

  4. #4
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: QTP. Reu same scripts over multiple applications

    Look at regular expression and descriptive programming and that should do the job for you.

 

 

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 7.69%
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 11:38 AM.

Copyright BetaSoft Inc.