Exemple #1
0
        public void ValidateUploadAvatar(String fileName)
        {
            WebDriverUtility.ClickOn(UploadPic);

            WebDriverUtility.UploadPhoto(fileName);

            if (fileName.Contains("gif") || fileName.Contains("png") || fileName.Contains("jpg"))
            {
                if (!fileName.Contains("gif"))
                {
                    Thread.Sleep(3000);
                    WebDriverUtility.ClickOn(ApplyAvatar);
                    WebDriverUtility.ScrollDownPage();
                    WebDriverUtility.ClickOn(SaveButton);
                }
                else
                {
                    WebDriverUtility.ScrollDownPage();
                    WebDriverUtility.ClickOn(SaveButton);
                }
            }
            else
            {
                String errorMessage = WebDriverUtility.GetText(InvalidFormatAvatar);
                Assert.AreEqual(errorMessage, "docx format is not allowed");
            }
        }
        public void favUsingAddFavTaB()
        {
            Thread.Sleep(3000);

            WebDriverUtility.ClickOn(FTPIntakeAddFavThroughThreeDotOption);
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(FTPIntakeAddFavTab);
            Thread.Sleep(2000);

            WebDriverUtility.ClickOn(CopyAttachAddFavThroughThreeDotOption);
            Thread.Sleep(1000);
            WebDriverUtility.ClickOn(CopyAttachAddFavTab);
            Thread.Sleep(2000);

            WebDriverUtility.ClickOn(CreateActionAddFavThroughThreeDotOption);
            Thread.Sleep(1000);
            WebDriverUtility.ClickOn(CreateActionAddFavTab);
            Thread.Sleep(2000);

            WebDriverUtility.ClickOn(FaxWatcherAddFavThroughThreeDotOption);
            Thread.Sleep(1000);
            WebDriverUtility.ClickOn(FaxWatcherAddFavTab);
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(CreateStackAddFavThroughThreeDotOption);
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(CreateStackAddFavTab);
        }
Exemple #3
0
 public void VerifyDashBoard()
 {
     Thread.Sleep(5000);
     //WebDriverUtility.IsDisplayed(Reports);
     WebDriverUtility.IsDisplayed(ViewAllApps);
     WebDriverUtility.ClickOn(ViewAllApps);
 }
        public void ValidateRemovedFavApps()
        {
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(FavouriteAppsLink);

            Assert.IsTrue(WebDriverUtility.IsDisplayed(Removedappsvalidation), "AppsRemovedSucessfully");
        }
Exemple #5
0
        public void ValidateVoidedItemDetailPage()
        {
            String workitemName = WebDriverUtility.GetText(WorkitemName).Trim();

            WebDriverUtility.ClickOn(WorkitemName);
            Assert.AreEqual("item #" + workitemName.ToLower(), WebDriverUtility.GetText(WorkitemHeader).Trim().ToLower());
            String description = "Monitor and Manage Services #" + workitemName;

            Assert.AreEqual(description.ToLower(), WebDriverUtility.GetText(WorkitemDetailsDesc).Trim().ToLower());
            Assert.IsTrue(WebDriverUtility.IsEnabled(EditField));
            Assert.IsTrue(WebDriverUtility.IsEnabled(BackToResults));
            Assert.IsTrue(WebDriverUtility.IsEnabled(Reprocess));
            WebDriverUtility.ClickOn(ReprocessOptions);

            /*String editStatus = WebDriverUtility.GetAttribute(EditStatus,"value").Trim();
             * Assert.AreEqual(editStatus,"true");*/
            Assert.IsTrue(WebDriverUtility.IsEnabled(AddressInput));
            WebDriverUtility.ClickOn(ChangeStatus);

            /*editStatus = WebDriverUtility.GetAttribute(EditStatus, "value").Trim();
             * Assert.AreEqual(editStatus, "false");*/

            Assert.IsFalse(WebDriverUtility.IsEnabled(AddressInput));
            WebDriverUtility.ClickOn(VariablesTab);
        }
        public void AddUsersinGridView()
        {
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(Gridview);
            WebDriverUtility.ClickOn(AddUser);
            WebDriverUtility.EnterText(FirstName, "Automation");
            WebDriverUtility.EnterText(LastName, "Testing");
            WebDriverUtility.EnterText(Email, "*****@*****.**");
            WebDriverUtility.ClickOn(save);
            //WebDriverUtility.Clear(FilterSearch);
            Thread.Sleep(2000);
            WebDriverUtility.EnterText(FilterSearch, "*****@*****.**");
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(EditRolesinGridViewforUsers);

            WebDriverUtility.EnterText(FilterRoles, "RbacAdmin");
            WebDriverUtility.ClickOn(SelectRbacAdmin);
            string value  = WebDriverUtility.GetText(Roletaskandresourcevalidation);
            string value1 = "Create and delete new roles, edit features/resources, and add/remove members";

            if (value.Equals(value1))
            {
                Console.WriteLine("Role added successfully");
            }
            WebDriverUtility.ClickOn(AssignedRolesSaveGridView);
            WebDriverUtility.ClickOn(SelectUser);
            WebDriverUtility.ClickOn(DeleteUser);
            WebDriverUtility.ClickOn(DeleteConfirmation);
        }
        public void FavAppValidation()
        {
            WebDriverUtility.ClickOn(OCRAPPFav);

            Assert.IsTrue(WebDriverUtility.IsDisplayed(OCRAPPFavouritedApp));
            Thread.Sleep(1000);
            WebDriverUtility.ClickOn(OCRAPPFav);
        }
 /*public void ValidateSavedSearchScreen()
  * {
  *  WebDriverUtility.ClickOn(SavedSearch);
  *
  *
  *
  *
  * }*/
 public void CreateSearchCriteria()
 {
     Thread.Sleep(2000);
     WebDriverUtility.ClickOn(AddCriteria);
     WebDriverUtility.EnterText(SelectColumnName, "Work Item Name");
     WebDriverUtility.ClickOn(SelectOperatorArrow);
     WebDriverUtility.ClickOnPointFromElement(SelectOperator, "bottom", 25);
     WebDriverUtility.EnterText(EnterValue, "test");
     WebDriverUtility.ClickOn(SearchButton);
 }
