Interface Scene
- All Superinterfaces:
WithOid
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA default value of default variable name forScene.Builderand@Export. -
Method Summary
Modifier and TypeMethodDescriptionstatic Scene.Builderbegin()// @formatter:off A synonym ofnew Scene.Builder().static Scene.Builderchildren()Returns members of this scene object, which are executed as "children".static SceneCreates a scene by chaining acts.static SceneCreates a scene by chaining acts.Returns a list of variables that are accessed by child scenes of this object.default Stringname()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.ActiontoSequentialAction(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.Builderand@Export. This value is currently definedpagefor 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 asvarorsession.- See Also:
-
-
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.Builderobject.
-
begin
-
create
Creates a scene by chaining acts. When you need to handle multiple variables, useScene.Builderdirectly.- 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_NAMEas 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
-