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); } }