TestComplete crashes if ScriptHost crashed
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2010
10:12 PM
03-11-2010
10:12 PM
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);
}
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2010
11:41 PM
03-11-2010
11:41 PM
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. ⬇️⬇️⬇️
Dmitry Nikolaev
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2010
12:16 AM
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2010
03:05 AM
03-12-2010
03:05 AM
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. ⬇️⬇️⬇️
Dmitry Nikolaev
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2010
08:19 PM
03-23-2010
08:19 PM
OK, thanks. We can upload you a virtual machine disk (.vhd) with our product preinstalled.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2010
11:49 PM
03-23-2010
11:49 PM
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. ⬇️⬇️⬇️
Dmitry Nikolaev
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
