Пример #1
0
        public void TestEditManageLisiting()
        {
            test = Extent.CreateTest("Report 3");

            var signinpage = new SignIn();

            var profilepage = signinpage.LoginSteps();

            //click manage listing on Profile page
            var manageListingPage = profilepage.ClickManageListing();

            //update share skill
            manageListingPage.EditManageListing();

            ManageListings manage = new ManageListings();

            //validate update record
            manage.ValidateManageListing();

            //logs
            test.Log(Status.Info, "Title has been successfully updated");
            test.Log(Status.Pass, "Description has been updated");
            test.Log(Status.Pass, "Category has been successfully updated");
            test.Log(Status.Pass, "SubCategory has been successfully updated");
            test.Log(Status.Pass, "Tags has been updated");
            test.Log(Status.Pass, "Service type has been successfully updated");
            test.Log(Status.Pass, "Location type has been added");
            test.Log(Status.Pass, "Time has been successfully updated");
            test.Log(Status.Pass, "Work sample has been successfully updated");
            test.Log(Status.Pass, "Service option has been updated");
        }
Пример #2
0
        public void GivenClickOnViewIconForJobTitle()
        {
            ManageListings listings    = new ManageListings();
            string         titleSearch = "Test Analyst";

            listings.ClickView(titleSearch);
        }
        public static void TestManageListings()
        {
            ManageListings objListings = new ManageListings();

            objListings.ViewListing();
            objListings.DeleteListing();
        }
Пример #4
0
        public void EditService()
        {
            //Edit the first item in Listings
            var manageListingsInstance = new ManageListings();

            manageListingsInstance.ClickManageListings();
            string firstCategory    = Driver.FindElement(By.XPath("//tbody/tr[1]/td[2]")).Text;
            string firstTitle       = Driver.FindElement(By.XPath("//tbody/tr[1]/td[3]")).Text;
            string firstDescription = Driver.FindElement(By.XPath("//tbody/tr[1]/td[4]")).Text;
            string firstServiceType = Driver.FindElement(By.XPath("//tbody/tr[1]/td[5]")).Text;
            string firstSkillTrade  = Driver.FindElement(By.XPath("//tbody/tr[1]/td[6]")).Text;

            manageListingsInstance.ClickEdit();

            //Verify if user has been navigated to ServiceListing Page
            string expectedTitle = "ServiceListing";
            string actualTitle   = Driver.Title;

            Assert.That(actualTitle, Is.EqualTo(expectedTitle), "Navigation to ServiceListing Page failed");

            //Verify if the Service details are populated in the ServiceListing Page
            var shareSkillInstance = new ShareSkills();

            Assert.IsTrue(shareSkillInstance.ValidateDetails(firstCategory, firstTitle, firstDescription,
                                                             firstServiceType, firstSkillTrade), "Service details not poplated successfully in edit mode");

            //Edit the service
            #region read data from ShareSkill sheet, row 3
            //Populate the excel data
            ExcelLib.PopulateInCollection(ExcelPath, "ShareSkill");

            //Read data
            string title            = ExcelLib.ReadData(3, "Title");
            string description      = ExcelLib.ReadData(3, "Description");
            string category         = ExcelLib.ReadData(3, "Category");
            string subCategory      = ExcelLib.ReadData(3, "SubCategory");
            string tags             = ExcelLib.ReadData(3, "Tags");
            string serviceType      = ExcelLib.ReadData(3, "ServiceType");
            string locationType     = ExcelLib.ReadData(3, "LocationType");
            string startDate        = ExcelLib.ReadData(3, "Startdate");
            string endDate          = ExcelLib.ReadData(3, "Enddate");
            string day              = ExcelLib.ReadData(3, "Selectday");
            string startTime        = ExcelLib.ReadData(3, "Starttime");
            string endTime          = ExcelLib.ReadData(3, "Endtime");
            string skillTradeOption = ExcelLib.ReadData(3, "SkillTrade");
            string skillExchangeTag = ExcelLib.ReadData(3, "Skill-exchange");
            string creditAmount     = ExcelLib.ReadData(3, "Credit");
            string active           = ExcelLib.ReadData(3, "Active");
            #endregion
            //Enter the data
            shareSkillInstance.EditShareSkill(title, description, category, subCategory, tags, serviceType, locationType, startDate, endDate,
                                              day, startTime, endTime, skillTradeOption, skillExchangeTag, creditAmount, active);
            shareSkillInstance.ClickSave();

            //Verify if the service has been updated successfully in ListManagement Page
            //var manageListingsInstance = new ManageListings();
            manageListingsInstance.ClickManageListings();
            Assert.That(manageListingsInstance.ValidateData(category, title, description, serviceType, skillTradeOption),
                        "Editing Service failed");
        }
