03/19/2024
CTT partially modifies the response where server index changes but the namespaceURI remains null.
At present we don\'t have any server which actually has implemented this non 0 server index along the proper namespaceURI.
Hence, just to meet the compliance, if we make the changes in client code, we would not be able to test it against server which offers response with server index as non 0 which might break client functionality in future when client connects to such server.
So, is it required to address CTT requirement just to meet compliance without having proper testing in place.
CTT for browse request:
/* Test prepared by Nathan Pocock nathan.pocock@opcfoundation.org
Description:
BrowseResult[0]. nodeId has a non-zero server index – node belongs
to remote server. */
include( "./library/Services/ViewServiceSet/Browse.js" );
function browseResponse8dot1Err032( request, response ) {
if( response === null ) return;
if( response.Results.length === 0 ) {
addError( "Not enough results to inject. Received 0." );
return;
}
else {
// modify the first record only
print( "Response.Results[0].References[0].NodeId.ServerIndex (before): " + response.Results[0].References[0].NodeId.ServerIndex );
response.Results[0].References[0].NodeId.ServerIndex = 10;
print( "Response.Results[0].References[0].NodeId.ServerIndex (after) : " + response.Results[0].References[0].NodeId.ServerIndex );
}
}
BrowseHelper.Execute({ ServiceResult: StatusCode.Good, ExternalFunction: browseResponse8dot1Err032 });
Thanks,
Chirantan
1 Guest(s)