SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Junior Member
    Join Date
    Jul 2007
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    QTP Testing from scratch

    Hi All,

    I am new to QTP.I would like to know,how the testing of applications starts from scratch in real time environment based on the below 2 options

    1)are the testing people build the object repository and add the steps manually or

    2)are they use record and playback?

    when the 1st option is used?

    when the 2nd option is used?


    Thanks

  2. #2
    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 Testing from scratch

    Go through posts mentioned in the below link

    http://www.sqaforums.com/showflat.ph...e=0#Post402552

    There are few that discuss about object repositories also

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

    Re: QTP Testing from scratch

    [ QUOTE ]

    1)are the testing people build the object repository and add the steps manually or

    2)are they use record and playback?

    when the 1st option is used?

    when the 2nd option is used?




    [/ QUOTE ]

    Adding objects first and then writing the script is better and mature approach over record & playback.

    WHY?
    (1)It reduces duplicacy of objects in repository.
    (2)The script contains the exact code to perform an task ..no extra code which is simply just get recorded otherwise doesn't contribute to the script functionality.

    (3)By writing you have more control over script and it does exactly what you want it to do.

    (4)IF you working on shared repository, one person can take the responsibilty to maintain repository..other can simply write the script using those objects.

    (5)As reusability is achieved more by writing scripts to perform a single task and then that script could be reused anywhere.

    So list goes on and on.....

    Go for script writing..that is better approach.
    Vishal Aggarwal
    Test Architect
    http://testocean.blogspot.in/

  4. #4
    Member
    Join Date
    Aug 2007
    Posts
    238
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP Testing from scratch

    I don't use an object repository or record and playback. If you try to put every object in your repository you will find that you spend a ton of time maintaining the repository when development makes changes to the user interface. To get around this I create my own "generic" custom objects that refer to common areas of the application that I work with. Then I create functions for my function library and create the script. This is all done using descriptive programming.

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

    Re: QTP Testing from scratch

    [ QUOTE ]
    To get around this I create my own "generic" custom objects that refer to common areas of the application that I work with.

    [/ QUOTE ]

    Please can you explain what you term as "generic custom objects"?
    Vishal Aggarwal
    Test Architect
    http://testocean.blogspot.in/

  6. #6
    Senior Member
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP Testing from scratch

    If User Interface changes and dev. team makes changes in properties of objects on web page then scripts with descriptive programming will also fail if you are using property name and value in script.
    So basically unless and until your application is stable enough you shouldnt move for automation
    Snehal Pailkar

  7. #7
    Senior Member
    Join Date
    Mar 2006
    Location
    Bristol, UK
    Posts
    1,530
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP Testing from scratch

    [ QUOTE ]
    If User Interface changes and dev. team makes changes in properties of objects on web page then scripts with descriptive programming will also fail if you are using property name and value in script.
    So basically unless and until your application is stable enough you shouldnt move for automation

    [/ QUOTE ]

    Sorry, but I disagree with your comment.

    As long as you automation framework promotes code reuse and a well structured OR (DP or QTP), then I don't see why automation cannot early on.

  8. #8
    Member
    Join Date
    Aug 2007
    Posts
    238
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP Testing from scratch

    [ QUOTE ]
    Please can you explain what you term as "generic custom objects"?

    [/ QUOTE ]

    This means that for a Web application I define a single Browser object and a single Page object. They don't have any properties that tie them to a specific page which makes them generic. I can then use my Page object for every page in my web application.

  9. #9
    Member
    Join Date
    Jan 2007
    Posts
    74
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP Testing from scratch

    [ QUOTE ]
    This means that for a Web application I define a single Browser object and a single Page object. They don't have any properties that tie them to a specific page which makes them generic. I can then use my Page object for every page in my web application.

    [/ QUOTE ]

    This can be the case as well for the OR. One can still use the object repository in such a way that your object descriptions are a bit more generic and where needed properties can be set on the fly with DP to assist in object identification. With enough experience and or planning and fore thought maintenance due to interface changes is not more work or hassle with either DP or the OR.

    I put nearly as much thought and effort into planning my repository as I do my scripts. The OR is just a data store and if you let it get out of hand it will be a major headache for you but if you use some planning and structure to this data store you will find that it is more useful than you may have thought.

  10. #10
    Member
    Join Date
    Aug 2007
    Posts
    238
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP Testing from scratch

    I agree with you jbeckton. I actually use a combination of both methods. Creating objects within my code and defining objects with limited properties in the OR.

    You are right about investing time into setting up your OR. There would be tons of maintenance involved if something changed in a web application and you had many different Browser objects defined.

 

 
Page 1 of 2 12 LastLast

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 8.82%
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 08:15 AM.

Copyright BetaSoft Inc.