Пример #5
0
        public void ViewDeleteListing()
        {
            Base.test = Base.extent.StartTest("View and Delete");
            ManageListings ManageListingsobj = new ManageListings();

            ManageListingsobj.ViewandDeleteListings();
        }
Пример #6
0
            public void DeleteListedService()
            {
                NavigationBar  navigationBar  = new NavigationBar();
                ManageListings manageListings = navigationBar.clickOnManageListing();

                manageListings.deleteListedService();
            }
Пример #7
0
        public void UpdateServiceListings()
        {
            //Populate UpdateManageListings Excel data in Collection
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.excelPath, "UpdateManageListings");

            if (GlobalDefinitions.ExcelLib.ReadData(2, "UpdateAction").Equals("Yes"))
            {
                string         updateTitle       = GlobalDefinitions.ExcelLib.ReadData(2, "Title");
                ManageListings manageListingsObj = new ManageListings();
                manageListingsObj.UpdateServiceListings(updateTitle);

                ShareSkillDetails updateSkillObj = new ShareSkillDetails();
                updateSkillObj.Title         = GlobalDefinitions.ExcelLib.ReadData(2, "Title");
                updateSkillObj.Description   = GlobalDefinitions.ExcelLib.ReadData(2, "Description");
                updateSkillObj.Category      = GlobalDefinitions.ExcelLib.ReadData(2, "Category");
                updateSkillObj.SubCategory   = GlobalDefinitions.ExcelLib.ReadData(2, "SubCategory");
                updateSkillObj.Tags          = GlobalDefinitions.ExcelLib.ReadData(2, "Tags");
                updateSkillObj.ServiceType   = GlobalDefinitions.ExcelLib.ReadData(2, "ServiceType");
                updateSkillObj.LocationType  = GlobalDefinitions.ExcelLib.ReadData(2, "LocationType");
                updateSkillObj.StartDate     = GlobalDefinitions.ExcelLib.ReadData(2, "StartDate");
                updateSkillObj.EndDate       = GlobalDefinitions.ExcelLib.ReadData(2, "EndDate");
                updateSkillObj.SelectDay     = GlobalDefinitions.ExcelLib.ReadData(2, "SelectDay");
                updateSkillObj.StartTime     = GlobalDefinitions.ExcelLib.ReadData(2, "StartTime");
                updateSkillObj.EndTime       = GlobalDefinitions.ExcelLib.ReadData(2, "EndTime");
                updateSkillObj.SkillTrade    = GlobalDefinitions.ExcelLib.ReadData(2, "SkillTrade");
                updateSkillObj.SkillExchange = GlobalDefinitions.ExcelLib.ReadData(2, "Skill-Exchange");
                updateSkillObj.Active        = GlobalDefinitions.ExcelLib.ReadData(2, "Active");

                ShareSkill shareSkillObj = new ShareSkill();
                shareSkillObj.AddShareSkillDetails(updateSkillObj);
                Assert.AreEqual(updateSkillObj.Title, manageListingsObj.GetTitle());
            }
        }
            public void EditShareSkill()
            {
                GlobalDefinitions.TurnOnWait();

                Profile profile = new Profile();

                profile.NavigateToManageListingpage();

                GlobalDefinitions.TurnOnWait();



                GlobalDefinitions.TurnOnWait();

                ManageListings ml = new ManageListings();

                ml.EditSharedSkill();


                GlobalDefinitions.TurnOnWait();
                profile.NavigateToManageListingpage();

                GlobalDefinitions.TurnOnWait();
                ml.VerifySavedServiceListings();



                GlobalDefinitions.TurnOnWait();
            }
