Forum Discussion

maddenapally's avatar
maddenapally
Contributor
5 years ago
Solved

How to hide Information Popup

Hi Team,

 

How to disable below Popup after running Groovy Script.

 

 

Regards,

Karthik

  • I believe that, that pop-up is only displayed, when running the individual script at test step level and the script return value is not null. e.g. if your script ends with a return statement (see the Groovy Script Test Step docs for more info). Which, from my understanding and usage or Ready API only happens in development of tests.

     

    When running the test case you do not get the pop-up.

     

    If you really want to suppress the message you can try adding the following to the end of your Groovy Script test step:

     

    return null

    Though that does assume that you are not using the result for anything else.

3 Replies

  • Radford's avatar
    Radford
    Super Contributor

    I believe that, that pop-up is only displayed, when running the individual script at test step level and the script return value is not null. e.g. if your script ends with a return statement (see the Groovy Script Test Step docs for more info). Which, from my understanding and usage or Ready API only happens in development of tests.

     

    When running the test case you do not get the pop-up.

     

    If you really want to suppress the message you can try adding the following to the end of your Groovy Script test step:

     

    return null

    Though that does assume that you are not using the result for anything else.

    • maddenapally's avatar
      maddenapally
      Contributor

      return null has given the solution to me. Thanks Radford.

       

      Regards,

      Karthik

  • maddenapally ,

     

    As far as i know this pop-up gets displayed when you assigned some value to a varibale and didn't print or use it.

    If you don't want this pop-up then use the value from that variable or log it.

     

    But as Radford said, it is right that this pop-up will not going to disturb your end-to-end execution as this pop-up gets generated when you execute groovy scipt step standalone.