• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How easy is to write test cases in JUnit??

 
Srinivasan Mani
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im new to JUnit.How easy is to write test cases in JUnit.Is it possible for us to record our actions and convert them as test cases??
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How easy is to write test cases in JUnit.
Very easy. You can time how long does it take you to read this tutorial
Is it possible for us to record our actions and convert them as test cases??
Now you're confusing unit tests with functional tests. There are separate tools for recording user actions. JUnit is a framework for writing unit tests, although some recording tools might produce JUnit-compatible classes as output.
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A basic question:
Does testing a Struts Action qualify as a unit test/functional test.
Say the action provides the basic functionality of creating a tender
CreateTenderAction
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, testing an Action would be unit testing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic