Class KeywordsInterview
java.lang.Object
com.sun.interview.Interview
com.sun.javatest.interview.KeywordsInterview
- All Implemented Interfaces:
Parameters.KeywordsParameters, Parameters.MutableKeywordsParameters
This interview collects the keyword parameters. It is normally used as
one of a series of sub-interviews that collect the parameter information for
a test run.
-
Nested Class Summary
Nested classes/interfaces inherited from class Interview
Interview.BadHelpFault, Interview.Fault, Interview.HelpNotFoundFault, Interview.NotOnPathFault, Interview.Observer -
Field Summary
Fields inherited from class Interview
EXPORT_IGNORE_ALL_EXCEPTIONS, EXPORT_IGNORE_NO_EXCEPTIONS, EXPORT_IGNORE_RUNTIME_EXCEPTIONS, EXTERNAL_PREF, helpSetFactory, INTERVIEW, LOCALE, MARKERS, MARKERS_PREF, QUESTION, SEMANTIC_MAX_VERSION, SEMANTIC_PRE_32, SEMANTIC_VERSION_32, SEMANTIC_VERSION_43, SEMANTIC_VERSION_50, TEMPLATE_PREFFields inherited from interface Parameters.MutableKeywordsParameters
ALL_OF, ANY_OF, EXPR, MATCH_KEYWORDS, NO_KEYWORDS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Get a test filter based on the keyword expression in the interview.Get a Keywords object based on the information in the interview.intGet the current keywords mode.intGet a value which indicates how to interpret the match value, when the keywords mode is set to MATCH_KEYWORDS.Get a value that identifies which tests are to be selected, when the keywords mode is set to MATCH_KEYWORDS.voidsetKeywords(int mode, String value) Set the details of the keywords to be used, if any, to filter tests for execution.voidsetKeywordsMode(int mode) Set the current keywords mode.voidsetMatchKeywords(int mode, String value) Set how to match a tests keywords when the keywords mode is set to MATCH_KEYWORDS.Methods inherited from class Interview
addObserver, callInterview, clear, clearMarkedResponses, containsObserver, createChecklist, createChecklistItem, createChecklistItem, createChecklistItem, export, getAllQuestions, getCurrentQuestion, getDefaultImage, getExportIgnoreExceptionPolicy, getExternalProperties, getFirstQuestion, getHelpSet, getInterview, getInterviewSemantics, getParent, getPath, getPathToCurrent, getPropertyKeys, getQuestions, getRawPath, getResourceBundle, getResourceString, getResourceString, getRoot, getTag, getTitle, hasNext, hasValidNext, isChecklistEmpty, isChecksumValid, isEdited, isFinishable, isFirst, isInterviewFinishable, isLast, isRoot, isStarted, iteratePath, iteratePathToCurrent, last, load, load, next, pathContains, pathContains, prev, propagateTemplateForAll, readLocale, removeAllMarkers, removeMarkers, removeObserver, reset, retrieveProperty, retrieveTemplateKeys, retrieveTemplateProperty, save, setBaseTag, setCurrentQuestion, setDefaultImage, setEdited, setExportIgnoreExceptionPolicy, setFirstQuestion, setHelpSet, setHelpSet, setHelpSet, setInterviewSemantics, setResourceBundle, setResourceBundle, setTitle, storeProperty, storeTemplateProperties, storeTemplateProperty, updatePath, updatePath, verifyPathContains, writeLocale
-
Constructor Details
-
KeywordsInterview
Create an interview.- Parameters:
parent- The parent interview of which this is a child.- Throws:
Interview.Fault- if there is a problem while creating the interview.
-
-
Method Details
-
dispose
public void dispose() -
getKeywords
Get a Keywords object based on the information in the interview.- Specified by:
getKeywordsin interfaceParameters.KeywordsParameters- Returns:
- A Keywords object based on the information in the interview.
- See Also:
-
setKeywords
Description copied from interface:Parameters.MutableKeywordsParametersSet the details of the keywords to be used, if any, to filter tests for execution.- Specified by:
setKeywordsin interfaceParameters.MutableKeywordsParameters- Parameters:
mode- the value of the match keywords mode to be set ifvalueis not nullvalue- if null, the keywords mode will be set to NO_KEYWORDS; if not null, the keywords mode will be set to MATCH_KEYWORDS, the match keywords mode will be set tomode, and the match keywords value will be set to this value- See Also:
-
getKeywordsMode
public int getKeywordsMode()Description copied from interface:Parameters.MutableKeywordsParametersGet the current keywords mode.- Specified by:
getKeywordsModein interfaceParameters.MutableKeywordsParameters- Returns:
- NO_KEYWORDS if no keyword filtering will be used to select tests for execution, or MATCH_KEYWORDS if keywords will be filtered according to the match mode and match value.
- See Also:
-
setKeywordsMode
public void setKeywordsMode(int mode) Description copied from interface:Parameters.MutableKeywordsParametersSet the current keywords mode.- Specified by:
setKeywordsModein interfaceParameters.MutableKeywordsParameters- Parameters:
mode- set to NO_KEYWORDS if no keyword filtering will be used to select tests for execution, or MATCH_KEYWORDS if keywords will be filtered according to the match mode and match value.- See Also:
-
getMatchKeywordsMode
public int getMatchKeywordsMode()Description copied from interface:Parameters.MutableKeywordsParametersGet a value which indicates how to interpret the match value, when the keywords mode is set to MATCH_KEYWORDS.- Specified by:
getMatchKeywordsModein interfaceParameters.MutableKeywordsParameters- Returns:
- a value which indicates how to interpret the match value, when the keywords mode is set to MATCH_KEYWORDS
- See Also:
-
getMatchKeywordsValue
Description copied from interface:Parameters.MutableKeywordsParametersGet a value that identifies which tests are to be selected, when the keywords mode is set to MATCH_KEYWORDS.- Specified by:
getMatchKeywordsValuein interfaceParameters.MutableKeywordsParameters- Returns:
- a value that identifies which tests are to be selected, when the keywords mode is set to MATCH_KEYWORDS
- See Also:
-
setMatchKeywords
Description copied from interface:Parameters.MutableKeywordsParametersSet how to match a tests keywords when the keywords mode is set to MATCH_KEYWORDS.- Specified by:
setMatchKeywordsin interfaceParameters.MutableKeywordsParameters- Parameters:
mode- A value indicating how to interpretvaluevalue- Ifmodeis set to ANY_OF or ALL_OF, this value should give a white-space separate list of keywords to be matched; ifmodeis set to EXPR, this value should be a boolean expression using terminals, & (and), | (or), ! (negation) and parentheses, where the terminals are true if a test description contains that name as one of its keywords.- See Also:
-
getKeywordFilter
Get a test filter based on the keyword expression in the interview.- Returns:
- a test filter based on the keyword expression in the interview.
-