ariba.ui.aribaweb.test
Class TestContext

java.lang.Object
  extended by ariba.ui.aribaweb.test.TestContext

public class TestContext
extends Object


Field Summary
static String ID
           
static String Name
           
static String ReturnUrlParam
           
static String SemiColon
           
static String SuiteDataParam
           
static String TestAutomationMode
           
 
Constructor Summary
TestContext()
           
 
Method Summary
 void addInternalParam(String key, Object value)
           
 void clear()
           
 Object get(Class type)
           
 String getEncodedReturnUrl()
           
static String getEncodedReturnUrl(String displayName, String url)
           
 String getId()
           
 Object getInternalParam(String key)
           
 String getReturnUrl()
           
 String getReturnUrlName()
           
static TestContext getSavedTestContext(AWRequestContext requestContext)
           
 String getSuiteData()
           
static TestContext getTestContext(AWRequestContext requestContext)
           
static TestContext getTestContext(AWSession session)
           
 String getUsername()
           
 void initializeSuiteData(AWRequestContext requestContext)
           
static boolean isTestAutomationMode(AWRequestContext requestContext)
           
 Set keys()
           
static void put(AWRequestContext rc, Object value)
          If there is a TestContext associated with the AWRequestContext's AWSession, and value is non-null, put the given value into it, keyed by its Class instance.
static void put(AWRequestContext rc, String key, Object value)
          If there is a TestContext associated with the AWRequestContext's AWSession, and key and value are non-null, put the given key-value pair into it.
static void put(AWSession session, Object value)
          If there is a TestContext associated with the AWSession, and value is non-null, put the given value into it, keyed by its Class instance.
static void put(AWSession session, String key, Object value)
          If there is a TestContext associated with the AWSession, and key and value are non-null, put the given key-value pair into it.
 void put(Object object)
           
 void put(Object key, Object value)
           
static void registerTestContextObjectFactory(TestContextObjectFactory factory, Class c, String factoryId)
           
static void removeSavedTestContext(AWRequestContext requestContext)
           
 void saveTestContext()
           
 void setDataProvider(TestContextDataProvider dataProvider)
           
 void setUsername(String username)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Name

public static final String Name
See Also:
Constant Field Values

ID

public static final String ID
See Also:
Constant Field Values

TestAutomationMode

public static final String TestAutomationMode
See Also:
Constant Field Values

SuiteDataParam

public static final String SuiteDataParam
See Also:
Constant Field Values

ReturnUrlParam

public static final String ReturnUrlParam
See Also:
Constant Field Values

SemiColon

public static final String SemiColon
See Also:
Constant Field Values
Constructor Detail

TestContext

public TestContext()
Method Detail

getId

public String getId()

getSavedTestContext

public static TestContext getSavedTestContext(AWRequestContext requestContext)

removeSavedTestContext

public static void removeSavedTestContext(AWRequestContext requestContext)

saveTestContext

public void saveTestContext()

addInternalParam

public void addInternalParam(String key,
                             Object value)

getInternalParam

public Object getInternalParam(String key)

setDataProvider

public void setDataProvider(TestContextDataProvider dataProvider)

isTestAutomationMode

public static boolean isTestAutomationMode(AWRequestContext requestContext)

getTestContext

public static TestContext getTestContext(AWRequestContext requestContext)

getTestContext

public static TestContext getTestContext(AWSession session)

keys

public Set keys()

get

public Object get(Class type)

put

public void put(Object object)

put

public void put(Object key,
                Object value)

put

public static void put(AWRequestContext rc,
                       Object value)
If there is a TestContext associated with the AWRequestContext's AWSession, and value is non-null, put the given value into it, keyed by its Class instance.


put

public static void put(AWRequestContext rc,
                       String key,
                       Object value)
If there is a TestContext associated with the AWRequestContext's AWSession, and key and value are non-null, put the given key-value pair into it.


put

public static void put(AWSession session,
                       Object value)
If there is a TestContext associated with the AWSession, and value is non-null, put the given value into it, keyed by its Class instance.


put

public static void put(AWSession session,
                       String key,
                       Object value)
If there is a TestContext associated with the AWSession, and key and value are non-null, put the given key-value pair into it.


setUsername

public void setUsername(String username)

getUsername

public String getUsername()

clear

public void clear()

registerTestContextObjectFactory

public static void registerTestContextObjectFactory(TestContextObjectFactory factory,
                                                    Class c,
                                                    String factoryId)

getSuiteData

public String getSuiteData()

initializeSuiteData

public void initializeSuiteData(AWRequestContext requestContext)

getEncodedReturnUrl

public static String getEncodedReturnUrl(String displayName,
                                         String url)

getEncodedReturnUrl

public String getEncodedReturnUrl()

getReturnUrlName

public String getReturnUrlName()

getReturnUrl

public String getReturnUrl()


AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.