Python Script not running following upgrade to TestComplete 11.3
I have some python scripts that make a database call and populate a a variable with data. I then try to put some of the data into a local variable for a keyword test. This was working fine in Test Complete 11.2 but since upgrading to Test Complete 11.3 the script is not longer working. See the code snippet below:
con = ADO.CreateADOCommand()
con.ConnectionString = GeneralFunctions.DatabaseConnectionString()
con.CommandText = "SELECT TOP 1 a.GenericName, FROM Table1 a, Table2 b, Table3 c WHERE ORDER BY NEWID()"
con.CommandType = cmdText
rs = con.Execute()
rs.MoveFirst()
Below is the error message that I get:
Python runtime error.
TypeError
'IDispatchIndexedPropertyrapper' object is not callable.
Someone else found that using brackets instead of parens worked for them. Eg.
records.Fields.Item['FieldName'].Value
Your description doesn't show that usage (but I suspect there are some bits missing in the description).
Does that work?