Package org.netbeans.jemmy.demo
Interface CommentWindow
- All Known Implementing Classes:
DefaultCommentWindow
public interface CommentWindow
Interface implementation defines a way to display step comments
during demo or test debug.
- Author:
- Alexandre Iline (alexandre.iline@sun.com)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the window.Returns a message for a case when test needs to be interrupted.boolean
Defines either test execution should be interrupted or not.boolean
Defines either test(demo) has been stopped or not.void
Should display next step comment.void
Defines window title.void
showFinalComment
(String stepComment) Method is invoked at the end of test(demo).
-
Method Details
-
isStopped
boolean isStopped()Defines either test(demo) has been stopped or not.- Returns:
- true if test (demo) execution has been stopped. Like when user is reading step comments. false if test execution can be continued.
-
isInterrupted
boolean isInterrupted()Defines either test execution should be interrupted or not.- Returns:
- If true, execution will be interrupted.
-
setTitle
Defines window title.- Parameters:
title
- Title to display.
-
nextStep
Should display next step comment.- Parameters:
stepComment
- Comments to be displayed.
-
showFinalComment
Method is invoked at the end of test(demo).- Parameters:
stepComment
- Comment to be displayed.
-
close
void close()Closes the window. -
getInterruptMessage
String getInterruptMessage()Returns a message for a case when test needs to be interrupted.- Returns:
- Interrupted message if test should be interrupted.
-