docian
docian
i've encountered the same issue: when i'm switching from wpf to winfgorm cannot find any element. inspect is providing the properties of elements but WAD is not able to control...
```java package co.testng.bug; import org.testng.SkipException; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import junit.framework.AssertionFailedError; public class DemoBug { @BeforeMethod(alwaysRun=true) public void setup(Object[] o) { String[] s = (String[])o[0]; System.out.println("printed...
that's the simplest code that shows the issue
TestNG is skiping the third running of the test as well
doesn't matter. the fact is that the test methods are not running after a SkipExeption in @BeforeMethod and this is not a desired behavior since the test should be skipped...
no... still not running. output is here: printed from setup:John printed from test:John ---teardown--- printed from setup:Billy ---teardown--- printed from setup:Jimmy ---teardown---
it skips the third execution of the test as well
hmmm... the configuration failure refers at a specific configuration per method. it could fail for one set of data but not for all. in this case it loses the power...
yes, it's working as you explained but not as it's useful for a test framework. everything has an explanation but not every behavior is a desired one!
thank you, it solved the problem.