001package com.thed.zblast.parser.model;
002import java.io.Serializable;
003import java.util.ArrayList;
004
005/**
006 * @author Mohan.Kumar
007 * This stores the results of an eggPlant execution
008 */
009public class EggPlantResult implements Serializable {
010    /** serialVersionUID */
011    private static final long serialVersionUID = -7436928706318596861L;
012
013    /** script */
014    private String script;
015    
016    /** sut */
017    private String sut;
018
019    /** isPassed */
020    private boolean isPassed;
021
022    /** runDate */
023    private String runDate;
024
025    /** Duration */
026    private String Duration;
027
028    /** errors */
029    private String errors;
030    
031    /** warnings */
032    private String warnings;
033    
034    /** exceptions */
035    private String  exceptions;
036
037    /** ScriptLines */
038    private ArrayList<EggPlantScriptLine> ScriptLines;
039    
040    /** xmlResultFile */
041    private String xmlResultFile;
042
043    public String getSut() {
044        return sut;
045    }
046
047    public void setSut(String sut) {
048        this.sut = sut;
049    }
050
051    public String getDuration() {
052        return Duration;
053    }
054
055    public void setDuration(String Duration) {
056        this.Duration = Duration;
057    }
058
059    public String getErrors() {
060        return errors;
061    }
062
063    public void setErrors(String errors) {
064        this.errors = errors;
065    }
066
067    public String getExceptions() {
068        return exceptions;
069    }
070
071    public void setExceptions(String exceptions) {
072        this.exceptions = exceptions;
073    }
074
075    public String getRunDate() {
076        return runDate;
077    }
078
079    public void setRunDate(String runDate) {
080        this.runDate = runDate;
081    }
082
083    public String getWarnings() {
084        return warnings;
085    }
086
087    public void setWarnings(String warnings) {
088        this.warnings = warnings;
089    }
090
091
092    public String getScript() {
093        return script;
094    }
095
096    public void setScript(String script) {
097        this.script = script;
098    }
099
100    /**
101     * @return isPassed
102     */
103    public boolean isPassed() {
104        return isPassed;
105    }
106    
107    public void setPassed(boolean isPassed) {
108        this.isPassed = isPassed;
109    }
110
111    public void addScriptLine(EggPlantScriptLine esl)
112    {
113        if (ScriptLines == null)
114        {
115            ScriptLines = new ArrayList<EggPlantScriptLine>();
116        }
117        ScriptLines.add(esl);
118    }
119
120    /**
121     * @return ScriptLines
122     */
123    public ArrayList<EggPlantScriptLine> getScriptLines() {
124        return ScriptLines;
125    }
126
127    /**
128     * @param scriptlines ScriptLines
129     */
130    public void setScriptLines(ArrayList<EggPlantScriptLine> scriptlines) {
131        this.ScriptLines = scriptlines;
132    }
133
134        public String getXmlResultFile() {
135                return xmlResultFile;
136        }
137
138        public void setXmlResultFile(String xmlResultFile) {
139                this.xmlResultFile = xmlResultFile;
140        }
141
142}