Пример #9
0
        public void GivenClickOnDeleteIconForJobTitle()
        {
            ManageListings listings  = new ManageListings();
            string         titleRead = "Software Tester";

            listings.ClickDelete(titleRead);
        }
        public void AddShareSkillData()
        {
            //Populate ShareSkill Excel data in Collection
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.excelPath, "ShareSkill");
            ShareSkillDetails addSkillObj = new ShareSkillDetails();

            addSkillObj.Title         = GlobalDefinitions.ExcelLib.ReadData(2, "Title");
            addSkillObj.Description   = GlobalDefinitions.ExcelLib.ReadData(2, "Description");
            addSkillObj.Category      = GlobalDefinitions.ExcelLib.ReadData(2, "Category");
            addSkillObj.SubCategory   = GlobalDefinitions.ExcelLib.ReadData(2, "SubCategory");
            addSkillObj.Tags          = GlobalDefinitions.ExcelLib.ReadData(2, "Tags");
            addSkillObj.ServiceType   = GlobalDefinitions.ExcelLib.ReadData(2, "ServiceType");
            addSkillObj.LocationType  = GlobalDefinitions.ExcelLib.ReadData(2, "LocationType");
            addSkillObj.StartDate     = GlobalDefinitions.ExcelLib.ReadData(2, "StartDate");
            addSkillObj.EndDate       = GlobalDefinitions.ExcelLib.ReadData(2, "EndDate");
            addSkillObj.SelectDay     = GlobalDefinitions.ExcelLib.ReadData(2, "SelectDay");
            addSkillObj.StartTime     = GlobalDefinitions.ExcelLib.ReadData(2, "StartTime");
            addSkillObj.EndTime       = GlobalDefinitions.ExcelLib.ReadData(2, "EndTime");
            addSkillObj.SkillTrade    = GlobalDefinitions.ExcelLib.ReadData(2, "SkillTrade");
            addSkillObj.SkillExchange = GlobalDefinitions.ExcelLib.ReadData(2, "Skill-Exchange");
            addSkillObj.Active        = GlobalDefinitions.ExcelLib.ReadData(2, "Active");

            ShareSkill shareSkillObj = new ShareSkill();

            shareSkillObj.AddShareSkillDetails(addSkillObj);
            //Assert.AreEqual("Service Listing Added sucessfully", shareskillObj.GetPopUp());                ;
            ManageListings manageListingsObj = new ManageListings();

            Assert.AreEqual(addSkillObj.Title, manageListingsObj.GetTitle());
        }
        public void ThenIShouldBeAbleToSeeTheListing()
        {
            //validate the listing on the manage listing page
            ManageListings manageListingsobj = new ManageListings(driver);

            manageListingsobj.FindListing();
        }
Пример #12
0
        //Passed
        public void DeleteService()
        {
            //Populate the Excel Sheet
            ExcelLib.PopulateInCollection(ExcelPath, "ManageListings");
            string title = ExcelLib.ReadData(2, "Title");

            Console.WriteLine($"the title for deleting is {title}");

            //Search service and Delete
            var managementListingsInstance = new ManageListings();

            managementListingsInstance.ClickManageListings();
            managementListingsInstance.ClickDelete(title);
            managementListingsInstance.ClickYes();


            //Verify if the service has been deleted
            string expectedMsg = $"{title} has been deleted";
            string actualMsg   = Driver.FindElement(By.XPath("/html/body/div/div[@class='ns-box-inner']")).Text;

            Console.WriteLine("actual msg is " + actualMsg);
            Console.WriteLine("expected msg is " + expectedMsg);

            Assert.That(actualMsg, Is.EqualTo(expectedMsg), "Serice has not been deleted");
        }
Пример #13
0
            public void DeleteShareSkillTest()
            {
                ManageListings manageListings = new ManageListings();

                manageListings.DeleteShareSkill();
                manageListings.ValidateDeleteData();
            }
