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
    Aug 2008
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    writing test script without recording the actions?

    Hi!
    i am new to these forums ,i work as a tester and for one of the product i have to use QTP.But as object property changes ,qtp doesnt recognize recorde objects at runtime.can anyone help me with this. I need to know if this require change in the registry setting or .ini file ,how can i make qtp remeber the objects.
    I have tried smart object identification as well but results were same -unsuccessful

  2. #2
    Member
    Join Date
    Aug 2006
    Location
    Moscow, Russia
    Posts
    46
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: writing test script without recording the actions?

    The root cause is that objects change from build to build.
    There are several possible solutions for your issue:
    <ul type="square">[*]You can use regular expressions for dynamic object, if the values change something like 'value1', 'value2', 'value445', and so on.
    I prepared QTP video about this approach:
    QTP RegExp VIDEO - How to click dynamic link?
    [*]You can change identification properties of your dynamic objects.
    For example, instead of 'text' property you can use 'Index' or 'Location' propties. Or any others.[/list]
    Dmitry Motevich
    QTP & LoadRunner

  3. #3
    Member
    Join Date
    Jun 2007
    Location
    India
    Posts
    374
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: writing test script without recording the actions?

    Hi defecttrack,

    You can use Descriptive Programming for this purpose. You can add some runtime properties for identification of that particular object.
    - Manish

  4. #4
    Junior Member
    Join Date
    Aug 2008
    Location
    Mechelen,Belgium
    Posts
    25
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: writing test script without recording the acti

    Hi

    Just take care of this thing while Implementing DP.

    you can only start from OR and move to DP but not Vice-versa So this will not work:


    VBWindow(“title:=notgood”).VBButton(“clickme”).Cli ck

    So just take care.

 

 

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.00%
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 10:23 AM.

Copyright BetaSoft Inc.