Commit 0eb7ae7f authored by Benedetta Arena's avatar Benedetta Arena
Browse files

feat: update readme and run_tests

parent bdff350f
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -166,6 +166,22 @@ test launch command followed by the file name.
  - You should configure your broker accordingly


- Interoperability tests (IOP_CNF_*) :
  - The Interoperability tests assumes that it will manage multiple brokers
  - Multiple NGSI-LD brokers will be running simultaneously on different ports
  - The broker URLs will be passed as a variable by terminal

  The following example shows how to run an interoperability test with multiple brokers: 

  ```
    robot --variable b1_url:http://localhost:8080/ngsi-ld/v1 \
      --variable b2_url:http://localhost:8081/ngsi-ld/v1 \
      --variable b3_url:http://localhost:8082/ngsi-ld/v1 \
      --variable b4_url:http://localhost:8083/ngsi-ld/v1 \
      --variable b5_url:http://localhost:8084/ngsi-ld/v1 \
      ./TP/NGSI-LD/Interoperability/Provision/Entities/CreateEntity/IOP_CNF_01_01.robot
  ```

## Test Suite Management (tsm)

The `tsm` script is designed to facilitate the selection and execution of the Test Suite, especially if not all the 
+16 −0
Original line number Diff line number Diff line
@@ -23,3 +23,19 @@ robot --rerunfailedsuites .\results\output.xml --outputdir .\results .

# stop the suite after a failed test
robot --exitonfailure --outputdir .\results . 

# run interoperability tests suite with multiple brokers
robot --variable b1_url:<broker1_url> `
      --variable b2_url:<broker2_url> `
      --variable b3_url:<broker3_url> `
      --variable b4_url:<broker4_url> `
      --variable b5_url:<broker5_url> `
      --outputdir .\results .\TP\NGSI-LD\Interoperability\

# run specific interoperability tests suite with multiple brokers
robot --variable b1_url:<broker1_url> `
      --variable b2_url:<broker2_url> `
      --variable b3_url:<broker3_url> `
      --variable b4_url:<broker4_url> `
      --variable b5_url:<broker5_url> `
      --outputdir .\results .\TP\NGSI-LD\Interoperability\Provision\Entities\CreateEntity\IOP_CNF_01_01.robot
 No newline at end of file
+16 −0
Original line number Diff line number Diff line
@@ -30,3 +30,19 @@ robot --listener libraries/ErrorListener.py --outputdir ./results ./TP/NGSI-LD/

# run all test suites and generate errors.log file with the output only of the failed test cases
robot  --listener libraries/ErrorListener.py --outputdir ./results .

#run interoperability test suite with multiple brokers
robot --variable b1_url:<broker1_url> \
      --variable b2_url:<broker2_url> \
      --variable b3_url:<broker3_url> \
      --variable b4_url:<broker4_url> \
      --variable b5_url:<broker5_url> \
      --outputdir ./results ./TP/NGSI-LD/Interoperability

#run specific interoperability test suite with multiple brokers
robot --variable b1_url:<broker1_url> \
      --variable b2_url:<broker2_url> \
      --variable b3_url:<broker3_url> \
      --variable b4_url:<broker4_url> \
      --variable b5_url:<broker5_url> \
      --outputdir ./results ./TP/NGSI-LD/Interoperability/Provision/Entities/CreateEntity/IOP_CNF_01_01.robot