public void AddCertificate()
        {
            //Populate the excel data
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "Profile");
            test = extent.CreateTest("Add Certificate to Profile");
            test.Log(Status.Info, "Starting the Add Certificate to profile Test");
            CertificationPage certificationPage = new CertificationPage();

            certificationPage.AddCertificate(
                GlobalDefinitions.ExcelLib.ReadData(2, "Certificate"),
                GlobalDefinitions.ExcelLib.ReadData(2, "CertifiedFrom"));

            bool actual = certificationPage.VerifyCertificationPage(
                GlobalDefinitions.ExcelLib.ReadData(2, "Certificate"));

            if (actual)
            {
                test.Log(Status.Pass, "Add Certificate Successfull");
                Assert.IsTrue(actual);
            }
            else
            {
                test.Log(Status.Fail, "Add Certificate Failed");
                Assert.IsTrue(actual);
            }
        }
Example #2
0
        public void WhenIAddCertificate()
        {
            var addcertificate = new CertificationPage();

            addcertificate.AddCertificate();
        }