Interface TimeControlInstruction

All Known Implementing Classes:
TimeControlAdapter

public interface TimeControlInstruction
時間控制指令介面。

提供 custom step 開發者設定測試情境當前時間的能力。

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setTime(String timeString)
    設定測試情境的當前時間。
  • Method Details

    • setTime

      void setTime(String timeString)
      設定測試情境的當前時間。

      支援格式:ISO 8601、日期、相對時間(now-1d)、@time() / @date() 表達式。

      Parameters:
      timeString - 時間字串