summaryrefslogtreecommitdiffstats
path: root/tests/open62541-testserver/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/open62541-testserver/main.cpp')
-rw-r--r--tests/open62541-testserver/main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/open62541-testserver/main.cpp b/tests/open62541-testserver/main.cpp
index db51963..6431514 100644
--- a/tests/open62541-testserver/main.cpp
+++ b/tests/open62541-testserver/main.cpp
@@ -212,6 +212,17 @@ int main()
QOpcUaExtensionObject(), QOpcUa::Types::ExtensionObject);
server.addNodeWithFixedTimestamp(testFolder, "ns=2;s=Demo.Static.FixedTimestamp", "FixedTimestamp");
+ // Add variables for historizing
+ server.addVariable(testFolder, "ns=2;s=Demo.Static.Historizing1", "HistorizingTest1", 0, QOpcUa::Types::Int32,
+ QList<quint32>(), UA_VALUERANK_ANY, true);
+ server.addVariable(testFolder, "ns=2;s=Demo.Static.Historizing1.ContinuationPoint", "HistorizingContinuationPointTest1", 0, QOpcUa::Types::Int32,
+ QList<quint32>(), UA_VALUERANK_ANY, true, 5);
+
+ server.addVariable(testFolder, "ns=2;s=Demo.Static.Historizing2", "HistorizingTest2", 0, QOpcUa::Types::Int32,
+ QList<quint32>(), UA_VALUERANK_ANY, true);
+ server.addVariable(testFolder, "ns=2;s=Demo.Static.Historizing2.ContinuationPoint", "HistorizingContinuationPointTest2", 0, QOpcUa::Types::Int32,
+ QList<quint32>(), UA_VALUERANK_ANY, true, 5);
+
// Create folders containing child nodes with string, guid and opaque node ids
UA_NodeId testStringIdsFolder = server.addFolder("ns=3;s=testStringIdsFolder", "testStringIdsFolder");
server.addVariable(testStringIdsFolder, "ns=3;s=theStringId", "theStringId", QStringLiteral("Value"), QOpcUa::Types::String);