public void ShareSkill()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("ShareSkill");

                //Create a Class & an Object to call the method
                ShareSkill SK = new ShareSkill();

                SK.ClickOnShareSkillButton();
                SK.EnterTitle();
                SK.EnterDescription();
                SK.SelectCategoryDropDown();
                SK.SelectSubCategoryDropDown();
                SK.SelectTags();
                SK.SelectLocationTypeOptions();
                SK.SelectStartDateDropDown();
                SK.SelectEndDateDropDown();
                SK.SelectDays();
                SK.SelectStartTimeDropDown();
                SK.SelectEndTimeDropDown();
                SK.SelectSkillTradeOption();
                SK.SelectSkillExchangeOption();
                SK.SelectActiveOption();
                SK.UploadWorkSamplesAutoIt();
                SK.ClickSave();
            }
Exemplo n.º 2
0
        public void AddShareskill()
        {
            ShareSkill shareskillobj = new ShareSkill();

            Base.test = Base.extent.StartTest("ShareSkill Add Test");
            shareskillobj.EnterShareSkill();
        }
Exemplo n.º 3
0
            public void addSkill()
            {
                test = extent.StartTest("ShareSkill Test");
                ShareSkill obj = new ShareSkill();

                obj.EnterShareSkill();
            }
Exemplo n.º 4
0
            public void ShareSkill()
            {
                var ShareSkill = new ShareSkill();

                PageFactory.InitElements(Global.GlobalDefinitions.driver, ShareSkill);
                ShareSkill.EditShareSkill();
            }
Exemplo n.º 5
0
        public void ShareSkill()
        {
            //Create an Object to call the method
            ShareSkill obj1 = new ShareSkill();

            obj1.Share_Skill();
        }
Exemplo n.º 6
0
            public void EnterShareSkill()
            {
                //Create an instance of Share Skill Method from ShareSkill.cs
                ShareSkill ShareSkillPage = new ShareSkill();

                //Test Share Skill method
                ShareSkillPage.EnterShareSkill();
            }
Exemplo n.º 7
0
            public void Calender()

            {
                test = extent.StartTest("Adding avaliable dates");
                ShareSkill Ad = new ShareSkill();

                Ad.Addingdate();
            }
Exemplo n.º 8
0
            public void AddShareSkillTest()
            {
                ShareSkill     shareskill     = new ShareSkill();
                ManageListings manageListings = new ManageListings();

                shareskill.AddShareSkill();
                manageListings.ValidateAddedShareSkill();
            }
Exemplo n.º 9
0
            public void AddSkill()
            {
                test = extent.StartTest("Add Skills");

                //Class and Object
                ShareSkill addnew = new ShareSkill();
                    addnew.AddNewShareSkill();
            }
Exemplo n.º 10
0
        public void ShareSkill()
        {
            // Create Share Skills object to call methods
            ShareSkill obj = new ShareSkill(_driver);

            //call methods
            obj.EnterShareSkill();
            obj.ValidateAddedSkill("Testing");
        }
            public void EnterShareSkillTest()
            {
                test = extent.StartTest("Enter Share Skill");
                ShareSkill shareSkillPage = new ShareSkill();

                shareSkillPage.EnterShareSkill();

                shareSkillPage.VerifyEnterShareSkill();
            }
Exemplo n.º 12
0
            public void ShareSkillTest()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("Share Skill");
                // Create an class and object to call the method
                ShareSkill obj = new ShareSkill();

                obj.ShareSkillSteps();
            }
Exemplo n.º 13
0
            public void ShareSkill()
            {
                //create extent report
                test = extent.StartTest("Add share skill");
                //Add Profile
                ShareSkill ShareSkillObj = new ShareSkill();

                ShareSkillObj.AddShareSkill();
                ShareSkillObj.VerifyShareSkill();
            }
Exemplo n.º 14
0
            public void UserSharesSkill()
            {
                // Creates a toggle for the given test, adds all log events under it
                // Create an class and object to call the method
                string     titleRead = "Test Analyst";
                ShareSkill skill     = new ShareSkill();

                skill.ClickSkillsShare();
                skill.ShareSkillsPage(titleRead);
            }
Exemplo n.º 15
0
            public void AddSkill()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("Add a skill");

                //steps to Add a share skill
                ShareSkill obj2 = new ShareSkill();

                obj2.AddShareSkill(GlobalDefinitions.Driver);
            }
Exemplo n.º 16
0
            public void ShareSkillTest()
            {
                ShareSkill shareSkill = new ShareSkill();

                shareSkill.EnterShareSkill();

                bool Result = shareSkill.ValidateShareSkill(Global.GlobalDefinitions.driver);

                Assert.IsTrue(Result);
            }
