• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

API testing using Groovy

 
Shraddha Pandya
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I want to test various APIs available to me in an application jar file using groovy. Since I have jar, I can have source code but wish to pursue only black box testing, in such a way that knowledge of API names and functionality would be sufficient. But as soon as I try to write a class extending TestSuite, it asks for the class name which I want to test (The way JUnit does).
As described above I dont wish to do unit testing of 1 class.

How to proceed forward?

P.S.: Might be a stupid question, my knowledge of groovy is only 1.5 days old.
 
Shraddha Pandya
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry forgot to mention Eclipse. I was trying to write groovy class extending in TestSuite in Eclipse..
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How could you test an API without knowing the classes it uses?! What would you call methods on?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34218
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shraddha Pandya wrote: But as soon as I try to write a class extending TestSuite, it asks for the class name which I want to test (The way JUnit does).

You don't have to though. You can create a TestCase that tests multiple classes or anything really. If the IDE asks for a class name, that's just an assist. Not a requirement of the test.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic