Friday 23 October 2020

SetUp API Automation Framework from scratch with build.gradle file? Rest Assured with Gradle

 STEP By Step Guide to Setup API Automation Framework with Gradle-TestNG:

 Selenium Interview E2E Guide


Step-01:

Download eclipse as IDE as mentioned in below link:
Eclipse Download

Download JDK and check inside java folder you should have both jre and jdk folder with same version. To check installation is correct or not type java -version and javac in your cmd.

Step:02

- Add TestNG to eclipse:

- To add TestNG to eclipse follow below steps:
Help-->Install New Software-->Add-->Name:TestNG & Location:http://dl.bintray.com/testng-team/testng-eclipse-release/ -->Next-->Finish

 


 


Step:03

Add Gradle to Eclipse:

Help-->Eclipse Marketplace-->Search <gradle>-->  Buildship: Eclipse Plug-ins for Gradle         





Step:04

Create Gradle project in Eclipse:
File -- > New-- > Project -- > Gradle Project-- > next-- > Next-- > Project Name-- >Finish







 

Step:05
Add all the dependencies using Gradle required for API Automation using Rest Assured.

Gradle dependencies for Rest Assured Framework Setup can be found below, Just copy the content in below link and add it in the build.gradle:
https://automationreinvented.blogspot.com/2020/10/configure-gradle-dependencies-in.html

 

Step:06

Once all the above dependencies added then Right click on the project Select Gradle -- > Refresh Gradle Project


Check below link for question SET-01:
Top API Interview Question 1-10
 
Check below link for question SET-02:
Top API Interview Question 11-20  
For Online Training on SDET contact 9619094122, starting new batch from November First week. 
Want to learn more? ...Check below link for more java interview question:

No comments:

Post a Comment

All Time Popular Posts

Most Featured Post

Good & bad Prompt to write Selenium Tests using Generative AI with GPT

  📌  Telegram Group:  https://t.me/+FTf_NPb--GQ2ODhl 📌  YouTube channel:  https://lnkd.in/gGUGmb-P ****** 💛 Good & bad Prompt to writ...