SPONSORS:






User Tag List

Results 1 to 9 of 9
  1. #1
    Junior Member
    Join Date
    Mar 2000
    Location
    Waltham, MA, USA
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Running Testplans in parallel on multiple agents

    I need to run bunch on test plans in parallel on multiple agents. Is there a way I can do this in a script file by using spawn and rendezvous. Is there an easier more robust way.

  2. #2
    AJ
    AJ is offline
    Moderator AJ's Avatar
    Join Date
    Jun 1999
    Location
    San Jose, CA
    Posts
    1,691
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running Testplans in parallel on multiple agents

    You cannot run TestPlans using spawn, but what you can do is the following:

    Have your testcases [multitestcase()] and that way you can run on multi machines.

    Organizer is a harness and you cannot write code in it

    ------------------
    AJ Alhait
    BetaSoft Inc.
    AJ Alhait
    BetaSoft Inc.

  3. #3
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running Testplans in parallel on multiple agents

    The test "plan" format makes multiple remote agent testing much more cumbersome.
    This is one of the reasons I do not use the Organizer plan format anymore.

    If your ".pln" files are not too complicated, it is usually not too hard to convert them to a pure ".t" format. Spawning testcases then becomes easy!

    One thing about multiple remote agents -- the
    results can get quite screwy.
    There are options which allow you to sort the results by machine or thread -- but they quit working when the results get very large.




    [This message has been edited by RobKapteyn (edited 11-16-2000).]
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  4. #4
    Junior Member
    Join Date
    Mar 2000
    Location
    Waltham, MA, USA
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running Testplans in parallel on multiple agents

    Rob, I am having my engineers convert all the test plans to main functions in .t files.
    I have another doubt though, I have a VC++ harness that configures the test machines and then it runs the scripts in parallel on those machines, is there any way I can have a script connect to those agents and then make these other .t files run on them. It is like doing a preconfiguration and then running a suite file which have a set of .t files.

    :-)

  5. #5
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running Testplans in parallel on multiple agents

    1. Your converted ".t" tests should be put into "testcase" functions, not main() functions.

    2. If I understand your question -- your machines will locally run a SilkTest test. When that test is done, you want a remote SilkTest test to take control of the agent and run another test?

    I think that this is possible, but I have never done this.
    Your first test would Connect() to the Agent, run, and then end with a Disconnect().
    The remote SilkTest could repeatedly try to Connect(). These attempts would fail while the first test was connected. The test would capture these exceptions, wait, and try again. When the connect was successful the second test could then proceed.

    [This message has been edited by RobKapteyn (edited 11-17-2000).]
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

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

    Re: Running Testplans in parallel on multiple agents

    Remember you can call functions from Organizer as well as the main () function. I've driven multiple machines from Organizer without any problems.

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

  7. #7
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,439
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Running Testplans in parallel on multiple agents

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by John Green:
    Remember you can call functions from Organizer as well as the main () function. I've driven multiple machines from Organizer without any problems.

    <HR></BLOCKQUOTE>

    Hi John,

    Could you maybe give us an example or two on how you've done this?
    Let's say if you want to run sub-plans A-C on Agent1, sub-plans D-F on Agent2, sub-plans G-I on Agent3, etc. (same application, different testcases) from your machine.

    Thanks.
    Gilbert



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

  8. #8
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running Testplans in parallel on multiple agents

    Multi-threading a subject I like :-)

    I suppose you could pass the name of the machine that you want to connect to in the parameters to the testcase. Then call the testcase from the plan.

    I am not sure how you can spawn multiple threads for simultaneous execution, however.

    This is why I organize all of my client-server tests in .t files rather than .pln files.

    ------------------
    Rob Kapteyn, CSTE
    kapteynr@cboe.com
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  9. #9
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,439
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Running Testplans in parallel on multiple agents

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by RobKapteyn:
    Multi-threading a subject I like :-)

    I suppose you could pass the name of the machine that you want to connect to in the parameters to the testcase. Then call the testcase from the plan.

    I am not sure how you can spawn multiple threads for simultaneous execution, however.

    This is why I organize all of my client-server tests in .t files rather than .pln files.

    <HR></BLOCKQUOTE>

    Hi Rob,

    Sorry, I still have not heard from John Green on the use of the testplans here and am still a little confused with the use of the .t files for multi-application so...

    If a.t, b.t, c.t, etc. each has 50 or more testcases grouped in main () function, and you want to setup the following:

    spawn
    SetMachine (sMach1)
    // all testcases from a.t here

    spawn
    SetMachine (sMach2)
    // all testcases from b.t here

    rendezvous

    Questions:
    1. How do you define you code without entering each individual testcases?

    2. How or where do you specify the different option set for each application? I don't see anything mentioned about it in the SetUpMachine function.


    Thanks.
    Gilbert


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


    [This message has been edited by Gilbert (edited 05-05-2003).]

 

 

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 05:56 AM.

Copyright BetaSoft Inc.