• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writing Test Case

 
Chinni Bujji
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one tell me how to write a java test case with sample
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34229
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chinni,
Are you looking to write JUnit tests? If so, the JUnit Cookbook is a great starting page.
 
Chinni Bujji
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No I am not allowed to use any of those like junit or anything

just write normal test cases
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34229
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chinni,
It sounds like you aren't trying to write code then; just a logical test case. A test case is a list of steps for how to reproduce a scenario of using the application. The idea is to be as detailed as possible so someone can follow those instructions later. For example, provide all inputs and steps that you need to follow.

If your organization has a template, you can use that. If not, you can just use a list in Word or Excel.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Chinni Bujji:
No I am not allowed to use any of those like junit or anything

just write normal test cases

Can you define "normal test case" for us? Are you talking about documenting a manually executed test case (why would you say "java test case" if this is the case?) or perhaps about writing executable unit tests without using third party libraries such as JUnit?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic