diff --git a/e2e-testing/README.md b/e2e-testing/README.md index 8cc3ba32..645a2cc2 100644 --- a/e2e-testing/README.md +++ b/e2e-testing/README.md @@ -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) | @@ -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 diff --git a/e2e-testing/docs/admin/run-of-show.md b/e2e-testing/docs/admin/run-of-show.md index b7e52dd2..7ae76c3b 100644 --- a/e2e-testing/docs/admin/run-of-show.md +++ b/e2e-testing/docs/admin/run-of-show.md @@ -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 `.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 | @@ -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. | diff --git a/e2e-testing/docs/index.md b/e2e-testing/docs/index.md index dbada4fe..f8632760 100644 --- a/e2e-testing/docs/index.md +++ b/e2e-testing/docs/index.md @@ -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 @@ -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) | diff --git a/e2e-testing/docs/reference/ai-options.md b/e2e-testing/docs/reference/ai-options.md index 96f9ac59..551b3dfc 100644 --- a/e2e-testing/docs/reference/ai-options.md +++ b/e2e-testing/docs/reference/ai-options.md @@ -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? diff --git a/e2e-testing/docs/reference/ai-tool-setup.md b/e2e-testing/docs/reference/ai-tool-setup.md index b5e7c7ad..8817c34f 100644 --- a/e2e-testing/docs/reference/ai-tool-setup.md +++ b/e2e-testing/docs/reference/ai-tool-setup.md @@ -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) @@ -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: @@ -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`. diff --git a/e2e-testing/docs/reference/ide.md b/e2e-testing/docs/reference/ide.md index 44dc0b08..a7e7e3ac 100644 --- a/e2e-testing/docs/reference/ide.md +++ b/e2e-testing/docs/reference/ide.md @@ -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 @@ -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) diff --git a/e2e-testing/docs/reference/prepare.md b/e2e-testing/docs/reference/prepare.md index e3011495..f72b9b4e 100644 --- a/e2e-testing/docs/reference/prepare.md +++ b/e2e-testing/docs/reference/prepare.md @@ -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" @@ -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 diff --git a/e2e-testing/docs/reference/syntax.md b/e2e-testing/docs/reference/syntax.md index 9ec43297..b815beda 100644 --- a/e2e-testing/docs/reference/syntax.md +++ b/e2e-testing/docs/reference/syntax.md @@ -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 diff --git a/e2e-testing/docs/reference/troubleshooting.md b/e2e-testing/docs/reference/troubleshooting.md index 3eb4c3ca..3591c75f 100644 --- a/e2e-testing/docs/reference/troubleshooting.md +++ b/e2e-testing/docs/reference/troubleshooting.md @@ -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. | diff --git a/e2e-testing/docs/tutorial/01-start-here.md b/e2e-testing/docs/tutorial/01-start-here.md index 0f3d7337..78321823 100644 --- a/e2e-testing/docs/tutorial/01-start-here.md +++ b/e2e-testing/docs/tutorial/01-start-here.md @@ -1,6 +1,6 @@ -Step 1 of 3 · Hello World · chapter 1 of 10 · ● ○ ○ ○ ○ ○ ○ ○ ○ ○ +Step 1 of 3 · Learn with a Hello World · chapter 1 of 10 · ● ○ ○ ○ ○ ○ ○ ○ ○ ○ -# 1 · Start here +# 1 · Get your team ready > **Goal:** you know the mission and the three steps, and your team is ready to write its > first test. @@ -18,12 +18,12 @@ You win when your pull request shows a green check. --8<-- "snippets/three-steps.md" -1. **Hello World.** You write one small test by hand and run it on your laptop. No AI, and +1. **Learn with a Hello World.** You write one small test by hand and run it on your laptop. No AI, and no product yet: you learn what a test is made of. -2. **Your product's test.** When you show a facilitator your hello test, you get your +2. **Test your product against its mock.** When you show a facilitator your hello test, you get your team's **handout** with your product. An AI assistant builds the test with you, and you run it against a **mock** of your product: a stand-in that answers exactly like it. -3. **The real product.** The same test goes into the product's repository. There it runs +3. **Run it against the real product.** The same test goes into the product's repository. There it runs against the real product, in GitHub Actions, and you open a pull request. ## Steps @@ -60,7 +60,7 @@ comes at the end of chapter 2. --- -[← Step 1 · Hello World](step-1-hello-world/index.md) · [Home](../index.md) · [Next: 2 · Hello, TestLab →](02-hello-testlab.md) +[← Step 1 · Learn with a Hello World](step-1-hello-world/index.md) · [Home](../index.md) · [Next: 2 · Write and run your first test →](02-hello-testlab.md) ## NOTICE diff --git a/e2e-testing/docs/tutorial/02-hello-testlab.md b/e2e-testing/docs/tutorial/02-hello-testlab.md index db58f984..e9e49454 100644 --- a/e2e-testing/docs/tutorial/02-hello-testlab.md +++ b/e2e-testing/docs/tutorial/02-hello-testlab.md @@ -1,6 +1,6 @@ -Step 1 of 3 · Hello World · chapter 2 of 10 · ● ● ○ ○ ○ ○ ○ ○ ○ ○ +Step 1 of 3 · Learn with a Hello World · chapter 2 of 10 · ● ● ○ ○ ○ ○ ○ ○ ○ ○ -# 2 · Hello, TestLab: your first test, by hand +# 2 · Write and run your first test, by hand > **Goal:** write one small test yourself, run it on your laptop, see it pass, then see it > fail. No AI, and no handout yet: you get it when you show your test. @@ -52,15 +52,26 @@ Do it **on your laptop**, with TestLab on the command line. That is the tool tha test in GitHub Actions in step 3, so you see now what it does there. The browser IDE is a fallback for a laptop that cannot install TestLab. +[Download hello-start.zip](../downloads/hello-start.zip){ .md-button .md-button--primary download="hello-start.zip" } + +The start project: an `index.yaml` with the address of the hello service as a variable, and +no tests yet. From a terminal: + +```bash +curl -LO https://eclipse-tractusx.github.io/tutorial-resources/e2e-testing/downloads/hello-start.zip +``` + === "On your laptop (recommended)" - 1. Install TestLab (Python 3.12 or newer): + 1. Install TestLab (Python 3.12 or newer). Already done in the + [prerequisites](../reference/prepare.md#5-testlab-on-the-command-line), and + `testlab --help` answers? Skip this. You install it once for the whole tutorial: ```bash pip install "tractusx-testlab==1.0.0a25" ``` - 2. Unpack [`hello-start.zip`](../downloads/hello-start.zip) into a folder `hello` and + 2. Unpack the [`hello-start.zip`](../downloads/hello-start.zip) you downloaded above into a folder `hello` and open it in your editor. VS Code with the extension **YAML** by Red Hat gives you autocomplete; any editor works. 3. In `index.yaml`, set `service_url` to the address of the hello service above. @@ -163,7 +174,7 @@ connectors and, for most products, your product's mock. That is the start of ste --- -[← 1 · Start here](01-start-here.md) · [Home](../index.md) · [Next: Step 2 · Your product's test →](step-2-your-product/index.md) +[← 1 · Get your team ready](01-start-here.md) · [Home](../index.md) · [Next: Step 2 · Test your product against its mock →](step-2-your-product/index.md) ## NOTICE diff --git a/e2e-testing/docs/tutorial/04-choose-your-ai/index.md b/e2e-testing/docs/tutorial/03-choose-your-ai/index.md similarity index 80% rename from e2e-testing/docs/tutorial/04-choose-your-ai/index.md rename to e2e-testing/docs/tutorial/03-choose-your-ai/index.md index ac381346..ddf57f87 100644 --- a/e2e-testing/docs/tutorial/04-choose-your-ai/index.md +++ b/e2e-testing/docs/tutorial/03-choose-your-ai/index.md @@ -1,6 +1,6 @@ -Step 2 of 3 · Your product's test · chapter 4 of 10 · ● ● ● ● ○ ○ ○ ○ ○ ○ +Step 2 of 3 · Test your product against its mock · chapter 3 of 10 · ● ● ● ○ ○ ○ ○ ○ ○ ○ -# 4 · Choose your AI +# 3 · Connect an AI assistant > **Goal:** pick the AI help that fits your laptop and what you brought. > **Time:** 1 minute @@ -20,7 +20,7 @@ an AI coding tool, otherwise **B**. *You need:* the key. *Time:* 5 + 15 minutes. - [Take route A →](../04a-api-key.md) + [Take route A →](../03a-api-key.md) - **B · A local model in the IDE** @@ -31,9 +31,9 @@ an AI coding tool, otherwise **B**. *You need:* Ollama and 8 GB of RAM or more. *Time:* 10 + 20 minutes. - [Take route B →](../04b-local-model.md) + [Take route B →](../03b-local-model.md) -- **C · Your own AI tool, over MCP** +- **C · Connect your own AI tool over MCP** --- @@ -42,7 +42,7 @@ an AI coding tool, otherwise **B**. *You need:* your tool, nothing to install. *Time:* 15 minutes. - [Take route C →](../04c-your-own-ai-tool.md) + [Take route C →](../03c-your-own-ai-tool.md) @@ -63,7 +63,7 @@ The details, sizes and limits of each route: [Choose your AI option](../../refer --- -[← 3 · Your product and its mock](../03-your-product.md) · [Home](../../index.md) +[← Step 2 · Test your product against its mock](../step-2-your-product/index.md) · [Home](../../index.md) ## NOTICE diff --git a/e2e-testing/docs/tutorial/04a-api-key.md b/e2e-testing/docs/tutorial/03a-api-key.md similarity index 85% rename from e2e-testing/docs/tutorial/04a-api-key.md rename to e2e-testing/docs/tutorial/03a-api-key.md index daa33fc0..cde52cc2 100644 --- a/e2e-testing/docs/tutorial/04a-api-key.md +++ b/e2e-testing/docs/tutorial/03a-api-key.md @@ -1,6 +1,6 @@ -Step 2 of 3 · Your product's test · chapter 4, route A · ● ● ● ● ○ ○ ○ ○ ○ +Step 2 of 3 · Test your product against its mock · chapter 3, route A · ● ● ● ○ ○ ○ ○ ○ ○ ○ -# 4A · Connect your API key in the IDE +# 3A · Connect your API key in the IDE > **Goal:** the assistant in the IDE answers you. > **Time:** 5 minutes @@ -45,14 +45,14 @@ After step 5, the assistant answers with a short description of the two tests. > - **The key is refused:** copy it again without spaces. A ChatGPT or Claude subscription > is not an API key. > - **No API key, but a subscription to an AI coding assistant:** take -> [route C](04c-your-own-ai-tool.md). You build on your laptop with +> [route C](03c-your-own-ai-tool.md). You build on your laptop with > your own tool and open the result here. > - **Nobody in the team has a model:** join a team that has one, or build by hand from the > [worked example](../reference/worked-example.md). --- -[← 4 · Choose your AI](04-choose-your-ai/index.md) · [Home](../index.md) · [Next: 5 · Build the test with the assistant →](05-build-the-test.md) +[← 3 · Connect an AI assistant](03-choose-your-ai/index.md) · [Home](../index.md) · [Next: 4 · Get to know your product and its mock →](04-your-product.md) ## NOTICE diff --git a/e2e-testing/docs/tutorial/04b-local-model.md b/e2e-testing/docs/tutorial/03b-local-model.md similarity index 90% rename from e2e-testing/docs/tutorial/04b-local-model.md rename to e2e-testing/docs/tutorial/03b-local-model.md index 95ade72f..df1477f7 100644 --- a/e2e-testing/docs/tutorial/04b-local-model.md +++ b/e2e-testing/docs/tutorial/03b-local-model.md @@ -1,6 +1,6 @@ -Step 2 of 3 · Your product's test · chapter 4, route B · ● ● ● ● ○ ○ ○ ○ ○ +Step 2 of 3 · Test your product against its mock · chapter 3, route B · ● ● ● ○ ○ ○ ○ ○ ○ ○ -# 4B · Connect a local model +# 3B · Connect a local model > **Goal:** a model on your own laptop answers you in the IDE. > **Time:** 10 minutes, plus the download @@ -75,11 +75,11 @@ You will use these in chapter 5: > - **It answers but never changes a file:** you are in **Ask** or **Plan**. Switch to > **Agent**. > - **It keeps getting it wrong:** ask for a smaller change, or switch to route -> [A](04a-api-key.md) or [C](04c-your-own-ai-tool.md). +> [A](03a-api-key.md) or [C](03c-your-own-ai-tool.md). --- -[← 4 · Choose your AI](04-choose-your-ai/index.md) · [Home](../index.md) · [Next: 5 · Build the test with the assistant →](05-build-the-test.md) +[← 3 · Connect an AI assistant](03-choose-your-ai/index.md) · [Home](../index.md) · [Next: 4 · Get to know your product and its mock →](04-your-product.md) ## NOTICE diff --git a/e2e-testing/docs/tutorial/04c-your-own-ai-tool.md b/e2e-testing/docs/tutorial/03c-your-own-ai-tool.md similarity index 80% rename from e2e-testing/docs/tutorial/04c-your-own-ai-tool.md rename to e2e-testing/docs/tutorial/03c-your-own-ai-tool.md index 3887eb3b..14e819b8 100644 --- a/e2e-testing/docs/tutorial/04c-your-own-ai-tool.md +++ b/e2e-testing/docs/tutorial/03c-your-own-ai-tool.md @@ -1,10 +1,15 @@ -Step 2 of 3 · Your product's test · chapter 4, route C · ● ● ● ● ○ ○ ○ ○ ○ +Step 2 of 3 · Test your product against its mock · chapter 3, route C · ● ● ● ○ ○ ○ ○ ○ ○ ○ -# 4C · Build with your own AI tool +# 3C · Build with your own AI tool > **Goal:** a test project for your product that compiles, built in the IDE by the AI > assistant you already have. -> **Time:** 15 minutes. It replaces chapters 4 and 5. +> **Time:** 15 minutes. It replaces chapter 5. + +> [!NOTE] +> **Do chapter 4 first.** This route builds your test right away, so it needs your scenario +> and your fork. Do [4 · Get to know your product and its mock](04-your-product.md), then +> come back here. Take this route when you have **no API key** for the assistant in the IDE, but you do have an assistant of your own that speaks [MCP](../reference/glossary.md#mcp): Claude (desktop @@ -14,14 +19,14 @@ every step it takes. ## Steps -1. Install the [TestLab](../reference/glossary.md#testlab) command line. Your assistant - uses it to check its own work: +1. Check that the [TestLab](../reference/glossary.md#testlab) command line you installed + in chapter 2 still answers. Your assistant uses it to check its own work: ```bash - pip install "tractusx-testlab==1.0.0a25" + testlab --help ``` -2. Clone the [fork](../reference/glossary.md#fork-and-pull-request) you made in chapter 3 +2. Clone the [fork](../reference/glossary.md#fork-and-pull-request) you made in chapter 4 and start a branch: ```bash @@ -86,12 +91,12 @@ In the IDE: your tests in the explorer on the left and the message **Compilation > and press **Connect** again. > - **A call shows a red mark "changed after this request started":** you edited the > same file meanwhile. Ask your assistant to read the file again and retry. -> - **Your assistant cannot add MCP servers:** take [route A](04a-api-key.md), or build +> - **Your assistant cannot add MCP servers:** take [route A](03a-api-key.md), or build > on your laptop as in [Set up your AI tool](../reference/ai-tool-setup.md). --- -[← 4 · Choose your AI](04-choose-your-ai/index.md) · [Home](../index.md) · [Next: 6 · Run it against your connectors →](06-run-it.md) +[← 3 · Connect an AI assistant](03-choose-your-ai/index.md) · [Home](../index.md) · [Next: 6 · Run your test against the mock →](06-run-it.md) ## NOTICE diff --git a/e2e-testing/docs/tutorial/03-your-product.md b/e2e-testing/docs/tutorial/04-your-product.md similarity index 77% rename from e2e-testing/docs/tutorial/03-your-product.md rename to e2e-testing/docs/tutorial/04-your-product.md index af4b1273..aaba1d94 100644 --- a/e2e-testing/docs/tutorial/03-your-product.md +++ b/e2e-testing/docs/tutorial/04-your-product.md @@ -1,35 +1,17 @@ -Step 2 of 3 · Your product's test · chapter 3 of 10 · ● ● ● ○ ○ ○ ○ ○ ○ ○ +Step 2 of 3 · Test your product against its mock · chapter 4 of 10 · ● ● ● ● ○ ○ ○ ○ ○ ○ -# 3 · Your product and its mock +# 4 · Get to know your product and its mock > **Goal:** you know your product, the scenario your test will prove, your two connectors, > and the mock your test talks to in this step. > **Time:** 10 minutes -## Your handout - -You got it at the end of chapter 2. Each box has one job: - -| Box | What it holds | -| --- | --- | -| **A** | Your product, its repository and a suggested scenario | -| **B** | Your sign-in to the Test Suite and its IDE, where you build the test | -| **C** | Your side: the connector of the company that runs your product | -| **D** | The partner side: the connector your test runs from | -| **E** | Help: who to ask, and where | -| **M** | Your product's mock: its address, its Bruno collection and your Bruno environment. Most products have one; the four that run for real in the workshop do not | - -Raise your hand if a box is empty. Do not go on without it. - -> [!NOTE] -> **At the Tractus-X Community Days 2026, ARENA2036.** The IDE is the workshop's Test Suite, -> . Sign in with the account in box **B**: the -> first sign-in asks you to accept the privacy policy. One account per team; every -> teammate may sign in with it. +On route C? When you are done here, go back to +[3C · Build with your own AI tool](03c-your-own-ai-tool.md): it replaces chapter 5. ## Steps -1. Open your product's repository (box **A**) and read in its README what the product does. +1. Open your product's repository (box **A** of your handout) and read in its README what the product does. 2. Press **Fork** at the top right of the repository page, then **Create fork**. Leave the tab open; you need the [fork](../reference/glossary.md#fork-and-pull-request) in chapter 7. @@ -110,7 +92,7 @@ Their finished project is the [worked example](../reference/worked-example.md). --- -[← Step 2 · Your product's test](step-2-your-product/index.md) · [Home](../index.md) · [Next: 4 · Choose your AI →](04-choose-your-ai/index.md) +[← 3 · Connect an AI assistant](03-choose-your-ai/index.md) · [Home](../index.md) · [Next: 5 · Build your product's test with AI →](05-build-the-test.md) ## NOTICE diff --git a/e2e-testing/docs/tutorial/05-build-the-test.md b/e2e-testing/docs/tutorial/05-build-the-test.md index e84238b9..0fce8343 100644 --- a/e2e-testing/docs/tutorial/05-build-the-test.md +++ b/e2e-testing/docs/tutorial/05-build-the-test.md @@ -1,6 +1,6 @@ -Step 2 of 3 · Your product's test · chapter 5 of 10 · ● ● ● ● ● ○ ○ ○ ○ ○ +Step 2 of 3 · Test your product against its mock · chapter 5 of 10 · ● ● ● ● ● ○ ○ ○ ○ ○ -# 5 · Build the test with the assistant +# 5 · Build your product's test with AI > **Goal:** a test project for your product that compiles. > **Time:** 15 minutes @@ -78,7 +78,7 @@ Read them in the [worked example](../reference/worked-example.md). --- -[← 4 · Choose your AI](04-choose-your-ai/index.md) · [Home](../index.md) · [Next: 6 · Run it against your connectors →](06-run-it.md) +[← 4 · Get to know your product and its mock](04-your-product.md) · [Home](../index.md) · [Next: 6 · Run your test against the mock →](06-run-it.md) ## NOTICE diff --git a/e2e-testing/docs/tutorial/06-run-it.md b/e2e-testing/docs/tutorial/06-run-it.md index 8c96f7f0..86727bdc 100644 --- a/e2e-testing/docs/tutorial/06-run-it.md +++ b/e2e-testing/docs/tutorial/06-run-it.md @@ -1,6 +1,6 @@ -Step 2 of 3 · Your product's test · chapter 6 of 10 · ● ● ● ● ● ● ○ ○ ○ ○ +Step 2 of 3 · Test your product against its mock · chapter 6 of 10 · ● ● ● ● ● ● ○ ○ ○ ○ -# 6 · Run it against your connectors +# 6 · Run your test against the mock > **Goal:** a green run, and one red run that you caused on purpose. > **Time:** 10 minutes @@ -88,7 +88,7 @@ The second step, **Infrastructure**, looks like this when your components are re --- -[← 5 · Build the test with the assistant](05-build-the-test.md) · [Home](../index.md) · [Next: Step 3 · The real product →](step-3-the-real-product/index.md) +[← 5 · Build your product's test with AI](05-build-the-test.md) · [Home](../index.md) · [Next: Step 3 · Run it against the real product →](step-3-the-real-product/index.md) ## NOTICE diff --git a/e2e-testing/docs/tutorial/07-add-to-repository.md b/e2e-testing/docs/tutorial/07-add-to-repository.md index 9b2c3221..426e99b7 100644 --- a/e2e-testing/docs/tutorial/07-add-to-repository.md +++ b/e2e-testing/docs/tutorial/07-add-to-repository.md @@ -1,6 +1,6 @@ -Step 3 of 3 · The real product · chapter 7 of 10 · ● ● ● ● ● ● ● ○ ○ ○ +Step 3 of 3 · Run it against the real product · chapter 7 of 10 · ● ● ● ● ● ● ● ○ ○ ○ -# 7 · Add it to your repository +# 7 · Add the test to your product's repository > **Goal:** your test and the workflow that runs it are committed on a branch of your fork. > **Time:** 10 minutes @@ -15,7 +15,7 @@ nothing in the tests, only the addresses in their variables. In the dialog, press **Export ZIP**. The file lands in your downloads folder, named after your project. 2. Open a terminal and clone the [fork](../reference/glossary.md#fork-and-pull-request) - you made in chapter 3: + you made in chapter 4: ```bash git clone https://github.com//.git @@ -92,7 +92,7 @@ And this is all the workflow is: a few lines that call a --- -[← Step 3 · The real product](step-3-the-real-product/index.md) · [Home](../index.md) · [Next: 8 · Configure the developer toolbox →](08-configure-the-toolbox.md) +[← Step 3 · Run it against the real product](step-3-the-real-product/index.md) · [Home](../index.md) · [Next: 8 · Shape the developer toolbox →](08-configure-the-toolbox.md) ## NOTICE diff --git a/e2e-testing/docs/tutorial/08-configure-the-toolbox.md b/e2e-testing/docs/tutorial/08-configure-the-toolbox.md index e85f6dc0..d990be63 100644 --- a/e2e-testing/docs/tutorial/08-configure-the-toolbox.md +++ b/e2e-testing/docs/tutorial/08-configure-the-toolbox.md @@ -1,6 +1,6 @@ -Step 3 of 3 · The real product · chapter 8 of 10 · ● ● ● ● ● ● ● ● ○ ○ +Step 3 of 3 · Run it against the real product · chapter 8 of 10 · ● ● ● ● ● ● ● ● ○ ○ -# 8 · Configure the developer toolbox +# 8 · Shape the developer toolbox > **Goal:** the dataspace your workflow starts has the participants, credentials and charts > your test needs. @@ -135,7 +135,7 @@ tx-toolbox down # removes it again --- -[← 7 · Add it to your repository](07-add-to-repository.md) · [Home](../index.md) · [Next: 9 · Link it and open the pull request →](09-link-and-pull-request.md) +[← 7 · Add the test to your product's repository](07-add-to-repository.md) · [Home](../index.md) · [Next: 9 · Link the test and open the pull request →](09-link-and-pull-request.md) ## NOTICE diff --git a/e2e-testing/docs/tutorial/09-link-and-pull-request.md b/e2e-testing/docs/tutorial/09-link-and-pull-request.md index bb2dc4fd..6c6076c4 100644 --- a/e2e-testing/docs/tutorial/09-link-and-pull-request.md +++ b/e2e-testing/docs/tutorial/09-link-and-pull-request.md @@ -1,6 +1,6 @@ -Step 3 of 3 · The real product · chapter 9 of 10 · ● ● ● ● ● ● ● ● ● ○ +Step 3 of 3 · Run it against the real product · chapter 9 of 10 · ● ● ● ● ● ● ● ● ● ○ -# 9 · Link it and open the pull request +# 9 · Link the test and open the pull request > **Goal:** a draft pull request in your product's repository, with the test linked in `.tractusx`. > **Time:** 5 minutes @@ -67,7 +67,7 @@ RESULT: PASS | 3 passed 0 failed 0 skipped --- -[← 8 · Configure the developer toolbox](08-configure-the-toolbox.md) · [Home](../index.md) · [Next: 10 · What comes next →](10-what-comes-next.md) +[← 8 · Shape the developer toolbox](08-configure-the-toolbox.md) · [Home](../index.md) · [Next: 10 · Plan your next test →](10-what-comes-next.md) ## NOTICE diff --git a/e2e-testing/docs/tutorial/10-what-comes-next.md b/e2e-testing/docs/tutorial/10-what-comes-next.md index 84a247ce..a49db5c8 100644 --- a/e2e-testing/docs/tutorial/10-what-comes-next.md +++ b/e2e-testing/docs/tutorial/10-what-comes-next.md @@ -1,6 +1,6 @@ -Step 3 of 3 · The real product · chapter 10 of 10 · ● ● ● ● ● ● ● ● ● ● +Step 3 of 3 · Run it against the real product · chapter 10 of 10 · ● ● ● ● ● ● ● ● ● ● -# 10 · What comes next +# 10 · Plan your next test > **Goal:** you know what you built, and what your second test will be. > **Time:** 5 minutes @@ -58,7 +58,7 @@ Twenty-nine products are in the catalog. Count how many have a pull request toni --- -[← 9 · Link it and open the pull request](09-link-and-pull-request.md) · [Home](../index.md) +[← 9 · Link the test and open the pull request](09-link-and-pull-request.md) · [Home](../index.md) ## NOTICE diff --git a/e2e-testing/docs/tutorial/step-1-hello-world/index.md b/e2e-testing/docs/tutorial/step-1-hello-world/index.md index 1a011590..bc6eb56c 100644 --- a/e2e-testing/docs/tutorial/step-1-hello-world/index.md +++ b/e2e-testing/docs/tutorial/step-1-hello-world/index.md @@ -1,6 +1,6 @@ -Step 1 of 3 · Hello World · chapters 1 and 2 +Step 1 of 3 · Learn with a Hello World · chapters 1 and 2 -# Step 1 · Hello World +# Step 1 · Learn with a Hello World > **Goal:** you have written one small test by hand, run it on your laptop, and seen it pass > and fail. No AI, and no handout yet. @@ -19,8 +19,8 @@ same tool that runs your test in GitHub Actions in step 3. | Chapter | You do | Minutes | | --- | --- | --- | -| [1 · Start here](../01-start-here.md) | Read the mission, pick roles, sign in to GitHub | 5 | -| [2 · Hello, TestLab](../02-hello-testlab.md) | Install TestLab, write the hello test, run it green, then red | 15 | +| [1 · Get your team ready](../01-start-here.md) | Read the mission, pick roles, sign in to GitHub | 5 | +| [2 · Write and run your first test](../02-hello-testlab.md) | Install TestLab, write the hello test, run it green, then red | 15 | ## Done when @@ -34,7 +34,7 @@ then green again. You get your team's **handout** for step 2. --- -[Home](../../index.md) · [Next: 1 · Start here →](../01-start-here.md) +[Home](../../index.md) · [Next: 1 · Get your team ready →](../01-start-here.md) ## NOTICE diff --git a/e2e-testing/docs/tutorial/step-2-your-product/index.md b/e2e-testing/docs/tutorial/step-2-your-product/index.md index e36e23c0..ea16da63 100644 --- a/e2e-testing/docs/tutorial/step-2-your-product/index.md +++ b/e2e-testing/docs/tutorial/step-2-your-product/index.md @@ -1,6 +1,6 @@ -Step 2 of 3 · Your product's test · chapters 3 to 6 +Step 2 of 3 · Test your product against its mock · chapters 3 to 6 -# Step 2 · Your product's test, against its mock +# Step 2 · Test your product against its mock > **Goal:** a test for your team's product that compiles and runs green, built with an AI > assistant. @@ -10,9 +10,8 @@ ## What changes from step 1 -- **You now have the handout.** It names your product (box **A**), your sign-in to the - Test Suite IDE (box **B**), your connectors (boxes **C** and **D**) and, for most - products, your product's mock (box **M**). +- **You now have the handout.** Everything you need from here on is on it, in the boxes + below. - **An AI assistant writes the test.** You say what must be proven; it writes how. The Skeptic on your team reads every line. - **You do not test the real product yet.** Most products need more than a workshop can run. @@ -24,14 +23,35 @@ Four products run for real in the workshop and have no box **M**: the Tractus-X Digital Twin Registry, the IdentityHub and the BDRS. Their teams test the real thing already in this step. +## Your handout + +You got it at the end of chapter 2. Each box has one job: + +| Box | What it holds | +| --- | --- | +| **A** | Your product, its repository and a suggested scenario | +| **B** | Your sign-in to the Test Suite and its IDE, where you build the test | +| **C** | Your side: the connector of the company that runs your product | +| **D** | The partner side: the connector your test runs from | +| **E** | Help: who to ask, and where | +| **M** | Your product's mock: its address, its Bruno collection and your Bruno environment. Most products have one; the four that run for real in the workshop do not | + +Raise your hand if a box is empty. Do not go on without it. + +> [!NOTE] +> **At the Tractus-X Community Days 2026, ARENA2036.** The IDE is the workshop's Test Suite, +> . Sign in with the account in box **B**: the +> first sign-in asks you to accept the privacy policy. One account per team; every +> teammate may sign in with it. + ## What you do | Chapter | You do | Minutes | | --- | --- | --- | -| [3 · Your product and its mock](../03-your-product.md) | Read your scenario, fork the repository, meet the mock in Bruno | 10 | -| [4 · Choose your AI](../04-choose-your-ai/index.md) | Connect an assistant: API key, local model, or your own AI tool | 5–10 | -| [5 · Build the test with the assistant](../05-build-the-test.md) | Plan, build and compile your test | 15 | -| [6 · Run it against your connectors](../06-run-it.md) | Run it against the mock: green, then red on purpose | 10 | +| [3 · Connect an AI assistant](../03-choose-your-ai/index.md) | Connect an assistant in the IDE: API key, local model, or your own AI tool | 5–10 | +| [4 · Get to know your product and its mock](../04-your-product.md) | Read your scenario, fork the repository, meet the mock in Bruno | 10 | +| [5 · Build your product's test with AI](../05-build-the-test.md) | Plan, build and compile your test | 15 | +| [6 · Run your test against the mock](../06-run-it.md) | Run it against the mock: green, then red on purpose | 10 | ## Done when @@ -40,7 +60,7 @@ have seen it fail on purpose. --- -[Home](../../index.md) · [Next: 3 · Your product and its mock →](../03-your-product.md) +[Home](../../index.md) · [Next: 3 · Connect an AI assistant →](../03-choose-your-ai/index.md) ## NOTICE diff --git a/e2e-testing/docs/tutorial/step-3-the-real-product/index.md b/e2e-testing/docs/tutorial/step-3-the-real-product/index.md index 9041d40c..e62bad68 100644 --- a/e2e-testing/docs/tutorial/step-3-the-real-product/index.md +++ b/e2e-testing/docs/tutorial/step-3-the-real-product/index.md @@ -1,6 +1,6 @@ -Step 3 of 3 · The real product · chapters 7 to 10 +Step 3 of 3 · Run it against the real product · chapters 7 to 10 -# Step 3 · The real product, in the developer toolbox +# Step 3 · Run it against the real product > **Goal:** the same test runs against the real product in GitHub Actions, and you open a > pull request with it. @@ -22,10 +22,10 @@ | Chapter | You do | Minutes | | --- | --- | --- | -| [7 · Add it to your repository](../07-add-to-repository.md) | Export the test, commit it with the workflow | 10 | -| [8 · Configure the developer toolbox](../08-configure-the-toolbox.md) *(optional)* | Shape the toolbox: more partners, your own chart | 10 | -| [9 · Link it and open the pull request](../09-link-and-pull-request.md) | Link the test in `.tractusx`, open the pull request | 5 | -| [10 · What comes next](../10-what-comes-next.md) | Plan the second test | 5 | +| [7 · Add the test to your product's repository](../07-add-to-repository.md) | Export the test, commit it with the workflow | 10 | +| [8 · Shape the developer toolbox](../08-configure-the-toolbox.md) *(optional)* | Shape the toolbox: more partners, your own chart | 10 | +| [9 · Link the test and open the pull request](../09-link-and-pull-request.md) | Link the test in `.tractusx`, open the pull request | 5 | +| [10 · Plan your next test](../10-what-comes-next.md) | Plan the second test | 5 | ## Done when @@ -34,7 +34,7 @@ that you can explain still counts. --- -[Home](../../index.md) · [Next: 7 · Add it to your repository →](../07-add-to-repository.md) +[Home](../../index.md) · [Next: 7 · Add the test to your product's repository →](../07-add-to-repository.md) ## NOTICE diff --git a/e2e-testing/hello-service/README.md b/e2e-testing/hello-service/README.md index 7775b275..a77b7cb4 100644 --- a/e2e-testing/hello-service/README.md +++ b/e2e-testing/hello-service/README.md @@ -1,7 +1,7 @@ # Hello service A tiny read-only API for the first test of the E2E testing tutorial -([chapter 2 · Hello, TestLab](../docs/tutorial/02-hello-testlab.md)). Participants write a test +([chapter 2 · Write and run your first test](../docs/tutorial/02-hello-testlab.md)). Participants write a test against it by hand before an AI assistant writes anything. Stock nginx answers from the JSON files in [`site/`](site); there is no code to build and no diff --git a/e2e-testing/mkdocs.yml b/e2e-testing/mkdocs.yml index d1f2100f..bad6a3d7 100644 --- a/e2e-testing/mkdocs.yml +++ b/e2e-testing/mkdocs.yml @@ -88,26 +88,26 @@ nav: # without the handout, then the team's product against its mock, then the real # product in the developer toolbox. - Getting Started: - - Step 1 · Hello World: + - Step 1 · Learn with a Hello World: - tutorial/step-1-hello-world/index.md - - 1 · Start here: tutorial/01-start-here.md - - 2 · Hello, TestLab: tutorial/02-hello-testlab.md - - Step 2 · Your product's test: + - 1 · Get your team ready: tutorial/01-start-here.md + - 2 · Write and run your first test: tutorial/02-hello-testlab.md + - Step 2 · Test your product against its mock: - tutorial/step-2-your-product/index.md - - 3 · Your product and its mock: tutorial/03-your-product.md - - 4 · Choose your AI: - - tutorial/04-choose-your-ai/index.md - - A · API key in the IDE: tutorial/04a-api-key.md - - B · Local model in the IDE: tutorial/04b-local-model.md - - C · Your own AI tool: tutorial/04c-your-own-ai-tool.md - - 5 · Build the test with the assistant: tutorial/05-build-the-test.md - - 6 · Run it against your connectors: tutorial/06-run-it.md - - Step 3 · The real product: + - 3 · Connect an AI assistant: + - tutorial/03-choose-your-ai/index.md + - A · Connect an API key in the IDE: tutorial/03a-api-key.md + - B · Connect a local model in the IDE: tutorial/03b-local-model.md + - C · Build with your own AI tool: tutorial/03c-your-own-ai-tool.md + - 4 · Get to know your product and its mock: tutorial/04-your-product.md + - 5 · Build your product's test with AI: tutorial/05-build-the-test.md + - 6 · Run your test against the mock: tutorial/06-run-it.md + - Step 3 · Run it against the real product: - tutorial/step-3-the-real-product/index.md - - 7 · Add it to your repository: tutorial/07-add-to-repository.md - - 8 · Configure the developer toolbox: tutorial/08-configure-the-toolbox.md - - 9 · Link it and open the pull request: tutorial/09-link-and-pull-request.md - - 10 · What comes next: tutorial/10-what-comes-next.md + - 7 · Add the test to your product's repository: tutorial/07-add-to-repository.md + - 8 · Shape the developer toolbox: tutorial/08-configure-the-toolbox.md + - 9 · Link the test and open the pull request: tutorial/09-link-and-pull-request.md + - 10 · Plan your next test: tutorial/10-what-comes-next.md - E2E specs: - specs/index.md - BPN Discovery: specs/sldt-bpn-discovery.md diff --git a/e2e-testing/snippets/three-steps.md b/e2e-testing/snippets/three-steps.md index 3ed46fd1..f66cbcdb 100644 --- a/e2e-testing/snippets/three-steps.md +++ b/e2e-testing/snippets/three-steps.md @@ -1,9 +1,9 @@ ```mermaid %%{init: {"flowchart": {"rankSpacing": 40, "nodeSpacing": 24}}}%% flowchart LR - S1["1 · Hello World
No AI, no handout yet.
TestLab on your laptop
against the hello service."] - S2["2 · Your product's test
With AI, from your handout.
Against a WireMock that
answers like your product."] - S3["3 · The real product
The same test, in the
developer toolbox in
GitHub Actions. Then
your pull request."] + S1["1 · Learn with a Hello World
No AI, no handout yet.
TestLab on your laptop
against the hello service."] + S2["2 · Test your product against its mock
With AI, from your handout.
Against a WireMock that
answers like your product."] + S3["3 · Run it against the real product
The same test, in the
developer toolbox in
GitHub Actions. Then
your pull request."] S1 -- "show it green and red:
you get your handout" --> S2 S2 -- "same test,
only the addresses change" --> S3 ```