Exemplo n.º 17
0
        public void ShareSkill()
        {
            // Create Share Skills object to call methods
            ShareSkill obj = new ShareSkill(_driver);

            //extent Reports
            Base.test = Base.extent.StartTest("Share Skill Add Test");
            //call methods
            obj.EnterShareSkill();
        }
Exemplo n.º 18
0
            public void EnterShareSkill()
            {
                //Create Extent Report
                test = extent.StartTest("Add Share Skill");
                //Add Share Skill
                ShareSkill shareSkillObj = new ShareSkill();

                shareSkillObj.EnterShareSkill();
                shareSkillObj.VerifySkill();
            }
Exemplo n.º 19
0
            public void EditShareSkill()
            {
                NavigationBar  navigationBar  = new NavigationBar();
                ManageListings manageListings = navigationBar.clickOnManageListing();
                ShareSkill     shareSkill     = manageListings.clickOnEdit();
                string         description    = shareSkill.EditShareSkill();
                ManageListings manageListing  = shareSkill.clickOnSaveBtn();

                manageListing.isServiceUpdated(description);
            }
Exemplo n.º 20
0
            public void AddShareSkillTest()
            {
                // Start Add test. (Reports)
                test = extent.StartTest("Create Share Skill");

                //Call AddShareSkill Method to Add the Share Skill
                ShareSkill shareSkill = new ShareSkill();

                shareSkill.AddShareSkill();
            }
Exemplo n.º 21
0
        //Failed, Edit not working properly
        public void EditService()
        {
            //Populate the Excel Sheet
            ExcelLib.PopulateInCollection(ExcelPath, "ManageListings");
            string title = ExcelLib.ReadData(2, "Title");

            //Search from listing and click edit
            var managementListingsInstance = new ManageListings();

            managementListingsInstance.ClickManageListings();
            managementListingsInstance.ClickEdit(title);

            //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");

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

            //Read data
            //Keep title same
            //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
            var shareSkillInstance = new ShareSkill();
            //shareSkillInstance.ClickShareSkill();
            shareSkillInstance.EnterShareSkill(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");
        }
Exemplo n.º 22
0
            public void CancelShareSkill()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("Cancel a share skill");

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

                obj.ClickonShareSkillBtn();
                obj.ShareProfile("Cancel");
            }
Exemplo n.º 23
0
        public void EditShareSkill()
        {
            Base.test = Base.extent.StartTest("ShareSkill Edit");
            ManageListings Manageobj = new ManageListings();

            Manageobj.EditListings();

            ShareSkill editshareskillobj = new ShareSkill();

            editshareskillobj.EditShareSkill();
        }
Exemplo n.º 24
0
            public void AddShareSkill()
            {
                test = extent.StartTest("Add Share Skills Details");
                //Populating excel data
                GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPathAddShareSkill, "ShareSkill");

                //Calling Add share skill method
                ShareSkill shareSkill = new ShareSkill();

                shareSkill.AddShareSkill();
            }
Exemplo n.º 25
0
            public void Edit_Skill_Test()
            {
                // share a new skill
                ShareSkill shareSkill = new ShareSkill();

                shareSkill.EditShareSkill();
                //Assert
                Thread.Sleep(2000);
                var titleElement = Global.GlobalDefinitions.driver.FindElement(By.XPath("//tr[1]//td[3]")).Text;
                //  Assert.AreEqual("Arts", titleElement);
            }
Exemplo n.º 26
0
 public void ShareSkillRemove()
 {
     try
     {
         ShareSkill skillDelete = new ShareSkill(GlobalDefinitions.driver);
         skillDelete.DeleteShareSkill();
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 27
0
 public void ShareSkillEdit()
 {
     try
     {
         ShareSkill skillEdit = new ShareSkill(GlobalDefinitions.driver);
         skillEdit.EditShareSkill();
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 28
0
 public void ShareSkillCreate()
 {
     try
     {
         ShareSkill skillCreate = new ShareSkill(GlobalDefinitions.driver);
         skillCreate.EnterShareSkill();
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 29
0
            public void EndtoEnd()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("Add Skill Test");

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

                obj.AddSkill();
                obj.EditSkill();
                obj.DeleteSkill();
            }
Exemplo n.º 30
0
            public void ShareSkillTest()
            {
                // Start Report
                test = extent.StartTest("ShareSkillTest");


                //Creating a new Instance of Shareskill page
                ShareSkill add = new ShareSkill();

                //Adding new share skill
                add.ShareSkillAdd();
            }