Skip to content

tstyev/JenkinsQA_2024_fall2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

258 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JenkinsQA_2024_fall

Project for Testing the CI/CD Tool Jenkins

Jenkins logo

Jenkins is an automation tool designed for Continuous Integration (CI) and Continuous Deployment (CD). It allows automatic execution of build, testing, and deployment processes whenever code changes are made in the repository.

Content:

Tech Stack


️ Test documentation


️ Settings

To configure the project locally, follow these steps:

  1. Run Jenkins locally

    • Install and start Jenkins on your machine.
    • Ensure all required plugins are installed.
  2. Configure the settings file

    • Copy local.properties.TEMPLATE.
    • Rename it to local.properties (remove TEMPLATE).
    • Fill in the necessary values with your local configuration.

After completing these steps, your project should be ready to use! 🚀


Running Tests Locally

To run automated tests locally, use the following commands:

  1. Run all tests:

    • mvn test
  2. Run specific tests:

    • mvn test -Dtest=TestName
  3. Run a specific test suite:

    • mvn clean test -Dsurefire.suiteXmlFiles=suite/<suite-name> Replace with the actual suite file name.
  4. Run tests in a Docker Container:

    • Using Dockerfile
      • Build the Docker image: docker build -t img-fall-2024 . -t img-fall-2024 – assigns a name to the image. . (dot) – specifies that the image is built from the current directory.
      • Run the container: docker run --rm --name my-container img-fall-2024 --rm – removes the container after execution. --name my-container – assigns a name to the container. img-fall-2024 – specifies the image to use for the container.
    • Using Docker Compose
      • Start the container: docker-compose up -d – runs the containers in the background.
      • Stop and remove the container: docker-compose down This method automatically handles image mounting and container execution. 🚀

Allure Report Example

Example of the Allure Report


Telegram Bot Notification

After the build is completed, a bot created in Telegram automatically processes the results and sends a message with the test run report to a specially configured chat.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages