Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread synchro #258

Open
hansthesis2020 opened this issue Jan 2, 2021 · 0 comments
Open

Thread synchro #258

hansthesis2020 opened this issue Jan 2, 2021 · 0 comments

Comments

@hansthesis2020
Copy link

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:

		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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant