Forum Discussion

lhuang5's avatar
lhuang5
Occasional Contributor
12 years ago

Why tested application is closed by TestComplete when the application is trying to load big data?

Hi everyone,



We are using JScript to write a test for our software. The test will start the application using TestedApps.OurApp.Run() and then load a data set to do some operations, and finally close tested application. Our codes work very fine for small-sized data set. The problem has occurred when our data set is big-sized. The tested application will be closed during the process that our application tries to load this big-sized data set.



However our codes work for this big-sized data set if we start OurApp manually. According to our observation, we found the difference in their working ways.



1. Start OurApp mannually, OurApp.exe process will appear outside TestComplete.exe process.

2. Start OurApp using code, OurApp.exe process will appear under TestComplete.exe. Loading big data set might cause memory problem for TestComplete.



So we wonder whether this is the possible reason for such problem and how we can avoid or walk around such problem using scripts.





Thanks & Regards,

Liping



4 Replies

  • simon_glet's avatar
    simon_glet
    Regular Contributor
    Hi Liping,



    It is possible that your project's "Freeze Diagnostics" property is configured to check the tested application with a hanging timeout shorter than the time it takes to load the data ?



    Project property screenshot attached.



    Sincerely
  • lhuang5's avatar
    lhuang5
    Occasional Contributor
    Hi Simon,



    Thanks for your reply. However this tip doesn't help our project. We wonder whether TestComplee can increase the allowed CPU or memory  for tested app.



    Thanks & Regards,'

    Liping
  • simon_glet's avatar
    simon_glet
    Regular Contributor
    Hi Liping,



    Sorry it didn't help.



    In any case TestComplete (TC) just runs the application and doesn't manage the ressources. The good news is that when the available memory is not sufficient to run the tested app and TC, we have noticed that it makes running our tests very difficult.



    Have you tried increasing the amount of RAM ?



    Sincerely
  • Ryan_Moran's avatar
    Ryan_Moran
    Valued Contributor
    Does it work any different if you run the application with a shell command?

    JScript ex:





    wshell = new ActiveXObject('WScript.Shell');


    wshell.run("C:\MyApplication.exe");