如何选择套件(.xml)中的脚本以在Jenkins中运行

时间:2017-02-08 16:26:48

标签: selenium jenkins selenium-webdriver jenkins-plugins

Jenkins中是否有插件允许用户选择在Jenkins中执行的Suite(.xml)中的脚本/ java类?

我们有一个Selenium Suite,我们在jenkins创建了一份工作。套房内有10个TC。我想只运行TC 5-8。是否有一个插件可以为每个TC创建一个复选框,然后我们可以勾选我们想要执行的复选框?

1 个答案:

答案 0 :(得分:0)

这是我的示例xml文件

@Entity(name = "room_night")
@Table(name = "room_night", uniqueConstraints = { @UniqueConstraint(name = "key_rm_order_sub_order", columnNames = { "booking_id", "room_night_booking_id" }) })
public class RoomNightEntity extends AbstractBookingEntity {

  private static final long serialVersionUID = 7661960864475909694L;

  @Column(name = "ota_booking_id", nullable = false)
  private String otaBookingId;

  @Column(name = "property_id", nullable = false)
  private Long propertyId;

  @Column(name = "room_type_id", nullable = false)
  private Integer roomTypeId;

  @Column(name = "booking_status", nullable = false)
  private Integer bookingStatus;

  @Column(name = "occupancy", nullable = false)
  private Integer occupancy;

  @Column(name = "user_id", nullable = false)
  private Long userId;

  @Column(name = "payment_mode", nullable = false)
  private String paymentMode;

  @Column(name = "stay_date")
  @Temporal(TemporalType.DATE)
  private Date stayDate;

  @OneToOne(cascade = CascadeType.ALL, mappedBy = "roomNightEntity", fetch = FetchType.LAZY)
  private BookingCorporateDetailsEntity bookingCorporateDetailsEntity;

  // Getters and Setters
}