tbom
11 years agoContributor
testcomplete 10.10 crash with ADO connectiont to oracle
Hi
I am in the progress of investigating upgrade efforts from TC9, to TC10..
Initialy I tested with one of the very first TC10 builds (10.0.xxx something). Which seemed to work ok.. There where a couple of issues that it couldn't find some buttons in our VB .net app that I am running regression tests on. Everything else seemed to work ok.
I then upgraded to TC 10.10.752.7, and it crashed totally on me. It's giving me "Catastrophic failure" now, everytime I have database query against oracle
code is as follows:
var query = "SELECT * FROM bc.order_line o WHERE o.order_line_status != 'PROCESSED' AND o.order_line_status != 'TERMINATED' AND o.create_date < SYSDATE - 10";
var qrySelect = ADO.CreateADOQuery();
qrySelect.ConnectionString = ProjectSuite.Variables.OpusDatabase;
Log.Message("ConnectionString: " + qrySelect.ConnectionString);
Log.Message("Executing query: " + query);
qrySelect.SQL = query;
qrySelect.Open();
the line spewing errors is the last one "qrySelect.Open()". This is working fine in TC9, and in the early TC10 that I tried. But in 10.10 it doesn't work..
Is this a known bug in testcomplete?
/ Thomas
I am in the progress of investigating upgrade efforts from TC9, to TC10..
Initialy I tested with one of the very first TC10 builds (10.0.xxx something). Which seemed to work ok.. There where a couple of issues that it couldn't find some buttons in our VB .net app that I am running regression tests on. Everything else seemed to work ok.
I then upgraded to TC 10.10.752.7, and it crashed totally on me. It's giving me "Catastrophic failure" now, everytime I have database query against oracle
code is as follows:
var query = "SELECT * FROM bc.order_line o WHERE o.order_line_status != 'PROCESSED' AND o.order_line_status != 'TERMINATED' AND o.create_date < SYSDATE - 10";
var qrySelect = ADO.CreateADOQuery();
qrySelect.ConnectionString = ProjectSuite.Variables.OpusDatabase;
Log.Message("ConnectionString: " + qrySelect.ConnectionString);
Log.Message("Executing query: " + query);
qrySelect.SQL = query;
qrySelect.Open();
the line spewing errors is the last one "qrySelect.Open()". This is working fine in TC9, and in the early TC10 that I tried. But in 10.10 it doesn't work..
Is this a known bug in testcomplete?
/ Thomas
- Usually you'll want to fill the flux capacitor with vitamin rich garbage before attempting time travel :). In regards to the Catastrophic failure however I have seen this in low memory situations. Make sure you are properly closing the ADO connection after you're done with it. If you hit the max (I believe 64) connections you'll cause rifts in the space-time continuum.