Interface Scene
- All Superinterfaces:
WithOid
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Scene.Builder
begin()
// @formatter:off A synonym ofnew Scene.Builder()
.static Scene.Builder
children()
Returns members of this scene object, which are executed as "children".static Scene
Creates a scene by chaining acts.static Scene
Creates a scene by chaining acts.Returns a list of variables that are accessed by child scenes of this object.default String
name()
Returns a name of this object.oid()
Returns an object identifier of this object.Returns a list of variables that are assigned by child scenes of this object.default com.github.dakusui.actionunit.core.Action
toSequentialAction
(ActionComposer actionComposer) Creates a sequential action from the child calls of this objectMethods inherited from interface jp.co.moneyforward.autotest.framework.action.WithOid
workingVariableStoreName
-
Field Details
-
DEFAULT_DEFAULT_VARIABLE_NAME
A default value of default variable name forScene.Builder
and@Export
. This value is currently definedpage
for historical reason. However, InspektorDog is designed not only for GUI end-to-end test, but a general purpose testing framework. The value should be changed to a more context neutral keyword, such asvar
orsession
.- See Also:
-
DUMMY_OUTPUT_VARIABLE_NAME
A place-holder variable name to which an output from a sink will be assigned
-
-
Method Details
-
begin
// @formatter:off A synonym of
new Scene.Builder()
. Use this in combination withScene#end()
so that your code looks like:class YourClass { void method() { Scene.begin() .act(yourAct()) .assertion(s -> s.then().looksOkay()) .end() } }
// @formatter:on
- Returns:
- A new
Scene.Builder
object.
-
begin
-
create
Creates a scene by chaining acts. When you need to handle multiple variables, useScene.Builder
directly.- Parameters:
variableName
- A variable chained acts read input value from and write output value to.acts
- Acts from which a scene is created.- Returns:
- Created scene.
-
create
Creates a scene by chaining acts. This method internally calls
create(String, Act[])
usingDEFAULT_DEFAULT_VARIABLE_NAME
as avariableName
.When you need to handle other variables, use
create(String, Act[])
orScene.Builder
, instead.- Parameters:
acts
- Acts from which a scene is created.- Returns:
- Created scene.
-
toSequentialAction
Creates a sequential action from the child calls of this object- Parameters:
actionComposer
- A visitor that builds a sequential action from child calls of this object.- Returns:
- A sequential action created from child calls
- See Also:
-
children
-
oid
-
name
Returns a name of this object. The returned string will appear in an action tree printed during the action execution.- Returns:
- A name of this object.
-
outputVariableNames
-
inputVariableNames
-