package com.test.test.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.test.common.annotation.Excel;
import com.test.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * 用例执行报告对象 test_case_result
 *
 * @author liangdl
 * @date 2025-02-18
 */
@Setter
@Getter
@ToString
public class TestCaseResult extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 报告id */
    private Long id;

    /** 用例id */
    @Excel(name = "用例id")
    private Long caseId;

    /** 用例步骤id */
    @Excel(name = "用例步骤id")
    private Long stepId;

    /** http 请求头 */
    @Excel(name = "http 请求头")
    private String requestHeader;

    /** http 请求体 */
    @Excel(name = "http 请求体")
    private String requestBody;

    /** http 响应头 */
    @Excel(name = "http 响应头")
    private String responseHeader;

    /** http 响应体 */
    @Excel(name = "http 响应体")
    private String responseBody;

    /** sql结果 */
    private String sqlResult;

    /** 循环次 */
    @Excel(name = "循环次")
    private Long pollingCount;

    /** 轮询次 */
    @Excel(name = "轮询次")
    private Long loopCount;
    /**
     * 参数提取
     */
    private String assignment;
    /**
     * 校验规则
     */
    private String assertion;

    /** 耗时 */
    @Excel(name = "耗时")
    private Long useTime;

    /** 执行时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "执行时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date executeTime;

    /** 执行结果 */
    @Excel(name = "执行结果")
    private String status;
}
