package com.zjty.automatedtesting.pojo.test;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


/**
 * <p>Description : selenium-test
 * <p>Date : 2020/1/3 9:47
 * <p>@author : C
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "测试用例步骤")
public class Step {

    /**
     * 步骤序号
     */
    @ApiModelProperty(value = "序号", example = "1", position = 1)
    private Integer order;

    /**
     * 标题
     */
    @ApiModelProperty(value = "步骤的标题", example = "输入关键字", position = 2)
    private String title;

    /**
     * 元素的定位类型
     */
    @ApiModelProperty(value = "元素的定位类型", example = "id", position = 3)
    private String type;

    /**
     * 元素的定位关键值
     */
    @ApiModelProperty(value = "元素的定位关键值", example = "kw", position = 4)
    private String key;

    /**
     * 元素的操作方式
     */
    @ApiModelProperty(value = "元素的操作方式", example = "input", position = 5)
    private String action;

    /**
     * 输入值 操作为input时需要
     */
    @ApiModelProperty(value = "输入值 操作为input时需要", example = "ty", position = 6)
    private String value;

    /**
     * 判断类型
     */
    @ApiModelProperty(value = "断言", position = 7)
    private List<Assert> asserts;

}
