简体   繁体   English

带有SLIM夹具的流动模式

[英]Flow mode with SLIM fixtures

I'm wondering is there is a way to use multiple kinds of tables with SLIM (as opposed to FIT) in one test and keeping the context of the same instance of the test class (the harness around the system under test). 我想知道是否有一种方法可以在一个测试中使用带有SLIM的多种表(而不是FIT),并保持测试类的同一实例(被测系统周围的工具)的上下文。

With FIT you can enter flow mode by referencing a DoFixture be itself at the start of a test page. 使用FIT,您可以通过在测试页面开始时引用DoFixture本身来进入流模式。 This allows you to leverage a variety of different table/fixture type. 这使您可以利用各种不同的表/装置类型。

I would like to do something similar with SLIM (maybe using a Script Fixture). 我想对SLIM做一些类似的事情(也许使用脚本治具)。

Is this possible? 这可能吗?

You can have multiple script tables all using the same instance (or 'actor') by not specifying a class as second cell value in the 2nd and following tables, see http://fitnesse.org/FitNesse.UserGuide.WritingAcceptanceTests.SliM.ScriptTable . 您可以通过不将类指定为第二个表和后续表中的第二个单元格值来使多个脚本表全部使用同一实例(或“角色”),请参见http://fitnesse.org/FitNesse.UserGuide.WritingAcceptanceTests.SliM。 ScriptTable You can also use this same instance/actor in decision tables (that do not link to separate code, but just invoke scenario's for the activated script fixture, see http://fitnesse.org/FitNesse.UserGuide.WritingAcceptanceTests.SliM.ScenarioTable ). 您还可以在决策表中使用相同的实例/角色(这些实例/角色不链接到单独的代码,而只是为激活的脚本夹具调用场景,请参阅http://fitnesse.org/FitNesse.UserGuide.WritingAcceptanceTests.SliM.ScenarioTable ) 。

I'm not aware of other Slim tables that can also share a fixture instance. 我不知道其他也可以共享Fixture实例的Slim表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM