示例#1
0
        public LogDAL()
        {
            LogHeader model    = new LogHeader();
            Line      _line    = new Line();
            Station   _station = new Station();
            Phase     _phase   = new Phase();
            TestSeq   _testseq = new TestSeq();

            ProjectSeq              _projectseq = new ProjectSeq();
            TestHeader              _testheader = new TestHeader();
            Collection <TestStep>   _teststep   = new Collection <TestStep>();
            Collection <TestResult> _testresult = new Collection <TestResult>();

            startConn();
        }
示例#2
0
        private bool insertProjectSeq()
        {
            bool failed = true;

            /*
             * Verifica a existência da associação entre projeto x sequencia de testes, senão insere nova associação;
             */
            _projectseqIDAL = new ProjectSeqDAL(conexao);
            _projectseq     = _projectseqIDAL.findPerCode(model.project);
            if (_projectseq.ID == 0)
            {
                _projectseq.ID_TestSeq = _testseq.ID;
                _projectseq.Name       = model.project + "_" + "<New Testplan>";
                _projectseq            = _projectseqIDAL.insert(_projectseq);
            }

            failed = false;
            return(failed);
        }