Esempio n. 1
0
        /* void ParseDriveFile()
         * Parse EXCEl driver file.
         * call three methods to prase different tab in EXCEL.
         */
        public void ParseDriveFile()
        {
            if (_autoConfig != null)
            {
                this._driveFile = _autoConfig.ProjectDriveFile;
            }

            _excelReader = new ExcelReader();

            GetTestSteps(this._driveFile); //get main test steps
            GetSubSteps(this._driveFile);  //get sub steps
            GetDataPool(this._driveFile);  //get data pool
        }
Esempio n. 2
0
        /* void Dispose()
         * when GC, close excel reader.
         */
        public void Dispose()
        {
            if (_excelReader != null)
            {
                _excelReader.Close();
                _excelReader = null;
            }

            GC.SuppressFinalize(this);
        }