Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.
This repository was 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

Description

@derRichter

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions