• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to do testing?  RSS feed

 
Tushar Goel
Ranch Hand
Posts: 934
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

As i have read so far testing is very important to test the application. Can any one please suggest how to and where to start? I have no idea about testing. I am currently learning Java and need to use testing knowledge into the assignment/project so that i can improve my code better.
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume you are talking about Unit testing the Java code that you have written. Have a look at JUnit. JUnit is a testing framework to test your application code.
 
Tushar Goel
Ranch Hand
Posts: 934
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joe, i have not written any code for the testing. Actually i dont know anything about testing. What i meant was, i want to learn testing so that i can use it in my assignment/project to improve code. Is JUnit same as xp and TDD? I came to know about this in few of the posts on coderanch itself.
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TDD is a methodology and what you do in TDD is write tests before you actually implement your application code. But the basic thing you would be doing is writing unit tests that would call your application code with test data and check against the expected and actual results.
 
Balagopal Kannampallil
Ranch Hand
Posts: 136
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tushar,

You will have to first understand what testing is and how it ties upto application development.
For a beginner, before moving on to TDD and other testing methodologies, you will need to understand what unit testing is and how it can achieved in Java. This link will get you a grip around JUnit which is a popular unit testing framework for java.
 
Tushar Goel
Ranch Hand
Posts: 934
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thank you Joe and Balgopal, i will check shared links and trying to learn basic first.. Will come back if any doubt.
 
ika khakhviashvili
Greenhorn
Posts: 2
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good topic, i was also thinking about how they do testing, and now i have something to start with.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!