コード例 #1
0
        public void TestSetup()
        {
            driver = new ChromeDriver();

            //Original App URL
            driver.Navigate().GoToUrl(originalAppURL);

            //New App URL
            //driver.Navigate().GoToUrl(newAppURL);


            eyes = new Eyes(runner);
            Configuration conf = eyes.GetConfiguration();

            conf.SetStitchMode(StitchModes.CSS);
            conf.SetBatch(batchInfo);

            //conf.SetApiKey("SET_YOUR_API_KEY_HERE");
            //conf.setServerUrl("SET_YOUR_DEDICATED_CLOUD_URL");

            eyes.SetConfiguration(conf);
            eyes.SetLogHandler(new StdoutLogHandler(true));
            eyes.Open(driver, "VisualTest", TestContext.CurrentContext.Test.Name, new RectangleSize(1000, 600));
        }