Forum Discussion

mesg2anil's avatar
mesg2anil
Regular Contributor
14 years ago

TestComplete Toggle Breakpoint Issue

Hi,



TestComplete is behaving wierd...

If I insert Toggle Breakpoint and run the script, TC is hanging, it will NOT work untill I close the TC and reopen it.



What could be the issue with TC? Please suggest.
  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    My guess is that TC is not necessarily hanging but that you've actually hit the breakpoint and your playback is paused until you tell TC to continue.  The indicator object in the upper right of the screen may display text like "Playback Paused".  I've seen in rare situations where, when a breakpoint is hit, sometimes the TC IDE does not display which may be interpreted as a hang.... or the TC IDE is actually hiding behind the application under test.
  • mesg2anil's avatar
    mesg2anil
    Regular Contributor
    Hi Robert,



    Thank you for the reply.



    I completely agree with you, whenever we insert breakpoint, TC will pause until we hit play button to continue.

    But the situation I'm talking about is different, when I insert breakpoint, actually the play sign image should come to the breakpoint line and wait for user action, but the problem in my case is, TC will not display play image at the line I inserted breakpoint and when I still try to click on play button on the indicator object; on the top on blue color bar it will display "TestComplete ..... (not responding)".

    The whole screen becomes white color with blur image of TC behind, in this situation I'll be left with only one option i.e. close the TC and re-open again.

    Please suggest what to do in this kind of situation?
  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    Some questions:




    1. What version of TestComplete are you running?

    2. What kind of application are you testing?

    3. What is happening at the breakpoint that you set?

    4. Do you have any Watch items already set?






    Something that might be helpful is to paste into your next post the code that you're trying to debug and indicate which line you're putting the breakpoint on.



    Concerning question 4, try deleting or disabling all your watch items as it is possible that they are trying to resolve when you hit the breakpoint and this is what is causing TC to "hang".
  • mesg2anil's avatar
    mesg2anil
    Regular Contributor

    Hi Robert,


    Please find the answers below for the questions you asked...


    1. TC version 8.10

    2. We are using IE 8 to access our web application

    3. When a breakpoint is set and run the script, most of the times what happens is, the play image which should come at the line where breakpoint is inserted, it will not show, I wait for sometime thinking TC is taking sometime, but after nearly a minute when I click on Play button on notification object, TC will get blur having TC behind white screen and on the top of title bar (above menu bar) it will show "TC.... (not responding)".

    4. I really did not notice if I had watcitem already set when I set breakpoint, but will that create any issue, having breakpoint and watchitems?



    Below is the code for your info, but it is not that only for this script TC will hang... sometimes when I set the breakpoint, I save the script, close the TC completely and then reopen it, that time TC will not hang, play image will show at the line where I inserted breakpoint, I observed, while i'm continously and I insert the breakpoint and run the script, that time it hangs... in such situation, I insert the breakpoint, save the script, close the TC and open again and run the script, it will work fine...




    Sub Main


      Set opt = dbgservices.Options

      Res = opt.EnableEvents

      log.LockEvents


      Call TestedApps.iexplore.Run

       

      Set iexplore = Aliases.iexplore

      Call iexplore.ToUrl("http://qaserver/login.asp")

     

      Set iexplore = Sys.Process("iexplore").Page("http://qaserver/login.asp").document.all

     

      iexplore.Item("txtLoginId").Value = "nayu"

      iexplore.Item("txtPassword").Value = "abc"


    'This is to get the property value of username 

      Set iexplore = Sys.Process("iexplore", 2).Page("http://qaserver/login.asp").document.all.Item("txtLoginId")

      loginname = aqobject.GetPropertyValue(iexplore, "Text")  

     

      Set iexplore = Sys.Process("iexplore").Page("http://qaserver/login.asp").document.all

      iexplore.Item("cmbLogin").Click                           ==>> breakpoint is set at this line

     

    'This will give by what username you are logging into the In4suite in the test log

      Log.Message "You are logging in as: " &loginname

     

      Set iexplore = Sys.Process("iexplore").Page("http://qaserver/default.asp")

      If iexplore.Exists Then

      Log.Message "You are logged in..."

        Else

      Log.Error "You are not logged in..."

      End If

     

    End Sub



    Please let me know possible cause for this issue and how to resolve?







    Hi Robert,



    There is one more issue with TC, I wanted to mention separately...

    While closing TC, it will hang... I face this issue lots of times... for your reference I'm attaching screenshot.



  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    The latest version of TestComplete is 8.60.  Have you tried upgrading to see if the problem is still occurring?  I know that there have been a number of bug fixes so it's possible that your problem has been addressed (both of them, actually).
  • We are using TestComplete 8.60 and we are also experiencing the toggling breakpoint issue. Sometimes I cannot unset a breakpoint unless TestComplete is restarted. This can be very annoying.
  • mesg2anil's avatar
    mesg2anil
    Regular Contributor
    Hi Robert,



    Looking at above comments, looks like TC 8.60 is also having this issue, is it wise to update from 8.10 to 8.60?

    Also, just wanna know is there any other solution without upgrading to 8.60?



    Could you please suggest?
  • Julia_K's avatar
    Julia_K
    SmartBear Alumni (Retired)

    Hello Anil,


    Could you please give us more information on your breakpoint issue?

    1. What is the version of the pdm.dll file installed on your computer?

    2. What versions of Microsoft Visual Studio are installed on your computer (if any)?


    Also, could you please send our support team a dump report?

    1. Download the Debugging Tools for the Windows package and install it.

    2. When TestComplete hangs, open the "Start | Run" dialog and execute the following command:

    "C:\Program Files\Debugging Tools for Windows (x86)\windbg.exe" -pn TestComplete.exe -Q -pd -c ".dump /m C:\Dump1.dmp;q"


    This command will make WinDbg write a memory dump of the TestComplete.exe process to the "C:\Dump1.dmp" dump file. After the dump is written, WinDbg will be closed.

    3. Correct the dump file name in the above command line (for example, change it to Dump2.dmp), wait for two minutes and execute the command again.

    4. Repeat step 3.

    5. Send our Support Team all of the generated dump files.

    Thanks in advance.


    As for your question about updating TestComplete to 8.60, we still recommend that you install the latest available version of TestComplete. You can check the list of the implemented features and fixed bugs here.