SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Oct 2000
    Location
    South San Francisco, CA, USA
    Posts
    32
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Suggestions about running testcases: main(), testplan and how

    Hi folks,
    I wanted to get your feedback about ways to run about 200 testcases (and growing) as a test suite. I have thought that using one .t file and main() might give more unity to the tests and allow some more flexibility. I currently just want the testcases to run all in IE5 then switch over to Netscape 4.x. At the beginning of the project, I created testplans which I haven't updated with the actual testcases that I've created. I'm also concerned about the variation in testplan vs. 4-test syntax.

    My questions are two:
    1) do I just create a list of string of testcase names and have Main iterate through it?
    2) I have not been able to root out the way to switch browsers without using the menus. Any suggestions?

    Best,
    Michael

  2. #2
    Senior Member
    Join Date
    Nov 2000
    Location
    Bloomington, IL
    Posts
    142
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Suggestions about running testcases: main(), testplan and how

    You can set the browser type by using the SetBrowserType function in SilkTest.

    Example:
    btOldType = SetBrowserType (netscape4) (see Help for more detail)

    I would set up a loop within my main and execute the loop twice. When the loop number changes, change the browser type you are running.

    As far as running all of the seperate testcases, list them one after the other in the main. I don't see any reason to crceate a list of string to iterate through them.

    Example:
    Main()
    for iLoop = 1 to 2
    testcase1
    testcase2
    testcase3
    etc.

    To simplify the running of this many different testcases, turn them into functions and handle any errors within each function with a do except statement and make sure that the browser is opened and closed within each function.

  3. #3
    Senior Member
    Join Date
    Mar 2000
    Location
    Dublin, Ireland
    Posts
    152
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Suggestions about running testcases: main(), testplan and how

    Hi,

    In addition to what Mike posted, why not use the following loop,

    [-] Main ()
    [ ]
    [ ] LIST OF BROWSERTYPE lbtType
    [ ] BROWSERTYPE btType
    [ ]
    [ ] lbtType = {explorer4, netscape4}
    [-] for each btType in lbtType
    [ ]
    [ ] SetBrowserType (btType)
    [ ] // ... call your testcases here

    John.


    ------------------

    John O'Neill.
    Quality Automation Ltd.
    www.quality-automation.com
    John O'Neill.
    Quality Automation Ltd.
    www.quality-automation.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 07:32 AM.

Copyright BetaSoft Inc.