You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the question is little stupid, but unfortunality I don't have any experiences in threads.
I'm testing a complex program and call the main-class with:
Thread thread = new Thread() {
public void run() {
ApplicationLauncher withArgs = application(Main.class).withArgs("option1=on");
withArgs.start();
}
};
thread.start();
When I don't to this in an extra thread the next inputs via robot() won't get executed.
However, I inserted multipled Thread.sleep()-methods, because the program takes a while to start, and without them the input are too early.
All in all I'm unsure if I do aything extremly wrong here - could anyone give me a hint?
Would be very nice!
Thanks
Hans
The text was updated successfully, but these errors were encountered:
Hello!
the question is little stupid, but unfortunality I don't have any experiences in threads.
I'm testing a complex program and call the main-class with:
When I don't to this in an extra thread the next inputs via robot() won't get executed.
However, I inserted multipled Thread.sleep()-methods, because the program takes a while to start, and without them the input are too early.
All in all I'm unsure if I do aything extremly wrong here - could anyone give me a hint?
Would be very nice!
Thanks
Hans
The text was updated successfully, but these errors were encountered: