Pages

Thursday, 30 April 2020

How to pass Path Parameter in RestAssured? InterviewQuestion for API Automation?




 
 
 
 
 
 
 
 
 
 
 
In the below example passYear is the path param and we can pass year to it using pathParam() method of restAssured
   
@Test
        public void validatePathParam()
{
            //save the parameter value to pass in the variable "year" of type String

            String year = "2017";

            //In resp we are saving the response of our request

            Response resp =
                    given().
                    pathParam("passYear", year).
                    when().
                    get("http://result.com/{passYear}/results.json");//this api is dummy

            //printing the response body from Get() api call

             System.out.println("************"+resp.getBody().asString()+"**************");
            //validating response status code
            assertEquals(resp.getStatusCode(),200);
           
        }
   

Note:
        The param() method will act like queryParam() with GET requests.
        The API used in Get() is a dummy one, so use real-time api while executing


Check below link on top Interview preparation:

SQL Query   Cucumber-BDD    Linux Commands    Maven   GIT 

TestNG@after@before

RestAPI

*************************************************

API Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Rest-API

 
Kubernetes Interview Question Set
https://automationreinvented.blogspot.com/search/label/Kubernetes

 
Docker Interview Question Set
https://automationreinvented.blogspot.com/2020/02/top-18-docker-commands-for-aytomation.html

 
Linux Interview question Set
https://automationreinvented.blogspot.com/search/label/Linux

 
Automation Testing/SDET Framework Design
https://automationreinvented.blogspot.com/search/label/FrameworkDesign


Java Related Interview Question Set

https://automationreinvented.blogspot.com/search/label/Java


GIT Interview Question Set:
https://automationreinvented.blogspot.com/search/label/GIT


Coding Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Coding%20Questions



Saturday, 18 April 2020

How to start career in API automation - SDET? Tools and technologies for API Automation SDET?



1. What tools can be used to design our framework?

Ans: Eclipse
Refer: https://www.eclipse.org/downloads/

2. Which Java library to use for Rest API Automation?

Ans: REST Assured is a Java library that provides a domain-specific language (DSL) for writing powerful, maintainable tests for RESTful APIs.
Refer: http://rest-assured.io/

3. What dependency management tool can we use?

Ans: Gradle/Maven

Refer for maven: https://maven.apache.org/download.cgi
Refer for Gradle : https://gradle.org/install/ 

4. Which framework we used?


Ans: TestNG
Refer: https://testng.org/

5. Which language do we prefer?

Ans: java and gherkin

6. Where do we create automation suites?

Ans: Create a test suite using testNG.xml

7. How and when using what we run the test cases?

Ans: Execute test cases using Jenkins job or with maven

8. What reporting mechanism should we use for report generation?

Ans: Extent Reporting

9. Manual testing tool for API testing?

Ans: Postman

10. CI-CD Integration with tools like Jenkins, Bamboo, CircleCI

11. Source code management with GIT


Check below link on top Interview preparation:

SQL Query   Cucumber-BDD    Linux Commands    Maven   GIT 

TestNG@after@before
 
*******************************************************************
For any doubts or career guidance from me, reach out here : https://topmate.io/sidharth_shukla

********************************************************************

These commands cover a range of basic UI interactions and are a good starting point for building automated tests with Cypress.

Do remember that knowing Linux is one of the most important aspect to work as an SDET.

Basic Linux Commands for Automation QA


****************************************

TOP 15 BDD - CUCUMBER Interview Q&A


************************************************

✍️AUTHORLinkedIn Profile

************************************************

Learn (API-Microservice)Testing+ Selenium UI Automation-SDET with Self Paced Videos prepared by FAANG employees and LIVE Doubt Session 

SDET TRANING VIDEOS AVAILABLE with Live Doubt Session(course-1 below,API TRaining Videos With Class Notes and Coding Set) and (API++Mobile+UI, course-1 & 2 below) Check Training Page for Course Content or reach out @whatsapp +91-9619094122. 
This includes classnotes, 300+ interview questions, 3 projects, Java Coding question set for product companies along with career guidance from FAANG employees for Automation and SDET.

For more details whatsapp : https://lnkd.in/dnBWDM33

*************************************************

SeleniumWebdriver Automation Testing Interview Questions:

https://automationreinvented.blogspot.com/search/label/SeleniumWebdriver

API Testing Interview Question Set:

https://automationreinvented.blogspot.com/2022/03/top-80-api-testing-interview-questions.html

DevOps Interview Q&A:

https://automationreinvented.blogspot.com/2021/11/top-11-devops-interview-questions-and.html 

Kubernetes Interview Question Set

https://automationreinvented.blogspot.com/search/label/Kubernetes

Docker Interview Question Set

https://automationreinvented.blogspot.com/Docker

Linux Interview question Set

https://automationreinvented.blogspot.com/search/label/Linux

Automation Testing/SDET Framework Design

https://automationreinvented.blogspot.com/search/label/FrameworkDesign

Java Related Interview Question Set

https://automationreinvented.blogspot.com/search/label/Java

GIT Interview Question Set:

https://automationreinvented.blogspot.com/2021/09/top-40-git-interview-questions-and.html

Coding Interview Question Set:

https://automationreinvented.blogspot.com/search/label/Coding%20Questions

Mobile Testing Interview Question Set:

https://automationreinvented.blogspot.com/search/label/Mobile%20Testing

Python Interview Question Set for QAE - SDET - SDE:

https://automationreinvented.blogspot.com/search/label/Python