SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Dec 2001
    Location
    Billings, MT, USA
    Posts
    46
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    multitestcase trouble

    When I run this script, it says:
    *** Error: Script does not contain a main function

    when I put a main function in, (where the comment in template says to), I get another error on compile that says:
    parallel.v1.t(35): Function main is not defined

    Ideally I'd like to simply call a sequence of testcases where it says (call testcase here) but I can't figure out what I'm doing wrong? When I simply try to call a testcase, I get the red X with this syntax:
    testcase practice () appstate HomePage

    Any ideas? Here is the template (parallel.t) with my modifications:

    [ ] // Copyright (c) 1995-2000 by Segue Software, Inc.
    [ ] // All Rights Reserved.
    [ ] // parallel.t
    [ ] //
    [ ] // Template for multi-machine single-application test script.
    [ ]
    [ ] // Include test frame (window declarations, etc.):
    [ ] use "c:\silk_scripts\main_include.inc"
    [ ]
    [ ] // This multitestcase accepts a list of machine names,
    [ ] // connects to each machine, invokes the application specified by
    [ ] // the window declaration MyMainWin, and runs the specified set of
    [ ] // operations on each machine in parallel.
    [ ] //
    [ ]
    [-] LIST OF STRING lsMachines = {...}
    [ ] "HJLAB" //NY Domain
    [ ] "HOTJOBS291" //NY Domain
    [ ] //"Computer 3"
    [ ]
    [-] multitestcase MyParallelTest (LIST of STRING lsMachines)
    [ ] STRING sMachine
    [ ] // Connect to all machines in parallel:
    [-] for each sMachine in lsMachines
    [-] spawn
    [ ] SetUpMachine (sMachine, wMainWindow)
    [ ] rendezvous
    [-] // Set app state of each machine, invoking if necessary:
    [ ] //SetMultiAppStates()
    [ ] // Run testcases in parallel:
    [-] for each sMachine in lsMachines
    [-] spawn
    [ ] SetMachine (sMachine)
    [-] // Call testcase(s) or call main()
    [ ] Browser.LoadPage (sHJroot)
    [ ] HotJobsHomePage.SetActive ()
    [ ]
    [ ]
    [ ] rendezvous


    ------------------
    There is no try, only do. -Yoda
    Clay Givens
    Yahoo! QA Engineer

  2. #2
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: multitestcase trouble

    you need a section in your .t file called main() which will list out your testcases you want to run. You can also have additional code in main. For example:

    [-] main ()
    [ ] MyTestcase()
    [ ]
    [-] testcase MyTestcase()
    [ ] //some code here


    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

 

 

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 03:47 PM.

Copyright BetaSoft Inc.