testng « junit « Java Testing Q&A

Home
Java Testing Q&A
1.Development
2.FindBugs
3.HTMLUnit
4.hudson
5.junit
6.performance
7.plugin
8.profile
9.selenium
10.Tools
11.unit test
Java Testing Q&A » junit » testng 

1. Junit vs TestNG    stackoverflow.com

At work we are currently still using Junit3 to run our tests. We have been considering switching over to Junit4 for new tests being written but I have been keeping an ...

2. testNG tests extending BaseTest    stackoverflow.com

We noticed that when testNG test cases extend TestCase (JUnit) those tests start executing as Junit tests. Also, I should probably mention, the tests are run through Maven. Is this a bug ...

3. TestNG Ant tasks vs Surefire    stackoverflow.com

I was wondering how different surefire is when executing TestNG than TestNG ant tasks? The reason is that I am seeing consistent difference in behavior when trying to run a TestNG ...

4. Which UnitTest framework to learn for Java now?    stackoverflow.com

Although I have programmed with Java for roughly 3 years + now (not day-to-day but at least I understand the fundamentals), haven't really come into the field of Unit Testing... My work ...

5. JUnit vs TestNG    stackoverflow.com

For one reason or another I've been asked to write a short summary to what the advantages and disadvantages of both JUnit and TestNG are compared to each other. Ideally I ...

6. TestNG test reuse    stackoverflow.com

Need some help thinking in TestNG terms. I have a large third party test suite written in TestNG and I'd like to be able to compose tests from it and ...

7. I am new to automated testing in Java. Which tool should I prefer? JUnit or TestNG?    stackoverflow.com

I have read some comparisons of JUnit and TestNG and it looks like TestNG has more configuration options. On the other hand JUnit is more supported by IDEs, building tools, has ...

8. Drawbacks of TestNG compared to jUnit?    stackoverflow.com

I'm familiar with jUnit, and heard TestNG might be a solution to some of jUnit's annoyences - e.g. its insistence to create a separate instance of the test class per test, ...

9. How to mock HTTPSession/FlexSession with TestNG and some Mocking Framework    stackoverflow.com

I'm developing a web application running on Tomcat 6, with Flex as Frontend. I'm testing my backend with TestNG. Currently, I'm trying to test the following method in my Java-Backend:

public class ...

10. Using JUnit and TestNG together    stackoverflow.com

Do you think it's a good idea to use JUnit and TestNG together in one project? I need some features from TestNG, but I also need JUnit specific extensions, like DbUnit ...

11. Selecting specific tests to run in gradle    stackoverflow.com

I'm trying to fix our messy failing test runs, and, unfortunately, I'm very new to gradle. We currently have testng, junit, and I'd like to add some spock tests to ...

12. Does TestNG support something like JUnit4's @Rule?    stackoverflow.com

Does TestNG have something like @Rule? I am thinking specifically about:

@Rule public TemporaryFolder folder = ...
Or even
@Rule public MethodRule globalTimeout = new Timeout(20);
I am aware that I can manually implement these ...

13. how to use DbUnit with TestNG    stackoverflow.com

I need to integrate DbUnit with TestNG. 1) Is it possible to use DbUnit with TestNG as DbUnit is basically an extension of JUnit.
2) If yes how?

14. How to look for JUnit and TestNG tests with no assertions?    stackoverflow.com

I've been able to figure out how to go about looking for tests that aren't run. Does anyone know how I can go about figuring out if a test that ...

15. what is the difference between Junit 3, Junit 4, TestNG     stackoverflow.com

what is the difference between JUnit 3, JUnit 4, TestNG in selenium how selenium is implemented differently in these three testing frameworks? Can any one explain clearly.. Thanks in Advance..

16. JUnit/TestNg: How to simplify/combine multiple { try fail() catch } for same exception?    stackoverflow.com

Example (<Expected Exception> for assert 1 & assert 2 is same) :

@junit.framework.Test // or @org.testng.annotations.Test
public void testCase() {
    try {
        ...

17. A basic question on java/TestNG    stackoverflow.com

After writing my first few Java test programs, I want to write corresponding TestNG classes. I am using RHEL 5. I see that a typical directory looks like src/main/java and src/test/java. (a) ...

18. JUnit Developer moving to TestNG. What should I know?    stackoverflow.com

I am writing my test cases since many years with JUnit. Now I'm interested in starting developing with TestNG. What are the main things that are likely to trip me up ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.