Loading .idea/runConfigurations/Run_All_tests_with_Listener.xml 0 → 100644 +19 −0 Original line number Diff line number Diff line <component name="ProjectRunConfigurationManager"> <configuration default="false" name="Run All tests with Listener" type="RobotFramework" factoryName="RobotFramework"> <option name="target" value="$ProjectFileDir$" /> <option name="args"> <list> <option value="--listener" /> <option value="libraries/ErrorListener.py" /> <option value="--outputdir" /> <option value="./results" /> </list> </option> <option name="env"> <map /> </option> <option name="workingDir" value="$ProjectFileDir$" /> <option name="makeSuite" value="true" /> <method v="2" /> </configuration> </component> No newline at end of file .idea/runConfigurations/Run_Current_Test_Suite.xml 0 → 100644 +17 −0 Original line number Diff line number Diff line <component name="ProjectRunConfigurationManager"> <configuration default="false" name="Run Current Test Suite" type="RobotFramework" factoryName="RobotFramework"> <option name="target" value="$FilePath$" /> <option name="args"> <list> <option value="--outputdir" /> <option value="./results" /> </list> </option> <option name="env"> <map /> </option> <option name="workingDir" value="$ProjectFileDir$" /> <option name="makeSuite" value="true" /> <method v="2" /> </configuration> </component> No newline at end of file .idea/runConfigurations/Run_Current_Test_Suite_with_Listener.xml 0 → 100644 +19 −0 Original line number Diff line number Diff line <component name="ProjectRunConfigurationManager"> <configuration default="false" name="Run Current Test Suite with Listener" type="RobotFramework" factoryName="RobotFramework"> <option name="target" value="$FilePath$" /> <option name="args"> <list> <option value="--listener" /> <option value="libraries/ErrorListener.py" /> <option value="--outputdir" /> <option value="./results" /> </list> </option> <option name="env"> <map /> </option> <option name="workingDir" value="$ProjectFileDir$" /> <option name="makeSuite" value="true" /> <method v="2" /> </configuration> </component> No newline at end of file resources/variables.py +1 −1 Original line number Diff line number Diff line url = 'localhost:8080/ngsi-ld/v1' url = 'http://localhost:8080/ngsi-ld/v1' ngsild_test_suite_context = 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld' notification_server_host = '0.0.0.0' notification_server_port = 8085 Loading scripts/run_tests.sh +10 −4 Original line number Diff line number Diff line Loading @@ -9,19 +9,25 @@ robot --variable url:"URL_HERE" --outputdir ./results . # run by specific tag(s) robot --include mandatory --outputdir ./results . # run all the tests for context information # run all the test suites for context information robot --outputdir ./results ./TP/NGSI-LD/ContextInformation # run a specific test case # run a specific test suite robot --outputdir ./results ./TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_01.robot robot --outputdir ./results --suite 001_01 . # run specific test case # run specific test suite robot --outputdir ./results -t "SuccessCases_MinimalEntity" robot --outputdir ./results -t "SuccessCases_MinimalEntity" ./TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/SuccessCases.robot # rerun failed tests # rerun failed test cases robot --rerunfailedsuites ./results/output.xml --outputdir ./results . # stop the suite after a failed test robot --exitonfailure --outputdir ./results . # run specific test suite and generate errors.log file with the output only of the failed test cases robot --listener libraries/ErrorListener.py --outputdir ./results ./TP/NGSI-LD/CommonBehaviours/043.robot # 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 . Loading
.idea/runConfigurations/Run_All_tests_with_Listener.xml 0 → 100644 +19 −0 Original line number Diff line number Diff line <component name="ProjectRunConfigurationManager"> <configuration default="false" name="Run All tests with Listener" type="RobotFramework" factoryName="RobotFramework"> <option name="target" value="$ProjectFileDir$" /> <option name="args"> <list> <option value="--listener" /> <option value="libraries/ErrorListener.py" /> <option value="--outputdir" /> <option value="./results" /> </list> </option> <option name="env"> <map /> </option> <option name="workingDir" value="$ProjectFileDir$" /> <option name="makeSuite" value="true" /> <method v="2" /> </configuration> </component> No newline at end of file
.idea/runConfigurations/Run_Current_Test_Suite.xml 0 → 100644 +17 −0 Original line number Diff line number Diff line <component name="ProjectRunConfigurationManager"> <configuration default="false" name="Run Current Test Suite" type="RobotFramework" factoryName="RobotFramework"> <option name="target" value="$FilePath$" /> <option name="args"> <list> <option value="--outputdir" /> <option value="./results" /> </list> </option> <option name="env"> <map /> </option> <option name="workingDir" value="$ProjectFileDir$" /> <option name="makeSuite" value="true" /> <method v="2" /> </configuration> </component> No newline at end of file
.idea/runConfigurations/Run_Current_Test_Suite_with_Listener.xml 0 → 100644 +19 −0 Original line number Diff line number Diff line <component name="ProjectRunConfigurationManager"> <configuration default="false" name="Run Current Test Suite with Listener" type="RobotFramework" factoryName="RobotFramework"> <option name="target" value="$FilePath$" /> <option name="args"> <list> <option value="--listener" /> <option value="libraries/ErrorListener.py" /> <option value="--outputdir" /> <option value="./results" /> </list> </option> <option name="env"> <map /> </option> <option name="workingDir" value="$ProjectFileDir$" /> <option name="makeSuite" value="true" /> <method v="2" /> </configuration> </component> No newline at end of file
resources/variables.py +1 −1 Original line number Diff line number Diff line url = 'localhost:8080/ngsi-ld/v1' url = 'http://localhost:8080/ngsi-ld/v1' ngsild_test_suite_context = 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld' notification_server_host = '0.0.0.0' notification_server_port = 8085 Loading
scripts/run_tests.sh +10 −4 Original line number Diff line number Diff line Loading @@ -9,19 +9,25 @@ robot --variable url:"URL_HERE" --outputdir ./results . # run by specific tag(s) robot --include mandatory --outputdir ./results . # run all the tests for context information # run all the test suites for context information robot --outputdir ./results ./TP/NGSI-LD/ContextInformation # run a specific test case # run a specific test suite robot --outputdir ./results ./TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_01.robot robot --outputdir ./results --suite 001_01 . # run specific test case # run specific test suite robot --outputdir ./results -t "SuccessCases_MinimalEntity" robot --outputdir ./results -t "SuccessCases_MinimalEntity" ./TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/SuccessCases.robot # rerun failed tests # rerun failed test cases robot --rerunfailedsuites ./results/output.xml --outputdir ./results . # stop the suite after a failed test robot --exitonfailure --outputdir ./results . # run specific test suite and generate errors.log file with the output only of the failed test cases robot --listener libraries/ErrorListener.py --outputdir ./results ./TP/NGSI-LD/CommonBehaviours/043.robot # 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 .