Exemple #9
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);
 }
 public void SaveSearchCriteria()
 {
     WebDriverUtility.ClickOn(AddCriteria);
     WebDriverUtility.EnterText(SelectColumnName, "Work Item Name");
     WebDriverUtility.ClickOn(SelectOperatorArrow);
     WebDriverUtility.ClickOnPointFromElement(SelectOperator, "bottom", 23);
     // SelectOperator.SelectByValue("Different Than");
     WebDriverUtility.EnterText(EnterValue, "test");
     WebDriverUtility.ClickOn(SaveSearchButton);
 }
Exemple #11
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);
 }
        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);
        }
 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);
 }
Exemple #14
0
        public void ReprocessVoidedItem()
        {
            String workitemName = WebDriverUtility.GetText(WorkitemName).Trim();

            WebDriverUtility.ClickOn(Reprocess);
            String alertMessage         = WebDriverUtility.GetText(AlertMessage);
            String expectedAlertMessage = "You are about to reprocess the following item(s) \"" + workitemName + "\"";

            Assert.AreEqual(expectedAlertMessage, alertMessage);
            WebDriverUtility.EnterText(AlertComments, "Automated test run");
            WebDriverUtility.ClickOn(ReprocessInAlert);
            String ReprocessMessage = WebDriverUtility.GetText(SuccessMessage);

            Console.WriteLine(ReprocessMessage);
        }
        public void UnFavApps()
        {
            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);
            string FTPSelected = WebDriverUtility.GetAttribute(FTPIntakeFavoriteInViewAllDashboard, "src");

            if (FTPSelected.Equals("https://core-customer-ui-hub.qa.dummy1.cndt.cf/assets/images/star_empty.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_empty.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_empty.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_empty.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_empty.svg"))
            {
                Console.WriteLine("CreateStack selected");
            }
        }
        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));
        }
Exemple #17
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);
        }
Exemple #18
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);
        }
 public void Removevalidation()
 {
     try
     {
         if (AddedFavAppsValidation.Count > 1)
         {
             foreach (var elem in Elipsy)
             {
                 elem.Click();
                 WebDriverUtility.WaitUntilClickable(RemoveFavourite, 30);
                 WebDriverUtility.ClickOn(RemoveFavourite);
                 Thread.Sleep(1000);
             }
         }
     }
     catch (Exception)
     {
         Console.WriteLine("No App Selected");
     }
 }
