Forum Discussion

torus's avatar
torus
Contributor
2 months ago

Find all Disabled Keyword Test Operations Easily

Hi, Is there a way to get a list of off the Disabled keyword test operations within a TestComplete project?

Why? When I am debugging, I will often comment out sections of keyword operations (or just comment out one line). After the debugging is done I'll need to enables these lines again. I am always concerned that I will overlook enabling one of these lines of code (especially if it was a verification step, because the test will run fine even if the verification was disabled).

Question: is there a way to easily find and list all test operations (or cluster of test operations that have been commented out that come one after another) which have been disabled so I can review the list before checking in my test suite into the main repository?

Thanks.

2 Replies

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    I'm not able to find any options within TC to see a list of disabled Keyword Tests. However, it is possible to search for '<CommonData Disabled="True" />' within the .tcKD file, to see which operations are disabled.

    It's not an ideal method, but it's a quick workaround.

    • torus's avatar
      torus
      Contributor

      Thanks rraghvani for the workaround.