Forum Discussion

Bala_1980's avatar
Bala_1980
Occasional Contributor
9 years ago

how to stop the groovy script during the execution

Can we stop the groovy script during the execution? by using Ctrl+Z etc.

    • Bala_1980's avatar
      Bala_1980
      Occasional Contributor

      Hi Rao, 

      My script contains 5K lines of code and I want to stop the script at particular stage/whenever I want. Some of the keys are available in QTP/Selenium etc, in the same way do we have any option by pressing Ctrl+Z or Escape key etc.

      • nmrao's avatar
        nmrao
        Champion Level 3
        5K lines?
        I were to do it, I modularize it for better maintenance.

        If you want to stop it at a particular stage, then you have to handle them appropriately by use of configuration or property values or a condition to make it clean.

        If it is automated test, manual intervention is null. So your script be handle all the cases smoothly.