my dog learned polymorphism*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Testing third pary jar methods through fitnesse