Guest User

Untitled

a guest
Oct 18th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. // Remember script log and log-output are different things. The below script is for the log-output which comes below the log-output
  2.  
  3. //Note that in ReadyAPI 2.1 you will need to use the following script:
  4. import com.eviware.soapui.SoapUI
  5. log.info("test")
  6. //Writing to the log is executed in the separate thread, so it is need to wait some time to get all notifications.
  7. sleep(1000)
  8. def teststep = context.getCurrentStep()
  9. def tesStepPanel = SoapUI.getDesktop().getDesktopPanel(teststep)
  10. if(tesStepPanel != null) {
  11. tesStepPanel.getComponent(2).getComponent(0).getComponent(1).getComponent(2).getComponent(0).clear()
  12. }
  13.  
  14. //Note that in ReadyAPI 2.2 you will need to use the following script:
  15. import com.smartbear.ready.core.ApplicationEnvironment
  16. log.info("test")
  17. //Writing to the log is executed in the separate thread, so it is need to wait some time to get all notifications.
  18. sleep(1000)
  19. def teststep = context.getCurrentStep()
  20. def tesStepPanel = ApplicationEnvironment.getDesktop().getDesktopPanel(teststep)
  21. if(tesStepPanel != null) {
  22. tesStepPanel.getComponent(3).getComponent(0).getComponent(1).getComponent(2).getComponent(0).clear()
  23. }
Add Comment
Please, Sign In to add comment