SlideShare a Scribd company logo
Cucumber API Automation Framework
As the name describes, this framework concentrates on automating API. This
framework contains all the configurations and execution related features so testers
can only focus on writing test scripts as per the scenarios described.
Pre-Requisites –
1. Java (JDKv1.8)
2. Maven
3. NodeJS
Key Components of the framework
These are the below components used to configure and execution the test scripts
using this framework –
1. Framework Jar
2. Configuration Properties
3. Test Scripts Creation
4. Test Scripts Runner
5. Reporter
Framework Jar –
Follow the installation document for installing the framework library
(cucumberapiautomation-1.0.jar).
1. Download the jar and install script from the location -
https://drive.google.com/open?id=1hYzTv4Q_Dr7bDr68x07FbxpJKykbq5Gb
2. Run the script (.sh or bat) as per the OS.
Configuration Properties –
These are few important property keys, which can used to execute scripts to
generate the desired results –
a. BASE_URI
Set the base URl. Ex – (http://localhost:5000). User can also pass the URI
from terminal/jenkins
Test Script Creation
Follow the below process to use the sample project –
1. Download the automation project and extract it.
2. Use the same extracted project or you can create your own maven-based
project.
3. Launch Eclipse (Please find the eclipse configuration document for more
detail to install eclipse and their plugin)
4. Click on File->Import
5. Select the option “Existing Maven Projects” and click on Next button
6. Select the project root directory and click on Finish button
7. Project gets imported in eclipse workspace.
8. Feature file can be found under the “src/test/resources”
Test Case Execution
For execution, follow the below steps –
1. Open the “config.properties” file and set the desired browser name. Ex – Set
“BASE_URI = http://localhost:5000”
2. Now open the terminal and navigate to project root directory.
3. Execute the command –
baseURI=http://localhost:5000mvn clean "-Dbase_url=http://localhost:5000"
verify
baseURI – API Base URL
Dbase – This URL will appear on report
4. Test
Report Details –
Once the execution completes, report will be available under the directory - <Project
Root>/target/Report. The report name is “index.html”.
How to use_cucumber_rest-assured_api_framework

More Related Content

PPTX
Troubleshooting mule
PDF
SpringBoot
PPTX
MUnit run and wait scope
PDF
Spring Boot
PPTX
JCrawler
PDF
Selenium 2 for PHP(Unit)
 
PPT
Selenium
PPTX
Running mule as worker role on azure
Troubleshooting mule
SpringBoot
MUnit run and wait scope
Spring Boot
JCrawler
Selenium 2 for PHP(Unit)
 
Selenium
Running mule as worker role on azure

What's hot (18)

ODP
Automated UI testing with Selenium
PPT
Selenium-Webdriver With PHPUnit Automation test for Joomla CMS!
PPTX
Get Started With Selenium 3 and Selenium 3 Grid
PDF
Spring Boot
PPTX
Invoke component demo in mule
PPTX
Force.com Migration Tool
PPTX
Mule intelli j tips
PPTX
jDriver Presentation
PDF
Designing keyword and Data Driven Automation framework with Selenium
PPTX
Mule testing
PPTX
Mule: Munit domain support
ODP
Xke spring boot
PPTX
#2 integration + ui tests
PDF
Selenium Maven With Eclipse | Edureka
PPTX
Web application penetration using SQLMAP.
PPT
Mule - logger
PPTX
Spring boot Under Da Hood
PDF
Spring Boot
Automated UI testing with Selenium
Selenium-Webdriver With PHPUnit Automation test for Joomla CMS!
Get Started With Selenium 3 and Selenium 3 Grid
Spring Boot
Invoke component demo in mule
Force.com Migration Tool
Mule intelli j tips
jDriver Presentation
Designing keyword and Data Driven Automation framework with Selenium
Mule testing
Mule: Munit domain support
Xke spring boot
#2 integration + ui tests
Selenium Maven With Eclipse | Edureka
Web application penetration using SQLMAP.
Mule - logger
Spring boot Under Da Hood
Spring Boot
Ad

Similar to How to use_cucumber_rest-assured_api_framework (20)

PPTX
Maven TestNg frame work (1) (1)
PPTX
Maven TestNg frame work (1) (1)
PPTX
dokumen.tips_introduction-to-spring-boot-58bb649a21ce5.pptx
PPT
Selenium-Browser-Based-Automated-Testing-for-Grails-Apps
PPTX
Introduction to spring boot
PPTX
PDF
Build server
PPTX
Maven
PDF
Toolbox for Selenium Tests in Java: WebDriverManager and Selenium-Jupiter
PPT
Bealls florida automation overview
PDF
Java, Eclipse, Maven & JSF tutorial
PPTX
Tutorial 1: Your First Science App - Araport Developer Workshop
PPT
Spring hibernate tutorial
PPTX
Amazon cloudtutorial
PDF
OpenSCAP Overview(security scanning for docker image and container)
PDF
Kirill Rozin - Practical Wars for Automatization
PDF
Exploring Maven SVN GIT
PPTX
Protractor framework architecture with example
PPTX
Protractor Testing Automation Tool Framework / Jasmine Reporters
Maven TestNg frame work (1) (1)
Maven TestNg frame work (1) (1)
dokumen.tips_introduction-to-spring-boot-58bb649a21ce5.pptx
Selenium-Browser-Based-Automated-Testing-for-Grails-Apps
Introduction to spring boot
Build server
Maven
Toolbox for Selenium Tests in Java: WebDriverManager and Selenium-Jupiter
Bealls florida automation overview
Java, Eclipse, Maven & JSF tutorial
Tutorial 1: Your First Science App - Araport Developer Workshop
Spring hibernate tutorial
Amazon cloudtutorial
OpenSCAP Overview(security scanning for docker image and container)
Kirill Rozin - Practical Wars for Automatization
Exploring Maven SVN GIT
Protractor framework architecture with example
Protractor Testing Automation Tool Framework / Jasmine Reporters
Ad

Recently uploaded (20)

PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
ai tools demonstartion for schools and inter college
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
System and Network Administration Chapter 2
PDF
medical staffing services at VALiNTRY
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
System and Network Administraation Chapter 3
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
How Creative Agencies Leverage Project Management Software.pdf
ai tools demonstartion for schools and inter college
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
System and Network Administration Chapter 2
medical staffing services at VALiNTRY
Design an Analysis of Algorithms II-SECS-1021-03
Upgrade and Innovation Strategies for SAP ERP Customers
PTS Company Brochure 2025 (1).pdf.......
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Odoo POS Development Services by CandidRoot Solutions
2025 Textile ERP Trends: SAP, Odoo & Oracle
Navsoft: AI-Powered Business Solutions & Custom Software Development
Softaken Excel to vCard Converter Software.pdf
VVF-Customer-Presentation2025-Ver1.9.pptx
CHAPTER 2 - PM Management and IT Context
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Wondershare Filmora 15 Crack With Activation Key [2025
System and Network Administraation Chapter 3

How to use_cucumber_rest-assured_api_framework

  • 1. Cucumber API Automation Framework As the name describes, this framework concentrates on automating API. This framework contains all the configurations and execution related features so testers can only focus on writing test scripts as per the scenarios described. Pre-Requisites – 1. Java (JDKv1.8) 2. Maven 3. NodeJS Key Components of the framework These are the below components used to configure and execution the test scripts using this framework – 1. Framework Jar 2. Configuration Properties 3. Test Scripts Creation 4. Test Scripts Runner 5. Reporter Framework Jar – Follow the installation document for installing the framework library (cucumberapiautomation-1.0.jar). 1. Download the jar and install script from the location - https://drive.google.com/open?id=1hYzTv4Q_Dr7bDr68x07FbxpJKykbq5Gb 2. Run the script (.sh or bat) as per the OS. Configuration Properties – These are few important property keys, which can used to execute scripts to generate the desired results – a. BASE_URI Set the base URl. Ex – (http://localhost:5000). User can also pass the URI from terminal/jenkins Test Script Creation Follow the below process to use the sample project – 1. Download the automation project and extract it.
  • 2. 2. Use the same extracted project or you can create your own maven-based project. 3. Launch Eclipse (Please find the eclipse configuration document for more detail to install eclipse and their plugin) 4. Click on File->Import 5. Select the option “Existing Maven Projects” and click on Next button
  • 3. 6. Select the project root directory and click on Finish button
  • 4. 7. Project gets imported in eclipse workspace.
  • 5. 8. Feature file can be found under the “src/test/resources” Test Case Execution For execution, follow the below steps – 1. Open the “config.properties” file and set the desired browser name. Ex – Set “BASE_URI = http://localhost:5000” 2. Now open the terminal and navigate to project root directory. 3. Execute the command – baseURI=http://localhost:5000mvn clean "-Dbase_url=http://localhost:5000" verify baseURI – API Base URL Dbase – This URL will appear on report 4. Test Report Details – Once the execution completes, report will be available under the directory - <Project Root>/target/Report. The report name is “index.html”.