public void TC02_Selenium_ICCVerificationexportsTillPDPublish() { if (testResult["TC01_Selenium_Castor_ProductDevelopmentandPublish"] == "Passed") { LeanFtTest1 Testpahse1 = new LeanFtTest1(); try { Testpahse1.TC02_Selenium_ICCVerificationexportsTillPDPublish(); } finally { Testpahse1.TearDown(); } } else { Reporter.ReportEvent(TestContext.CurrentContext.Test.MethodName, "due to fail/Skip in test TC01_Selenium_Castor_ProductDevelopmentandPublish and current test depends on that", Status.Warning); Assert.Ignore(); } }