chr
2026-04-08 53e656200368a983e563550e2cc1acbc6d86b729
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using OpenTap;
using System.ComponentModel;
 
namespace AddInPlugin
{
    [Browsable(false)]
    public class ConditionBase : TestStep
    {
        protected string condition;
        [Display("条件")]
        public string Condition
        {
            get => condition; set
            {
                condition = value;
                OnPropertyChanged(nameof(Condition));
            }
        }
 
        public bool? ConditionResult { get; protected set; }
 
        public ConditionBase()
        {
            Rules.Add(() => !string.IsNullOrWhiteSpace(Condition), "条件不能为空", Condition);
        }
 
        public override void Run()
        {
        }
    }
}