Forum Discussion

kchoudhury's avatar
kchoudhury
Contributor
14 years ago

Is it possible for testcomplete to behave as a load balancer for its slaves

Hi ,



I am wondering if i can do this , have a testcomplete instance , that could cater to multiple requests :



e.g scenario:


  • 1 Master Computer( Testcomplete Installed)

  • 2 Salve Computers(TestExecute Installed)


The master computer would act like a controller , would contain scripts which would get the number of hosts in idle state and cater requests accordingly . (create jobs ,tasks and runs) .



The problem that i see here is how would i do multiple requests on the master computer , lets say i made a first request , my controller handles it and runs the task on salve 1 . Now there is another request coming in which can run on slave 2 since its idle , but how can i get the request to testcomplete(master server) because its already running the 1st request on slave 1 and would say testcomplete is already running and would not allow me to make the 2nd request?












2 Replies

  • Hello Kaushik,


    Using TestComplete like a controller for remote hosts is possible.

    To allow TestComplete to process requests while the tasks are being executed on the remote hosts, you need to run those tasks using the Task.Run method with the WaitForCompletion parameter set to false[/]. If this parameter is false, TestComplete will not wait until the task on the host is executed and resume the script execution on the master computer.

    For more information on this parameter and how it affects the distributed tests flow, please see the Task.Run Help topic. Please note that the Job.Run and NetworkSuite.Run methods also have the same parameter.


    I hope this information helps you.

    Good luck.

  • Hi Julia,



    Thanks for the inputs , will work on them and get back incase i have further queries.