Open EraKin575 opened 11 months ago
Run e2e tests for your application via Keploy
Creating a Custom Network for Keploy:
docker network create keploy-network
This network is required for the application container to bridge with Keploy in Docker.
Creating a Keploy Alias:
alias keployV2='sudo docker run --pull always --name keploy-v2 -p 16789:16789 --privileged --pid=host -it -v "$(pwd)":/files -v /sys/fs/cgroup:/sys/fs/cgroup -v /sys/kernel/debug:/sys/kernel/debug -v /sys/fs/bpf:/sys/fs/bpf -v /var/run/docker.sock:/var/run/docker.sock --rm ghcr.io/keploy/keploy'
This alias simplifies interactions with Keploy.
Creating a Configuration File for Keploy:
keploy generate-config -p .
This creates a configuration file in your current directory.
Recording Test Cases with Keploy:
keployV2 record -c "sudo docker compose up" --containerName docker-mattermost-1 --config-path . --buildDelay 5m
This records test cases for Mattermost in Docker with Keploy.
Access the UI on localhost:8065 for interaction and make some API calls
localhost:8065
Testing with Keploy:
keployV2 test -c "sudo docker compose up" --containerName docker-mattermost-1 --config-path . --delay 200
This allows testing of the Mattermost setup in Docker using Keploy.
Checking Test Sets and Mocks:
Introduction
Run e2e tests for your application via Keploy
Steps
Step 1: Install Docker Mattermost
Step 2: Setting Up Keploy
Prerequisites:
Integration Steps:
Creating a Custom Network for Keploy:
This network is required for the application container to bridge with Keploy in Docker.
Creating a Keploy Alias:
This alias simplifies interactions with Keploy.
Creating a Configuration File for Keploy:
This creates a configuration file in your current directory.
Recording Test Cases with Keploy:
This records test cases for Mattermost in Docker with Keploy.
Access the UI on
localhost:8065
for interaction and make some API callsTesting with Keploy:
This allows testing of the Mattermost setup in Docker using Keploy.
Checking Test Sets and Mocks: