Once I tested one Restful web service project using POSTER tool based on the Unit Test Case Document. It almost copy and paste type of work but It has taken one day to finish the job. Then I decided to automate the testing using java library.
I need your reviews and suggestions on my idea before I started working on it.
INTRODUCTION
The restful
web service testing is different from other testings like User Interface
testing. Restful web service output is in
JSON or XML format. The tester should keenly compare expected output and
original output. By automation of restful web service testing, it is possible
to reduce tester's effort and time to a considerable extent.
These columns must be in
sequence.
Manual Restful Web Service Testing
Tester uses browser tools to test the services (eg. Poster). Tester has to define the URL and method (GET/POST) and data to post. The tool will create a request to web service and will get the output and will print the output. Tester has to compare expected output and original output. This will take at least 8 minutes per service which is a hugely time consuming process. The accuracy level of manual testing is low.Architecture
- Tester will submit the input test case excel sheet to Master Tester.
- Master Tester extracts information such as URL and method type and data to post and expected output data and format of the output from the provided excel sheet.
- Master Tester will create a request to webservice based on the input details and it will get response data.
- Master Tester will compare both the expected output and original output based on the specified output format (XML / JSON).
- Master Tester will create output excel sheet with reports
Input Excel sheet format
Tester has to submit input excel sheet to system to get test reports. This input excel must be in defined format
The
columns to be present in the excel sheet are:
- S. No : Serial number for test case
- Test Case ID : Unique identifier for test case
- Test Scenario : Scenario of the test case.
- URL : URL of the create request to webservice
- Method : GET or POST
- Input Data in case of post method
- Expected output data
- Output data format : (JSON/XML)
Output Excel sheet format
Master Tester will create output
excel sheet.
The
following columns must be in excel sheet.
1.
S. No : Serial number for test case
2.
Test Case ID : Unique identifier for test case
3.
Test Scenario : scenario of the test case.
4.
URL : URL of the create request to webservice
5.
Method : GET or POST
6.
Input Data in case of post method
7.
Expected output data
8.
Output data format : (JSON/XML)
9.
Match or Mismatch : The result of comparison
between expected output and original
output.
10.
Info : This is the system generated information for the
test case.
This
columns must be in sequence
Your topic is really very useful for me. thanks for sharing with me. you can also learn how to link excel cells in another worksheet : http://www.labstech.org/linking-cells-to-excel-worksheets-2014-06-21/
ReplyDeleteYou succeeded in developing the project?
ReplyDeleteI was moved to another section....not enough encouragement for this.....do u really need this ?
Deletethis is really useful. can you share any updates on this project ?
ReplyDeleteOnce I tested https://beforewriting.com/research-paper-help/ and I found the best writing service for me. I'm pretty sure, that during your life you have business with a lot of paper work and it turn your life to horror. It was the same for me, but then I found this site and I didn't have troubles anymore.
ReplyDeleteI have been looking for this longtime. This is very useful. Could you please provide sample script?
ReplyDeleteYour blogs are fantastic. I love them Are you also searching for renal case study? we are the best solution for you.
ReplyDelete