我使用Cucumber和Capybara编写了一个功能来测试我的web应用程序的默认配置。功能的一部分看起来像这样:
And the page has a photo labeled "Device"
And the page has a checkbox labeled "Device"
And I check "Device"
And I submit the form
Then the resulting page has no photo labeled "Device"
它工作得很好。我希望在自己的服务器上安装和配置we
好吧,我确信我没有正确使用状态机,但以下是示例代码的子集。这是曾经是bbvcommon.StateMachine的Appccelerate.StateMachine。
fsm.In(State.Idle)
.ExecuteOnEntry(() => {
// wake up and check if there are people still standing and if so restart
if(currentlyTalkingTo.Count() > 0)
{
fsm.Fire(Event.