Problems with events click or clickButton
hope anyone can help me, because I'm very despaired about my code stops with errors since 2 days though I don't change something.
Here is my short problem description:
I develope testcases in C# Script for a delphi application with Testcomplete 8.10 at Windows XP. All tests were running successfully, but since a short time the test aborts with some error messages like:
1) "The window does not respond"
2) "Access violation at address 17B4EC54 in module 'tcthirdpartycontrols.pls'. Read of address 00000000"
I'm sure that the objects are existing in objectree. I've also tested it with logging a message and the state "Exists" was true at every time.
I'm really helpless which reason it could it be, I've no changes in my code. The one I remember was a Windows Update (Win XP).
Has anyone a problem like this???
example for message 1)
=> occures when clicking a tab or something like this
/*activate page (modul)*/
function selectPage(tabname, registername){
var extPageControl;
extPageControl = Aliases["DBSWIN"]["DbsMainForm"]["ExtPageControl"];
extPageControl[registername]["Click"]();
}
Additional information:
The window with the 0x00150512 handle exists but did not respond during the auto-wait timeout (5000 ms).
Try increasing the 'Auto-wait timeout' project property.
Sys["Process"]("DBSWIN")["VCLObject"]("PatientListForm")["VCLObject"]("Panel1")["VCLObject"]("OkBtn")
=> Changing the auto wait time was not the reason, I've tried this suggestion.
example for message 2)
=> occures when clicking a Button
//click ok btn in patientlist
function clickOKBtn(){
var patientListForm, btn;
try{
//BuiltIn["Delay"](800);
patientListForm = Aliases["DBSWIN"]["PatientListForm"];
btn = patientListForm["FindChild"]("ObjectIdentifier", "OkBtn", 10);
Log["Message"](btn["Exists"]);
btn["ClickButton"]();
}catch(e){
Log["error"](e["description"]);
}
}
Best regards,
Stephanie Witte