internal TestScriptObject(TestScriptObject orignalTestScriptObject, TestScriptObjectContainer parent)
     : base(orignalTestScriptObject)
 {
     this._parentID    = parent != null ? parent.SystemID : Guid.Empty;
     this._userId      = orignalTestScriptObject._userId;
     this._title       = TestUtils.SafeCopyString(orignalTestScriptObject._title);
     this._description = TestUtils.SafeCopyString(orignalTestScriptObject._description);
     this._status      = orignalTestScriptObject._status;
 }
Exemple #2
0
        public TestScriptResultContainerComposite(TestScriptObjectContainer testScriptObjectContainer,
                                                  TestScriptResultContainer testScriptResultContainer) : base(testScriptObjectContainer, testScriptResultContainer)
        {
            Author         = testScriptObjectContainer.Author;
            Created        = testScriptObjectContainer.Created;
            FunctionalArea = testScriptObjectContainer.FunctionalArea;
            TestProperties = testScriptObjectContainer.TestProperties;

            DidNotExecute = testScriptResultContainer.DidNotExecute;
            Errored       = testScriptResultContainer.Errored;
            Failed        = testScriptResultContainer.Failed;
            Inconclusive  = testScriptResultContainer.Inconclusive;
            Passed        = testScriptResultContainer.Passed;
            Total         = testScriptResultContainer.Total;
        }
        public TestScriptObjectContainer(TestScriptObjectContainer originalTestScriptObjectContainer, TestScriptObjectContainer parent)
            : base(originalTestScriptObjectContainer, parent)
        {
            _functionalArea = TestUtils.SafeCopyString(originalTestScriptObjectContainer._functionalArea);
            _reference      = TestUtils.SafeCopyString(originalTestScriptObjectContainer._reference);
            _author         = Environment.UserName;
            _created        = originalTestScriptObjectContainer._created;

            _testProperties = new TestPropertyCollection();

            foreach (TestProperty testProperty in originalTestScriptObjectContainer._testProperties)
            {
                _testProperties.Add(new TestProperty(testProperty));
            }

            _testScriptObjects = new TestScriptObjectCollection();

            foreach (TestScriptObject testScriptObject in originalTestScriptObjectContainer._testScriptObjects)
            {
                TestScriptObject newObject = null;

                if (testScriptObject is TestSuite)
                {
                    newObject = new TestSuite((TestSuite)testScriptObject, null, (TestSuite)this);
                }
                else if (testScriptObject is TestCase)
                {
                    newObject = new TestCase((TestCase)testScriptObject, (TestSuite)this);
                }
                else if (testScriptObject is TestStep)
                {
                    newObject = new TestStep((TestStep)testScriptObject, (TestCase)this);
                }

                _testScriptObjects.Add(newObject);
            }
        }
Exemple #4
0
 public TestScriptObjectLocation(TestScriptObjectContainer parent, int index)
 {
     Parent = parent;
     Index  = index;
 }