Package net.thucydides.core.annotations

Thucydides annotations. Thucydides uses annotations to denote test steps and step groups, and to provide metadata about the test runs, such as default urls and URL mappings. These annotations apply to the Thucydides model classes, such as page objects and step libraries.
  • Class Summary
    Class Description
    ElementIsUsable  
    ManagedWebDriverAnnotatedField
    The WebDriver driver is stored as an annotated field in the test classes.
    Methods
    Created by john on 7/08/2015.
    TestCaseAnnotations
    Utility class used to inject fields into a test case.
  • Enum Summary
    Enum Description
    ClearCookiesPolicy  
  • Exception Summary
    Exception Description
    InvalidManagedWebDriverFieldException
    Thrown if no suitable WebDriver field with the @Managed annotation is found in a test.
    InvalidStepsFieldException
    Thrown if no suitable WebDriver field with the @Managed annotation is found in a test.
    ManualTestMarkedAsError  
    NotImplementedException
    Thrown when there is an implementation error of WebElementFacade extension
  • Error Summary
    Error Description
    ManualTestMarkedAsFailure  
  • Annotation Types Summary
    Annotation Type Description
    At
    Define the URLs that a given Page Object works with.
    BlurScreenshots
    Indicates whether or not the screenshots should be blurred.
    DefaultUrl
    Define the URLs that a given Page Object works with.
    DriverOptions
    Options that will be passed to a driver specified by the @WithDriver annotation
    ImplementedBy
    Annotation is used to specify the implementation Class of the interface that extends WebElementFacade.
    Managed
    Annotation that marks a WebDriver field as one that is managed by the Test Runner.
    ManagedPages
    Annotation that marks a WebDriver field as one that is managed by the Test Runner.
    Manual
    Annotation that marks a manual test.
    NamedUrl
    Define the URLs that a given Page Object works with.
    NamedUrls
    Define the URLs that a given Page Object works with.
    Reported
    Annotation that marks a WebDriver field as one that is managed by the Test Runner.
    Screenshots  
    Shared
    Shared is a synonym for @Steps(shared=true)
    Steps
    Marks a class that implements test steps as individual methods.
    UsePersistantStepLibraries  
    UserStoryCode
    Mark a test case with a code identifing a user story.
    WhenPageOpens
    Indicates a method on a Page Object that is called when the page is opened.
    WithDriver
    Run an individual test with a specific driver.