Forum Discussion

kzharkov's avatar
kzharkov
New Contributor
15 years ago

TestComplete crashes if ScriptHost crashed

Hi!



We have encountered the problem when used our ADSI provider inside TestComplete. After some investigations we have discovered the simple scriptlet that crashes Windows Script Host if runned via cscript.exe. This very scriptlet executed inside TestComplete crashes full application.

It would be nice if TestComplete was able to "catch" such problems and just restart script host to continue next tests execution.



Next is the problem script.



var strDN= "DC=domain,DC=com";

var OU = "OU=OU%1";  // here is the main trouble - the percent symbol

var s_ObjectClass = "organizationalUnit";

var strService = "myserver.domain.com";

var strUser = "domain\\Administrator";

var strPass = "password";

var adsPath = "EDMS://" + strService + "/" + strDN;

var intServerBind = 32768;

var openDS = GetObject("EDMS:");  // get ActiveRoles Server provider

var o_Container = openDS.OpenDSObject(adsPath, strUser, strPass, intServerBind)

try

{

var obj = o_Container.Create(s_ObjectClass, OU);

obj.SetInfo(); // here is the crash point

}

catch(ex)

{

WScript.Echo(ex.Message);

}

  • Hi Konstantin,





    When TestComplete crashes, it generates a dump file in the following folder:

    C:\Users\<Account>\AppData\Local\AutomatedQA\TestComplete\7.0\Logs\





    Please find the dump file generated when the issue occurs and send us the dump via the Contact Support form.
  • kzharkov's avatar
    kzharkov
    New Contributor
    We can't find such folder after crash occured (see screenshot). Do we need to set up any options to enable crash dump generation?

  • Hi Konstantin,





    This means that TestComplete's crash reporting system has not been invoked. In this case, please tell me what exactly software we need to install on our test machine to be able to recreate the problem using your test. If you can send us the software or another sample demonstrating the problem, please do this via the Contact Support form.
  • kzharkov's avatar
    kzharkov
    New Contributor
    OK, thanks. We can upload you a virtual machine disk (.vhd) with our product preinstalled.