[aa0e34]: / project / device_b032fdcd / plc_logic_4bbe9722 / application_8e35a463 / fb_tests_91fe9bff / stack_377cdbf4 / fb_mqtt_testsuite_777aaede / test_connectionstateisonline_8a1743ce / 8a1743ce5ad447b2bd36b989f66ab0d7.object  Maximize  Restore  History

Download this file

1 lines (1 with data), 2.4 kB

1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)8a1743ce-5ad4-47b2-bd36-b989f66ab0d7","ParentGuid":"(Guid)777aaede-6ea5-46b6-939d-4ff515144ee6","Name":"(string)Test_ConnectionStateIsOnline","Properties":{"@Type":"2c41fa04:IDictionary","@Value":{}},"TypeGuid":"(Guid)f8a58466-d7f6-439f-bbb8-d4600e41d099","EmbeddedTypeGuids":{"@Type":"[Guid]","@Value":["(Guid)a9ed5b7e-75c5-4651-af16-d2c27e98cb94","(Guid)3b83b776-fb25-43b8-99f2-3c507c9143fc"]}}},"TypeInfos":{"2c41fa04":"{2c41fa04-1834-41c1-816e-303c7aa2c05b}","81297157":"{81297157-7ec9-45ce-845e-84cab2b88ade}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"f8a58466","@Value":{"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)coUnit.TEST_ORDERED( 'Test_ConnectionStateIsOnline' );\n\nIF _xInit THEN\n    FB_MQTT.SetBroker( sUrl := 'broker.hivemq.com',\n                       uiPort := 1883,\n                       uiKeepAlive := 60 );\n\n    FB_MQTT.Connect();\n    _TimeOut.IN := TRUE;\n    _xInit := FALSE;\nEND_IF\n\n_TimeOut();\nIF FB_MQTT.IsConnected() OR _TimeOut.Q THEN\n    ActState := FB_MQTT.GetConnectionState();\n    THIS^.AssertEquals( Expected := ExpState,\n                        Actual := ActState,\n                        Message :=\n                            'The connection state should have been ONLINE, please check your broker and your connection' );\n\n    coUnit.TEST_FINISHED();\n    // Disconnect\n    FB_MQTT.Disconnect();\nEND_IF;","LineInfoPersistence":"(string)8a1743ce-5ad4-47b2-bd36-b989f66ab0d7_Impl_LineIds"}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)METHOD Test_ConnectionStateIsOnline\nVAR\n    // Expected\n    ExpState : SparkplugB.SparkplugSessionStateType := SparkplugB.SparkplugSessionStateType.ONLINE;\n    // Actual\n    ActState : SparkplugB.SparkplugSessionStateType;\nEND_VAR","LineInfoPersistence":"(string)8a1743ce-5ad4-47b2-bd36-b989f66ab0d7_Decl_LineIds"}}}}}},"TypeInfos":{"3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","f8a58466":"{f8a58466-d7f6-439f-bbb8-d4600e41d099}","string":"System.String"}}},"FormatVersion":"1.0"}