本文整理汇总了Java中org.jbehave.core.annotations.AfterStories类的典型用法代码示例。如果您正苦于以下问题:Java AfterStories类的具体用法?Java AfterStories怎么用?Java AfterStories使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AfterStories类属于org.jbehave.core.annotations包,在下文中一共展示了AfterStories类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: afterStories
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void afterStories() throws Exception {
if (!JOURNAL_FIREFOX_COMMANDS.equals("false") && webDriverProvider instanceof FirefoxWebDriverProvider) {
FirefoxWebDriverProvider.WebDriverJournal journal = ((FirefoxWebDriverProvider) webDriverProvider).getJournal();
System.out.println("Journal of WebDriver Commands:");
for (Object entry : journal) {
System.out.println(entry);
}
((FirefoxWebDriverProvider) webDriverProvider).clearJournal();
}
}
开发者ID:deniskiriusin,项目名称:combinatorius,代码行数:14,代码来源:JournaledStoriesSteps.java
示例2: clearCache
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void clearCache() throws IOException {
File cssCacheDir = new File("src/main/webapp/css_cache");
File jsCacheDir = new File("src/main/webapp/js_cache");
clearDirectory(cssCacheDir);
clearDirectory(jsCacheDir);
}
开发者ID:deniskiriusin,项目名称:combinatorius,代码行数:8,代码来源:LifecycleSteps.java
示例3: afterStories
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void afterStories() {
webDriver.close();
}
开发者ID:tobias-gaenzler,项目名称:jbehave-vaadin-example,代码行数:5,代码来源:AddressbookSteps.java
示例4: afterAllStories
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void afterAllStories() {
LOGGER.info("<<<<<< AfterStories >>>>>>");
}
开发者ID:wemanity,项目名称:Acceptance-Tests-with-JBehave,代码行数:5,代码来源:DemonstrationSteps.java
示例5: cleanup
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void cleanup() {
}
开发者ID:smr-co-uk,项目名称:java-logonce,代码行数:4,代码来源:LogOnceSteps.java
示例6: afterStories
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void afterStories() {
throw new RuntimeException("Failure after stories");
}
开发者ID:vactowb,项目名称:jbehave-core,代码行数:5,代码来源:FailingBeforeAfterSteps.java
示例7: afterStories
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void afterStories() {
System.out.println("After Stories ...");
}
开发者ID:vactowb,项目名称:jbehave-core,代码行数:5,代码来源:BeforeAfterSteps.java
示例8: afterStories
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void afterStories(){
throw new RuntimeException("Bum went the stories");
}
开发者ID:vactowb,项目名称:jbehave-core,代码行数:5,代码来源:FailingAfterStories.java
示例9: afterStories
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void afterStories(){
Assert.assertThat(failures.size(), Matchers.equalTo(2));
}
开发者ID:vactowb,项目名称:jbehave-core,代码行数:5,代码来源:FailureCorrelationStories.java
示例10: listBeforeOrAfterStories
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
public List<BeforeOrAfterStep> listBeforeOrAfterStories() {
List<BeforeOrAfterStep> steps = new ArrayList<BeforeOrAfterStep>();
steps.addAll(stepsHaving(Stage.BEFORE, BeforeStories.class));
steps.addAll(stepsHaving(Stage.AFTER, AfterStories.class));
return steps;
}
开发者ID:vactowb,项目名称:jbehave-core,代码行数:7,代码来源:Steps.java
示例11: killApplication
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void killApplication() {
System.out.println("********Closing the Selendroid Server**********");
CommonMethods.killApp();
}
开发者ID:saikrishna321,项目名称:JBehave-Selendroid-Android-Automation,代码行数:6,代码来源:MySteps.java
注:本文中的org.jbehave.core.annotations.AfterStories类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论