GraphWalker java annotations - GraphWalker/graphwalker-project GitHub Wiki
Annotations
Frameworks like JUnit and TestNG provide special annotations which can be triggered before a suit, a class, a method or a test.
GraphWalker has the same functionality with the following annotations:
@BeforeExecution
Annotated method will be triggered before the GraphWalker execution.
Could be used for launching a web browser, a phone emulator or start a server for tests.
@AfterExecution
Annotated method will be triggered after the GraphWalker execution.
Could be used for collecting results after test execution, like logs, reports etc.
@BeforeElement
Annotated method will be triggered before any element invocation (edge or vertex) in the GraphWalker execution.
@AfterElement
Annotated method will be triggered after any element invocation (edge or vertex) in the GraphWalker execution.