public void TC05_Selenium_Castor_Buyer_PDRTO() { if (testResult["TC03_Selenium_Castor_Merch_PublishToTillHandover"] == "Passed") { LeanFtTest1 Testpahse1 = new LeanFtTest1(); try { Testpahse1.TC05_Selenium_Castor_Buyer_PDRTO(); } 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(); } }