SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Syntax to use Input for Start of Application

    User MArk B. (mkbutler@russellmellon.com.nospam) posted:

    That brings up a whole discussion. (For me anyway.)

    It's an issue of scalability.
    Let's say you go with the constant. It's quick and easy compared to just
    about any other method. Using the constant, if somewhere along the line you
    have to test a different install point then you go in and modify the
    constant and recompile. The disadvantage is that all of the scripts and
    libraries will be pointing at just one location. If you test on multiple
    machines at the same time then all of them will need to have the product
    installed at the same location.

    Look at my suggestion, pulling it out of the registry. It's really cool
    because it doesn't matter where the application is installed on any machine.
    It's dynamic depending on the test machine. Problem with it is that it's
    not easy to do if you don't have the libraries handy or the programming
    skills to make or modify the libraries if you have them. It also takes time
    even if you already have those.

    So, what do you do in the middle?

    I suggest you start with something that is in the middle. Do something that
    allows for the flexibility that the more complex method would allow but
    without the complexity. Something like this.

    Use a function to get the applications install path.

    sAppPath = GetThePathToTheApp ()
    (Think up a better name yourself)

    To start with, put a constant in there or hard code the value.

    Function GetThePathToTheApp () As String

    GetThePathToTheApp = "C:\Program Files\MyApp"

    End Function

    Then, if you ever need to test different install paths then the only
    modification you'll need to make to your test suite is in the function that
    gets the path.

    MArk B.

    "Crunk John (ext3jpc)" <ext3jpc@ups.com> wrote in message
    news:96952@sqa-suite-users...
    be)
    is
    context?
    ---

  2. #2
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Syntax to use Input for Start of Application

    User Mike Smith (michael8001@hotmail.com.nospam) posted:


    Hello Everyone,

    I'm try to use a input box to collect the path for the Setup.exe. What is
    the syntax to use the filename I collected in a Start Application context?
    Or is there a better way to collect the path and then run that exe?

    Thanks!

    Mike


    __________________________________________________ _______________
    Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


    ---

  3. #3
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Syntax to use Input for Start of Application

    User MArk B. (mkbutler@russellmellon.com.nospam) posted:

    I kind of go for pulling it out of the InstallPath entry in the registry.
    If there isn't one there for the application you are testing (it should be)
    then the person that builds the install set can easily add it for you.

    MArk B.

    "Mike Smith" <michael8001@hotmail.com> wrote in message
    news:96946@sqa-suite-users... http://explorer.msn.com/intl.asp.
    ---

  4. #4
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Syntax to use Input for Start of Application

    User Crunk John (ext3jpc) (ext3jpc@ups.com.nospam) posted:

    I generally go for simple: I set a global const and let her rip. I am not
    test the location of where the install is. It is not worth spending time
    over.

    John


 

 

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 13.64%
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 04:48 PM.

Copyright BetaSoft Inc.