Testng
Spring-Autowiring happens after @BeforeClass when running test with maven-surefire
I have some problems with dependency injection (Spring autowiring) and maven-surefire. The following test works without problems when run in eclipse with TestNG:[详细]
2023-02-14 15:19 分类:问答TestNG skipping tests - why?
I am testing a web app with testng and selenium. The tests mainly consist in opening several pages of the app, and do some activities specific for each page. So I have an abstract base class which per[详细]
2023-02-14 08:29 分类:问答maven and unit testing - combining maven surefire plugin AND testNG eclipse plugin
could you please share your way of unit testing in eclipse ? Are you using surefire plugin, m2eclipse & maven, or only testNG eclipse plugin ? Do you combine these alternatives ?[详细]
2023-02-14 03:44 分类:问答Setting up output directory of TestNG eclipse plugin
I\'d like to use both testNG eclipse plugin and maven surefire plugin together. And I was told here, that I can listen to the output folder \"target/surefire-reports\" when running maven test and the[详细]
2023-02-13 11:58 分类:问答Maven/TestNG reports "Failures: 0" but then "There are test failures.", what's wrong?
I\'m using Maven 2.2.1 r801777, Surefire 2.7.1, TestNG 5.14.6, Java 1.6.0_11 on Win XP. I have only one test class with one empty test method and in my pom I have just added TestNG dependency. When I[详细]
2023-02-11 09:21 分类:问答TestNG @BeforeMethod method not called when it resides in superclass and a specific group is run
I am trying to use a group to run a subset of tests relevant to what I am working on called \"current\".The problem is that if I use a superclass to do some setup in a @BeforeMethod, the method runs w[详细]
2023-02-11 02:22 分类:问答How to run one test against multiple sites using Selenium and TestNG
Given 3 web applications under test with given URLs: www.A.com www.B.com www.C.com How do I proceed to design a way using Selenium to run a single TestNG test against these three browsers and prin[详细]
2023-02-09 15:36 分类:问答Stripes framework unit testing: MockServletContext giving NullPointerException
EDIT: You can ignore most of what I have written below: I am getting a null value of context when I do the following in some TestNG code:[详细]
2023-02-09 15:00 分类:问答Running tests in a Seam project which was not generated by seam-gen
I\'ve got a project firstly written using EJB 2, then migrated to Spring and after all migrated to JBoss Seam 2.2.0 (which is the situation I\'m dealing with). It will run over Tomcat but for now it i[详细]
2023-02-07 13:31 分类:问答When using the IObjectFactory in TestNG, do all my test classes need to be created up front?
I\'m running some Selenium 2 tests through TestNG and I\'m trying to use Guice modules to automatically inject a configured browser (driver) into my tests. I\'m using the IObjectFactory method describ[详细]
2023-02-07 05:50 分类:问答