From aa214c100be6573f76e35bf8654efe5c9b440f56 Mon Sep 17 00:00:00 2001 From: Lucas Hinderberger Date: Thu, 6 Jun 2024 11:25:58 +0200 Subject: [PATCH] Revert "Readme: removed parallel exec docu" This reverts commit 97ab9b6f041676e2c3afb32949bca0b1ea2835c3. --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index f083d4a3..84b989ea 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,9 @@ Manifest is loaded as **template**, so you can use variables, Go **range** and * // We also support the external loading of a complete test: "@pathToTest.json" + + // By prefixing it with a p the testtool runs the tests all in parallel. All parallel tests are then set to ContinueOnFailure ! + "p@pathToTestsThatShouldRunInParallel.json" ] } ``` @@ -413,6 +416,26 @@ However that one will be stripped before parsing the template, which would be ju ** Unlike with delimiters, external tests/requests/responses don't inherit those removals, and need to be specified per file. +## Run tests in parallel + +The tool is able to do run tests in parallel. You activate this mechanism by including a external testfile with `p@pathtofile.json`. +The `p@` indicates to load that external file and run all tests in it in parallel. + +**All tests that are run in parallel are implicit set to ContinueOnFailure as otherwise the log and report would make no +sense** + +```yaml +{ + "name": "Binary Comparison", + "request": { + "endpoint": "suggest", + "method": "GET" + }, + // Path to binary file with @ + "response": "@simple.bin" +} +``` + ## Binary data comparison The tool is able to do a comparison with a binary file. Here we take a MD5 hash of the file and and then later compare