com.day.qa.test.selenium.cq5wcm.geometrixx.components
Class ComponentBaseTestCase

java.lang.Object
  extended by com.day.qa.test.selenium.testrunner.BaseTestCase
      extended by com.day.qa.test.selenium.cq5wcm.CQ5WCMBaseTestCase
          extended by com.day.qa.test.selenium.cq5wcm.geometrixx.components.ComponentBaseTestCase
Direct Known Subclasses:
CreateEditDeleteBaseTestCase

public class ComponentBaseTestCase
extends CQ5WCMBaseTestCase


Field Summary
 
Fields inherited from class com.day.qa.test.selenium.cq5wcm.CQ5WCMBaseTestCase
adminURL, context, HANDLE_CONTENT_FINDER, HANDLE_LOGIN, HANDLE_MISC_ADMIN, HANDLE_SECURITY_ADMIN, HANDLE_SITE_ADMIN, HANDLE_TAGGING_ADMIN, HANDLE_WORKFLOW_ADMIN
 
Fields inherited from class com.day.qa.test.selenium.testrunner.BaseTestCase
baseURL, browser, password, selenium, selServerHost, selServerPort, speed, username
 
Constructor Summary
ComponentBaseTestCase()
           
 
Method Summary
 void deleteComponent(String componentPath)
          Deletes the created Component.
 String getLabel(String componentPath)
          Extracts the name or label of the component from its component path.
 void openEditComponentDialog(String componentPath)
          Opens the Edit dialog for an existing component.
 void saveDialog(String componentPath)
          Clicks the 'Save' button in a components edit dialog.
 void selectNewComponentDialog(String componentTitle)
          Opens 'Insert New Component' dialog in par system by double clicking the drop zone at the bottom of the par system.
 void selectTab(String tabName)
          Select tab element in dialog
 void setDialogDragNDropImage(String name)
          TODO: Drag an drops an image from the content finder into on a upload widget or an image widget.
 void setDialogInput(String fieldName, String value)
          Set the value of an input in an dialog
 void setDialogRichText(String value)
          Sets the value of an richedit in a dialog
 void setDialogTextArea(String fieldName, String value)
          Set the value in the text area of a dialog
 
Methods inherited from class com.day.qa.test.selenium.cq5wcm.CQ5WCMBaseTestCase
extendToContentFinderHandle, globalLogin, open, pageExists, pageExists
 
Methods inherited from class com.day.qa.test.selenium.testrunner.BaseTestCase
classSetUp, classTearDown, getBaseURL, getCompleteBaseURL, setBaseURL, setBrowser, setPassword, setSeleniumServerHost, setSeleniumServerPort, setSpeed, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentBaseTestCase

public ComponentBaseTestCase()
Method Detail

selectNewComponentDialog

public void selectNewComponentDialog(String componentTitle)
                              throws Exception
Opens 'Insert New Component' dialog in par system by double clicking the drop zone at the bottom of the par system.

Throws:
Exception

openEditComponentDialog

public void openEditComponentDialog(String componentPath)
                             throws Exception
Opens the Edit dialog for an existing component.

Throws:
Exception

saveDialog

public void saveDialog(String componentPath)
                throws Exception
Clicks the 'Save' button in a components edit dialog.

Throws:
Exception

getLabel

public String getLabel(String componentPath)
Extracts the name or label of the component from its component path.

Parameters:
componentPath -
Returns:

deleteComponent

public void deleteComponent(String componentPath)
                     throws Exception
Deletes the created Component.

Throws:
Exception

selectTab

public void selectTab(String tabName)
Select tab element in dialog

Parameters:
tabName -

setDialogTextArea

public void setDialogTextArea(String fieldName,
                              String value)
Set the value in the text area of a dialog

Parameters:
fieldName -
value -

setDialogInput

public void setDialogInput(String fieldName,
                           String value)
Set the value of an input in an dialog

Parameters:
fieldName -
value -

setDialogRichText

public void setDialogRichText(String value)
Sets the value of an richedit in a dialog

Parameters:
fieldName -
value -

setDialogDragNDropImage

public void setDialogDragNDropImage(String name)
                             throws Exception
TODO: Drag an drops an image from the content finder into on a upload widget or an image widget.

Parameters:
name -
Throws:
Exception


Copyright © 2008 Day Management AG. All Rights Reserved.