com.flexiblewebsolutions.xdriveunit
Class LoadWebXDriveTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.flexiblewebsolutions.xdriveunit.XDriveTestCase
              extended by com.flexiblewebsolutions.xdriveunit.WebXDriveTestCase
                  extended by com.flexiblewebsolutions.xdriveunit.LoadWebXDriveTestCase
All Implemented Interfaces:
junit.framework.Test

public abstract class LoadWebXDriveTestCase
extends WebXDriveTestCase

XML Test Case that can be used to Load Test Web applications.

Author:
Donavon Buss

Field Summary
 
Fields inherited from class com.flexiblewebsolutions.xdriveunit.WebXDriveTestCase
_WebClient, _WebTester, HTMLUNIT, JWEBUNIT
 
Fields inherited from class com.flexiblewebsolutions.xdriveunit.XDriveTestCase
_TestInput, _ThreadName
 
Constructor Summary
LoadWebXDriveTestCase(java.lang.String pName, java.lang.StringBuffer pTestInput, java.lang.StringBuffer pTestOptions, java.lang.String pThreadName)
          Initialize the LoadWebXMLTestCase object with required parameters.
 
Method Summary
protected  void clickButton(java.lang.String pButtonID, java.lang.String pButtonDesc)
          Clicks on a button after a set amount of time, records time taken for link to return
protected  void clickLinkWithImage(java.lang.String pLinkImg, java.lang.String pLinkDesc)
          Clicks on a button after a set amount of time, records time taken for link to return
protected  void clickLinkWithText(java.lang.String pLinkText, int pIndex, java.lang.String pLinkDesc)
          Clicks on a button after a set amount of time, records time taken for link to return
protected  void clickLinkWithText(java.lang.String pLinkText, java.lang.String pLinkDesc)
          Clicks on a button after a set amount of time, records time taken for link to return
 java.lang.String getClassName()
           
 java.io.File getTestDirectory()
           
 java.io.File getTestTmpDirectory()
           
protected  void setUp()
           
protected  void submit(java.lang.String pSubmitDesc)
          Clicks on a button after a set amount of time, records time taken for link to return
protected  void submit(java.lang.String pFormName, java.lang.String pSubmitDesc)
          Clicks on a button after a set amount of time, records time taken for link to return
 void tearDown()
           
 
Methods inherited from class com.flexiblewebsolutions.xdriveunit.WebXDriveTestCase
assertTextPresent, clickElementById, clickLink, dumpResponseToFile, dumpResponseToString, getTestFramework, setCurrentForm
 
Methods inherited from class com.flexiblewebsolutions.xdriveunit.XDriveTestCase
checkBooleanParameter, getFile, getTestOptions, init, init, setupTestOptions
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoadWebXDriveTestCase

public LoadWebXDriveTestCase(java.lang.String pName,
                             java.lang.StringBuffer pTestInput,
                             java.lang.StringBuffer pTestOptions,
                             java.lang.String pThreadName)
Initialize the LoadWebXMLTestCase object with required parameters.

See Also:
XDriveTestCase:XDriveTestCase(String pName, StringBuffer pTestInput, StringBuffer pTestOptions, String pThreadName)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class WebXDriveTestCase
Throws:
java.lang.Exception
See Also:
TestCase.setUp()

tearDown

public void tearDown()
              throws java.lang.Exception
Overrides:
tearDown in class WebXDriveTestCase
Throws:
java.lang.Exception
See Also:
TestCase.tearDown()

clickButton

protected void clickButton(java.lang.String pButtonID,
                           java.lang.String pButtonDesc)
Clicks on a button after a set amount of time, records time taken for link to return

Overrides:
clickButton in class WebXDriveTestCase
Parameters:
pButtonID - - ID of link
pButtonDesc - - Text description of link

clickLinkWithImage

protected void clickLinkWithImage(java.lang.String pLinkImg,
                                  java.lang.String pLinkDesc)
Clicks on a button after a set amount of time, records time taken for link to return

Overrides:
clickLinkWithImage in class WebXDriveTestCase
Parameters:
pLinkImg - - Src attribute of image
pLinkDesc - - Description of action for logging
See Also:
WebXDriveTestCase.clickLinkWithImage(java.lang.String, java.lang.String)

clickLinkWithText

protected void clickLinkWithText(java.lang.String pLinkText,
                                 int pIndex,
                                 java.lang.String pLinkDesc)
Clicks on a button after a set amount of time, records time taken for link to return

Overrides:
clickLinkWithText in class WebXDriveTestCase
Parameters:
pLinkText - - Link text as it appears to user.
pIndex - - Numbered occurence in page if more than one Link
pLinkDesc - - Description of action for logging
See Also:
WebXDriveTestCase.clickLinkWithText(java.lang.String, int, java.lang.String)

clickLinkWithText

protected void clickLinkWithText(java.lang.String pLinkText,
                                 java.lang.String pLinkDesc)
Clicks on a button after a set amount of time, records time taken for link to return

Overrides:
clickLinkWithText in class WebXDriveTestCase
Parameters:
pLinkText - - Link text as it appears to user.
pLinkDesc - - Description of action for logging
See Also:
WebXDriveTestCase.clickLinkWithText(java.lang.String, java.lang.String)

submit

protected void submit(java.lang.String pFormName,
                      java.lang.String pSubmitDesc)
Clicks on a button after a set amount of time, records time taken for link to return

Overrides:
submit in class WebXDriveTestCase
Parameters:
pFormName - - Name of form to submit
pSubmitDesc - - Description of action for logging
See Also:
WebXDriveTestCase.submit(java.lang.String, java.lang.String)

submit

protected void submit(java.lang.String pSubmitDesc)
Clicks on a button after a set amount of time, records time taken for link to return

Overrides:
submit in class WebXDriveTestCase
Parameters:
pSubmitDesc - - Description of action for logging
See Also:
WebXDriveTestCase.submit(java.lang.String)

getClassName

public java.lang.String getClassName()

getTestDirectory

public java.io.File getTestDirectory()

getTestTmpDirectory

public java.io.File getTestTmpDirectory()


Copyright © -2005 . All Rights Reserved.