API Testing – Full Stack QE https://fullstackqe.org Just another WordPress site Mon, 26 Dec 2022 13:42:49 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.6 155680629 20 Most asked API testing interview questions https://fullstackqe.org/20-most-asked-api-testing-interview-questions/ Mon, 26 Dec 2022 13:42:46 +0000 https://fullstackqe.org/?p=828 Here are 20 Most asked API testing interview questions:

  1. What is API testing and why is it important?
  2. What are the common HTTP methods used in API testing?
  3. How do you test the authentication and authorization of an API?
  4. How do you test the performance of an API?
  5. How do you handle API testing in an Agile development environment?
  6. How do you test error handling in an API?
  7. What are the common tools used for API testing?
  8. How do you test the security of an API?
  9. How do you test the reliability of an API?
  10. How do you test for compatibility in an API?
  11. What are some common challenges in API testing?
  12. How do you test for data integrity in an API?
  13. How do you test for compliance in an API?
  14. How do you test for backward compatibility in an API?
  15. How do you test for documentation in an API?
  16. How do you test for maintainability in an API?
  17. How do you test for scalability in an API?
  18. How do you test for usability in an API?
  19. How do you test for accessibility in an API?
  20. How do you test for internationalization in an API?
]]>
828
Benefits of API Test Automation over UI Test Automation? – Mostly asked Interview Question https://fullstackqe.org/benefits-of-api-test-automation-over-ui-test-automation-mostly-asked-interview-question/ Sat, 12 Nov 2022 19:52:48 +0000 https://fullstackqe.org/?p=815 API testing has many benefits over UI testing:

  • First, API testing is much faster than UI testing. This is because API tests do not have to wait for a page to load, as they interact directly with the application’s backend.
  • Second, API tests are more reliable than UI tests. This is because UI tests are subject to the vagaries of the user interface, such as changes in the layout or position of elements. API tests, on the other hand, are not affected by such changes.
  • Third, API tests are easier to create and maintain than UI tests. This is because UI tests often require a lot of code to simulate user interactions, whereas API tests only need to make calls to the application’s API.
  • Fourth, with API testing, one can find bugs related to functionality, reliability, performance, and security early in the SDLC and hence those are cheaper to fix.

In conclusion, API testing has many advantages over UI testing, and should be used whenever possible.

]]>
815
Top 15 REST API Interview Questions and Answers https://fullstackqe.org/top-15-rest-api-interview-questions-and-answers/ Sun, 08 Aug 2021 17:43:24 +0000 https://fullstackqe.org/?p=771 Continue reading "Top 15 REST API Interview Questions and Answers"

]]>
  • Client/server Error Codes
  • Success codes
  • Use of GET, PUT, POST, PATCH, DELETE
  • Difference between Put and Patch
  • Difference between Put and Post
  • How to handle authentication?
  • Difference between webserver and API
  • Json/xml structure format
  • How to validate json response?
  • Use of JsonPath
  • How to construct json body for Put, Post, Patch request?
  • Use of JsonObject.
  • What’s is URI?
  • What’s a resource?
  • What are the common headers used?
  • ~via Shammi Jha (WhatsApp Group)

    ]]>
    771
    [Tips] What must be checked when performing API testing? https://fullstackqe.org/what-must-be-checked-when-performing-api-testing/ Sun, 27 Sep 2020 14:52:55 +0000 https://fullstackqe.org/?p=514 Continue reading "[Tips] What must be checked when performing API testing?"

    ]]>
    Seems easy but yet a tricky interview question. Here is the answer by Katalon experts:

    During the API testing process, a request is raised to the API with the known data. This way you can analyze the validation response. While testing an API, you should consider:

    1. Accuracy of data
    2. Schema validation
    3. HTTP status codes
    4. Data type, validations, order and completeness
    5. Authorization checks
    6. Implementation of response timeout
    7. Error codes in case API returns, and
    8. Non-functional testing like performance and security testing
    ]]>
    514
    Rest- Assured API Testing Automation Interview Questions https://fullstackqe.org/rest-assured-api-testing-automation-interview-questions/ Sun, 20 Sep 2020 18:59:19 +0000 https://fullstackqe.org/?p=491 Continue reading "Rest- Assured API Testing Automation Interview Questions"

    ]]>
  • What is difference between API and WebService.
  • What is difference between SOAP & Rest API.
  • Can you write a sample of API(URL) and JSON.
  • How do you handle Authentication token.
  • How many type of Authentication in POSTMAN/ Rest-Assured.
  • What is difference between OAuth1.0 and OAuth2.O ,When and where do you use and how. Can you write a sample code.
  • What is baseURI in RestAssured.
  • Can you explain RequestSpecification request = RestAssured.given();
  • What will be returned type of response.jsonPath().getJsonObject(“XYZ”);
  • How do you extract the values of JSON and how do you validate response.
  • Can you write a code of save the response in a JSON file.
  • How do you validate headers of response.
  • What is difference between Headers and Header class.
  • What is difference between response.header(“xyz”) and response.headers() methods.
  • Can you extract all the headers from response at run time.
  • What is JSONObject() , request.header(“xyz”), response.path(“lable”) , response.body().asString() , response.getBody().prettyPrint(); , RestAssured.given().queryParam(“xyz”,”abc”);
  • What is difference between request.get(“https//dev-mode.com/api/allcustomers”) and request.request(Method.GET,"/ allcustomers ");
  • What is difference between PUT and Patch . Have you ever used and where.
  • What are status code(2xx ,3xx ,4xx, 5xx) in API.
  • How do you print your response in JSON format.
  • How do you post body in POST and how many way to post.
  • What all are the dependency for Rest-Assured.
  • – Questions shared by Mr. Hari.
    Happy Testing

    ]]>
    491
    Postman Part 5: Chaining Requests https://fullstackqe.org/postman-part-5-chaining-requests/ Mon, 17 Dec 2018 10:20:06 +0000 https://fullstackqe.org/?p=36 With great power, comes great responsibility. Learn how to chain requests so that you can use the first request’s response in the next request.

    ]]>
    36
    [Video] Postman Part 4: Running A Collection https://fullstackqe.org/video-postman-part-4-running-a-collection/ Mon, 17 Dec 2018 10:17:21 +0000 https://fullstackqe.org/?p=34
    ]]>
    34
    [Video] Postman Part 3: Writing A Test https://fullstackqe.org/postman-part-3-writing-a-test/ Mon, 17 Dec 2018 10:05:42 +0000 https://fullstackqe.org/?p=22
    ]]>
    22
    [Video] Postman Part 2: Authorizing A Request https://fullstackqe.org/postman-part-2-authorizing-a-request/ Mon, 17 Dec 2018 10:04:18 +0000 https://fullstackqe.org/?p=20
    ]]>
    20
    [Video] Postman Part 1: sending a request https://fullstackqe.org/postman-part-1-sending-a-request/ Mon, 17 Dec 2018 09:51:37 +0000 https://fullstackqe.org/?p=16
    ]]>
    16