Ejemplo n.º 1
0
 public void Settingpopup()
 {
     WebDriverUtility.ClickOn(settingsModelPopup);
     WebDriverUtility.IsDisplayed(ProfileIcon);
     WebDriverUtility.IsDisplayed(UploadORChangePicture);
     WebDriverUtility.IsDisplayed(UserName);
     WebDriverUtility.IsDisplayed(Email);
     WebDriverUtility.IsDisplayed(DatePicker);
     WebDriverUtility.IsDisplayed(LanguageDropdown);
 }
Ejemplo n.º 2
0
 public void FavouriteAppsDisplayedInAppWrapper()
 {
     Thread.Sleep(2000);
     if (WebDriverUtility.IsDisplayed(FavouritedAppsDashBoard))
     {
         Console.WriteLine("Apps favourited are displayed");
     }
     else
     {
         Console.WriteLine("Apps favourited are displayed");
     }
 }
Ejemplo n.º 3
0
        public void ValidateSavedSearch()
        {
            String searchHeader = WebDriverUtility.GetText(SavedSearchHeader);

            Assert.AreEqual("Saved Searches", searchHeader);

            String SearchWorkitemName       = WebDriverUtility.GetText(SavedSearchName);
            String SearchWorkitemDesc       = WebDriverUtility.GetText(SavedSearchDescription);
            String SearchWorkitemCreateDate = WebDriverUtility.GetText(SavedSearchCreateDate);

            Assert.IsTrue(WebDriverUtility.IsDisplayed(SavedSearchElipse));
            WebDriverUtility.ClickOn(SavedSearchElipse);
        }
Ejemplo n.º 4
0
 public void ClickonEnable()
 {
     WebDriverUtility.ClickOn(Enable);
     Thread.Sleep(2000);
     //string status=WebDriverUtility.GetText(statusValidate);
     //   //WebDriverUtility.IsDisplayed(statusValidate);
     if (WebDriverUtility.IsDisplayed(statusValidate))
     {
         Console.WriteLine("service enabled");
     }
     Thread.Sleep(3000);
     WebDriverUtility.ClickOn(Disable);
 }
Ejemplo n.º 5
0
 public void ValidateProfileDetails(string testStep)
 {
     Assert.IsTrue(WebDriverUtility.IsDisplayed(AvatarIconInDropdown), "Avatar is not present");
     Assert.IsTrue(WebDriverUtility.IsDisplayed(ProfileNameInDropdown), "Profile is not present");
     Assert.IsTrue(WebDriverUtility.IsDisplayed(EmailInDropdown), "Email is not present");
     Assert.IsTrue(WebDriverUtility.IsDisplayed(LanguageInDropdown), "languague field is not present");
     Assert.IsTrue(WebDriverUtility.IsDisplayed(ThemeInDropdown), "Theme field is not present");
     Assert.AreEqual(WebDriverUtility.GetText(DefaultLanguage), Excel.GetValueFromTestStep(testStep, "DefaultLanguage"));
     Assert.AreEqual(WebDriverUtility.GetText(DefaultTheme), Excel.GetValueFromTestStep(testStep, "DefaultTheme"));
     Assert.IsTrue(WebDriverUtility.IsDisplayed(EditProfile), "EditProfile field is not present");
     //WebDriverUtility.WaitUntilInvisible(By.XPath("//nav//div[@class='k-i-loading']"), 30);
     WebDriverUtility.ClickOn(UserIcon);
 }
Ejemplo n.º 6
0
        public void ValidatePageFields()
        {
            String Header = WebDriverUtility.GetText(VoidedScreenHeader).Trim();

            Assert.AreEqual("Voided Items Monitor", Header);

            String Description = WebDriverUtility.GetText(VoidedScreenDescription).Trim();

            Assert.AreEqual("Monitor and Manage Services", Description);

            Assert.IsTrue(WebDriverUtility.IsEnabled(Search));
            Assert.IsTrue(WebDriverUtility.IsEnabled(ExportToExcel));
            Assert.IsFalse(WebDriverUtility.IsEnabled(Reprocess));
            Assert.IsTrue(WebDriverUtility.IsDisplayed(KendoGrid));
        }
Ejemplo n.º 7
0
        public void ValidatePageFields()
        {
            String Header = WebDriverUtility.GetText(WorkExceptionHeader).Trim();

            Assert.AreEqual("Work Exception", Header);

            String Description = WebDriverUtility.GetText(WorkExceptionDescription).Trim();

            Assert.AreEqual("Review Work Exceptions and Reprocess or Void", Description);
            WebDriverUtility.Wait();
            Assert.IsTrue(WebDriverUtility.IsEnabled(Search));
            Assert.IsTrue(WebDriverUtility.IsEnabled(ManageNotification));
            Assert.IsTrue(WebDriverUtility.IsEnabled(ExportToExcel));
            Assert.IsFalse(WebDriverUtility.IsEnabled(Reprocess));
            Assert.IsTrue(WebDriverUtility.IsDisplayed(KendoGrid));
        }
