Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

BrowserUp Proxy can't rerun test. Cant start because is started, cant stop because is stopped?! #320

Open
derRichter opened this issue Dec 2, 2020 · 0 comments

Comments

@derRichter
Copy link

derRichter commented Dec 2, 2020

We make a test run, an stop the proxy after the run with proxy.stop() or proxy.start()
The wen make a new instance private static BrowserUpProxy browserupProxy = new BrowserUpProxyServer();

on proxy.start() we got the error java.lang.IllegalStateException: Proxy server is already started. Not restarting
ok
we think we check if the proxy is startet with proxy.isStartet() and got true, but we can't stop them!!!???!!!

if (browserupProxy.isStarted()) {

	try {
		browserupProxy.abort();
	}
	catch (Exception quitError) {

		LogError.invoke(LogError, logIdent + "BrowserUpProxy beenden fehlgeschlagen! Stacktrace: "+ ExceptionUtils.getStackTrace(quitError));
	}
}

We got the stupid error Proxy server is already stopped. Cannot re-stop

This is very confusing.

How is the right way to stop the proxy and start a new instance on the same Test-Run in the same Java-VM??

greats

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

No branches or pull requests

1 participant