Inheritance: DataDictionary.Namable
 public virtual void visit(SubSequence obj, bool visitSubNodes)
 {
     visit ((Namable) obj, false);
     if (visitSubNodes){
     IXmlBBase[] Subs  = acceptor.subElements((IXmlBBase)obj);
     if (Subs != null){
     for (int i=0; i<Subs.Length; i++) {
       dispatch(Subs[i], true);
     } // If
     } // If
     }
 }
Exemplo n.º 2
0
        public override void visit(SubSequence obj, bool visitSubNodes)
        {
            obj.setD_LRBG("");
            obj.setLevel("");
            obj.setMode("");
            obj.setNID_LRBG("");
            obj.setQ_DIRLRBG("");
            obj.setQ_DIRTRAIN("");
            obj.setQ_DLRBG("");
            obj.setRBC_ID("");
            obj.setRBCPhone("");
            obj.setCompleted(true);

            base.visit(obj, visitSubNodes);
        }
 public void copyTo(SubSequence other)
 {
     base.copyTo(other);
     other.aD_LRBG = aD_LRBG;
     other.aLevel = aLevel;
     other.aMode = aMode;
     other.aNID_LRBG = aNID_LRBG;
     other.aQ_DIRLRBG = aQ_DIRLRBG;
     other.aQ_DIRTRAIN = aQ_DIRTRAIN;
     other.aQ_DLRBG = aQ_DLRBG;
     other.aRBC_ID = aRBC_ID;
     other.aRBCPhone = aRBCPhone;
     other.aTestCases = aTestCases;
     other.aComment = aComment;
     other.aCompleted = aCompleted;
 }
 public virtual void visit(SubSequence obj)
 {
     visit(obj, true);
 }
 public void insertSubSequences(int idx, SubSequence el,Lock aLock)
 {
     __setDirty(true);
       allSubSequences().Insert (idx, el);
     NotifyControllers(aLock);
 }
 public void appendSubSequences(Lock aLock,SubSequence el)
 {
     __setDirty(true);
       el.__setDirty(true);
       allSubSequences().Add(el);
       acceptor.connectSon (this, el);
     NotifyControllers(aLock);
 }
Exemplo n.º 7
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="subSequence"></param>
        /// <param name="explain"></param>
        /// <param name="ensureCompilation">Indicates that the runner should make sure that the system is compiled</param>
        /// <param name="checkForCompatibleChanges">Indicates that the runner should check that no variables are accessed twice during the same cycle</param>
        public Runner(SubSequence subSequence, bool explain, bool ensureCompilation, bool checkForCompatibleChanges = false)
        {
            EventTimeLine = new EventTimeLine();
            SubSequence = subSequence;
            EfsSystem.Instance.Runner = this;
            Explain = explain;
            CheckForCompatibleChanges = checkForCompatibleChanges;

            if (ensureCompilation)
            {
                // Compile everything
                EfsSystem.Instance.Compiler.Compile_Synchronous(EfsSystem.Instance.ShouldRebuild);
                EfsSystem.Instance.ShouldRebuild = false;
            }

            Setup();
            PleaseWait = true;
        }
        public override void visit(SubSequence obj, bool visitSubNodes)
        {
            Tests.SubSequence subSequence = (Tests.SubSequence) obj;

            if (subSequence != null)
            {
                if (subSequence.TestCases.Count == 0)
                {
                    subSequence.AddWarning("Sub sequences should hold at least one test case");
                }
                else
                {
                    TestCase testCase = (TestCase) subSequence.TestCases[0];

                    if (testCase.Steps.Count == 0)
                    {
                        testCase.AddWarning("First test case of a subsequence should hold at least one step");
                    }
                    else
                    {
                        Tests.Step step = (Tests.Step) testCase.Steps[0];

                        if (step.Name != null)
                        {
                            if (step.Name.IndexOf("Setup") < 0 && step.Name.IndexOf("Initialize") < 0)
                            {
                                step.AddWarning(
                                    "First step of the first test case of a subsequence should be used to setup the system, and should hold 'Setup' or 'Initialize' in its name");
                            }
                        }
                        else
                        {
                            step.AddWarning("All steps should have a name");
                        }
                    }
                }
            }

            base.visit(obj, visitSubNodes);
        }
Exemplo n.º 9
0
        /// <summary>
        ///     Constructor
        /// </summary>
        /// <param name="subSequence"></param>
        /// <param name="explain"></param>
        /// <param name="logEvents">Indicates whether events should be logged</param>
        /// <param name="ensureCompilation">Indicates that the runner should make sure that the system is compiled</param>
        public Runner(SubSequence subSequence, bool explain, bool logEvents, bool ensureCompilation)
        {
            EventTimeLine = new EventTimeLine();
            SubSequence = subSequence;
            EFSSystem.INSTANCE.Runner = this;
            LogEvents = logEvents;
            Explain = explain;

            if (ensureCompilation)
            {
                // Compile everything
                EFSSystem.INSTANCE.Compiler.Compile_Synchronous(EFSSystem.INSTANCE.ShouldRebuild);
                EFSSystem.INSTANCE.ShouldRebuild = false;
            }

            Setup();
            PleaseWait = true;
        }