Package com.Leapwork.Leapwork_plugin
Class PluginHandler
java.lang.Object
com.Leapwork.Leapwork_plugin.PluginHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createJUnitReport
(FilePath workspace, String JUnitReportFile, TaskListener listener, RunCollection buildResult) getControllerApiHttpAdderess
(String hostname, String rawPort, boolean enableHttps, TaskListener listener) static PluginHandler
getRawScheduleList
(String rawScheduleIds, String rawScheduleTitles) getReportFileName
(String rawReportName, String defaultReportName) getRunItem
(com.ning.http.client.AsyncHttpClient client, String controllerApiHttpAddress, String accessKey, UUID runItemId, String scheduleTitle, boolean doneStatusAsSuccess, boolean writePassedKeyframes, TaskListener listener) getRunItemKeyFrames
(com.ning.http.client.AsyncHttpClient client, String controllerApiHttpAddress, String accessKey, UUID runItemId, RunItem runItem, String scheduleTitle, String agentTitle, TaskListener listener) getRunRunItems
(com.ning.http.client.AsyncHttpClient client, String controllerApiHttpAddress, String accessKey, UUID runId) getRunStatus
(com.ning.http.client.AsyncHttpClient client, String controllerApiHttpAddress, String accessKey, UUID runId) getSchedulesIdTitleHashMap
(com.ning.http.client.AsyncHttpClient client, String accessKey, String controllerApiHttpAddress, ArrayList<String> rawScheduleList, TaskListener listener, ArrayList<InvalidSchedule> invalidSchedules) getScheduleVariablesRequestPart
(String rawScheduleVariables, TaskListener listener) int
getTimeDelay
(String rawTimeDelay, TaskListener listener) int
getTimeout
(String rawTimeout, TaskListener listener) getWorkSpaceSafe
(FilePath workspace, EnvVars env) boolean
isDoneStatusAsSuccess
(String doneStatusAs) runSchedule
(com.ning.http.client.AsyncHttpClient client, String controllerApiHttpAddress, String accessKey, UUID scheduleId, String scheduleTitle, TaskListener listener, LeapworkRun run, String scheduleVariablesRequestPart) boolean
stopRun
(String controllerApiHttpAddress, UUID runId, String scheduleTitle, String accessKey, int timeout, TaskListener listener)
-
Method Details
-
getInstance
-
getScheduleVariablesRequestPart
-
getRawScheduleList
-
getTimeDelay
-
getTimeout
-
isDoneStatusAsSuccess
-
getControllerApiHttpAdderess
public String getControllerApiHttpAdderess(String hostname, String rawPort, boolean enableHttps, TaskListener listener) -
getWorkSpaceSafe
-
getSchedulesIdTitleHashMap
public LinkedHashMap<UUID,String> getSchedulesIdTitleHashMap(com.ning.http.client.AsyncHttpClient client, String accessKey, String controllerApiHttpAddress, ArrayList<String> rawScheduleList, TaskListener listener, ArrayList<InvalidSchedule> invalidSchedules) throws Exception - Throws:
Exception
-
runSchedule
public UUID runSchedule(com.ning.http.client.AsyncHttpClient client, String controllerApiHttpAddress, String accessKey, UUID scheduleId, String scheduleTitle, TaskListener listener, LeapworkRun run, String scheduleVariablesRequestPart) throws Exception - Throws:
Exception
-
stopRun
public boolean stopRun(String controllerApiHttpAddress, UUID runId, String scheduleTitle, String accessKey, int timeout, TaskListener listener) -
createJUnitReport
public void createJUnitReport(FilePath workspace, String JUnitReportFile, TaskListener listener, RunCollection buildResult) throws Exception - Throws:
Exception
-
getRunStatus
public String getRunStatus(com.ning.http.client.AsyncHttpClient client, String controllerApiHttpAddress, String accessKey, UUID runId) throws Exception - Throws:
Exception
-
getRunRunItems
public List<UUID> getRunRunItems(com.ning.http.client.AsyncHttpClient client, String controllerApiHttpAddress, String accessKey, UUID runId) throws Exception - Throws:
Exception
-
getRunItem
public RunItem getRunItem(com.ning.http.client.AsyncHttpClient client, String controllerApiHttpAddress, String accessKey, UUID runItemId, String scheduleTitle, boolean doneStatusAsSuccess, boolean writePassedKeyframes, TaskListener listener) throws Exception - Throws:
Exception
-
getRunItemKeyFrames
public Failure getRunItemKeyFrames(com.ning.http.client.AsyncHttpClient client, String controllerApiHttpAddress, String accessKey, UUID runItemId, RunItem runItem, String scheduleTitle, String agentTitle, TaskListener listener) throws Exception - Throws:
Exception
-
getReportFileName
-