This project was created as part of an Udemy course to learn how to automate API testing using Karate and perform performance testing using Gatling.
- Introduction 📚
- Getting Started 🛠️
- Running Tests 🏃♂️
- Test Scenarios 🧪
- Configuration Files 📁
- Process 🔄
- Links of Interest 🔗
- Bugs 🐞
- Authors 🧑💻
This project serves as a practical learning experience for automating API testing using Karate and conducting performance testing with Gatling. It was developed as part of an Udemy course with the goal of enhancing proficiency in API testing.
Before you begin, make sure you have the following software/tools installed:
- Maven 3.6.3
- Java JDK 11
-
Clone this repository to your local machine.
-
Navigate to the project directory.
-
Run the following command to download dependencies and generate the Maven dependency cache:
mvn dependency:go-offline -B
You're now ready to start using the project for API and performance testing.
The project relies on configuration files and settings. Please refer to the provided karate-config.js
file for environment-specific configurations.
To execute the API tests using Karate, run the following command:
mvn test
Performance tests are conducted using Gatling. Refer to the PerfTest.scala
file in the src/test/java/conduitApp/performance
directory for details on how performance tests are set up.
This set of tests focuses on interacting with articles.
These tests validate functionality related to the home page.
This suite of tests covers user sign-up scenarios.
These tests demonstrate database operations, including seeding the database with a new job and retrieving job levels.
Hooks are used to perform actions before and after scenarios or features.
The gatling-akka.conf
file contains configuration settings for Akka, which is used by Gatling for distributed computing.
If you want to watch the building process, you can type this in your console
git log --all --graph --decorate --oneline
If you find something unusual, please, let me know Obed Rayo. 📬.