Step 3: Extending the context API interface


For step 3, you must add a getAdminContext_Ext method to ContextFactory.

Create a new interface that extends the existing context API interface.

The following text is an example of a new AdminContext_Ext interface.

package gw.cucumber.customer.context.api

// additional uses statements may be needed
uses gw.cucumber.context.api.admin.AdminContext

interface AdminContext_Ext extends AdminContext {

  /**   
   * Get a user who belongs to a team that the supervisor supervises
   *
   * @param userName
   */
  function getTeamMember(userName : String)

  /**
   * Set the user's email address.
   *
   * @param emailAddress
   */
  function setUserEmailAddress(emailAddress : String)

  /**
   * Verify the user's email address.
   *
   * @param emailAddress
   */
  function verifyEmailAddress(emailAddress : String)
  
}