本文整理汇总了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();
}
}
示例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);
}
示例3: afterStories
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void afterStories() {
webDriver.close();
}
示例4: afterAllStories
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void afterAllStories() {
LOGGER.info("<<<<<< AfterStories >>>>>>");
}
示例5: cleanup
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void cleanup() {
}
示例6: afterStories
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void afterStories() {
throw new RuntimeException("Failure after stories");
}
示例7: afterStories
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void afterStories() {
System.out.println("After Stories ...");
}
示例8: afterStories
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void afterStories(){
throw new RuntimeException("Bum went the stories");
}
示例9: afterStories
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void afterStories(){
Assert.assertThat(failures.size(), Matchers.equalTo(2));
}
示例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;
}
示例11: killApplication
import org.jbehave.core.annotations.AfterStories; //导入依赖的package包/类
@AfterStories
public void killApplication() {
System.out.println("********Closing the Selendroid Server**********");
CommonMethods.killApp();
}