Example #1
0
 private void VerifyVariableTypes(ISequence sequence, VariableTreeTable variableTree)
 {
     variableTree.Push(sequence.Variables);
     foreach (ISequenceStep sequenceStep in sequence.Steps)
     {
         VerifyVariableTypes(sequenceStep, variableTree);
     }
     variableTree.Pop();
 }
Example #2
0
        /// <summary>
        /// 初始化变量和参数的类型数据
        /// </summary>
        public void VerifyVariableTypes(ISequenceGroup sequenceGroup)
        {
            VariableTreeTable variableTree = new VariableTreeTable(sequenceGroup.Arguments);

            variableTree.Push(sequenceGroup.Variables);
            VerifyVariableTypes(sequenceGroup.SetUp, variableTree);
            foreach (ISequence sequence in sequenceGroup.Sequences)
            {
                VerifyVariableTypes(sequence, variableTree);
            }
            VerifyVariableTypes(sequenceGroup.TearDown, variableTree);
            variableTree.Pop();
        }
Example #3
0
        /// <summary>
        /// 初始化变量和参数的类型数据
        /// </summary>
        public void VerifyVariableTypes(ITestProject testProject)
        {
            VariableTreeTable variableTree = new VariableTreeTable(null);

            variableTree.Push(testProject.Variables);
            VerifyVariableTypes(testProject.SetUp, variableTree);
            VerifyVariableTypes(testProject.TearDown, variableTree);
            foreach (ISequenceGroup sequenceGroup in testProject.SequenceGroups)
            {
                if (null != sequenceGroup && sequenceGroup.Available)
                {
                    VerifyVariableTypes(sequenceGroup);
                }
            }
        }