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