Exemple #20
0
        public void AddRoles()
        {
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(AddRole);
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(EditIconRoleName);
            WebDriverUtility.ClickOn(EditIconRoleDescription);
            WebDriverUtility.EnterText(RoleNameTextInput, "AutomationTesting");
            WebDriverUtility.EnterText(RoleDescriptionInput, "AutomationtestingDescription");
            WebDriverUtility.ClickOn(TaskSelection);
            WebDriverUtility.ClickOn(Save);
            WebDriverUtility.EnterText(FilterSearch, "AutomationTesting");
            Thread.Sleep(2000);
            string value = WebDriverUtility.GetText(SelectedTaskValidation);

            if (value.Equals("Create and delete new roles, edit features/resources, and add/remove members"))
            {
                Console.WriteLine("Validated");
            }
            WebDriverUtility.ClickOn(DeleteRole);
            WebDriverUtility.ClickOn(DeleteConfirmation);
            //WebDriverUtility.EnterText(FirstName, "Automation");
            //WebDriverUtility.EnterText(LastName, "Testing");
            //WebDriverUtility.EnterText(Email, "*****@*****.**");
            //WebDriverUtility.ClickOn(save);
            ////WebDriverUtility.Clear(FilterSearch);
            //Thread.Sleep(2000);
            //WebDriverUtility.EnterText(FilterSearch, "*****@*****.**");
            //Thread.Sleep(2000);
            //WebDriverUtility.ClickOn(EditAssignments);

            //WebDriverUtility.EnterText(FilterRoles, "RbacAdmin");
            //WebDriverUtility.ClickOn(SelectRbacAdmin);
            //string value = WebDriverUtility.GetText(Roletaskandresourcevalidation);
            //string value1 = "Create and delete new roles, edit features/resources, and add/remove members";
            //if (value.Equals(value1))
            //{
            //    Console.WriteLine("Role added successfully");

            //}
        }
        public void FavMorethanFiveApps()
        {
            Thread.Sleep(2000);

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

            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(CashReportFavoriteInViewAllDashboard);

            //WebDriverUtility.ClickOn(DasboardIcon);
        }
        public void SelectFiveAppsandremovefromoption()
        {
            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(5000);

            WebDriverUtility.ClickOn(FTPIntakeAddFavThroughThreeDotOption);
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(FTPIntakeRemoveFavAppsoption);
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(CopyAttachAddFavThroughThreeDotOption);
            Thread.Sleep(1000);
            WebDriverUtility.ClickOn(CopyAttchDataRemoveFavAppsoption);
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(CreateActionAddFavThroughThreeDotOption);
            Thread.Sleep(1000);
            WebDriverUtility.ClickOn(CreateActionRemoveFavAppsoption);
            Thread.Sleep(2000);

            WebDriverUtility.ClickOn(FaxWatcherAddFavThroughThreeDotOption);
            Thread.Sleep(1000);
            WebDriverUtility.ClickOn(FaxWatcherRemoveFavAppsoption);
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(CreateStackAddFavThroughThreeDotOption);
            Thread.Sleep(2000);
            WebDriverUtility.ClickOn(CreateStackRemoveFavAppsoption);
        }
 public void RemoveAllApps()
 {
     Thread.Sleep(2000);
     WebDriverUtility.ClickOn(CopyAttchDatathreedotinwrapper);
     WebDriverUtility.WaitUntilClickable(RemoveFavourite, 30);
     WebDriverUtility.ClickOn(RemoveFavourite);
     Thread.Sleep(2000);
     WebDriverUtility.ClickOn(CreateActionthreedotinwrapper);
     WebDriverUtility.WaitUntilClickable(RemoveFavourite, 30);
     WebDriverUtility.ClickOn(RemoveFavourite);
     Thread.Sleep(2000);
     WebDriverUtility.ClickOn(CreateStackthreedotinwrapper);
     WebDriverUtility.WaitUntilClickable(RemoveFavourite, 30);
     WebDriverUtility.ClickOn(RemoveFavourite);
     Thread.Sleep(2000);
     WebDriverUtility.ClickOn(FaxWatcherthreedotinwrapper);
     WebDriverUtility.WaitUntilClickable(RemoveFavourite, 30);
     WebDriverUtility.ClickOn(RemoveFavourite);
     Thread.Sleep(2000);
     WebDriverUtility.ClickOn(FTPIntakethreedotinwrapper);
     WebDriverUtility.ClickOn(RemoveFavourite);
 }
        public void ValidateWorkitemDetailPage()
        {
            String workitemName = WebDriverUtility.GetText(WorkitemName).Trim();

            WebDriverUtility.ClickOn(WorkitemName);
            Assert.AreEqual("item #" + workitemName.ToLower(), WebDriverUtility.GetText(WorkitemHeader).Trim().ToLower());
            String description = "Review and adjust details of work Exception #" + workitemName;

            Assert.AreEqual(description.ToLower(), WebDriverUtility.GetText(WorkitemDetailsDesc).Trim().ToLower());
            Assert.IsTrue(WebDriverUtility.IsEnabled(EditField));
            Assert.IsTrue(WebDriverUtility.IsEnabled(BackToResults));
            Assert.IsTrue(WebDriverUtility.IsEnabled(ReprocessInDetail));
            WebDriverUtility.ClickOn(ReprocessOptions);
            String editStatus = WebDriverUtility.GetText(EditStatus).Trim();

            Assert.AreEqual(editStatus, "On");
            Assert.IsTrue(WebDriverUtility.IsEnabled(AddressInput));
            WebDriverUtility.ClickOn(ChangeStatus);
            editStatus = WebDriverUtility.GetText(EditStatus).Trim();
            Assert.AreEqual(editStatus, "Off");

            //Assert.IsFalse(WebDriverUtility.IsEnabled(AddressInput));
            //WebDriverUtility.ClickOn(VariablesTab);
        }
 public void SelectAndView()
 {
     WebDriverUtility.IsDisplayed(ReportInListView);
     WebDriverUtility.SelectCheckBox(CheckBoxForReport);
     WebDriverUtility.ClickOn(ViewButton);
 }
 public void BackToReports()
 {
     WebDriverUtility.ClickOn(BackToReportsButton);
 }
 public void PreviousButtonAction()
 {
     WebDriverUtility.ClickOn(PreviousButton);
 }
 public void NextButtonAction()
 {
     WebDriverUtility.ClickOn(NextButton);
 }
 public void ReportCardsInGrid()
 {
     WebDriverUtility.IsDisplayed(ReportCards);
     WebDriverUtility.ClickOn(ReportCards);
 }
 public void switchtolistview()
 {
     WebDriverUtility.ClickOn(ListView);
 }