rest api challenges code example
Example 1: challenges in api testing
So one of the most common challange I face is:
Lack of API documentation. So to test
api we need many information like endpoints,
paramaters,resources,payload lots of thing
we need. Basically I can't start testing
without all the information in hand.
Also we need to access to Database to
in order to validate Api response we got.
So for validation we need to compare
values with API gives and compare with
actual result from database. When I
don't have access to some part of database
sometime it is challenging to validate
my api response.
If there is absence in the UI that is
also makes it quite challenging to
provide values.
Example 2: api testing challenges
Some of the challenges we face while doing API testing are as follows
• Selecting proper parameters and its combinations
• Categorizing the parameters properly
• Proper call sequencing is required as this may lead to inadequate coverage
in testing
• Verifying and validating the output
• Due to absence of GUI it is quite difficult to provide input values