Can you guide me for the basic settings need to be done on the UA CTT tool for server test, So that it can easily pass the BeforeTest.js
I have configured basic settings. Information which was available in OPC UA foundation website (Video), but still I am getting the error in BeforeTest.js
Please mention what all nodes in “Setting” window need to be configured So that the BeforeTest.js will get pass.
the best way to configure the CTT is to go through every page in the setting and ensure it matches the details of your server. But the bare minimum is the
- Server Test / Server URL
- Server Test / Secure Channel / MessageSecurityMode
- Server Test / Secure Channel / RequestedSecurityPolicyUri
- Server Test / Session / LoginNameGranted1
- Server Test / Session / LoginPasswordGranted1
With these settings being configured correctly the connection to the server will work fine. But in order to run all the different tess all other settings also need to be looked at and configured correctly.
I hope this helps. If it still doesn't work I'll need more details on the exact error you are getting and maybe some screenshots.
Take care and stay well!
Thanks for your immediate response.
I have followed the above steps which you shared, still I am getting errors when I execute the test cases.
Errors: There is a mismatch of the configured ServerUrl (opc.tcp://192.168.204.7:4840) in the CTT Settings and the returned EndpointUrl
(opc.tcp://PM5630-2ETH:4840) in the GetEndpoints. Please validate configuration.
I have sent an email to you with screenshots. Kindly help me to resolve this issue.
looking at the details it appears that the server is not providing an Endpoint with the IP Address but only with the hostname. There are 2 options to make the connection work:
- Configure the CTT to use the hostname not the IP Address
- Make the UA Server listing its IP Address in the Endpoints
Either way will make the validation pass and the test run will continue.