Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void UpdatedDatavalidation(string testStep)
 {
     Assert.AreEqual(WebDriverUtility.GetText(UpdatedProfileName), Excel.GetValueFromTestStep(testStep, "UpdatedProfileName"));
     Assert.AreEqual(WebDriverUtility.GetText(EmailIDValidation), Excel.GetValueFromTestStep(testStep, "EmailIDValidation"));
     Assert.AreEqual(WebDriverUtility.GetText(LanguageValidation), Excel.GetValueFromTestStep(testStep, "LanguageValidation"));
     Assert.AreEqual(WebDriverUtility.GetText(ThemeValidationLight), Excel.GetValueFromTestStep(testStep, "ThemeValidationLight"));
 }
Esempio n. 3
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);
        }
Esempio n. 4
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 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);
        }
Esempio n. 6
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);
 }
Esempio n. 7
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));
        }
Esempio n. 8
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);
        }
Esempio n. 9
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));
        }
Esempio n. 10
0
        public void VerifyAppToolTipValue()
        {
            WebDriverUtility.MoveToElement(AppToolTip);
            String tooltip = WebDriverUtility.GetText(ToolTipValidation);

            Assert.AreEqual(tooltip, Excel.GetValueFromTestStep("AppDetails", "AppToolTip"), "Tooltip not matching as in Service");
            Console.WriteLine(tooltip);
            WebDriverUtility.MoveToElement(AttchDataAppName);
            String AppName = WebDriverUtility.GetText(ToolTipValidation);

            Assert.AreEqual(AppName, Excel.GetValueFromTestStep("AppDetails", "AppName"), "App name not matching as in Service");
            WebDriverUtility.MoveToElement(AttchDataAppDescp);
            String AppDescription = WebDriverUtility.GetText(ToolTipValidation);

            Assert.AreEqual(AppDescription, Excel.GetValueFromTestStep("AppDetails", "AppDescription"), "App descripton not matching as in Service");
        }
Esempio n. 11
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));
        }
Esempio n. 12
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");

            //}
        }
Esempio n. 13
0
        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);
        }
Esempio n. 14
0
 public void AllAppsDisplayedExpectedAsync()
 {
     Thread.Sleep(3000);
     WebDriverUtility.IsDisplayed(AllAppsDsiplayed);
     Assert.IsTrue(WebDriverUtility.GetText(AppCount).Contains("20 Apps Found"));
 }
Esempio n. 15
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);
        }
Esempio n. 16
0
        public void ValidateTheNotification(String expectedMessage)
        {
            String notification = WebDriverUtility.GetText(MessageNotification);

            Assert.AreEqual(notification, expectedMessage);
        }