public class PriorStatusInterview extends Interview implements Parameters.MutablePriorStatusParameters
Interview.BadHelpFault, Interview.Fault, Interview.HelpNotFoundFault, Interview.NotOnPathFault, Interview.Observer
EXPORT_IGNORE_ALL_EXCEPTIONS, EXPORT_IGNORE_NO_EXCEPTIONS, EXPORT_IGNORE_RUNTIME_EXCEPTIONS, EXTERNAL_PREF, INTERVIEW, LOCALE, MARKERS, MARKERS_PREF, QUESTION, SEMANTIC_MAX_VERSION, SEMANTIC_PRE_32, SEMANTIC_VERSION_32, SEMANTIC_VERSION_43, TEMPLATE_PREF
MATCH_PRIOR_STATUS, NO_PRIOR_STATUS
Constructor and Description |
---|
PriorStatusInterview(InterviewParameters parent)
Create an interview.
|
Modifier and Type | Method and Description |
---|---|
boolean[] |
getMatchPriorStatusValues()
Get an array of booleans which identify which tests to be run,
according to their prior execution status.
|
int |
getPriorStatusMode()
Get the current mode determining whether tests are selected or not
according to their prior execution status.
|
boolean[] |
getPriorStatusValues()
Get an array of boolean values from the interview, which indicate
which "prior status" values will cause a test to be selected for execution.
|
TestFilter |
getStatusFilter()
Get a test filter generated from the status test values in the interview.
|
void |
setMatchPriorStatusValues(boolean[] b)
Set an array of boolean values in the interview, which indicate
which "prior status" values will cause a test to be selected for execution.
|
void |
setPriorStatusMode(int mode)
Set the current mode determining whether tests are selected or not
according to their prior execution status.
|
void |
setPriorStatusValues(boolean[] b)
Set which prior status values should be used, if any, to select tests
for execution.
|
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
public PriorStatusInterview(InterviewParameters parent) throws Interview.Fault
parent
- The parent interview of which this is a child.Interview.Fault
- if there is a problem while creating the interview.public boolean[] getPriorStatusValues()
Status.PASSED
, Status.FAILED
,
etc.getPriorStatusValues
in interface Parameters.PriorStatusParameters
setPriorStatusValues(boolean[])
public void setPriorStatusValues(boolean[] b)
Parameters.MutablePriorStatusParameters
setPriorStatusValues
in interface Parameters.MutablePriorStatusParameters
b
- if null, the prior status mode will be set to NO_PRIOR_STATUS;
if not null, the prior status mode will be set to MATCH_PRIOR_STATUS,
and the matching values will be set to this array.Parameters.PriorStatusParameters.getPriorStatusValues()
public int getPriorStatusMode()
Parameters.MutablePriorStatusParameters
getPriorStatusMode
in interface Parameters.MutablePriorStatusParameters
Parameters.MutablePriorStatusParameters.setPriorStatusMode(int)
,
Parameters.MutablePriorStatusParameters.NO_PRIOR_STATUS
,
Parameters.MutablePriorStatusParameters.MATCH_PRIOR_STATUS
public void setPriorStatusMode(int mode)
Parameters.MutablePriorStatusParameters
setPriorStatusMode
in interface Parameters.MutablePriorStatusParameters
mode
- if set to NO_PRIOR_STATUS, the prior execution status
will not be taken into account; otherwise, if set to MATCH_PRIOR_STATUS
tests will be selected if and only of their execution status matches
one of the matching prior status values.Parameters.MutablePriorStatusParameters.getPriorStatusMode()
,
Parameters.MutablePriorStatusParameters.NO_PRIOR_STATUS
,
Parameters.MutablePriorStatusParameters.MATCH_PRIOR_STATUS
public boolean[] getMatchPriorStatusValues()
Parameters.MutablePriorStatusParameters
Status.PASSED
, Status.FAILED
,
Status.ERROR
, and Status.NOT_RUN
.
A test will be selected for execution if the entry in the
array corresponding to the tests execution status is set to true.getMatchPriorStatusValues
in interface Parameters.MutablePriorStatusParameters
Parameters.MutablePriorStatusParameters.setMatchPriorStatusValues(boolean[])
public void setMatchPriorStatusValues(boolean[] b)
Status.PASSED
, Status.FAILED
,
etc.setMatchPriorStatusValues
in interface Parameters.MutablePriorStatusParameters
b
- an array of Status.NUM_STATES
boolean values which indicate
which "prior status" values will cause a test to be selected for execution.getMatchPriorStatusValues()
public TestFilter getStatusFilter()
getPriorStatusValues()
Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.