Пример #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;
        }
Пример #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;
        }
Пример #3
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);
        }