Loading README.md +4 −0 Original line number Original line Diff line number Diff line Loading @@ -115,6 +115,10 @@ For more running instructions please consult [scripts/run_tests.sh](./scripts/ru ```$ python3 -m robot.testdoc TP/NGSI-LD api_docs/TestCases.html``` ```$ python3 -m robot.testdoc TP/NGSI-LD api_docs/TestCases.html``` ## Tidy the Test Cases ```$ python3 -m robot.tidy --recursive TP/NGSI-LD``` # Frameworks and libraries used in the project # Frameworks and libraries used in the project * [Robot Framework](https://github.com/robotframework/robotframework) * [Robot Framework](https://github.com/robotframework/robotframework) Loading TP/NGSI-LD/CommonBehaviours/044_02.robot +4 −4 Original line number Original line Diff line number Diff line Loading @@ -32,7 +32,7 @@ ${content_type}= application/json Check Response Status Code 201 ${response.status_code} Check Response Status Code 201 ${response.status_code} ${response}= Query Entity ${id} context=${ngsild_test_suite_context} accept=*/* ${response}= Query Entity ${id} context=${ngsild_test_suite_context} accept=*/* Check Response Status Code 200 ${response.status_code} Check Response Status Code 200 ${response.status_code} Check Response Headers Containing Content-Type set to ${response.headers} ${content_type} Check Response Headers Containing Content-Type set to ${content_type} ${response.headers} Check Response Headers Link Not Empty ${response.headers} Check Response Headers Link Not Empty ${response.headers} [Teardown] Delete Entity by Id Returning Response ${id} [Teardown] Delete Entity by Id Returning Response ${id} Loading @@ -44,7 +44,7 @@ ${content_type}= application/json Check Response Status Code 201 ${response.status_code} Check Response Status Code 201 ${response.status_code} ${response}= Retrieve Subscription ${id} accept=*/* ${response}= Retrieve Subscription ${id} accept=*/* Check Response Status Code 200 ${response.status_code} Check Response Status Code 200 ${response.status_code} Check Response Headers Containing Content-Type set to ${response.headers} ${content_type} Check Response Headers Containing Content-Type set to ${content_type} ${response.headers} Check Response Headers Link Not Empty ${response.headers} Check Response Headers Link Not Empty ${response.headers} [Teardown] Delete Subscription ${id} [Teardown] Delete Subscription ${id} Loading @@ -62,7 +62,7 @@ ${content_type}= application/json ... context=${ngsild_test_suite_context} ... context=${ngsild_test_suite_context} ... accept=*/* ... accept=*/* Check Response Status Code 200 ${response.status_code} Check Response Status Code 200 ${response.status_code} Check Response Headers Containing Content-Type set to ${response.headers} ${content_type} Check Response Headers Containing Content-Type set to ${content_type} ${response.headers} Check Response Headers Link Not Empty ${response.headers} Check Response Headers Link Not Empty ${response.headers} [Teardown] Delete Context Source Registration ${registration_id} [Teardown] Delete Context Source Registration ${registration_id} Loading @@ -83,6 +83,6 @@ ${content_type}= application/json ... accept=*/* ... accept=*/* Check Response Status Code 200 ${response.status_code} Check Response Status Code 200 ${response.status_code} Set Test Variable ${response} Set Test Variable ${response} Check Response Headers Containing Content-Type set to ${response.headers} ${content_type} Check Response Headers Containing Content-Type set to ${content_type} ${response.headers} Check Response Headers Link Not Empty ${response.headers} Check Response Headers Link Not Empty ${response.headers} [Teardown] Delete Temporal Representation Of Entity ${temporal_entity_representation_id} [Teardown] Delete Temporal Representation Of Entity ${temporal_entity_representation_id} TP/NGSI-LD/ContextInformation/Consumption/Discovery/RetrieveAvailableAttributeInformation/027_01_01.robot +0 −1 Original line number Original line Diff line number Diff line Loading @@ -26,7 +26,6 @@ Retrieve Detailed Representation Of Available Attribute Without Context Check Response Body Containing ProblemDetails Element Containing Title Element ${response.json()} Check Response Body Containing ProblemDetails Element Containing Title Element ${response.json()} *** Keywords *** *** Keywords *** Setup Initial Entities Setup Initial Entities ${entity_id}= Generate Random Entity Id ${building_id_prefix} ${entity_id}= Generate Random Entity Id ${building_id_prefix} Loading TP/NGSI-LD/ContextInformation/Consumption/Discovery/RetrieveAvailableAttributeInformation/027_01_02.robot +1 −1 Original line number Original line Diff line number Diff line Loading @@ -21,7 +21,7 @@ Retrieve Detailed Representation Of Available Attribute [Tags] ed-attr 5_7_10 [Tags] ed-attr 5_7_10 ${response}= Retrieve Attribute attribute_name=airQualityLevel context=${ngsild_test_suite_context} ${response}= Retrieve Attribute attribute_name=airQualityLevel context=${ngsild_test_suite_context} Check Response Status Code 200 ${response.status_code} Check Response Status Code 200 ${response.status_code} Check Response Body Containing Attribute element ${expectation_file} Check Response Body Containing Attribute element ${expectation_file} ${response.json()} *** Keywords *** *** Keywords *** Loading TP/NGSI-LD/ContextInformation/Consumption/Discovery/RetrieveAvailableAttributes/025_01.robot +1 −1 Original line number Original line Diff line number Diff line Loading @@ -29,7 +29,7 @@ Retrieve Available Attributes [Arguments] ${context} ${expectation_file} [Arguments] ${context} ${expectation_file} ${response}= Retrieve Attributes ${context} ${response}= Retrieve Attributes ${context} Check Response Status Code 200 ${response.status_code} Check Response Status Code 200 ${response.status_code} Check Response Body Containing AttributeList element ${expectation_file} Check Response Body Containing AttributeList element ${expectation_file} ${response.json()} Setup Initial Entities Setup Initial Entities ${entity_id}= Generate Random Entity Id ${building_id_prefix} ${entity_id}= Generate Random Entity Id ${building_id_prefix} Loading Loading
README.md +4 −0 Original line number Original line Diff line number Diff line Loading @@ -115,6 +115,10 @@ For more running instructions please consult [scripts/run_tests.sh](./scripts/ru ```$ python3 -m robot.testdoc TP/NGSI-LD api_docs/TestCases.html``` ```$ python3 -m robot.testdoc TP/NGSI-LD api_docs/TestCases.html``` ## Tidy the Test Cases ```$ python3 -m robot.tidy --recursive TP/NGSI-LD``` # Frameworks and libraries used in the project # Frameworks and libraries used in the project * [Robot Framework](https://github.com/robotframework/robotframework) * [Robot Framework](https://github.com/robotframework/robotframework) Loading
TP/NGSI-LD/CommonBehaviours/044_02.robot +4 −4 Original line number Original line Diff line number Diff line Loading @@ -32,7 +32,7 @@ ${content_type}= application/json Check Response Status Code 201 ${response.status_code} Check Response Status Code 201 ${response.status_code} ${response}= Query Entity ${id} context=${ngsild_test_suite_context} accept=*/* ${response}= Query Entity ${id} context=${ngsild_test_suite_context} accept=*/* Check Response Status Code 200 ${response.status_code} Check Response Status Code 200 ${response.status_code} Check Response Headers Containing Content-Type set to ${response.headers} ${content_type} Check Response Headers Containing Content-Type set to ${content_type} ${response.headers} Check Response Headers Link Not Empty ${response.headers} Check Response Headers Link Not Empty ${response.headers} [Teardown] Delete Entity by Id Returning Response ${id} [Teardown] Delete Entity by Id Returning Response ${id} Loading @@ -44,7 +44,7 @@ ${content_type}= application/json Check Response Status Code 201 ${response.status_code} Check Response Status Code 201 ${response.status_code} ${response}= Retrieve Subscription ${id} accept=*/* ${response}= Retrieve Subscription ${id} accept=*/* Check Response Status Code 200 ${response.status_code} Check Response Status Code 200 ${response.status_code} Check Response Headers Containing Content-Type set to ${response.headers} ${content_type} Check Response Headers Containing Content-Type set to ${content_type} ${response.headers} Check Response Headers Link Not Empty ${response.headers} Check Response Headers Link Not Empty ${response.headers} [Teardown] Delete Subscription ${id} [Teardown] Delete Subscription ${id} Loading @@ -62,7 +62,7 @@ ${content_type}= application/json ... context=${ngsild_test_suite_context} ... context=${ngsild_test_suite_context} ... accept=*/* ... accept=*/* Check Response Status Code 200 ${response.status_code} Check Response Status Code 200 ${response.status_code} Check Response Headers Containing Content-Type set to ${response.headers} ${content_type} Check Response Headers Containing Content-Type set to ${content_type} ${response.headers} Check Response Headers Link Not Empty ${response.headers} Check Response Headers Link Not Empty ${response.headers} [Teardown] Delete Context Source Registration ${registration_id} [Teardown] Delete Context Source Registration ${registration_id} Loading @@ -83,6 +83,6 @@ ${content_type}= application/json ... accept=*/* ... accept=*/* Check Response Status Code 200 ${response.status_code} Check Response Status Code 200 ${response.status_code} Set Test Variable ${response} Set Test Variable ${response} Check Response Headers Containing Content-Type set to ${response.headers} ${content_type} Check Response Headers Containing Content-Type set to ${content_type} ${response.headers} Check Response Headers Link Not Empty ${response.headers} Check Response Headers Link Not Empty ${response.headers} [Teardown] Delete Temporal Representation Of Entity ${temporal_entity_representation_id} [Teardown] Delete Temporal Representation Of Entity ${temporal_entity_representation_id}
TP/NGSI-LD/ContextInformation/Consumption/Discovery/RetrieveAvailableAttributeInformation/027_01_01.robot +0 −1 Original line number Original line Diff line number Diff line Loading @@ -26,7 +26,6 @@ Retrieve Detailed Representation Of Available Attribute Without Context Check Response Body Containing ProblemDetails Element Containing Title Element ${response.json()} Check Response Body Containing ProblemDetails Element Containing Title Element ${response.json()} *** Keywords *** *** Keywords *** Setup Initial Entities Setup Initial Entities ${entity_id}= Generate Random Entity Id ${building_id_prefix} ${entity_id}= Generate Random Entity Id ${building_id_prefix} Loading
TP/NGSI-LD/ContextInformation/Consumption/Discovery/RetrieveAvailableAttributeInformation/027_01_02.robot +1 −1 Original line number Original line Diff line number Diff line Loading @@ -21,7 +21,7 @@ Retrieve Detailed Representation Of Available Attribute [Tags] ed-attr 5_7_10 [Tags] ed-attr 5_7_10 ${response}= Retrieve Attribute attribute_name=airQualityLevel context=${ngsild_test_suite_context} ${response}= Retrieve Attribute attribute_name=airQualityLevel context=${ngsild_test_suite_context} Check Response Status Code 200 ${response.status_code} Check Response Status Code 200 ${response.status_code} Check Response Body Containing Attribute element ${expectation_file} Check Response Body Containing Attribute element ${expectation_file} ${response.json()} *** Keywords *** *** Keywords *** Loading
TP/NGSI-LD/ContextInformation/Consumption/Discovery/RetrieveAvailableAttributes/025_01.robot +1 −1 Original line number Original line Diff line number Diff line Loading @@ -29,7 +29,7 @@ Retrieve Available Attributes [Arguments] ${context} ${expectation_file} [Arguments] ${context} ${expectation_file} ${response}= Retrieve Attributes ${context} ${response}= Retrieve Attributes ${context} Check Response Status Code 200 ${response.status_code} Check Response Status Code 200 ${response.status_code} Check Response Body Containing AttributeList element ${expectation_file} Check Response Body Containing AttributeList element ${expectation_file} ${response.json()} Setup Initial Entities Setup Initial Entities ${entity_id}= Generate Random Entity Id ${building_id_prefix} ${entity_id}= Generate Random Entity Id ${building_id_prefix} Loading