API testing Interview Questions & Answers

5 avg. rating (100% score) - 5879 votes

API testing Interview Questions & Answers

Are you a person with commendable knowledge in software applications? Are you skilled enough in API, Selenium, Testing tools and so on then logon to www.wisdomjobs.com. API Testing is a type of software testing that involves testing applications programming interfaces (API s) directly and as part of integration testing to determine if they meet expectations for functionality, reliability, performance and security. It is a set of routines, protocols and tools for building software applications. It is now considered critical for automating testing because APIS now serve as the primary interface to application logic and became GUI tests are difficult to maintain with the shirt release cycles. So find your career in API Testing as software developer, engineer, Automation Analyst, API tester by looking into API Testing job interview question and answers given.

API Testing Interview Questions

API testing Interview Questions
    1. Question 1. What Is Api Testing?

      Answer :

      API (Application Programming Interface) specifies how some software components should interact with other, in other words it’s a set of functions and procedures that allows the creation of applications which access the features or data of an application or operating system.   Testing of these functions is known as API testing.

    2. Question 2. What Are The Tools Used For Api Testing?

      Answer :

      The tools used for various API testing are:

      • SoapUI Pro
      • LoadUI Pro
      • Alertsite API monitoring

    3. Question 3. What Are The Common Tests Performed On Api’s?

      Answer :

      The common tests performed on API’s:

      • Verification of the API whether it is updating any data structure
      • Verify if the API does not return anything
      • Based on input conditions, returned values from the API’s are checked.
      • Verification of the API whether it triggers some other event or calls another API.

    4. Question 4. Mention The Key Difference Between Ui Level Testing And Api Testing?

      Answer :

      UI ( User Interface) refers to testing graphical interface such as how user interacts with the applications, testing application elements like fonts, images, layouts etc. UI testing basically focuses on look and feel of an application.

      While, API enables communication between two separate software systems. A software system implementing an API contains functions or sub-routines that can be executed by another software system.

    5. Question 5. Explain What Is Soap?

      Answer :

      SOAP-stands for Simple Object Access Control, and it is an XML based protocol for exchanging information between computers.

    6. Question 6. Explain What Is Rest Api?

      Answer :

      It is a set of functions to which the developers performs requests and receive responses. In REST API interaction is made via HTTP protocol

      REST – stands for Representational State Transfer, it is quickly becoming defacto standard for API creation.

    7. Question 7. Difference Between Api And Unit Testing?

      Answer :

      API testing:

      • API is owned by QA team
      • API is mostly black box testing
      • Full functionality of the system is considered in API testing as it will be used by the end-user (external developers who will use your API )
      • API test are often run after the build is ready and authors do not have access to the source code. 

      UNIT testing:

      • Unit testing is owned by development team 
      • Unit testing is white box testing
      • Unit testing is done to verify whether each unit in isolation performs as expected or not
      • For each of their module the developers are expected to build unit tests for each of their code modules and have to ensure that each module pass unit test before the code is included in a build.


    8. Question 8. How To Test Api’s ?

      Answer :

      To test the API’s you should follow the following steps:

      1. Select the suite in which you want to add the API test case
      2. Choose test development mode
      3. Develop test cases for the desired API methods
      4. Configure application control parameters
      5. Configure test conditions
      6. Configure method validation
      7. Execute API test
      8. View test reports
      9. Filter API test cases
      10. Sequence API test cases

    9. Question 9. Mention What The Main Areas To Be Taken In Consideration While Writing Api Document ?

      Answer :

      The key area to be considered when writing API documents are:

      • Source of the content
      • Document plan or sketch
      • Delivery layout
      • Information required for each function in the document
      • Automatic document creation programs

    10. Question 10. In Api Document Explain How To Document Each Function ?what Are The Tools Used For Documentation?

      Answer :

      Description: Small description about what a function does

      Syntax: Syntax about the parameter of the code, the sequence in which they occur, required and optional elements etc.

      Parameters: Functions parameters

      Error Messages: Syntax of error messages

      Example Code: Small snippet of code

      Related Links: Related functions

      Popular tools used for API documentations are JavaDoc (for Java code ) Doxygen (for .Net code)

    11. Question 11. Explain Api Framework?

      Answer :

      API framework is self-explanatory. Values for test run and for holding the configurable parts, config file is used.  Automated test cases must represent in “ parse-table” format within config file.  When testing API, it is not necessary to test each API so the config file have some section whose all API are activated for that specific run.

    12. Question 12. How Does The Api Builder Work?

      Answer :

      API Builder is a PLSQL program consists of four SQL files:

      • For setting API parameters and starting the process one file is responsible
      • Two files are created for temporary tables and Master package to create the outputted code
      • Fourth file creates “spooled” output of the code into a file called “output_script_.sql”.

    13. Question 13. Explain What Is Testapi ?

      Answer :

      TestApi is a library of utility and test APIs that enables testers and developers to create testing tools and automated tests for .NET and Win32 application.  It provides a set of common test building blocks, types, data-structure and algorithms.

    14. Question 14. What Is Input Injection And What Are Different Ways Of Doing It ?

      Answer :

      Input Injection:  It is the act of simulating user input, in several ways you can simulate user input.

      • Direct Method Invocation
      • Invocation using an accessibility interface
      • Simulation using low-level input
      • Simulation using a device driver
      • Simulation using a robot

    15. Question 15. What Are The Main Challenges Of Api Testing?

      Answer :

      The main challenges in API testing is:

      • Parameter Selection
      • Parameter Combination
      • Call sequencing

    16. Question 16. What Is Api Testing With Runscope ?

      Answer :

      Runscope is a web application that provides backend services and easy to use interface for testing APIs.

    17. Question 17. Explain What Are The Principles Of Api Test Design?

      Answer :

      The principle for API test design are:

      Setup : Create objects, start services, initialize data etc

      Execution: Steps to exercise API or scenario, also logging

      Verification: Oracles to evaluate execution outcome

      Reporting: Pass, failed or blocked

      Clean up: Pre-test state

    18. Question 18. What Are The Types Of Bugs Will Api Testing Finds?

      Answer :

      The types of Bugs, API will find:

      • Missing or duplicate functionality
      • Fails to handle error conditions gracefully
      • Stress
      • Reliability
      • Security
      • Unused flags
      • Not implemented errors
      • Inconsistent error handling
      • Performance
      • Multi-threading issues
      • Improper errors

    19. Question 19. What Are The Tools Used For Api Test Automation?

      Answer :

      While testing Unit and API testing,  both target source code, if an API method is using code  based on .NET then the tool which is supporting should have .NET

      Automation tools for API testing can be used are:

      • NUnit for .NET
      • JUnit for Java
      • HP UFT
      • Soap UI

    20. Question 20. Mention The Steps For Testing Api ?

      Answer :

      API testing steps:

      • Select the test case that has to be fulfilled
      • For API call develop a test case
      • To meet the test case configure the API parameters
      • Determine how will you validate a successful test
      • Using programming language like PHP or .NET execute the API call
      • Allow the API call to return the data to validate.

    21. Question 21. What Are The Common Protocols That Are Testing In Api Tesing ?

      Answer :

      • HTTP
      • JMS
      • REST
      • SOAP
      • UDDI

Selenium Tutorial

All Tutorials

All Practice Tests

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Selenium Tutorial