Class BaseUrlClient

java.lang.Object
com.sun.ts.lib.harness.EETest
com.sun.ts.tests.common.webclient.BaseUrlClient
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AbstractUrlClient, SecBasicClient

public abstract class BaseUrlClient extends EETest
 Provides base test initialization and runtime
 logic into a common class.
 All test areas will need to extend this class
 to provided area specific functionality needed for
 that particular technology.
 
See Also:
  • Field Details

  • Constructor Details

    • BaseUrlClient

      public BaseUrlClient()
  • Method Details

    • setTestDir

      public void setTestDir(String testDir)
      setTestDir sets the current test directory.
      Parameters:
      testDir - a String value
    • setGeneralURI

      public void setGeneralURI(String URI)
    • setContextRoot

      public void setContextRoot(String root)
    • getContextRoot

      public String getContextRoot()
    • setGoldenFileDir

      public void setGoldenFileDir(String goldenDir)
      Sets the goldenfile directory
      Parameters:
      goldenDir - goldenfile directory based off test directory
    • setup

      public void setup(String[] args, Properties p) throws Exception
      setup is by the test harness to initialize the tests.
      Parameters:
      args - a String[] value
      p - a Properties value
      Throws:
      Exception - if an error occurs
    • cleanup

      public void cleanup() throws Exception
      cleanup is called by the test harness to cleanup after text execution
      Throws:
      Exception - if an error occurs
    • invoke

      protected void invoke() throws Exception
       Invokes a test based on the properties
       stored in TEST_PROPS.  Once the test has completed,
       the properties in TEST_PROPS will be cleared.
       
      Throws:
      Exception - If an error occurs during the test run
    • setTestProperties

      protected void setTestProperties(WebTestCase testCase)
      Sets the appropriate test properties based on the values stored in TEST_PROPS
      Parameters:
      testCase - a WebTestCase value