Пример #14
0
            public void EditManageListings()
            {
                //Edit ServiceListing
                ManageListings manobj = new ManageListings();

                manobj.ShareskillEdit();
            }
Пример #15
0
            public void Listings()
            {
                // Page object for manage listings page
                ManageListings ListingsObj = new ManageListings();

                ListingsObj.Listings();
            }
Пример #16
0
            public void ManageList()
            {
                test = extent.StartTest("Manage Listings");
                ManageListings ML_T = new ManageListings();

                ML_T.ML();
            }
Пример #17
0
        public void TC_001_01_Click_ManageListings_Button()
        {
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "ManageListings");
            manageListings = new ManageListings();
            manageListings.ClickManageListingButton();

            Assert.AreEqual(MarsResource.ListingManagementUrl, GlobalDefinitions.driver.Url);
        }
Пример #18
0
            public void EditShareSkill()
            {
                //Create an instance of Edit Share Skill Method from ManageListings.cs
                ManageListings EditShareSkillListing = new ManageListings();

                //Test EditShareSkill method
                EditShareSkillListing.EditShareSkill();
            }
Пример #19
0
            public void viewListedService()
            {
                NavigationBar  navigationBar  = new NavigationBar();
                ManageListings manageListings = navigationBar.clickOnManageListing();
                ServiceListing serviceListing = manageListings.viewListedService();

                serviceListing.isServiceDetailsCorrect();
            }
Пример #20
0
            public void ManageListings()

            {
                var ManageListings = new ManageListings();

                PageFactory.InitElements(Global.GlobalDefinitions.driver, ManageListings);
                ManageListings.Listings();
            }
Пример #21
0
            public void DeleteManageListings()
            {
                //Delete service Listing in Manage Listing page
                ManageListings manobj = new ManageListings();

                manobj.Listings();
                manobj.deleteAssert();
            }
Пример #22
0
            public void Test4()
            {
                ManageListings manage = new ManageListings();

                manage.Listings();
                manage.UpdateListing();
                manage.Delete();
            }
Пример #23
0
            public void DeleteShareSkill()
            {
                //Create an instance of Delete Share Skill Method from ManageListings.cs
                ManageListings DeleteShareSkillListing = new ManageListings();

                //Test DeleteShareSkill method
                DeleteShareSkillListing.DeleteShareSkill();
            }
Пример #24
0
        public void GivenClickOnEditIconForJobTitle()
        {
            ManageListings listings    = new ManageListings();
            string         titleRead   = "Software Tester";
            string         titleSearch = "Test Analyst";

            listings.ClickEdit(titleRead, titleSearch);
        }
Пример #25
0
            public void AddShareSkillTest()
            {
                ShareSkill     shareskill     = new ShareSkill();
                ManageListings manageListings = new ManageListings();

                shareskill.AddShareSkill();
                manageListings.ValidateAddedShareSkill();
            }
Пример #26
0
        public void ManageList()
        {
            // Create ManageListing Object to call menthods
            ManageListings obj = new ManageListings(_driver);

            //call method
            obj.DeleteService("Testing");
        }
Пример #27
0
            public void manageListings()
            {
                test = extent.StartTest("Managelisting Test");
                ManageListings Obj2 = new ManageListings();

                Obj2.Viewlistings();
                Obj2.EditListing();
                Obj2.DeleteListing();
            }
Пример #28
0
            public void deletemanageSkill()
            {
                ExtentReport.test = ExtentReport.extent.StartTest("deletemanageSkill");

                ManageListings ManageListings = new ManageListings();

                ManageListings.Listings();
                ManageListings.validatedeleteskill();
            }
Пример #29
0
            public void ManageListingsViewDetailsTest()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("View Listing in Manage Listings");
                // Create an class and object to call the method
                ManageListings obj = new ManageListings();

                obj.ManageListingsViewDetailsSteps();
            }
Пример #30
0
        public void NavigateToManageListings()
        {
            Profile profileObj = new Profile();

            profileObj.ClickOnManageListings();
            ManageListings manageListingsObj = new ManageListings();

            Assert.AreEqual(ManageListings.expectedManageListingsUrl, manageListingsObj.GetManageListingsUrl());
        }