package net.northking.cctp.se.plan.bean;

import lombok.Data;
import net.northking.cctp.se.device.bean.DevicePerInfo;

import java.util.HashMap;
import java.util.Map;

/**
 * 任务执行结果信息
 */
@Data
public class TaskExecResult {

    private String planId;

    private String batchId;

    private String taskId;

    private String caseId;

    private String caseType;

    private String appId;

    //任务状态 1-开始执行，2-执行成功，3-执行失败，4-断言失败，5-取消，6-超时
    private String status;

    private String message;

    private String currentTime;

    //引擎中获取
    private String engineId;

    private String deviceId;

    private String videoPath;

    private String filePath;
    
    //断言失败截图
    private String imageUrl;

    //输出参数
    private Map<String, Object> outputs = new HashMap<>();


    /**
     * 设备性能数据地址
     */
    private DevicePerInfo devicePerInfo;

    public void resetCurrentTime(){
        this.currentTime = Long.toString(System.currentTimeMillis());
    }

}
