Free OPCUA library of python is hanging Application
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Free OPCUA library of python is hanging Application
When i am using free opcua library in test complete x86 to read server plugs
My test is working fine and i am get summary report but when i am trying to re run it is not responding.
Am i am making any mistake , Please Check
Code Used -:
from os import sys
sys.path.insert(0, 'C:\Program Files (x86)\SmartBear\TestComplete 14\Bin\Extensions\Python\Python38\Lib\site-packages')
url = "opc.tcp://S2KAuto157:9680/ICONIS.S2K/OPCUA/DataAccess"
#from datetime import datetime
#opc.tcp://S2KAuto157:9680/ICONIS.S2K/OPCUA/DataAccess
import warnings
with warnings.catch_warnings():
warnings.filterwarnings("ignore")
from opcua import Client
def sample():
{
client=Client(url)
client.connect()
root = client.get_root_node()
myvar1 = root.get_child(["1:S2KServer","1:MyPurge1","1:Path"])
Log.Message(myvar1.get_value())
}
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I would recommend to create Support case via the https://support.smartbear.com/testcomplete/message/ form.
I seem to remember that there was a problem like yours when test code could be ran only for the first time. And the root cause appeared to be with Python itself (or used Python library, do not remember exactly).
/Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
