SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Nov 2006
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Best practices for organizing scripts

    Ok, so i have a few questions.

    Trying to follow some best practices, for example to make the test as 'independent from the application as possible' and trying to make everything modular to avoid repetition of work.

    I have a few libraries, but now i am creating scripts.

    Should i create one master test file, with different actions? or different test files, with one action each ?

    For example i have
    Login
    Navigate to patient
    Access documents
    Logout

    Should each be a separate action? for example navigate to patient is just one single click...

    I am a bit confused about all of this.

    Also, then the repository for navigate to patient hast just 2 or 3 objects but are called from different places? what is the best way to store this?

    should i make it shared? or record for each since its only 3..


    thanks.

  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

    Re: Best practices for organizing scripts

    It is difficult to give a definitive answer because we don't know your apps, environments, resouce capabilities, managers ethos etc, but a simple method which you could tailor to suit your needs is:

    Make use of external function libraries for common routines.
    Action = Test case
    QTP Script = Application specific (may need more than one script depending on number & size of test cases.

    You might also want to think about a common folder structure, we use something like:

    QTP Scripts
    ... App1 Script1
    ........ Test Case1
    ........ Test Case2
    ........ Test Case3
    ... App1 Script2
    ... Functions
    ... Results
    ... Test Data
    ........ Spreadsheets
    ........ XML Files
    ... Object Reposittories
    ... Utilities
    ... Executables


    Mark Smith.

 

 

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 12.50%
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 06:11 PM.

Copyright BetaSoft Inc.