def METHOD_NAME(self):
    """
    Build a new server session.
    """
    port = self.port
    prompt = self.prompt
    host = self.server_ip
    client = self.client
    username = self.server_user
    password = self.server_pwd
    try:
        session = remote.wait_for_login(client, host, port,
                                        username, password, prompt)
    except remote.LoginTimeoutError:
        raise exceptions.TestError(
            "Got a timeout error when login to server.")
    except remote.LoginAuthenticationError:
        raise exceptions.TestError(
            "Authentication failed to login to server.")
    except remote.LoginProcessTerminatedError:
        raise exceptions.TestError(
            "Host terminates during login to server.")
    except remote.LoginError:
        raise exceptions.TestError(
            "Some error occurs login to client server.")
    return session