0

We are having an requirement to automate REST web services testing with jasmine node. Im pretty new to web service testing and node js as well. What exactly we need to test in web services? Could you please also guide in order to automate REST services testing.

Thanks, Tanmay

Tanmay
  • 227
  • 1
  • 3
  • 11

1 Answers1

0

A REST Web Service uses http verbs (GET, POST, PUT, PATCH, DELETE) to do various actions. So to test a web-service you need to write tests that send these requests with the appropriate data for your web-service and then examine the results. There are various test frameworks that make your life simpler.

Take a look at some simple tests I wrote for a sample REST Web-Service here. The tests I wrote were for the purpose of running in Mocha but Jasmine should not be too different. Here is a great article on Jasmine and Mocha and the differences and similarities between them.

sxm1972
  • 722
  • 8
  • 15