retest / gui-state-machine-api

API for the creation and modification of incomplete state machines which represent the exploration of a GUI application.
2 stars 1 forks source link

Allow passing SutState directly to executeAction(...) #11

Closed beatngu13 closed 5 years ago

beatngu13 commented 5 years ago

Instead of doing the following on the client side:

SutState beforeState = ...
Action action = ...
SutState afterState = ...
Set<Action> unexploredActions = ...
final State state = stateMachine.getState( beforeState, unexploredActions );
stateMachine.executeAction( state, action, afterState, unexploredActions );

Could we pass SutState directly?

SutState beforeState = ...
Action action = ...
SutState afterState = ...
Set<Action> unexploredActions = ...
stateMachine.executeAction( beforeState, action, afterState, unexploredActions );
tdauth commented 5 years ago

Done, see https://github.com/retest/gui-state-machine-api/commit/cc012454225d53c937ef0bc494821f4281427856