Forum Discussion

rajeshthomas's avatar
rajeshthomas
Contributor
13 years ago

How to Handle Application Crash

Hi ,


We use test complete for beta testing  and Release Testing of our application. We expect the application to crash in beta testing from where the developer will solve the issue. While the application crashes, the window crashes message pop-ups, and the Test complete waits for the human effort to close the crashed window. In other word, if we are away from the testing PC, we are not aware that the Testing is halted due to the crash.



Is there is any option to handle / Stop the Testing while there is an application crash. 



The Even Handler is working fine when an un-expected window pops-up / Time-out happens inside the application. But when whole application (the application we are testing) itself crashes, the Test Complete is hanged until the we manually close the crashed application. Once we close the crashed application the Test Complete continue



Is there is any way to handle it



Regards,



Rajesh Thomas

  • Hi
    Mike,



    Thanks for your reply, I have tried couple
    mentioned methods, but cant succeed. Let me explain the scenario.



    We have two integrated application say A and
    B. We are very successful in testing the two applications thru Test
    Complete. At one point of testing, functionally the
    application A waits for the handshake from Application B to proceed. (E.g.
    After loading necessary files in application B, We Click a button in
    application A to verify the loading). Our latest build has problem at
    this point. Whenever the verification button
    in application A is clicked, the application B is crashed. At this
    point the Test Complete also freezes. Neither stops the testing nor
    continues. Once we close the crash dialog box, the test complete continues its
    test run.


    I
    tried couple of methods to capture this crash, but can’t get it. 



    a. Used "Ignore unexpected window"
    option in Properties>Playback , but this is cannot capture the hanged
    window.

    b. Used Unexpected Window event, but this also
    cannot capture the Hanged window.

    c. Used Freeze Diagnostic's "Use only tested
    applications" and "Use only selected processes" options. These
    options try to close the crashed application, but the application is not
    closed. (Although i get the test log as "The Process does not respond. It
    will be terminated", the crashed application is still open”)


    When
    the above said methods are used, the test complete is also freezed. The Pause /
    Stop button is not responding until the crashed application is closed manually.


    Please
    advice



    Sys Config:

    OS - Win 7 64 BIT




    This
    is hurting us because, the complete application Testing takes more than 3 hours
    and when it stuck at the above scenario we are not aware of it. So after 3
    hours we expect the system to finish the testing, but to disappoint it may be
    stuck in the initial test cases waiting for us to close the crash
    window.



    (Attached the screen shot of crashed application)



    - Rajesh Thomas

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi Rajesh,



    According to the symptoms you've mentioned, I think that the "Calling Methods Asynchronously" help topic should help.
  • Hi Alexei,



    Thanks for your suggestion. I ensured that the "Calling Methods Asynchronously" - tcThirdPartyControls.pls file is installed. But still no improvement. Please advice



    - Rajesh Thomas
  • hi All,



    This problem still continues.. 



    Whenever the application i am testing hangs , Test Complete is not responding.



    This also happens even when i do manually (i.e) I just opened Test Complete and manually perform some action in the testing application and when the application crashes, the test complete is also becoming to the state "not responding". 



    Note: i have attached the dump zip file generated while the test complete is not responding 
  • AlexeyKryuchkov's avatar
    AlexeyKryuchkov
    SmartBear Alumni (Retired)
    Hi Rajesh,



    We've analyzed the dumps, but unfortunately, they don't expose the cause of the issue. Thus, we'll need to reproduce it in our lab. Can you send us the application that hangs?
  • Hi Mike,



    Unfortunately i cannot send you the application as it too big and needs lot of configuration to make it run and moreover it is hardware depended. Is there is any other way around, please suggest be.



    Regards,

    Rajesh Thomas
  • AlexeyKryuchkov's avatar
    AlexeyKryuchkov
    SmartBear Alumni (Retired)
    Hi Rajesh,



    Without having a possibility to analyze your application, we won't be able to determine the cause of the problem. However, according to the dump, there's a probability that making only the application that hangs Open will make the issue disappear. Unfortunately, this is the only supposition we have.