import com.tplan.robot.ApplicationSupport; import com.tplan.robot.AutomatedRunnable;
public class TwoTasks {
public static void main(String[] argv) {
ApplicationSupport robot = new ApplicationSupport();
String args1[] = {"-c", "rfb://testmachine1:5900", "-p", "welcome", "-n", "-r", "C:\\TestScripts\\test1.tpr"}; AutomatedRunnable runnable1 = robot.createAutomatedRunnable("cli-1", args1, System.out, false);
String args2[] = {"-c", "rfb://testmachine2:5901", "-p", "welcome", "-n", "-r", "C:\\TestScripts\\test2.tpr"}; AutomatedRunnable runnable2 = robot.createAutomatedRunnable("cli-2", args2, System.out, false);
Thread t1 = new Thread(runnable1); t1.start();
Thread t2 = new Thread(runnable2); t2.start(); } }
|