Пример #1
0
        public void VerifyLayersOnLoad()
        {
            //  Get the layers name from the config
            List <string> oprationalLayersName = new List <string>();

            oprationalLayersName = JS_SeleniumActions.GetOprationalLayersName(driver);

            //  Validate result
            bool check = MCOEDValidation.CheckOprationalLayersOnLoad(driver, oprationalLayersName);

            Assert.IsTrue(check);
        }
Пример #2
0
        //[DataSource("System.Data.OleDb", "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\\\CSSLESXI20-VM22\\Users\\deepum\\Desktop\\MCOED Project\\TestMCOED.xlsx;Persist Security Info=False;Extended Properties='Excel 12.0 Xml;HDR=YES'", "MCOED$", DataAccessMethod.Sequential), TestMethod()]
        public void ValidatePropertyClass()
        {
            //string propertyClassLegendName = context.DataRow["PropertyClasses"].ToString();
            //  Click on advance search icon
            MCOEDSeleniumActions.ClickOnSearchIcon(driver);

            // Click to Unselect DeSelectALL checkbox
            MCOEDSeleniumActions.ClickOnDeSelectAllCheckBox(driver);

            // Click Ok button to close Info message pop up
            MCOEDSeleniumActions.ClickOkQuickTipsInfo(driver);

            // Get color code from property class panel
            string rgbColorValue = MCOEDSeleniumActions.PropertyClassFeatureGetLegendColor(driver, "Industrial");

            MCOEDSeleniumActions.ClickPropertyClassLegend(driver, "Industrial");

            // Validate the layer color with property class legend color
            Assert.IsTrue(MCOEDValidation.GetPropertyClassFeature(driver, rgbColorValue));
        }