From d96762a7242e66ecfef9e3aa8beafab6e9e3574c Mon Sep 17 00:00:00 2001 From: mapedraza <40356341+mapedraza@users.noreply.github.com> Date: Wed, 22 Nov 2023 12:36:24 +0100 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fermín Galán Márquez --- test/functional/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/functional/README.md b/test/functional/README.md index 44ff2d46b..76fd22fc6 100644 --- a/test/functional/README.md +++ b/test/functional/README.md @@ -200,7 +200,7 @@ as a batch operation (see the following example). #### Multimeasures It is also supported to test cases in which is sent more than one measure. To do so, you need to define the test case -expectation as an array, with one object for each measurement. Then, the suite will recognize the array length and will +`expectation` as an array, with one object for each measurement. Then, the suite will recognize the array length and will expect the same number of NGSI requests. I.E: ```js @@ -232,7 +232,7 @@ expect the same number of NGSI requests. I.E: ]; ``` -You also should define the measure as multimeasure. This is done by defining the measure JSON element as an array of +You also should define the measure as multimeasure. This is done by defining the `measure` JSON element as an array of objects. Each object will be a measure that will be sent to the Context Broker in a different request. I.E: ```javascript @@ -309,6 +309,8 @@ the expectation as an empty object. I.E: ... ``` +Note that this means the CB *must not* receive any payload. In other words, if the CB would receive any payload, the test will fail. + ### Debugging automated tests It is possible to debug the automated tests by using the loglevel parameter set to `debug` for each should case. This