SPONSORS:






User Tag List

Results 1 to 10 of 10
  1. #1
    Senior Member
    Join Date
    Jul 2001
    Posts
    147
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Distributed Testing

    Hi All,

    I'm having trouble with distributed testing.

    I have the following code. Machine "SilkTest" has the Controller and Agent on it and machine "PC-BT00039" has the Agent on it. When I run the following code, only machine "PC-BT00039", which has the agent on it runs. The machine with the controller and agent does nothing.

    Am I doing something wrong?

    Do I need to do something else?

    [ ] List of String lsMachine = {"Silktest", "PC-BT00039"}
    [ ] String sMachine
    [ ]
    [-] for each sMachine in lsMachine
    [-] spawn
    [ ] Connect (sMachine)
    [ ] SetMachine (sMachine)
    [ ]
    [ ] TestCaseEnter ()
    [ ] EMenuBarContents ()
    [ ] TestCaseExit (bException)
    [ ]
    [ ] TestCaseEnter ()
    [ ] EToolBarContents ()
    [ ] TestCaseExit (bException)
    [ ]
    [ ] Disconnect (sMachine)
    [ ]
    [ ] rendezvous


    ------------------
    Who Tests The Tester...
    Who Tests The Tester...

  2. #2
    Senior Member
    Join Date
    Aug 1999
    Location
    Cambridge, UK
    Posts
    470
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Distributed Testing

    It would help if we could see the code properly - the indentation is crucial in the spawn-rendezvous statement.
    To display code properly, use the UBB 'CODE' tag in square brackets.

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

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Posts
    147
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Distributed Testing

    ------------------
    Who Tests The Tester...
    Who Tests The Tester...

  4. #4
    Member
    Join Date
    Jul 2002
    Location
    Chennai,TN,India
    Posts
    36
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Distributed Testing

    Hi,

    1. Check the "Network" and "Port Number" of the Machine Silktest's agent.

    2. Do not handle the Exception, leave it to SilkTest itself or get the ExceptNum() and ExceptData().

    If Network and Port Number are Same in all the three(host,Silktest and PC-BT00039) and
    also there is no exception thrown while invoking the operation at "SilkTest" PC then
    it is miscellaneous to me.

    If u had any exception(s), let us know.

    ------------------
    Babu NM
    Babu NM

  5. #5
    Senior Member
    Join Date
    Aug 1999
    Location
    Cambridge, UK
    Posts
    470
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Distributed Testing

    I think your rendezvous line is indented too far; it should be on the same level as the 'for each...' line. Not sure if that is causing your problem, but it's worth a check.

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

  6. #6
    Senior Member
    Join Date
    Jul 2001
    Posts
    147
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Distributed Testing

    The problem was the following:

    1. The "Network" and "Port Number" of the Machine Silktest's agent didn't match.

    2. rendezvous line was indented too far.

    Thanks guys.

    Just another question.

    ------------------
    Who Tests The Tester...
    Who Tests The Tester...

  7. #7
    Senior Member
    Join Date
    Jul 2001
    Posts
    147
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Distributed Testing

    1. Is there a way to call a script file (*.t) within the main ().

    2. I want to run testcases on 2 different agents at the same time.

    Eg:

    Mach1 - will run testcases 2 and 3.
    Mach2 - will run testcases 4 and 5.

    How do I do this in a Main ()? I don't want to run the same testcases on 2 agents. I want to run different testcases on 2 agents at the same time. Using the EG above, I would want testcase 2 on agent 1, and testcase 4 on agent 2, to run at the same time. Can this be done?

    Am I on the right track with the following code?


    ------------------
    Who Tests The Tester...
    Who Tests The Tester...

  8. #8
    Member
    Join Date
    Jul 2002
    Location
    Chennai,TN,India
    Posts
    36
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Distributed Testing

    Hi,

    As you have spawned only one thread in your code, how does u can expect process running parallel?
    Spawn 2 threads, connect each to specific machine and use “parallel statement” to do specific job.

    Use rendezvous before disconnecting.

    Hope this Solves.


    ------------------
    Babu NM
    Babu NM

  9. #9
    Senior Member
    Join Date
    Jul 2001
    Posts
    147
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Distributed Testing


    Thanks for that.

    I relised later that I needed 2 spawns.

    However, I just want to know if there is a way to call a script file (*.t) within the main (). Rather than call a test case or function, I just want to call the *.t file, which will have test cases in it already. Can this be done?

    ------------------
    Who Tests The Tester...
    Who Tests The Tester...

  10. #10
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Distributed Testing

    It's been years since I've needed to do what you are asking, but I recall I started with a list of machines lsMachines and then did for each sMachine in lsMachines, spawn...



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

 

 

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 08:56 PM.

Copyright BetaSoft Inc.