Пример #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);
        }
Пример #2
0
 /*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);
 }
Пример #3
0
 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);
 }
Пример #4
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);
        }
Пример #5
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);
        }
Пример #6
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");

            //}
        }
Пример #7
0
        //public void DetailedReportView()
        //{


        //    WebDriverUtility.IsDisplayed(DetailedReport);

        //}

        public void FilterSearch()
        {
            WebDriverUtility.EnterText(SearchFilter, "WorkItem Inventory Report");
        }
 public void EnterTextInFilter()
 {
     WebDriverUtility.EnterText(FilterSearch, "Mailroom");
 }
Пример #9
0
 public void SaveSearchInPopup()
 {
     WebDriverUtility.EnterText(SearchName, "");
     WebDriverUtility.EnterText(SearchName, "");
     WebDriverUtility.ClickOn(SavePopup);
 }