Ejemplo n.º 1
0
            public void DeleteSkill()
            {
                ManageListingsPage manageListingObj = new ManageListingsPage();

                manageListingObj.DeleteListing();
                manageListingObj.ValidatedDeletedSkills();
            }
            public void ActivatedDeactivated()
            {
                ManageListingsPage mlp = new ManageListingsPage();

                mlp.chkSlider();
                mlp.verifyDeactivated();
                mlp.chkSlider();
            }
Ejemplo n.º 3
0
            public void DeleteSkill()
            {
                ManageListingsPage manageListingObj = new ManageListingsPage();

                //manageListingObj.ValidateTheSkillAdded();
                //manageListingObj.DeleteListing();
                manageListingObj.UpdatedListing();
            }
            public void ViewDetails()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("Search for a View Button ");

                // Create an class and object to call the method
                ManageListingsPage obj3 = new ManageListingsPage();

                obj3.ViewDetails();
            }
            public void EditSkills()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("Search for a Edit Button ");

                // Create an class and object to call the method
                ManageListingsPage obj2 = new ManageListingsPage();

                obj2.EditSkills();
            }
            public void AddShareSkills()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("Search for a ShareSkills Button ");

                // Create an class and object to call the method
                ManageListingsPage obj1 = new ManageListingsPage();

                obj1.AddShareSkills();
                Thread.Sleep(1000);
                obj1.ValidateAddSkills();
            }
Ejemplo n.º 7
0
            public void UserSkill()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("Add skills to ShareSkill Page");

                // Create an class and object to call the method
                ShareskillPage obj = new ShareskillPage();

                obj.AddService();
                ManageListingsPage obj1 = new ManageListingsPage();

                obj1.ManageListings();
            }
        public void TestEditManageListings()
        {
            test = extent.CreateTest("Test Edit ManageListings");
            ProfilePage profilePage = new ProfilePage();

            profilePage.ClickManageListings();
            ManageListingsPage listings = new ManageListingsPage();

            listings.EditManageListings();
            Driver.WaitForElement(60, By.XPath("//tbody/tr[1]/td[3]"));
            String expextedTitle = "Seleinium with Java";
            String actualTitle   = Driver.driver.FindElement(By.XPath("//tbody/tr[1]/td[3]")).Text;

            Assert.AreEqual(expextedTitle, actualTitle);

            test.Log(Status.Info, "Edited ManageListings");
        }
        public void TestDeleteManageListings()
        {
            test = extent.CreateTest("Test Delete ManagelListing");
            ProfilePage profileObj = new ProfilePage();

            profileObj.ClickManageListings();
            ManageListingsPage listings = new ManageListingsPage();


            Driver.WaitForClickableElement(60, By.XPath("//tbody/tr[1]/td[8]/descendant::button[3]"));
            listings.DeleteManageListing();
            Thread.Sleep(1000);
            String ExpectedDeleteConfirmation = driver.FindElement(By.XPath("//div[@class='ns-box ns-growl ns-effect-jelly ns-type-success ns-show']/div")).Text;

            Assert.IsTrue(ExpectedDeleteConfirmation.Contains(" has been deleted"));

            test.Log(Status.Info, "Deleted ManageListing");
        }
Ejemplo n.º 10
0
            public void UpdateSkill()
            {
                ManageListingsPage updateSkillObj = new ManageListingsPage();

                updateSkillObj.UpdatedListing();
            }
Ejemplo n.º 11
0
        public void ThenTheSkillShouldBeRemovedFromManageListingsTab(string ValidateDeleteRecord)
        {
            bool result = ManageListingsPage.ValidateDelete(ValidateDeleteRecord);

            Assert.IsTrue(result);
        }
Ejemplo n.º 12
0
        public void ThenTheItemShouldBeAddedInTheManageListingsTab(string ValidateEditRecord)
        {
            bool result = ManageListingsPage.ValidateEdit(ValidateEditRecord);

            Assert.IsTrue(result);
        }
Ejemplo n.º 13
0
        public void GivenClickTheDeleteButtonOf(string DeleteRecord)
        {
            ManageListingsPage DeleteListingTest = new ManageListingsPage();

            DeleteListingTest.ClickDeleteListings(DeleteRecord);
        }
Ejemplo n.º 14
0
        public void GivenClickTheEditButtonOf(string EditRecord)
        {
            ManageListingsPage EditListingTest = new ManageListingsPage();

            EditListingTest.ClickEditListings(EditRecord);
        }