All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.browserstack.automate.Automate Maven / Gradle / Ivy

The newest version!
package com.browserstack.automate;

import com.browserstack.automate.exception.AutomateException;
import com.browserstack.automate.exception.ProjectNotFound;
import com.browserstack.automate.exception.SessionNotFound;
import com.browserstack.automate.model.AccountUsage;
import com.browserstack.automate.model.Project;
import com.browserstack.automate.model.Session;
import com.browserstack.client.model.Browser;

import java.util.List;
import java.util.Map;

public interface Automate {

    AccountUsage getAccountUsage() throws AutomateException;

    List getBrowsers() throws AutomateException;

    List getBrowsers(boolean cache) throws AutomateException;

    List getProjects() throws AutomateException;

    Project getProject(int projectId) throws ProjectNotFound, AutomateException;

    boolean deleteProject(int projectId) throws AutomateException;

    Session updateSessionStatus(String sessionId, Map data) throws AutomateException;

    Session updateSessionStatus(String sessionId,
                                SessionStatus sessionStatus,
                                String reason) throws SessionNotFound, AutomateException;

    Session updateSessionStatus(String sessionId,
                                SessionStatus sessionStatus) throws SessionNotFound, AutomateException;

    String getSessionLogs(String sessionId) throws SessionNotFound, AutomateException;

    String getSessionLogs(Session session) throws AutomateException;

    String getSessionVideo(String sessionId) throws SessionNotFound, AutomateException;

    boolean deleteSession(String sessionId) throws SessionNotFound, AutomateException;

    String recycleKey() throws AutomateException;


    enum BuildStatus {
        RUNNING, DONE, FAILED
    }

    enum SessionStatus {
        DONE, ERROR
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy