Jbehave - Annotation
2014-02-25 12:29
267 查看
1. method step annotations:
@Given
@When
@Then
@Alias
@Aliases(当一个method可以被多个
step 使用时)
@Pending( 当当前还不能确定时)
Each step candidate corresponds to one Java method and to oneStepTyp
Note that each method can supports
aliases and a different step candidate is created for each alias.
2.
method scenario annotations:
@BeforeScenarioa
@AfterScenario
Optionally,theScenarioType
can bespecified to execute only upon that type, e.g. for
scenariosparametrised by examples. In addition, @AfterScenarioallows the setting of an optionalOutcome
value,which specifies whether the method should be executed depending on the outcomeof the scenario:
3. method story annotations:
@BeforeStory
@AfterStory
The @BeforeStory and @AfterStory annotations allow the corresponding methods to be executed before and aftereach story, either aGivenStory ornot:
4. Behave supports the following method stories annotations:
@BeforeStories
@AfterStories
The @BeforeStories and @AfterStories annotations allow the corresponding methods to be executed before and after acollection of stories: (如何选取story?)
5. parameter annotations:
@Named ( 如何使用?)
Parameter annotations are used in
parameterinjection.
6. configuration annotations:( 如何使用?)
@AsParameterConverter
@Configure
@UsingEmbedder
@UsingSteps
@UsingGuice
@UsingNeedle
@NeedleInjectionProvider
@UsingPico
@UsingSpring
@Given
@When
@Then
@Alias
@Aliases(当一个method可以被多个
step 使用时)
@Pending( 当当前还不能确定时)
Each step candidate corresponds to one Java method and to oneStepTyp
Note that each method can supports
aliases and a different step candidate is created for each alias.
2.
method scenario annotations:
@BeforeScenarioa
@AfterScenario
Optionally,theScenarioType
can bespecified to execute only upon that type, e.g. for
scenariosparametrised by examples. In addition, @AfterScenarioallows the setting of an optionalOutcome
value,which specifies whether the method should be executed depending on the outcomeof the scenario:
3. method story annotations:
@BeforeStory
@AfterStory
The @BeforeStory and @AfterStory annotations allow the corresponding methods to be executed before and aftereach story, either aGivenStory ornot:
4. Behave supports the following method stories annotations:
@BeforeStories
@AfterStories
The @BeforeStories and @AfterStories annotations allow the corresponding methods to be executed before and after acollection of stories: (如何选取story?)
5. parameter annotations:
@Named ( 如何使用?)
Parameter annotations are used in
parameterinjection.
6. configuration annotations:( 如何使用?)
@AsParameterConverter
@Configure
@UsingEmbedder
@UsingSteps
@UsingGuice
@UsingNeedle
@NeedleInjectionProvider
@UsingPico
@UsingSpring
相关文章推荐
- Servlet3.0特性--Annotation和模块化支持
- Struts2之Annotation注解配置使用
- Annotation实战【自定义AbstractProcessor】
- Java注解Annotation详解
- Java Annotation 高级应用
- strusts annotation
- Hibernate中多对多的annotation的写法(中间表可以有多个字段)
- org.hibernate.AnnotationException: @org.hibernate.annotations.Table references an unknown table:
- 【hibernate框架】关系映射之一对一单项外键关联(Annotation实现)
- Java注解--annotation
- Android studio 下 配置AndroidAnnotation 环境
- 详解 Spring 3.0 基于 Annotation 的依赖注入实现
- Hibernate关系映射(七)多对多双向关联@ManyToMany Annotation方式
- 17.如何自学Struts2之Struts2 Annotation注释[视频]
- xml零配置之AbstractAnnotationConfigDispatcherServletInitializer
- Play! Annotation as Authorization
- Annotation笔记
- java.lang.annotation 注解 包分析 自定义annotation
- Hibernate学习笔记(六)使用jpa annotation标注实体
- 深入理解Java:注解(Annotation)自定义注解入门