001package com.thed.zblast.parser.model;
002import java.io.Serializable;
003
004/**
005 *
006 * @author Mohan.Kumar
007 * This stores an individual result line of an eggPlant test
008 */
009public class EggPlantScriptLine implements Serializable {
010
011    /** serialVersionUID */
012    private static final long serialVersionUID = -4707284647292309587L;
013    /** step */
014    private int step;
015    /** message */
016    private String message;
017    /** image */
018    private String image;
019    /** test */
020    private String text;
021    /** imageURL TODO: not working */
022    private String imageURL;
023    /** time */
024    private String time;
025
026    public String getImageURL() {
027        return imageURL;
028    }
029
030    public void setImageURL(String imageURL) {
031        this.imageURL = imageURL;
032    }
033
034    public int getStep() {
035        return step;
036   }
037
038    public void setStep(int step) {
039        this.step = step;
040    }
041
042    public String getTime() {
043        return time;
044    }
045
046    public void setTime(String time) {
047        this.time = time;
048    }
049
050    public String getMessage() {
051        return message;
052    }
053
054    public void setMessage(String message) {
055        this.message = message;
056    }
057
058    public String getImage() {
059        return image;
060    }
061
062    public void setImage(String image) {
063        this.image = image;
064    }
065
066    /**
067     * @return text
068     */
069    public String getText() {
070        return text;
071    }
072
073    /**
074     * @param text text
075     */
076    public void setText(String text) {
077        this.text = text;
078    }
079
080    /**
081     * @return isPassed
082     */
083    public boolean isPassed() {
084        return (!"FAILURE".equals(message) && !"Exception".equals(message));
085    }
086}