botguide
botguide

Reputation: 139

How to test web service with fitnesse

I have gone through fitnesse user guide. But it seems difficult for me to follow since I want to test a web-service.

The problem is as below I have a request xml file and response xml file. In request file I have userid and logon id with values . In response xml file I have location with value. I need to test that whether I get expected location value , using fitness. How can I do the test with fitnesse.

Upvotes: 3

Views: 2632

Answers (1)

Dan Woodward
Dan Woodward

Reputation: 2569

Out of the box FitNesse does not test anything. It is really a framework for collaboratively editing and executing tests. To test any sort of software you need to use fixtures. Often people write their own, but you can also use fixtures written by other people.

In the case of testing web services, you can possibly use RestFixture. It is designed to test REST based Web Services. Back when I had to test a TES interface, I chose to write my own using HttpClient and custom parser due to the way our other test fixtures worked.

I don't know anything about it, but you can also look at XmlHttpTest.

Ultimately, you with have to find a fixture that works for you, or build one. This is pretty much true of FitNesse, Cucumber, and most of the similar style tools.

Upvotes: 3

Related Questions