Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Fermín Galán Márquez <[email protected]>
  • Loading branch information
mapedraza and fgalan authored Nov 22, 2023
1 parent 6043cd7 commit d96762a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/functional/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d96762a

Please sign in to comment.