Ejemplo n.º 8
0
        public void ValidateSearchScreen()
        {
            String searchHeader      = WebDriverUtility.GetText(SearchHeader);
            String searchDescription = WebDriverUtility.GetText(SearchDescription);

            Assert.AreEqual("Advanced item search", searchHeader);
            Assert.AreEqual("Build advanced query for work items or attachments", searchDescription);
            Assert.IsTrue(WebDriverUtility.IsDisplayed(WorkitemRadio));
            Assert.IsTrue(WebDriverUtility.IsDisplayed(WorkitemAttachmentRadio));
            Assert.IsTrue(WebDriverUtility.IsDisplayed(AttachmentRadio));
            Assert.IsTrue(WebDriverUtility.IsDisplayed(AddCriteria));
            Assert.IsTrue(WebDriverUtility.IsDisplayed(WorkItemName));
            Assert.IsFalse(WebDriverUtility.IsEnabled(SearchButton));
            Assert.IsFalse(WebDriverUtility.IsEnabled(SaveSearchButton));
            Assert.IsTrue(WebDriverUtility.IsEnabled(ClearButton));
            WebDriverUtility.ClickOn(SavedSearch);
            Assert.AreEqual("No Saved Searches", WebDriverUtility.GetText(NoSavedSearchMsg));
        }
Ejemplo n.º 9
0
        public void ValidateEmailIDDOBLaguagae(string testStep)
        {
            WebDriverUtility.Clear(UserName);
            WebDriverUtility.EnterText(UserName, Excel.GetValueFromTestStep(testStep, "UserName"));
            WebDriverUtility.ClickOn(settingsModelPopup);
            WebDriverUtility.IsDisplayed(DatePicker);

            WebDriverUtility.ClickOn(DatePickerclick);

            WebDriverUtility.ClickOn(DatePickerMonth);

            WebDriverUtility.ClickOn(DatePickerDate);

            WebDriverUtility.Scrollintoview(ThemeSelection);

            WebDriverUtility.ClickOn(ThemeSelection);

            WebDriverUtility.ClickOn(SaveButton);
        }
Ejemplo n.º 10
0
        public void InValidataValidation()
        {
            WebDriverUtility.IsDisplayed(settingsModelPopup);
            WebDriverUtility.IsDisplayed(UserName);
            WebDriverUtility.Wait(10000);
            String text = UserName.GetAttribute("fieldvalue");

            int count = text.Length;

            for (int i = 0; i < count; i++)
            {
                UserName.SendKeys(Keys.Backspace);
            }

            WebDriverUtility.Scrollintoview(SaveButton);
            WebDriverUtility.WaitForElement(SaveButton);
            Assert.IsFalse(WebDriverUtility.IsEnabled(SaveButton));
            WebDriverUtility.ClickOn(CloseSettings);
        }
Ejemplo n.º 11
0
 public void ValidateSearchResults()
 {
     Assert.AreEqual("Search Results", SearchResultsTitle);
     Assert.IsTrue(WebDriverUtility.IsDisplayed(SearchResultsColumn));
     Assert.IsTrue(WebDriverUtility.IsDisplayed(ExportButton));
 }
Ejemplo n.º 12
0
 public void HomepageView()
 {
     WebDriverUtility.IsDisplayed(Homepage);
     Thread.Sleep(5000);
 }
Ejemplo n.º 13
0
 public void GridViewValidation()
 {
     WebDriverUtility.IsDisplayed(GridView);
 }
