Forum Discussion

ory_zam's avatar
ory_zam
Occasional Contributor
16 years ago

Suggestion: Make it possible to mark Keyword Test lines as to not run

Hi there,

It would really help the overall functionality of the Keyword Tests feature if it was possible to mark lines as "not run" or "skip", here are a few examples:

* A line is causing a known bug (either in TC or in our development), and I wish it to not execute (skip) until the bug is fixed

* Steps that are added as a result of a discussion with Support (trying to locate a bug etc.), we need those lines when locating the problem but then we do not want them to run everytime the script is executed

* Lines that I would sometimes wish to run manually when executing (when debugging my script) but that I do not want to be executed automatically everytime the script is ran



Currently, I need to delete any lines that I wish to be skipped, and then re add them everytime I need them.



Note the functionality I am asking for is similar to marking a line as a remark (for example with the ' symbol in VM script) in the code editor.



Thanks!

10 Replies

  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3
    Ted - 



    Right-click on a keyword test line, and in the menu you will see Disable Operations and Enable Operations. 



    Use Disable to grey out a line and it will be skipped when the test runs.  Use Enable to turn it on again.  You can mark one line or several at a time (with shift-select).



    Good luck!
  • Yes, Test complete version 9.31 has this feature..

    Right-click on a keyword test line, and in the menu you will see Disable Operations and Enable Operations.



    Works very well.
  • lcraig's avatar
    lcraig
    Occasional Contributor
    I agree. This would be very helpful. I would also like some of the bookmarking features that are available in traditional scripting to be available in Keyword mode.



    ~Logan
  • Hi Ory and Logan,


    There's already a corresponding suggestion in our DB, and your requests have increased its rating. Thank you.


  • Please put in three votes for users at our company.



    Three people have separately asked around, "How can you comment out a line in TestComplete?"  Answer: you currently cannot.



    Three votes, please. We'd love to see this option in TestComplete8.



    Thanks.





    EDIT - All three people looked for this comment feature the *first* day they were using TestComplete. It was such a commonly used and valuable feature, we all assumed it was available.




  • Hi Allen,

    I'm new to TC and glad to hear there's a followup on this by SB. Since Jan 2010, can you tell if there any evolution/solution regarding the issue?



    If none could yopu cast a vote for 2 of us in our jos since this feature will be of a very good help while manually testing recorded scripts...



    Thanks in advance...