Ask a Question

TestComplete crashes if ScriptHost crashed

kzharkov
New Contributor

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);

}
5 REPLIES 5


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.
--
Dmitry Nikolaev

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
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.
--
Dmitry Nikolaev

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
kzharkov
New Contributor

OK, thanks. We can upload you a virtual machine disk (.vhd) with our product preinstalled.


Hi Konstantin,





Ok, please contact us directly via the Contact Support form, and we will provide you with information on how to upload the file.
--
Dmitry Nikolaev

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: