Exemplo n.º 1
0
        public CSeleniumBase()
        {
            //System.Diagnostics.Debug.WriteLine("{0}:Default Constructor");
            System.Diagnostics.Debug.WriteLine("CSeleniumBase");

            _keyList   = KeyList.Instance;
            _myUtility = CUtility.Instance;

            string currTC = _keyList.k_testcase;
            string currNo = _keyList.k_testcase_no;

            _columnInfoDic = new Dictionary <string, string>();

            _testTerminate = false;
        }
Exemplo n.º 2
0
        //Constructor
        public CSeleniumBase(WebType type)
        {
            System.Diagnostics.Debug.WriteLine("CSeleniumBase with WebType");
            _webType = type;
            //this.initSelenium(type);

            _keyList   = KeyList.Instance;
            _myUtility = CUtility.Instance;

            string currTC = _keyList.k_testcase;
            string currNo = _keyList.k_testcase_no;

            _columnInfoDic = new Dictionary <string, string>();

            //TOAN : 06/06/2019. set selenium retrycounter
            retryCounter   = 3;
            _testTerminate = false;
        }
Exemplo n.º 3
0
        //This is Default Constructor
        public CReportMaker()
        {
            _kTCColumnList = new List <string>();
            _testInfoDic   = new Dictionary <string, string>();
            _keyList       = KeyList.Instance;

            //initialize Microsoft Excel
            //TOAN : 04/09/2019. Code-change
            //_app = new Microsoft.Office.Interop.Excel.Application();
            //_wb = _app.Workbooks.Add(XlSheetType.xlWorksheet);
            //_ws = (Worksheet)_app.ActiveSheet;

            _startRow = 4;
            _startCol = 3; //C열부터 시작.

            _currRow = _startRow;
            _currCol = _startCol;
        }
Exemplo n.º 4
0
        //  public CWebActor(WebType type):base(type)
        public CYoutubeManager(WebType type) : base(type)
        {
            System.Diagnostics.Debug.WriteLine("Constructor with WebType");
            _webType              = type;
            _targetExist          = false;
            _isVideoEnd           = false;
            _isFinishTimerElapsed = false;
            _isSkipAdvertisement  = false;
            //this.initSelenium(type);
            _testRegion = "ALL";

            _keyList   = KeyList.Instance;
            _myUtility = CUtility.Instance;

            _exit_flag  = false;
            _finishTime = 120; //2분. 실제 Release할 때는 혹시 모르니 30분으로 걸어놓는다.

            worker = new BackgroundWorker();
            worker.WorkerReportsProgress      = true;
            worker.WorkerSupportsCancellation = true;
            worker.DoWork             += new DoWorkEventHandler(worker_DoWork);
            worker.ProgressChanged    += new ProgressChangedEventHandler(worker_ProgressChanged);
            worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
        }