Pages

20 [Latest] API testing Job Interview Questions and Answers PDF


Real Time API testing Interview Questions and Answers PDF


•    What Is Api Testing?
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.

•    What Are The Tools Used For Api Testing?
The tools used for various API testing are:
o    SoapUI Pro
o    LoadUI Pro
o    Alertsite API monitoring
Hirred API testing Interview Questions And Answers

•    What Are The Common Tests Performed On Api’s?
The common tests performed on API’s:
o    Verification of the API whether it is updating any data structure
o    Verify if the API does not return anything
o    Based on input conditions, returned values from the API’s are checked.
o    Verification of the API whether it triggers some other event or calls another API.

•    Mention The Key Difference Between Ui Level Testing And Api Testing?
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.

•    Explain What Is Soap?
SOAP-stands for Simple Object Access Control, and it is an XML based protocol for exchanging information between computers.

•    Explain What Is Rest Api?
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.

•    Difference Between Api And Unit Testing?
API testing:
o    API is owned by QA team
o    API is mostly black box testing
o    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 )
o    API test are often run after the build is ready and authors do not have access to the source code.
UNIT testing:
o    Unit testing is owned by development team
o    Unit testing is white box testing
o    Unit testing is done to verify whether each unit in isolation performs as expected or not
o    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.

•    How To Test Api’s ?
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

•    Mention What The Main Areas To Be Taken In Consideration While Writing Api Document ?
The key area to be considered when writing API documents are:
o    Source of the content
o    Document plan or sketch
o    Delivery layout
o    Information required for each function in the document
o    Automatic document creation programs

•    In Api Document Explain How To Document Each Function ?what Are The Tools Used For Documentation?
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)

•    Explain Api Framework?
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.

•    How Does The Api Builder Work?
API Builder is a PLSQL program consists of four SQL files:
o    For setting API parameters and starting the process one file is responsible
o    Two files are created for temporary tables and Master package to create the outputted code
o    Fourth file creates “spooled” output of the code into a file called “output_script_.sql”.

•    Explain What Is Testapi ?
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.

•    What Is Input Injection And What Are Different Ways Of Doing It ?
Input Injection:  It is the act of simulating user input, in several ways you can simulate user input.
o    Direct Method Invocation
o    Invocation using an accessibility interface
o    Simulation using low-level input
o    Simulation using a device driver
o    Simulation using a robot

•    What Are The Main Challenges Of Api Testing?
The main challenges in API testing is:
o    Parameter Selection
o    Parameter Combination
o    Call sequencing

•    What Is Api Testing With Runscope ?
Runscope is a web application that provides backend services and easy to use interface for testing APIs.

•    Explain What Are The Principles Of Api Test Design?
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

•    What Are The Types Of Bugs Will Api Testing Finds?
The types of Bugs, API will find:
o    Missing or duplicate functionality
o    Fails to handle error conditions gracefully
o    Stress
o    Reliability
o    Security
o    Unused flags
o    Not implemented errors
o    Inconsistent error handling
o    Performance
o    Multi-threading issues
o    Improper errors

•    What Are The Tools Used For Api Test Automation?
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:
o    NUnit for .NET
o    JUnit for Java
o    HP UFT
o    Soap UI

•    Mention The Steps For Testing Api ?
API testing steps:
o    Select the test case that has to be fulfilled
o    For API call develop a test case
o    To meet the test case configure the API parameters
o    Determine how will you validate a successful test
o    Using programming language like PHP or .NET execute the API call
o    Allow the API call to return the data to validate.

•    What Are The Common Protocols That Are Testing In Api Tesing ?
o    HTTP
o    JMS
o    REST
o    SOAP
o    UDDI

Latest API testingInterview Questions for freshers and Experienced pdf

No comments:

Post a Comment