public void ThenShouldBeAbleToVerifyTheEditedSkill()
        {
            ExcelLibHelper.PopulateInCollection(ConstantHelpers.DataFilePath, "Skill");
            SkillPage skillPage = new SkillPage();

            skillPage.EditSkill(ExcelLibHelper.ReadData(2, "Skill"), ExcelLibHelper.ReadData(3, "Skill"));
        }
        public void AddSkill()
        {
            //Populate the excel data
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "Profile");
            test = extent.CreateTest("Add Skill to Profile");
            test.Log(Status.Info, "Starting the Add Skill to profile Test");
            SkillPage skillPage = new SkillPage();

            skillPage.AddSkill(
                GlobalDefinitions.ExcelLib.ReadData(2, "Skill"),
                GlobalDefinitions.ExcelLib.ReadData(2, "Skill Level"));

            bool actual = skillPage.VerifySkill(
                GlobalDefinitions.ExcelLib.ReadData(2, "Skill"));

            if (actual)
            {
                test.Log(Status.Pass, "Add Skill Successfull");
                Assert.IsTrue(actual);
            }
            else
            {
                test.Log(Status.Fail, "Add Skill Failed");
                Assert.IsTrue(actual);
            }
        }
Exemple #3
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            DataBaseHelper.InitialCreate();

            navigationWindow        = new NavigationWindow();
            navigationWindow.Title  = "План треннировок";
            navigationWindow.Height = 650;
            navigationWindow.Width  = 900;
            var page = new SkillPage();

            navigationWindow.Navigate(page);
            navigationWindow.Show();
        }
Exemple #4
0
        public void ProfileSkill()
        {
            /*   //Create Extent Report
             * test = extent.CreateTest("ProfileSkills");
             * test.Log(Status.Info, "ProfileSkills");
             * // taking Screenshots of adding Profileskills
             * SaveScreenShotClass.SaveScreenshot(driver, "ProfileSkills");
             * // create object for add ProfileSkills*/

            SkillPage obj = new SkillPage(driver);

            obj.AddSkill();
            obj.UpdateSkill();
            obj.DeleteSkill();
        }
        public void ThenClickOnAddButtonSellerShouldAbleToAddVerifySkillSuccesfully()
        {
            ExcelLibHelper.PopulateInCollection(ConstantHelpers.DataFilePath, "Skill");
            skillPage = new SkillPage();
            skillPage.AddSkill(ExcelLibHelper.ReadData(2, "Skill"), ExcelLibHelper.ReadData(2, "Level"));
            bool actualResult = skillPage.VerifySkill(ExcelLibHelper.ReadData(2, "Skill"));

            if (actualResult)
            {
                Assert.True(actualResult);
            }
            else
            {
                Assert.Fail("Verification Failed.");
                throw new Exception("Result does not match");
            }
        }
        public void ThenSellerShouldBeAbleToDeleteTheSkillToTheProfilePage()
        {
            skillPage = new SkillPage();
            ExcelLibHelper.PopulateInCollection(ConstantHelpers.DataFilePath, "Skill");
            skillPage.SkillDelete(ExcelLibHelper.ReadData(3, "Skill"));
            bool isRecordPresent = skillPage.VerifySkill(ExcelLibHelper.ReadData(3, "Skill"));

            // Assert.False(isRecordPresent);
            if (!isRecordPresent)
            {
                Assert.False(isRecordPresent);
            }
            else
            {
                Assert.Fail("Verification Failed.");
                throw new Exception("Result does not match");
            }
        }
Exemple #7
0
        public void ThenAddAndUpdateOrDeleteTheExistingSkills()
        {
            SkillPage s = new SkillPage();

            s.SkillEdit(driver);
        }
Exemple #8
0
        public void GivenEnterTheSkills()
        {
            SkillPage s = new SkillPage();

            s.Skills(driver);
        }
Exemple #9
0
        public void ThenIShouldNotBeAbleToSeeTheDELETEDSKILLSAndShouldReceiveAPopUpMessage()
        {
            SkillPage create = new SkillPage();

            create.ValidateDelSkill();
        }
Exemple #10
0
        public void WhenIPressCROSSDeleteSignForSkills()
        {
            SkillPage create = new SkillPage();

            create.DeleteSkill();
        }
Exemple #11
0
        public void ThenIShouldAbleToValidateNewUPDATEDSKILLSRecordSuccessfully()
        {
            SkillPage create = new SkillPage();

            create.ValidateUpdateSkill();
        }
Exemple #12
0
        public void WhenIPressUpdatePenAndUpdateTheSKILLSAndLEVELAndPressTheUPDATEButton()
        {
            SkillPage create = new SkillPage();

            create.UpdateNewSkill();
        }
Exemple #13
0
        public void ThenIShouldAbleToValidateAddedNEWSKILLSRecordSuccessfully()
        {
            SkillPage create = new SkillPage();

            create.ValidateAddedSkill();
        }
Exemple #14
0
        public void WhenIPressADDNEWButtonAndThenIEnterAddSkillsAndLevelAndPressAdd()
        {
            SkillPage create = new SkillPage();

            create.AddNewskill();
        }
Exemple #15
0
        public void GivenIClickOnSKILLSDataTab()
        {
            SkillPage create = new SkillPage();

            create.Skilltab();
        }