SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Feb 2001
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    concurrent client test

    I am trying to run concurrent test for client/server environment.
    I have 2 client machine, one is running as silktest host/target machine, another is running as target machine. They are on same LAN.

    I follow the instruction on the manual, but there is always has errors.
    The error message in result file is:

    [ ] Time on FairBanks is 11.667
    [ ] *** Sibling halted due to exception
    [ ] Occurred in close at Utilities.inc(18)
    [ ] Called from multipleuser at login.t(34)
    [ ] Called from main at login.t(6)
    [ ] *** Error: Invalid timer handle
    [ ] Occurred in TimerStop
    [ ] Called from multipleuser at login.t(35)
    [ ] Called from main at login.t(7)

    It seems that the speed of running script on 2 machine is big different. When the script on host/target machine had finished the script. It will halt the other target machine.

    Can anyone can help me on that?

    Thanks in advance.

    tong

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

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

    Re: concurrent client test

    Hi tong,

    From the error you have described, it looks as though the second thread is trying to access the timer handle from the first thread. Could you post the code please.

    The speed difference may be due to the fact that a 'spawn' or 'rendezvous' statement has been misplaced.

    I hope that this helps.

    John.

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

    John O'Neill.
    Quality Automation Ltd.
    www.quality-automation.com
    John O'Neill.
    Quality Automation Ltd.
    www.quality-automation.com

  3. #3
    Junior Member
    Join Date
    Feb 2001
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: concurrent client test

    Hi John,

    Thanks for your reply.
    The following is the code that you required. I actually used pararllel keyword.
    Please take some time to help me check these code.

    Thanks

    tong

    [ ] use "Utilities.inc"
    [-] main ()
    [ ] Connect("Montreal")
    [ ] Connect("FairBanks")
    [-] parallel
    [ ] multipleuser("Montreal",30)
    [ ] multipleuser("FairBanks",30)
    [ ]
    [ ] Disconnect ("FairBanks")
    [ ] Disconnect ("Montreal")
    [ ]
    [ ] // This testcase(multipleUser) will run the login procedure for TIMES times
    [-] multipleuser(STRING sMachine,INTEGER times)
    [ ] INTEGER i
    [ ] // define how many times to run
    [ ] INTEGER TIMES = times
    [ ] HTIMER hTimer
    [ ] hTimer = TimerCreate ()
    [ ] TimerStart (hTimer)
    [ ] SetMachine(sMachine)
    [-] for i = 1 to TIMES step 1
    [-] if (!SQMForATM.Exists ())
    [ ] SQMForATM.Start ("C:\Program Files\ServicePath\Client15.exe")
    [ ] SQMLogin.Options.Click ()
    [ ] SQMServer.SetActive ()
    [ ] SQMServer.ServerName.SetText ("Ocala")
    [ ] SQMServer.OK.Click ()
    [ ] SQMLogin.LoginName.SetText ("view")
    [ ] SQMLogin.Password.SetText ("view")
    [ ] SQMLogin.Login.Click ()
    [ ] close()

    // This part is the actual

    [ ] TimerStop (hTimer)
    [ ] Print ("Time on {sMachine} is {TimerStr (hTimer)}")
    [ ] TimerDestroy (hTimer)


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

 

 

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 04:20 PM.

Copyright BetaSoft Inc.