CTT Attributes Write Value Test fails for null Values #1298
johannwesely
started this conversation in
General
Replies: 1 comment 2 replies
-
Whether or not a server allows null values to be written is up to the implementation. The way the SDK is currently written does not support it. I think originally I didn't support it at the attribute level in the UaNodes either, but that seems to have been relaxed a bit. You should just provide valid initial values for the purpose of CTT testing and chase remaining legitimate errors. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, im currently testing our Milo Server with CTT now in the Attribute Write Value test i have lots of failures.
![cttattributewrite](https://private-user-images.githubusercontent.com/108257325/357849400-66a3632b-e759-4146-afcd-d3fbd73f774c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0ODc0MzEsIm5iZiI6MTczOTQ4NzEzMSwicGF0aCI6Ii8xMDgyNTczMjUvMzU3ODQ5NDAwLTY2YTM2MzJiLWU3NTktNDE0Ni1hZmNkLWQzZmJkNzNmNzc0Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QyMjUyMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kMzg2MWYxMTU0YmZmMThlZTQ0ZWY5MmNjYjI1MThlNWI0NWNkOTFhOTZmOGU1ZjlhMzFkMGEwNzFkYjc0YzJkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.VYMEb8Iwg3bsjk_mVSBnY6tRJ75uWJgMhWMDKOiz1HQ)
![cttattributewrite2](https://private-user-images.githubusercontent.com/108257325/357852913-3f98e596-67bc-43ed-a3c8-b2447b0324c3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0ODc0MzEsIm5iZiI6MTczOTQ4NzEzMSwicGF0aCI6Ii8xMDgyNTczMjUvMzU3ODUyOTEzLTNmOThlNTk2LTY3YmMtNDNlZC1hM2M4LWIyNDQ3YjAzMjRjMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QyMjUyMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mM2FlY2U5N2Y2OTA0ODI1ZGQwMWZmMmM5YzRmZTgxYWE3NGRmOWE1MGQ0NjMwODgzNzdlYTZhNjE4YTZhNDJlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.t83sE24BPVm3GNYUhQt8bnTVnfcIMOVKK2lDklAoPy4)
I figured out using wireshark this happens because our Server has initaly null Values set, CTT reads the values and wants to write them back and gets BadTypeMismatch. Now i checked in Milo Dev1.0 why this happens and came to the Solution that in Server UaVariableNode Line 250 the server Throws the BadTypeMismatch when the value to write is null. I changed the Line to
Object o = variant.getValue(); if (o == null) return value;
Now i have a lot More green but still some Failures left do you think this could be a solution.
I also tried to initalize the Values before Starting CTT Testscripts and this works also. But can you tell me if null Values should be possible to write ? I cannot find a mention in OpcUa Spec?
Beta Was this translation helpful? Give feedback.
All reactions