//[Category("ProdSanity")] //[Category("Regression")] public void TC_VerifyMyNuteritionPages() { nutritionEnabled = cmn.GetConfig("NutritionApp").ElementAt(0)[1].ToLower(); if (nutritionEnabled.Equals("false")) { Assert.Ignore("Nutrition Apps not available for Client"); } //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); //points = cmn.GetPoints(); Common devices = new Common(); devices.ClickDevicesAndApps(); Page_DevicesAndApps pdevices = new Page_DevicesAndApps(); if ((GlobalVariables.clientname == "NUCOR") || (GlobalVariables.clientname == "Dollar General")) { string expected = "Start Tracking Your Nutrition Today"; string actual = pdevices.NavigateToMyNuterition(); Assert.AreEqual(expected, actual); } else { string expected = "Start Tracking Your Activity Today"; string actual = pdevices.NavigateToManageDevices(); Assert.AreEqual(expected, actual); } }
//[Category("ProdSanity")] //[Category("Regression")] public void TC_VerifyListOfNutritionMyNutritrion() { if (nutritionEnabled.Equals("false")) { Assert.Ignore("Nutrition Apps not available for Client"); } //To call the Page Login Method //Login lgn = new Login(); //lgn.TC_VerifyLogin(); //Page_HAPrompt haprompt = new Page_HAPrompt(); Common devices = new Common(); devices.ClickDevicesAndApps(); Page_DevicesAndApps pdevices = new Page_DevicesAndApps(Base.softassertions); pdevices.NavigateToMyNuterition(); List <String[]> devicename = CSVReaderDataTable.GetCSVData("DeviceAppContent", "DevicesAndApps", "nutritiondevicename"); //pdevices.ClickOnNutritionCheckBox(); for (int i = 0; i < devicename.Count; i++) { pdevices.VerifyNutritionDevicesFromFilter(devicename.ElementAt(i)[4]); } is_soft_assert = true; softassertions.AssertAll(); }/*
//[Category("ProdSanity")] //[Category("Regression")] public void TC_VerifySearchFilter() { //To call the Page Login Method //Login lgn = new Login(); //lgn.TC_VerifyLogin(); //Page_HAPrompt haprompt = new Page_HAPrompt(); if ((GlobalVariables.clientname == "NUCOR") || (GlobalVariables.clientname == "Dollar General")) { Common devices = new Common(); devices.ClickDevicesAndApps(); Page_DevicesAndApps pdevices = new Page_DevicesAndApps(); pdevices.NavigateToMyNuterition(); Boolean result = pdevices.VerifyDeviceFileter("devicesfilter", "Fitbit"); is_soft_assert = false; Assert.IsTrue(result); } }