@Override
    public void onServerStatusChanged() {
        ServerStatusController.ServerStatus serverStatus = ServerStatusController.getServerStatus();
        switch (serverStatus) {
            case AVAILABLE:

                TestInfo testInfo = BmTestManager.getInstance().getTestInfo();
                TestInfoController.start(testInfo.getId());
                boolean testIsRunning = testInfo.getStatus() == TestStatus.Running;
                testPanel.enableMainPanelControls(!testIsRunning);
                Utils.enableElements(cloudPanel, !testPanel.getUserKey().equals(Constants.ENTER_YOUR_USER_KEY) && !testIsRunning);
                Utils.enableElements(jMeterPropertyPanel, !testIsRunning);
                break;
            case NOT_AVAILABLE:
                testPanel.enableMainPanelControls(false);
                Utils.enableElements(jMeterPropertyPanel, false);
                TestInfoController.stop();
                break;
        }
    }