001/**
002 * ////////////////////////////////////////////////////////////////////////////////
003 * //
004 * //  D SOFTWARE INCORPORATED
005 * //  Copyright 2007-2014 D Software Incorporated
006 * //  All Rights Reserved.
007 * //
008 * //  NOTICE: D Software permits you to use, modify, and distribute this file
009 * //  in accordance with the terms of the license agreement accompanying it.
010 * //
011 * //  Unless required by applicable law or agreed to in writing, software
012 * //  distributed under the License is distributed on an "AS IS" BASIS,
013 * //  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * //
015 * ////////////////////////////////////////////////////////////////////////////////
016 */
017/**
018 *
019 */
020package com.thed.launcher;
021
022
023import org.apache.commons.configuration.PropertiesConfiguration;
024
025import com.thed.model.Agent;
026import com.thed.model.TestcaseBatchExecution;
027import com.thed.model.TestcaseExecution;
028
029/**
030 * Defines basic member variables their getter and setter methods
031 * defined in the {@link IZBotScriptLauncher}.<br/>
032 * <br/>
033 *
034 * @author zephyrDev
035 *
036 */
037public abstract class AbstractZBotScriptLauncher implements IZBotScriptLauncher {
038        /*----------------------------------------------------------
039         * ATTRIBUTES
040         *----------------------------------------------------------*/
041
042        /* agent */
043        protected Agent agent ;
044
045        /* testcase batch execution information model object */
046        protected TestcaseBatchExecution testcaseBatchExecution ;
047
048        /* current testcase execution information model object */
049        protected TestcaseExecution currentTestcaseExecution;
050
051        /* server url e.g. http://127.0.0.1:80*/
052        protected String url ;
053
054        /* zbot properties */
055        protected PropertiesConfiguration zbotProperties ;
056
057        /* real time status */
058        protected String status ;
059
060
061        /*----------------------------------------------------------
062         * END OF ATTRIBUTES
063         *----------------------------------------------------------*/
064
065
066        /*----------------------------------------------------------
067         * GETTER AND SETTER (also interface methods)
068         *----------------------------------------------------------*/
069
070
071        public Agent getAgent() {
072                return agent;
073        }
074
075
076        public void setAgent(Agent agent) {
077                this.agent = agent;
078        }
079
080        public String getUrl() {
081                return url;
082        }
083
084        /**
085         * Url format is "http://127.0.0.1:80/flex/agent", notice "/flex/agent" suffix attached to it.
086         */
087        public void setUrl(String url) {
088                this.url = url;
089        }
090
091
092        /**
093         * @return the zbotProperties
094         */
095        public PropertiesConfiguration getZbotProperties() {
096                return zbotProperties;
097        }
098
099
100        /**
101         * @param zbotProperties the zbotProperties to set
102         */
103        public void setZbotProperties(PropertiesConfiguration zbotProperties) {
104                this.zbotProperties = zbotProperties;
105        }
106
107
108        public TestcaseBatchExecution getTestcaseBatchExecution() {
109                return testcaseBatchExecution;
110        }
111
112        public void setTestcaseBatchExecution(
113                        TestcaseBatchExecution testcaseBatchExecution) {
114                this.testcaseBatchExecution = testcaseBatchExecution;
115        }
116
117        public TestcaseExecution getCurrentTestcaseExecution() {
118                return currentTestcaseExecution;
119        }
120
121        public void setCurrentTestcaseExecution(
122                        TestcaseExecution currentTestcaseExecution) {
123                this.currentTestcaseExecution = currentTestcaseExecution;
124        }
125
126
127        /*----------------------------------------------------------
128         * END OF GETTER AND SETTER (also interface methods)
129         *----------------------------------------------------------*/
130
131}