File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes Testing third pary jar methods through fitnesse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Testing third pary jar methods through fitnesse " Watch "Testing third pary jar methods through fitnesse " New topic
Author

Testing third pary jar methods through fitnesse

Arpan Raj
Greenhorn

Joined: Apr 22, 2010
Posts: 15

Hi, we have to test few of the APIs which are lying on the remote machine which needs to be tested using fitnesse.

We have some pre conditions.

We need to use webservices for testing these APIs. And API's jar (say xyz.jar) lies on the server side. Where webservice is to be deployed.
Inputs have to be given using fitnesse. And xyz.jar is not available on the fitnesse side. Because client fitnesse needs to be independent of the changes in the xyz.jar and hence it makes it generic for all future versions.
User will give what method of what class is to be tested along with input data in the wiki page.
SAMPLE DATA FLOW

| Fitness | ----- > | Business layer | --> | Webservice Proxy | -------> | Webservice | -------> | xyz.jar |

We are facing some issues like.

Some of the APIs are are like doSomething(CustomId someId, DBLoaderType type, DBFilter filter, boolean exclude) returns java.util.List But these CustomId, DBLoaderType, DBFilter, SomeNavigationSystem are not serializable objects.

Some of the APIs return the values which can be of type Java primitives, wrapper or custom objects or Collection of custom objects. (boolean, Boolean, List Map , Map> How to verify the return types?

One issue we are facing is : how to input the input data from fitnesse to java layer (which will make a call to webservice to testthe API) If the API is of type registerUsersForMessage (int messageId, List users, boolean forceRegister, int maxBatch, Map ) how to pass such data to java layer from fitnesse wiki page? Is there any way to push the input data 'somewhere' so that tester's wiki page will be clean?

Any help for this is welcome. Or any questions which may lead to brainstorm awe welcome too.
Thanks in advance.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Testing third pary jar methods through fitnesse
 
Similar Threads
Front controller and DAO, design question!
Testing thirdparty API through Webservice.
Access restriction on application classes
EJB 3.0 & 2.0 compatibility
Inheritance / Komposition of multiple abstract classes