Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is a api testing/



what is a api testing/..

Answer / raj

API TESTING

What is API?

An API (Application Programming Interface) is a collection
of software functions and procedures called API calls, that
can be executed by other software applications.

What is API Testing?

API testing is mostly used for the system which has
collection of API that needs to be tested. The system could
be system software, application software or libraries.API
testing is different from other testing types as GUI is
rarely involved in API Testing. Even if GUI is not involved
in API testing, you still need to setup initial environment,
invoke API with required set of parameters and then finally
analyze the result. Setting initial environment become
complex because GUI is not involved. In case of API, you
need to have some way to make sure that system is ready for
testing. This can be divided further in test environment
setup and application setup. Things like database should be
configured, server should be started are related to test
environment setup. On the other hand object should be
created before calling non static member of the class falls
under application specific setup. Initial condition in API
testing also involves creating conditions under which API
will be called. Probably, API can be called directly or it
can be called because of some event or in response of some
exception.
Test Cases for API Testing:
The test cases on API testing are based on the output.
•Return value based on input condition
Relatively simple to test as input can be defined and
results can be validated. Example: It is very easy to write
test cases for int add(int a, int b) kind of API. You can
pass different combinations of int a and int b and can
validate these against known results.
•Does not return anything
Behavior of API on the system to be checked when there is
no return value.
Example: A test case to delete(ListElement) function will
probably require to validate size of the list or absence of
list element in the list.
•Trigger some other API/event/interrupt
The output of an API if triggers some event or raises some
interrupt, then thoseevents and interrupt listeners should
be tracked. The test suite should callappropriate API and
declarations should be on the interrupts and listener.
•Update data structure
This category is also similar to the API category which
does not return anything.Updating data structure will have
some effect on the system and that should bevalidated.
•Modify certain resources
If API call is modifies some resources, for example makes
update on some database,changes registry, kills some
processes etc, then it should be validated by accessingthe
respective resources

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Manual Testing Interview Questions

Who is QA ? and Who is QC in a company? What are the roles of QA And QC in company?

3 Answers   Patni,


what is entry / exit criteria and pass / fail criteria ?

1 Answers  


What is negative path testing?

4 Answers   IBM,


What we do in performance testing? Is it possible without any tool?

2 Answers  


If I want to check compability of software in a MAC OS then which steps shold I follow?

0 Answers  


what is dead line and when its occur

2 Answers  


Could anyone let me how to write test cases in Manual Testing with the real time examples.

6 Answers  


Pls give proper Seq. to following testing Types Regression,Retesting,Funtional,Sanity and Performance Testing.

4 Answers   Syntel,


How will u write test cases based on EQA(Equivalance class partitioning) & BVA(Boundary value analysis.?Plz explain in brief?

5 Answers  


What is 'Shows stopper Bug'

8 Answers   Yardi,


u posted a bug with screenshots and steps to reproduce but still the developer is not accepting this is a bug. in dev system it is not reporducing . how u'll convince he developer? (if the developer is in india or onsite(give the answer for both the cases)

8 Answers   Semantic Space,


can any one of u give templates for test plan and test strategy

2 Answers  


Categories