SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Nov 2000
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Executing scripts from command line

    I am trying to execute a testscript (testing a Web application) that I created from the command line using 5.0.3.2. The browser that I am using is IE 5.0 SP1. I have followed the instructions in the manual.

    The problem that I am encountering is that when the script is executed from the command line, none of the runtime options are set, e.g. default browser, inc files.

    Am I correct to assume that the runtime options that I desire are to be set in the script? For example, have a "use" statement for every inc file I need to use.

    Just wondering if anyone has tried this successfully. Any suggestions or a step by step solution would be greatly appreciated. Please note that I am trying to do this with a "t" file not a plan.

    thanks,
    Rick

  2. #2
    Member
    Join Date
    Aug 2000
    Location
    oakland,ca,u.s.a
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Executing scripts from command line

    set the browser using SetBrowserType() function



    ------------------
    Dave
    QA Engineer
    CareBid.com
    Dave
    QA Engineer
    CareBid.com

  3. #3
    Member
    Join Date
    Aug 2000
    Location
    oakland,ca,u.s.a
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Executing scripts from command line

    forgot to mention you can load .inc files by adding a use statement at the top of your test script files.

    For example:


    ------------------
    Dave
    QA Engineer
    CareBid.com
    Dave
    QA Engineer
    CareBid.com

  4. #4
    Member
    Join Date
    Dec 2000
    Location
    San Francisco, CA
    Posts
    51
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Executing scripts from command line

    here is an example:

    you have these files:
    c:\t\script1.t
    c:\opt\options1.opt

    you wanted to run script1.t using options1.opt from the command line.

    steps:
    1. copy your partner.ini from silktest installation directory. say you name it
    c:\ini\mypartner.ini. then edit mypartner.ini and change the line 'OptionsSet=whatever' to 'OptionsSet=C:\opt\options1.opt'.

    2. make a batch file, say we call it silk.bat, which contains these lines:

    copy "c:\ini\mypartner.ini" "C:\Program Files\Segue\SilkTest\partner.ini"
    "C:\Program Files\Segue\SilkTest\partner" -r "c:\t\script1.t"

    3. just run this batch file and your options will be automatically loaded and your scripts will run with the desired options.



  5. #5
    Member
    Join Date
    Dec 2000
    Location
    San Francisco, CA
    Posts
    51
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Executing scripts from command line


  6. #6
    Junior Member
    Join Date
    Nov 2000
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Executing scripts from command line

    Hi kalabog,
    Tried your suggestion; still encountering the same problems...even double checked the partner.ini file. What I noticed when I click the options/runtime...none of the parameters in my opt file are showing, for instance default browser, inc files etc.

    any assistance is appreciated

    thanks

  7. #7
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Executing scripts from command line

    There's another option for doing what rick wants.

    In a testplan

    optionset: os1.opt
    script: script1.t
    testcase: test1.t
    testcase: test2.t
    etc.

    optionset: os2.opt
    script: script2.t
    testcase: test3.t
    testcase: test4.t
    etc.

    The optionset: commannd will allow you to change optionsets and continue running a different set of tests or the same set with a different setup.

    Hope this helps



    ------------------
    John W Green
    jwgreen@automationexpertise.com
    http://www.automationexpertise.com

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 02:24 AM.

Copyright BetaSoft Inc.