Ejemplo n.º 14
0
        public void SelectFiveApps(string testStep)
        {
            Thread.Sleep(2000);

            WebDriverUtility.ClickOn(FTPIntakeFavoriteInViewAllDashboard);
            Thread.Sleep(2000);

            WebDriverUtility.ClickOn(CopyAttachDataFavoriteInViewAllDashboard);
            Thread.Sleep(2000);

            WebDriverUtility.ClickOn(CreateActionFavoriteInViewAllDashboard);
            Thread.Sleep(2000);

            WebDriverUtility.ClickOn(FaxWatcherFavoriteInViewAllDashboard);
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(CreateStackFavoriteInViewAllDashboard);
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(DasboardIcon);
            Thread.Sleep(2000);
            Assert.AreEqual(WebDriverUtility.GetText(ValidateFaxWatcherFavAppFromAppDashboard), Excel.GetValueFromTestStep(testStep, "AppName1"));
            Assert.AreEqual(WebDriverUtility.GetText(ValidateFtpIntakeFromAppDashboard), Excel.GetValueFromTestStep(testStep, "AppName2"));
            Assert.AreEqual(WebDriverUtility.GetText(ValidateCreateStackFavAppFromAppDashboard), Excel.GetValueFromTestStep(testStep, "AppName3"));
            Assert.AreEqual(WebDriverUtility.GetText(ValidateCreteActionFavAppFromAppDashboard), Excel.GetValueFromTestStep(testStep, "AppName4"));
            Assert.AreEqual(WebDriverUtility.GetText(ValidateCopyAttachFavAppsFromAppDashboard), Excel.GetValueFromTestStep(testStep, "AppName5"));
            Assert.IsTrue(WebDriverUtility.IsDisplayed(ValidateViewAllApps), "View All apps displayed");
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(FavouriteAppsLink);

            Assert.AreEqual(WebDriverUtility.GetText(ValidateFaxWatcherFavAppFromFavTab), Excel.GetValueFromTestStep(testStep, "AppName1"));
            Assert.AreEqual(WebDriverUtility.GetText(ValidateFtpIntake), Excel.GetValueFromTestStep(testStep, "AppName2"));
            Assert.AreEqual(WebDriverUtility.GetText(ValidateCreateStackFavAppFromFavTab), Excel.GetValueFromTestStep(testStep, "AppName3"));
            Assert.AreEqual(WebDriverUtility.GetText(ValidateCreteActionFavAppFromFavTab), Excel.GetValueFromTestStep(testStep, "AppName4"));
            Assert.AreEqual(WebDriverUtility.GetText(ValidateCopyAttachFavAppsFromFavTab), Excel.GetValueFromTestStep(testStep, "AppName5"));
            Assert.IsTrue(WebDriverUtility.IsDisplayed(ValidateViewAllAppsFromFavTab), "View All apps displayed");
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(DasboardIcon);
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(ValidateViewAllApps);
            Thread.Sleep(5000);

            string FTPSelected = WebDriverUtility.GetAttribute(FTPIntakeFavoriteInViewAllDashboard, "src");

            if (FTPSelected.Equals("https://core-customer-ui-hub.qa.dummy1.cndt.cf/assets/images/star_fill.svg"))
            {
                Console.WriteLine("FTPSelected");
            }
            string CopyAttachData = WebDriverUtility.GetAttribute(CopyAttachDataFavoriteInViewAllDashboard, "src");

            if (CopyAttachData.Equals("https://core-customer-ui-hub.qa.dummy1.cndt.cf/assets/images/star_fill.svg"))
            {
                Console.WriteLine("CopyAttachData selected");
            }
            string CreateActionFavorite = WebDriverUtility.GetAttribute(CreateActionFavoriteInViewAllDashboard, "src");

            if (CreateActionFavorite.Equals("https://core-customer-ui-hub.qa.dummy1.cndt.cf/assets/images/star_fill.svg"))
            {
                Console.WriteLine("CreateActionFavorite selected");
            }
            string FaxWatcher = WebDriverUtility.GetAttribute(FaxWatcherFavoriteInViewAllDashboard, "src");

            if (FaxWatcher.Equals("https://core-customer-ui-hub.qa.dummy1.cndt.cf/assets/images/star_fill.svg"))
            {
                Console.WriteLine("FaxWatcher selected");
            }
            string CreateStack = WebDriverUtility.GetAttribute(CreateStackFavoriteInViewAllDashboard, "src");

            if (CreateStack.Equals("https://core-customer-ui-hub.qa.dummy1.cndt.cf/assets/images/star_fill.svg"))
            {
                Console.WriteLine("CreateStack selected");
            }

            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(DasboardIcon);
        }
Ejemplo n.º 15
0
 public void AllAppsDisplayed()
 {
     Thread.Sleep(3000);
     WebDriverUtility.IsDisplayed(AllAppsDsiplayed);
 }
        public void NoAppsValidations()
        {
            WebDriverUtility.ClickOn(BaselineApps);

            Assert.IsTrue(WebDriverUtility.IsDisplayed(NoFavAppsValidation));
        }
Ejemplo n.º 17
0
 public void Successmessage()
 {
     WebDriverUtility.IsDisplayed(MessageNotification);
 }
Ejemplo n.º 18
0
 public void ReportCardsInGrid()
 {
     WebDriverUtility.IsDisplayed(ReportCards);
     WebDriverUtility.ClickOn(ReportCards);
 }
Ejemplo n.º 19
0
 public void ErrorMessageforMorethanFiveFavApps()
 {
     Assert.IsTrue(WebDriverUtility.IsDisplayed(ErrorMessageForMorethanFiveApps), "cannot add more than 5 apps");
     WebDriverUtility.ClickOn(DasboardIcon);
 }
Ejemplo n.º 20
0
 public void SelectAndView()
 {
     WebDriverUtility.IsDisplayed(ReportInListView);
     WebDriverUtility.SelectCheckBox(CheckBoxForReport);
     WebDriverUtility.ClickOn(ViewButton);
 }
Ejemplo n.º 21
0
 public void AllAppsDisplayedExpectedAsync()
 {
     Thread.Sleep(3000);
     WebDriverUtility.IsDisplayed(AllAppsDsiplayed);
     Assert.IsTrue(WebDriverUtility.GetText(AppCount).Contains("20 Apps Found"));
 }