Forum Discussion

ḥari's avatar
ḥari
Frequent Contributor
2 years ago

Button issue

Hi team,
In my test complete application I can't able to do pause (not enabled) or debug while executing.
The version which I have used is 15.52
Can amy one help me overcome these issue??
  • I get the same break point, when I've disabled debugging.

    Click the button to enable it - see Debugging Tests - Overview.

     

    Also, you are still not indenting your code, which makes it difficult to read!

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    I get the same break point, when I've disabled debugging.

    Click the button to enable it - see Debugging Tests - Overview.

     

    Also, you are still not indenting your code, which makes it difficult to read!

    • ḥari's avatar
      ḥari
      Frequent Contributor
      Yeah I enabled just now got it. Thanks
  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Have you enabled debugging and inserted break points? This is TC v15.52.2.7 that's paused

     

    • ḥari's avatar
      ḥari
      Frequent Contributor

      rraghvanii have used these options before 3 to 4 days and suddenly it's not working so i updated to 15.52v but still it's not working. Inserted breakpoints but it's not pause in that point and during execution I try to pause it that pause button also not enabled

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Get into the habit of indenting your code, as it makes it easier to read and test during debugging. We can see where the for loop begins and ends, and what sections of code are being executed etc.

    function Example()
    {
        for (let i = 2; i <= RowCount; i++)
        {
            let s = "";
            for (let j = 3; j <= 3; j++)
            {
                s = VarToString(getExcel.Cell(j, i).Value);
                var browsers = ["chrome", "edge"];
                for (var k = 0; k < browsers.length; k++)
                {
                    // etc
                }
                // etc
            }
            // etc
        }
    }

     

    • ḥari's avatar
      ḥari
      Frequent Contributor
      Sure, but I don't have access so only I did like this. Thanks
    • ḥari's avatar
      ḥari
      Frequent Contributor
      You copied your code and shared here know
    • ḥari's avatar
      ḥari
      Frequent Contributor
      Ok i understood here after I will share code like indentation. Thanks