balinta01
13 years agoOccasional Contributor
Synchronization point is ignored
Hi all!
I prepared a VERY simple example regarding Distributed Testing, but it didnt work for some reason (TestComplete 8.6). I have two slaves computer and the tests are concerned about testing Calculator.
The test case on Slave 1 (simply press numbers 1 and 2):
function Calc12()
{
//Runs the "calc" tested application.
TestedApps.calc.Run(1, true);
//Executes the specified code snippet.
NetworkSuite.Synchronize("SPC");
while(false == false)
{
//Clicks the 'btn1' button.
Aliases.calc.wndCalculator.btn1.ClickButton();
//Clicks the 'btn2' button.
Aliases.calc.wndCalculator.btn2.ClickButton();
//Delays the test execution for the specified time period.
Delay(2000);
}
}
The test case on Slave 2 (simply press numbers 8 and 9):
function Calc89()
{
//Runs the "calc" tested application.
TestedApps.calc.Run(1, true);
//Executes the specified code snippet.
NetworkSuite.Synchronize("SPC");
while(false == false)
{
//Clicks the 'btn8' button.
Aliases.calc.wndCalculator.btn8.ClickButton();
//Clicks the 'btn9' button.
Aliases.calc.wndCalculator.btn9.ClickButton();
//Delays the test execution for the specified time period.
Delay(2000);
}
}
These are two tasks in the same job. I created a synchronization point on both slave computers. I run the job, but after the Calculators start on both slaves, they should wait for each other, but it is like an infinite loop. According to the help, the running from synchronization point shall be continueud after all the tasks reach the synchronization point. In my example both tasks reach these point, however the test doesnt continue, just waiting. What might I do wrong. Actually my purpose is to give a simple example of two slave computers waiting for each other, then continue running. E.g. I want to wait till both Calculators start.
Slave1 Slave2
runCalc runCalc
wait wait (refers to SPC)
doThis doThat
I prepared a VERY simple example regarding Distributed Testing, but it didnt work for some reason (TestComplete 8.6). I have two slaves computer and the tests are concerned about testing Calculator.
The test case on Slave 1 (simply press numbers 1 and 2):
function Calc12()
{
//Runs the "calc" tested application.
TestedApps.calc.Run(1, true);
//Executes the specified code snippet.
NetworkSuite.Synchronize("SPC");
while(false == false)
{
//Clicks the 'btn1' button.
Aliases.calc.wndCalculator.btn1.ClickButton();
//Clicks the 'btn2' button.
Aliases.calc.wndCalculator.btn2.ClickButton();
//Delays the test execution for the specified time period.
Delay(2000);
}
}
The test case on Slave 2 (simply press numbers 8 and 9):
function Calc89()
{
//Runs the "calc" tested application.
TestedApps.calc.Run(1, true);
//Executes the specified code snippet.
NetworkSuite.Synchronize("SPC");
while(false == false)
{
//Clicks the 'btn8' button.
Aliases.calc.wndCalculator.btn8.ClickButton();
//Clicks the 'btn9' button.
Aliases.calc.wndCalculator.btn9.ClickButton();
//Delays the test execution for the specified time period.
Delay(2000);
}
}
These are two tasks in the same job. I created a synchronization point on both slave computers. I run the job, but after the Calculators start on both slaves, they should wait for each other, but it is like an infinite loop. According to the help, the running from synchronization point shall be continueud after all the tasks reach the synchronization point. In my example both tasks reach these point, however the test doesnt continue, just waiting. What might I do wrong. Actually my purpose is to give a simple example of two slave computers waiting for each other, then continue running. E.g. I want to wait till both Calculators start.
Slave1 Slave2
runCalc runCalc
wait wait (refers to SPC)
doThis doThat