Package com.thed.launcher
Class AbstractZBotScriptLauncher
java.lang.Object
com.thed.launcher.AbstractZBotScriptLauncher
- All Implemented Interfaces:
IZBotScriptLauncher
- Author:
- zephyrDev
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Agent
protected TestcaseExecution
protected String
protected TestcaseBatchExecution
protected String
protected org.apache.commons.configuration.PropertiesConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAgent()
getter for Agentutility method to get Current TestcaseExecutionutility method to get TestcaseBatchExecutiongetUrl()
getter for URLorg.apache.commons.configuration.PropertiesConfiguration
void
setter for Agent.void
setCurrentTestcaseExecution
(TestcaseExecution currentTestcaseExecution) utility method to set Current TestcaseExecution.void
setTestcaseBatchExecution
(TestcaseBatchExecution testcaseBatchExecution) utility method to set TestcaseBatchExecution.void
Url format is "http://127.0.0.1:80/flex/agent", notice "/flex/agent" suffix attached to it.void
setZbotProperties
(org.apache.commons.configuration.PropertiesConfiguration zbotProperties) Other misc properties that are read from zbot.properties file, are pushed into this hashmap.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.thed.launcher.IZBotScriptLauncher
batchEnd, batchStart, enableResultUpdate, getAgentStatus, testcaseExecutionEnd, testcaseExecutionResult, testcaseExecutionRun, testcaseExecutionStart, testcaseParseExecutionResult
-
Field Details
-
agent
-
testcaseBatchExecution
-
currentTestcaseExecution
-
url
-
zbotProperties
-
status
-
-
Constructor Details
-
AbstractZBotScriptLauncher
public AbstractZBotScriptLauncher()
-
-
Method Details
-
getAgent
Description copied from interface:IZBotScriptLauncher
getter for Agent- Specified by:
getAgent
in interfaceIZBotScriptLauncher
-
setAgent
Description copied from interface:IZBotScriptLauncher
setter for Agent.
Before starting the batch execution of testcases, theScriptProcessor.run()
method sets the Agent usingIZBotScriptLauncher.setAgent(Agent)
method.- Specified by:
setAgent
in interfaceIZBotScriptLauncher
-
getUrl
Description copied from interface:IZBotScriptLauncher
getter for URL- Specified by:
getUrl
in interfaceIZBotScriptLauncher
-
setUrl
Url format is "http://127.0.0.1:80/flex/agent", notice "/flex/agent" suffix attached to it.- Specified by:
setUrl
in interfaceIZBotScriptLauncher
-
getZbotProperties
- Specified by:
getZbotProperties
in interfaceIZBotScriptLauncher
- Returns:
- the zbotProperties
-
setZbotProperties
public void setZbotProperties(org.apache.commons.configuration.PropertiesConfiguration zbotProperties) Description copied from interface:IZBotScriptLauncher
Other misc properties that are read from zbot.properties file, are pushed into this hashmap.- Specified by:
setZbotProperties
in interfaceIZBotScriptLauncher
- Parameters:
zbotProperties
- the zbotProperties to set
-
getTestcaseBatchExecution
Description copied from interface:IZBotScriptLauncher
utility method to get TestcaseBatchExecution- Specified by:
getTestcaseBatchExecution
in interfaceIZBotScriptLauncher
-
setTestcaseBatchExecution
Description copied from interface:IZBotScriptLauncher
utility method to set TestcaseBatchExecution.
The TestcaseBatchExecution object is set in theScriptProcessor.run()
method usingIZBotScriptLauncher.setTestcaseBatchExecution(TestcaseBatchExecution)
method before starting the batch execution.- Specified by:
setTestcaseBatchExecution
in interfaceIZBotScriptLauncher
-
getCurrentTestcaseExecution
Description copied from interface:IZBotScriptLauncher
utility method to get Current TestcaseExecution- Specified by:
getCurrentTestcaseExecution
in interfaceIZBotScriptLauncher
-
setCurrentTestcaseExecution
Description copied from interface:IZBotScriptLauncher
utility method to set Current TestcaseExecution.
Every time theScriptProcessor.run()
method loops through each of the testcases within a batch, it sets the current testcase usingIZBotScriptLauncher.setCurrentTestcaseExecution(TestcaseExecution)
method.- Specified by:
setCurrentTestcaseExecution
in interfaceIZBotScriptLauncher
-