コード例 #1
0
        internal void register()
        {
            //Populate the excel data
            GlobalDefinitions.PopulateInCollection(Base.ExcelPath, "SignUp");

            //Click on Join button
            Join.Click();

            //Enter FirstName
            FirstName.SendKeys(GlobalDefinitions.ReadData(2, "FirstName"));

            //Enter LastName
            LastName.SendKeys(GlobalDefinitions.ReadData(2, "LastName"));

            //Enter Email
            Email.SendKeys(GlobalDefinitions.ReadData(2, "Email"));

            //Enter Password
            Password.SendKeys(GlobalDefinitions.ReadData(2, "Password"));

            //Enter Password again to confirm
            ConfirmPassword.SendKeys(GlobalDefinitions.ReadData(2, "ConfirmPswd"));

            //Click on Checkbox
            Checkbox.Click();

            //Click on join button to Sign Up
            JoinBtn.Click();
        }
コード例 #2
0
        internal void EditShareSkill(int DataRow)
        {
            //Prepares the Excel Sheet
            GlobalDefinitions.PopulateInCollection(Base.ExcelPath, "ShareSkill");

            //Edit the form
            EnterText(DataRow);

            //Edit the Trade option
            EditOptions(DataRow);

            //Check if the user can Click on the "Save" button
            Save.Click();
        }
コード例 #3
0
        internal void LoginSteps()
        {
            //Prepares the Excel Sheet
            GlobalDefinitions.PopulateInCollection(Base.ExcelPath, "SignIn");

            //Click on LogIn button
            SignIntab.Click();

            //Fill LogIn details
            Email.SendKeys(GlobalDefinitions.ReadData(3, "Username"));
            Password.SendKeys(GlobalDefinitions.ReadData(3, "Password"));

            //Complete Log In
            LoginBtn.Click();
        }
コード例 #4
0
        internal void FillShareSkill(int DataRow)
        {
            //Prepares the Excel Sheet
            GlobalDefinitions.PopulateInCollection(Base.ExcelPath, "ShareSkill");

            //Fills the form
            FillDetails(DataRow);
            FillSchedrule(DataRow);

            //Check if the user is able to load a file in the "Work Sample" field
            UploadSample(DataRow);

            //Check if the user can Click on the "Save" button
            Save.Click();
        }
コード例 #5
0
        internal void CheckDetails(int DataRow)
        {
            //Prepares the Excel Sheet
            GlobalDefinitions.PopulateInCollection(Base.ExcelPath, "ShareSkill");

            //Creates a result variable
            bool CheckResult = true;

            //Compares description with expected description
            if (Description.Text != GlobalDefinitions.ReadData(DataRow, "Description"))
            {
                CheckResult = false;
            }

            if (CheckResult == true)
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail();
            }
        }
コード例 #6
0
        internal void CheckListing(int DataRow)
        {
            //Creates a bool to determine the check result
            bool CheckResult = true;

            //Prepares the Excel Sheet
            GlobalDefinitions.PopulateInCollection(Base.ExcelPath, "ShareSkill");

            //Compares the listing data
            if (SkillDescription.Text != GlobalDefinitions.ReadData(DataRow, "Description"))
            {
                CheckResult = false;
            }

            //Asserts the test base on the Check Result
            if (CheckResult == true)
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail();
            }
        }