net.thucydides.core
Class Thucydides

Package class diagram package Thucydides
java.lang.Object
  extended by net.thucydides.core.Thucydides

public class Thucydides
extends Object

A utility class that provides services to initialize web testing and reporting-related fields in arbitrary objects. It is designed to help integrate Thucydides into other testing tools such as Cucumber.


Constructor Summary
Thucydides()
           
 
Method Summary
static void done()
          Indicate that the test run using this object is finished, and reports can be generated.
static Map getCurrentSession()
           
static String getCurrentSessionID()
           
static String getDefaultProjectKey()
          The current working directory name is used as a default project key if no other key is provided.
protected static org.openqa.selenium.WebDriver getDriver()
           
protected static Pages getPages()
           
static StepListener getStepListener()
           
static void ignoredStep(String reason)
           
static void initialize(Object testCase)
          Initialize Thucydides-related fields in the specified object.
static void initializeTestSession()
           
protected static void injectAnnotatedPagesObjectInto(Object testCase)
          Instantiates the @ManagedPages-annotated Pages instance using current WebDriver.
protected static void injectDriverInto(Object testCase)
          Instantiate the @Managed-annotated WebDriver instance with current WebDriver.
protected static void injectScenarioStepsInto(Object testCase)
          Instantiates the @ManagedPages-annotated Pages instance using current WebDriver.
static void loadLocalPreferences()
           
static void pendingStep(String reason)
           
protected static void stopUsingMockDriver()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Thucydides

public Thucydides()
Method Detail

initialize

public static void initialize(Object testCase)
Initialize Thucydides-related fields in the specified object. This includes managed WebDriver instances,


injectDriverInto

protected static void injectDriverInto(Object testCase)
Instantiate the @Managed-annotated WebDriver instance with current WebDriver.


injectScenarioStepsInto

protected static void injectScenarioStepsInto(Object testCase)
Instantiates the @ManagedPages-annotated Pages instance using current WebDriver.


injectAnnotatedPagesObjectInto

protected static void injectAnnotatedPagesObjectInto(Object testCase)
Instantiates the @ManagedPages-annotated Pages instance using current WebDriver.


done

public static void done()
Indicate that the test run using this object is finished, and reports can be generated.


getCurrentSessionID

public static String getCurrentSessionID()

getDriver

protected static org.openqa.selenium.WebDriver getDriver()

getPages

protected static Pages getPages()

stopUsingMockDriver

protected static void stopUsingMockDriver()

getStepListener

public static StepListener getStepListener()

loadLocalPreferences

public static void loadLocalPreferences()
                                 throws IOException
Throws:
IOException

initializeTestSession

public static void initializeTestSession()

getCurrentSession

public static Map getCurrentSession()

pendingStep

public static void pendingStep(String reason)

ignoredStep

public static void ignoredStep(String reason)

getDefaultProjectKey

public static String getDefaultProjectKey()
The current working directory name is used as a default project key if no other key is provided.



Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.