You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versioned_docs/version-4.0.0/ci-cd/github.md
+59-1Lines changed: 59 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,11 @@ Keploy can be integrated with GitHub by two methods:-
23
23
1.[Using Shell Scripts](#shell-scripts)
24
24
2.[Using GitHub Actions](#github-actions)
25
25
26
+
You can also [run cloud replay from your CI pipeline](#running-cloud-replay-in-ci).
27
+
26
28
## Shell Scripts
27
29
28
-
GitHub scripts are the easiest way to integrate Keploy with GitHub. We will be using [express-mongoose](https://github.com/keploy/samples-typescript/tree/main/express-mongoose) sample-application for the example. You can either add the following script to yout`github workflow` or create a new worflow`.github/workflows/keploy-test.yml`:-
30
+
GitHub scripts are the easiest way to integrate Keploy with GitHub. We will be using [express-mongoose](https://github.com/keploy/samples-typescript/tree/main/express-mongoose) sample-application for the example. You can either add the following script to your`github workflow` or create a new workflow`.github/workflows/keploy-test.yml`:-
_And... voila! You have successfully integrated keploy in GitHub CI pipeline 🌟_
217
219
220
+
---
221
+
222
+
## Running cloud replay in CI
223
+
224
+
Keploy cloud replay re-runs test sets that were recorded from a Kubernetes deployment. It works with both **Keploy Cloud** and a **self-hosted Keploy** setup, and on any CI control plane — GitHub Actions, GitLab CI, Jenkins, and others.
225
+
226
+
### How authentication works
227
+
228
+
The CLI reads the `KEPLOY_API_KEY` environment variable automatically — no browser login needed.
229
+
230
+
- **Locally:** `export KEPLOY_API_KEY="<your-api-key>"` before running the command.
231
+
- **In CI:** store the key as a secret in your CI system so it gets injected as an environment variable at runtime. Never hard-code it in your pipeline file.
232
+
233
+
> Cloud replay requires the Enterprise binary. Install it with `curl --silent -O -L https://keploy.io/ent/install.sh && source install.sh` — not the open-source `keploy.io/install.sh`.
234
+
235
+
### Steps
236
+
237
+
1. **Store the API key** — add `KEPLOY_API_KEY` as a secret in your CI system.
238
+
- GitHub Actions: go to **Settings → Secrets and variables → Actions → New repository secret**, name it `KEPLOY_API_KEY`.
239
+
- GitLab CI: go to **Settings → CI/CD → Variables**, add it as a masked variable.
240
+
- Jenkins: add a **Secret text** credential via **Manage Jenkins → Credentials**.
241
+
2. **Install** the Enterprise Keploy binary on the runner.
242
+
3. **Run** `keploy cloud replay` with your application and cluster details.
Replace `<NAMESPACE>`, `<DEPLOYMENT>`, `<CLUSTER>`, and `<DELAY>` with your own values. Set `<DELAY>` (in seconds) to comfortably cover your application's startup time.
273
+
274
+
> `KEPLOY_API_KEY: ${{ secrets.KEPLOY_API_KEY }}` pulls the value from GitHub's secret store and makes it available as an environment variable in all subsequent steps.
275
+
218
276
Hope this helps you out, if you still have any questions, reach out to us .
Copy file name to clipboardExpand all lines: versioned_docs/version-4.0.0/ci-cd/gitlab.md
+45Lines changed: 45 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,3 +146,48 @@ Integrating Keploy with GitLab CI automates the testing process, ensuring that t
146
146
If you’re thinking, “This pipeline looks cool, but I need the _whole thing_ to integrate with your application!” — well, you're in luck! Check it out [here](https://github.com/keploy/samples-python) and get ready to copy-paste your way to success! ✨🚀
147
147
148
148
Hope this helps you out, if you still have any questions, reach out to us .
149
+
150
+
---
151
+
152
+
## Running cloud replay in CI
153
+
154
+
Keploy cloud replay re-runs test sets that were recorded from a Kubernetes deployment. It works with both **Keploy Cloud** and a **self-hosted Keploy** setup — the command is the same either way.
155
+
156
+
### How authentication works
157
+
158
+
The CLI reads the `KEPLOY_API_KEY` environment variable automatically. You do not need to pass it as a flag or log in through a browser.
159
+
160
+
- Locally: `export KEPLOY_API_KEY="<your-api-key>"`before running the command.
161
+
- In CI: add the key as a masked CI/CD variable so the system injects it as an environment variable at runtime. Never hard-code it in your pipeline file.
162
+
163
+
In GitLab CI, go to **Settings → CI/CD → Variables**, add `KEPLOY_API_KEY` as a masked variable, and it is automatically available in all pipeline jobs as `$KEPLOY_API_KEY`.
164
+
165
+
### Steps
166
+
167
+
1. Add `KEPLOY_API_KEY` as a masked CI/CD variable (**Settings → CI/CD → Variables**).
168
+
2. Install the Enterprise Keploy binary on the runner.
169
+
3. Run `keploy cloud replay` with your application and cluster details.
170
+
171
+
> Cloud replay requires the Enterprise binary. Install it with `curl --silent -O -L https://keploy.io/ent/install.sh && source install.sh` — not the open-source `keploy.io/install.sh`.
172
+
173
+
### Example: GitLab CI
174
+
175
+
```yaml
176
+
keploy-cloud-replay:
177
+
stage: test
178
+
image: ubuntu:22.04
179
+
# KEPLOY_API_KEY is injected automatically from the masked CI/CD variable
Replace `<NAMESPACE>`, `<DEPLOYMENT>`, `<CLUSTER>`, and `<DELAY>` with your own values. Set `<DELAY>` to cover your application's startup time (in seconds).
192
+
193
+
> Because `KEPLOY_API_KEY` is defined as a masked variable in GitLab, it is already present in the job's environment — no `export` step is needed.
Copy file name to clipboardExpand all lines: versioned_docs/version-4.0.0/ci-cd/jenkins.md
+57Lines changed: 57 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,3 +171,60 @@ Testrun passed for testcase with id: "test-2"
171
171
_And... voila! You have successfully integrated keploy in Jenkins CI/CD pipeline 🌟_
172
172
173
173
Hope this helps you out, if you still have any questions, reach out to us .
174
+
175
+
---
176
+
177
+
## Running cloud replay in CI
178
+
179
+
Keploy cloud replay re-runs test sets that were recorded from a Kubernetes deployment. It works with both **Keploy Cloud** and a **self-hosted Keploy** setup — the command is the same either way.
180
+
181
+
### How authentication works
182
+
183
+
The CLI reads the `KEPLOY_API_KEY` environment variable automatically. You do not need to pass it as a flag or log in through a browser.
184
+
185
+
- Locally: `export KEPLOY_API_KEY="<your-api-key>"` before running the command.
186
+
- In CI: add the key to Jenkins' credentials store so the system injects it as an environment variable at runtime. Never hard-code it in your Jenkins pipeline file.
187
+
188
+
In Jenkins, go to **Manage Jenkins → Credentials**, add a **Secret text** credential with ID `keploy-api-key`, and use `withCredentials` in your pipeline to bind it to `KEPLOY_API_KEY`.
189
+
190
+
### Steps
191
+
192
+
1. Add `KEPLOY_API_KEY` as a **Secret text** credential in Jenkins (**Manage Jenkins → Credentials**).
193
+
2. Install the Enterprise Keploy binary on the agent.
194
+
3. Run `keploy cloud replay` with your application and cluster details.
195
+
196
+
> Cloud replay requires the Enterprise binary. Install it with `curl --silent -O -L https://keploy.io/ent/install.sh && source install.sh` — not the open-source `keploy.io/install.sh`.
Replace `<NAMESPACE>`, `<DEPLOYMENT>`, `<CLUSTER>`, and `<DELAY>` with your own values. Set `<DELAY>` to cover your application's startup time (in seconds).
229
+
230
+
>`withCredentials` binds the Jenkins secret to `KEPLOY_API_KEY` only for the duration of that stage — the CLI picks it up automatically.
Black-box testing is a software testing method where the tester evaluates the functionality of an application without having access to its internal code structure, algorithms, or implementation details. Instead, the tester interacts with the software through its user interface or exposed APIs, treating it as a "black box" whose internal workings are not visible or known.
@@ -30,7 +35,7 @@ The focus lies solely on examining the software's external behavior, inputs, out
30
35
31
36
This testing approach is essential for several reasons:
32
37
33
-
-**Independence from Internal Implementation:** Black-box testing allows testers to assess the software's functionality without needing knowledge of its internal workings. This independence ensures that the evaluation remains unbiased and realistic, as it mimics the perspective of end-users who are unaware of the software's internal structure.
38
+
-**Independence from Internal Implementation:**[Black-box testing](https://keploy.io/blog/community/black-box-testing-and-white-box-testing-a-complete-guide) allows testers to assess the software's functionality without needing knowledge of its internal workings. This independence ensures that the evaluation remains unbiased and realistic, as it mimics the perspective of end-users who are unaware of the software's internal structure.
34
39
35
40
-**User-Centric Perspective**: By concentrating on the software's external behavior, black-box testing aligns closely with the user's experience. It helps identify issues that impact user interactions, such as usability flaws, incorrect outputs, or unexpected behaviors, leading to a more user-centric approach to quality assurance.
Copy file name to clipboardExpand all lines: versioned_docs/version-4.0.0/running-keploy/best-practices-api-testing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ keywords:
21
21
22
22
## 🛠️ Best Practices in API Testing
23
23
24
-
API testing ensures the reliability, security, and performance of your application's backend services. To build robust, scalable test suites, here are the best practices you should follow:
24
+
[API testing](https://keploy.io/blog/community/what-is-api-testing) ensures the reliability, security, and performance of your application's backend services. To build robust, scalable test suites, here are the best practices you should follow:
0 commit comments