Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions e2e-testing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Made for the "AI and Test Management" session of the 7th Eclipse Tractus-X Commu
| --- | --- |
| New to all of this | [Why we are here](docs/story/why.md), then [A dataspace in five minutes](docs/story/dataspace.md) |
| A participant, before the workshop | [Before you come](docs/reference/prepare.md) |
| A participant, and the clock is running | [1 · Start here](docs/tutorial/01-start-here.md) |
| A participant, and the clock is running | [1 · Get your team ready](docs/tutorial/01-start-here.md) |
| Looking up a word | [Glossary](docs/reference/glossary.md) |
| Running the session | [For administrators](docs/admin/index.md) |

Expand All @@ -24,19 +24,19 @@ mock of the product, then the same test against the real product in the develope

| | Chapter | Minutes |
| --- | --- | --- |
| **Step 1 · Hello World** | | |
| 1 | [Start here](docs/tutorial/01-start-here.md) | 5 |
| 2 | [Hello, TestLab: your first test, by hand](docs/tutorial/02-hello-testlab.md) | 15 |
| **Step 2 · Your product's test** | | |
| 3 | [Your product and its mock](docs/tutorial/03-your-product.md) | 10 |
| 4 | [Choose your AI](docs/tutorial/04-choose-your-ai/index.md) | 5 |
| 5 | [Build the test with the assistant](docs/tutorial/05-build-the-test.md) | 15 |
| 6 | [Run it against your connectors](docs/tutorial/06-run-it.md) | 10 |
| **Step 3 · The real product** | | |
| 7 | [Add it to your repository](docs/tutorial/07-add-to-repository.md) | 10 |
| 8 | [Configure the developer toolbox](docs/tutorial/08-configure-the-toolbox.md) (optional) | 10 |
| 9 | [Link it and open the pull request](docs/tutorial/09-link-and-pull-request.md) | 5 |
| 10 | [What comes next](docs/tutorial/10-what-comes-next.md) | 5 |
| **Step 1 · Learn with a Hello World** | | |
| 1 | [Get your team ready](docs/tutorial/01-start-here.md) | 5 |
| 2 | [Write and run your first test, by hand](docs/tutorial/02-hello-testlab.md) | 15 |
| **Step 2 · Test your product against its mock** | | |
| 3 | [Connect an AI assistant](docs/tutorial/03-choose-your-ai/index.md) | 5 |
| 4 | [Get to know your product and its mock](docs/tutorial/04-your-product.md) | 10 |
| 5 | [Build your product's test with AI](docs/tutorial/05-build-the-test.md) | 15 |
| 6 | [Run your test against the mock](docs/tutorial/06-run-it.md) | 10 |
| **Step 3 · Run it against the real product** | | |
| 7 | [Add the test to your product's repository](docs/tutorial/07-add-to-repository.md) | 10 |
| 8 | [Shape the developer toolbox](docs/tutorial/08-configure-the-toolbox.md) (optional) | 10 |
| 9 | [Link the test and open the pull request](docs/tutorial/09-link-and-pull-request.md) | 5 |
| 10 | [Plan your next test](docs/tutorial/10-what-comes-next.md) | 5 |
| | | **about 80** |

## What is in this folder
Expand Down
10 changes: 5 additions & 5 deletions e2e-testing/docs/admin/run-of-show.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ chapters 5 and 6, and keep the two checkpoints.

| Minute | Teams are in | Host says | Floor looks for |
| --- | --- | --- | --- |
| 0 | [Step 1](../tutorial/step-1-hello-world/index.md) · [1 · Start here](../tutorial/01-start-here.md) | "Three steps: hello world, your product against its mock, the real product. Pick Driver, Navigator, Skeptic. Open a terminal." | Teams without Python 3.12: one laptop per team is enough |
| 5 | [2 · Hello, TestLab](../tutorial/02-hello-testlab.md) | "Write the first test yourself, on your laptop. No AI, no handout yet." | `testlab` not found; indentation. Teams with no working laptop: give them their IDE sign-in for the fallback |
| 0 | [Step 1](../tutorial/step-1-hello-world/index.md) · [1 · Get your team ready](../tutorial/01-start-here.md) | "Three steps: hello world, your product against its mock, the real product. Pick Driver, Navigator, Skeptic. Open a terminal." | Teams without Python 3.12: one laptop per team is enough |
| 5 | [2 · Write and run your first test](../tutorial/02-hello-testlab.md) | "Write the first test yourself, on your laptop. No AI, no handout yet." | `testlab` not found; indentation. Teams with no working laptop: give them their IDE sign-in for the fallback |
| 20 | **Handout** | "Show us green, then red, and you get your handout." | Each team shows green and red. Hand over the handout and, for a team with a box **M**, its `<team>.bruno-workshop.bru` |
| 22 | [Step 2](../tutorial/step-2-your-product/index.md) · [3 · Your product and its mock](../tutorial/03-your-product.md) | "Read your scenario. Press Fork now. Open your mock in Bruno and reset it." | Teams that cannot find a refusal: suggest "what was never offered is not found". Bruno with the `mock` environment selected instead of the workshop one |
| 30 | [4 · Choose your AI](../tutorial/04-choose-your-ai/index.md) | "Hands up when your assistant has answered." | Teams without a model: seat them with a team that has one |
| 22 | [Step 2](../tutorial/step-2-your-product/index.md) · [3 · Connect an AI assistant](../tutorial/03-choose-your-ai/index.md) | "Hands up when your assistant has answered." | Teams without a model: seat them with a team that has one |
| 27 | [4 · Get to know your product and its mock](../tutorial/04-your-product.md) | "Read your scenario. Press Fork now. Open your mock in Bruno and reset it." | Teams that cannot find a refusal: suggest "what was never offered is not found". Bruno with the `mock` environment selected instead of the workshop one |
| 35 | [5 · Build](../tutorial/05-build-the-test.md) | "Plan first. Do not let it write before you agree with the plan." | Teams whose compile stays red after three rounds |
| 50 | [6 · Run](../tutorial/06-run-it.md) | **Checkpoint:** "Who has a green compile? Reset your mock before every run." | Runs that wait: check the connectors at the Desk. A second run red: the mock was not reset |
| 60 | [Step 3](../tutorial/step-3-the-real-product/index.md) · [7 · Repository](../tutorial/07-add-to-repository.md) | **Checkpoint:** "Who has seen a green run? Who has seen a red one and knows why? Now the same test meets the real product." | Git push problems, missing sign-off |
Expand All @@ -59,7 +59,7 @@ chapters 5 and 6, and keep the two checkpoints.

| Behind at | Do |
| --- | --- |
| Minute 30, no API key but an AI coding assistant on the laptop | Send them down the [route C](../tutorial/04c-your-own-ai-tool.md). It needs Python and a `git clone`, so decide early. |
| Minute 30, no API key but an AI coding assistant on the laptop | Send them down the [route C](../tutorial/03c-your-own-ai-tool.md). It needs Python and a `git clone`, so decide early. |
| Minute 40, no assistant | Give them the [worked example](../reference/worked-example.md) to read and adapt by hand, or seat them with another team. |
| Minute 55, compile still red | Have them open the template again and change only the names. A small green test beats a large red one. |
| Minute 65, no green run | Skip the run. Go to chapter 7: the workflow will run the test in CI. |
Expand Down
30 changes: 15 additions & 15 deletions e2e-testing/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,25 @@ Today you write the first one for your product.

| Step | You do | You need | Done when |
| --- | --- | --- | --- |
| [**1 · Hello World**](tutorial/step-1-hello-world/index.md) | Write one small test by hand and run it with TestLab on your laptop. No AI. | This page and a laptop with Python 3.12+ | You show a facilitator your test green, then red. **You get your handout.** |
| [**2 · Your product's test**](tutorial/step-2-your-product/index.md) | Build a test for your team's product with an AI assistant, and run it in the Test Suite. | The handout | It runs green against your product's **mock**, a WireMock that answers like the real product |
| [**3 · The real product**](tutorial/step-3-the-real-product/index.md) | Put the same test in the product's repository; the developer toolbox runs it against the real product in GitHub Actions. | Your fork | Your pull request shows the check |
| [**1 · Learn with a Hello World**](tutorial/step-1-hello-world/index.md) | Write one small test by hand and run it with TestLab on your laptop. No AI. | This page and a laptop with Python 3.12+ | You show a facilitator your test green, then red. **You get your handout.** |
| [**2 · Test your product against its mock**](tutorial/step-2-your-product/index.md) | Build a test for your team's product with an AI assistant, and run it in the Test Suite. | The handout | It runs green against your product's **mock**, a WireMock that answers like the real product |
| [**3 · Run it against the real product**](tutorial/step-3-the-real-product/index.md) | Put the same test in the product's repository; the developer toolbox runs it against the real product in GitHub Actions. | Your fork | Your pull request shows the check |

### Every chapter

| Step | | Chapter | Minutes | At the end you have |
| --- | --- | --- | --- | --- |
| **1** | 1 | [Start here](tutorial/01-start-here.md) | 5 | The mission, your roles, GitHub open |
| | 2 | [Hello, TestLab: your first test, by hand](tutorial/02-hello-testlab.md) | 15 | A test you wrote yourself, green and red. Then your handout |
| **2** | 3 | [Your product and its mock](tutorial/03-your-product.md) | 10 | Your fork, your scenario, and the mock answering in Bruno |
| | 4 | [Choose your AI](tutorial/04-choose-your-ai/index.md): [A · API key](tutorial/04a-api-key.md), [B · local model](tutorial/04b-local-model.md) or [C · your own AI tool](tutorial/04c-your-own-ai-tool.md) | 5–10 | An assistant that answers |
| | | *Route C builds on your laptop and replaces chapter 5* | *20* | |
| | 5 | [Build the test with the assistant](tutorial/05-build-the-test.md) | 15 | A test project that compiles |
| | 6 | [Run it against your connectors](tutorial/06-run-it.md) | 10 | A green run against the mock, for the right reasons |
| **3** | 7 | [Add it to your repository](tutorial/07-add-to-repository.md) | 10 | The test and its workflow, committed |
| | 8 | [Configure the developer toolbox](tutorial/08-configure-the-toolbox.md) *(optional)* | 10 | A dataspace shaped like your product's: more partners, your own chart |
| | 9 | [Link it and open the pull request](tutorial/09-link-and-pull-request.md) | 5 | A pull request with a green check |
| | 10 | [What comes next](tutorial/10-what-comes-next.md) | 5 | A plan for the second test |
| **1** | 1 | [Get your team ready](tutorial/01-start-here.md) | 5 | The mission, your roles, GitHub open |
| | 2 | [Write and run your first test, by hand](tutorial/02-hello-testlab.md) | 15 | A test you wrote yourself, green and red. Then your handout |
| **2** | 3 | [Connect an AI assistant](tutorial/03-choose-your-ai/index.md): [A · API key](tutorial/03a-api-key.md), [B · local model](tutorial/03b-local-model.md) or [C · your own AI tool](tutorial/03c-your-own-ai-tool.md) | 5–10 | An assistant that answers |
| | 4 | [Get to know your product and its mock](tutorial/04-your-product.md) | 10 | Your fork, your scenario, and the mock answering in Bruno |
| | | *Route C connects your own AI tool and builds the test in one go: it replaces chapter 5* | *15* | |
| | 5 | [Build your product's test with AI](tutorial/05-build-the-test.md) | 15 | A test project that compiles |
| | 6 | [Run your test against the mock](tutorial/06-run-it.md) | 10 | A green run against the mock, for the right reasons |
| **3** | 7 | [Add the test to your product's repository](tutorial/07-add-to-repository.md) | 10 | The test and its workflow, committed |
| | 8 | [Shape the developer toolbox](tutorial/08-configure-the-toolbox.md) *(optional)* | 10 | A dataspace shaped like your product's: more partners, your own chart |
| | 9 | [Link the test and open the pull request](tutorial/09-link-and-pull-request.md) | 5 | A pull request with a green check |
| | 10 | [Plan your next test](tutorial/10-what-comes-next.md) | 5 | A plan for the second test |
| | | | **about 80** | |

The minutes are a guide for a team that has done it before. A first-time reader in our dry
Expand All @@ -70,7 +70,7 @@ run needed closer to 90: if your session is longer, spend the extra time on chap
| You are | Go to |
| --- | --- |
| A participant, ten minutes before the workshop | [Prerequisites](reference/prepare.md) |
| A participant, and the clock is running | [Step 1 · Hello World](tutorial/step-1-hello-world/index.md) |
| A participant, and the clock is running | [Step 1 · Learn with a Hello World](tutorial/step-1-hello-world/index.md) |
| Curious about the words on the slides | [Glossary](reference/glossary.md) and [the introduction](story/why.md) |
| An administrator of the session | [For administrators](admin/index.md) |

Expand Down
2 changes: 1 addition & 1 deletion e2e-testing/docs/reference/ai-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Your own assistant works straight in the open IDE: the IDE offers its tools over
No API key and nothing to install. Building on your laptop instead still works: see
[Set up your AI tool](ai-tool-setup.md).

The full route is chapter [4C · Your own AI tool](../tutorial/04c-your-own-ai-tool.md).
The full route is chapter [3C · Your own AI tool](../tutorial/03c-your-own-ai-tool.md).

## No AI at all?

Expand Down
6 changes: 3 additions & 3 deletions e2e-testing/docs/reference/ai-tool-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

How to give your own AI coding assistant the **agent kit**, so that it can write a
[TCK project](glossary.md#tck-project). You need this only for the
[route C](../tutorial/04c-your-own-ai-tool.md), when you build on
[route C](../tutorial/03c-your-own-ai-tool.md), when you build on
your laptop instead of with the assistant in the IDE.

[Home](../index.md) · Files: [`agent-kit`](https://github.com/eclipse-tractusx/tutorial-resources/tree/main/e2e-testing/agent-kit)
Expand All @@ -20,7 +20,7 @@ assistants read it. They differ only in **where** they look for it.

## Connect over MCP

The quickest way for [route C](../tutorial/04c-your-own-ai-tool.md): your assistant works
The quickest way for [route C](../tutorial/03c-your-own-ai-tool.md): your assistant works
in the open IDE. First press **Connect** in the card **Your own AI** of the IDE's assistant
panel and copy the link. Then:

Expand Down Expand Up @@ -136,7 +136,7 @@ ChatGPT, Claude or another chat in the browser. It works, with you as the hands.
testlab docs -o - > tck-steps.md
```

3. Send the prompt from the [route C](../tutorial/04c-your-own-ai-tool.md), step 5.
3. Send the prompt from the [route C](../tutorial/03c-your-own-ai-tool.md), step 5.
4. Save each file the chat gives you under `tck/e2e` in your repository.
5. Run `testlab validate tck/e2e/index.yaml` and paste the output back. Repeat until it
prints `OK`.
Expand Down
4 changes: 2 additions & 2 deletions e2e-testing/docs/reference/ide.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The IDE builds a [TCK project](glossary.md#tck-project) in the browser. Each test shows as
**blocks** and as **YAML**: change one, the other follows. It also compiles and runs.

[Home](../index.md) · [2 · Hello, TestLab](../tutorial/02-hello-testlab.md) · [Syntax cheat sheet](syntax.md)
[Home](../index.md) · [2 · Write and run your first test](../tutorial/02-hello-testlab.md) · [Syntax cheat sheet](syntax.md)

## The screen

Expand Down Expand Up @@ -51,7 +51,7 @@ The result shows in the top bar (**PASSED** or **FAILED**) and in the console.
## The assistant

**Ask AI** opens the assistant. Your key goes from your browser straight to the provider.
[Chapter 4](../tutorial/04-choose-your-ai/index.md) connects it.
[Chapter 3](../tutorial/03-choose-your-ai/index.md) connects it.

![The assistant panel](../assets/screenshots/ide-ask-ai.png)

Expand Down
11 changes: 7 additions & 4 deletions e2e-testing/docs/reference/prepare.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ No model at all? Sit with a team that has one. You can also write the YAML by ha
[template](https://github.com/eclipse-tractusx/tutorial-resources/tree/main/e2e-testing/template)
and the [worked example](worked-example.md) show how.

## 5 · Optional: the command line
## 5 · TestLab on the command line

You do not need it in the workshop. The IDE compiles and runs for you, and GitHub Actions
does the same in CI. If you like a terminal, with Python 3.12 or newer:
Step 1, the Hello World, runs on your laptop with TestLab on the command line: the same
tool that runs your test in GitHub Actions in step 3. Install it once, with Python 3.12 or
newer, and every later chapter uses the same install. One laptop per team is enough; a team
with none can do step 1 in the browser IDE instead.

```bash
pip install "tractusx-testlab==1.0.0a25"
Expand All @@ -73,11 +75,12 @@ runs on the Eclipse Tractus-X SDK (`tractusx-sdk`) 0.8.5, which pip installs wit
- [ ] Browser is current.
- [ ] ECA is signed, and `git config user.email` shows the same email.
- [ ] `git push` works from this laptop.
- [ ] `testlab --help` answers on at least one laptop of your team.
- [ ] You have a key or a local model for the assistant.

---

[Home](../index.md) · [Get started →](../tutorial/01-start-here.md)
[Home](../index.md) · [Get started →](../tutorial/step-1-hello-world/index.md)

## NOTICE

Expand Down
2 changes: 1 addition & 1 deletion e2e-testing/docs/reference/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The parts of a TCK project on one page. Full reference:
[TestLab TCK syntax](https://eclipse-tractusx.github.io/tractusx-testlab/tck-syntax/).

[Home](../index.md) · [2 · Hello, TestLab](../tutorial/02-hello-testlab.md)
[Home](../index.md) · [2 · Write and run your first test](../tutorial/02-hello-testlab.md)

## The folder

Expand Down
2 changes: 1 addition & 1 deletion e2e-testing/docs/reference/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Find the symptom, try the fix, raise your hand if it does not help.
| It says the key is not valid | Copy the key again, without spaces. A ChatGPT or Claude **subscription** is not an API key. |
| A local model cannot be reached | The server must allow the IDE's address as an origin (CORS), and the address must end in `/v1`. |
| A local model answers as if it never heard of TCKs | Switch on **Small model mode** in the assistant's settings. Without it, the IDE sends about 29,000 tokens before your first question, and the model needs 64,000 tokens of context. |
| A local model "thinks" for minutes and never answers | Switch on **Small model mode**: the first answer then takes about 20 seconds instead of 7 minutes. On a laptop without a GPU it can still take a minute or more. Then use a hosted model, or the [own AI tool](../tutorial/04c-your-own-ai-tool.md) route. |
| A local model "thinks" for minutes and never answers | Switch on **Small model mode**: the first answer then takes about 20 seconds instead of 7 minutes. On a laptop without a GPU it can still take a minute or more. Then use a hosted model, or the [own AI tool](../tutorial/03c-your-own-ai-tool.md) route. |
| A local model changes the wrong thing | Ask for one change per message, and name the file and the step, for example `In tests/my_test.yaml add a check to the step find_offer: datasets is not null`. Undo the wrong change above the message box. |
| It invents steps | Say: `Use only steps from the block catalog.` Smaller models need the reminder. |
| It stops halfway | Say: `Continue.` Or ask for one test at a time. |
Expand Down
Loading
Loading