com.day.qa.test.selenium.cq5wcm
Class CQ5WCMBaseTestCase

java.lang.Object
  extended by com.day.qa.test.selenium.testrunner.BaseTestCase
      extended by com.day.qa.test.selenium.cq5wcm.CQ5WCMBaseTestCase
Direct Known Subclasses:
ComponentBaseTestCase, CreateActivateDeletePage, SecurityBaseTestCase, SiteAdmin, TaggingBaseTestCase, WorkflowBaseTestCase

public class CQ5WCMBaseTestCase
extends com.day.qa.test.selenium.testrunner.BaseTestCase


Field Summary
static String adminURL
           
static String context
           
static String HANDLE_CONTENT_FINDER
          Handle for Content Finder
static String HANDLE_LOGIN
          Handle for Login
static String HANDLE_MISC_ADMIN
          Handle for Miscellaneous Administration
static String HANDLE_SECURITY_ADMIN
          Handle for User Administration
static String HANDLE_SITE_ADMIN
          Handle for Site Administration
static String HANDLE_TAGGING_ADMIN
          Handle for Tagging Administration
static String HANDLE_WORKFLOW_ADMIN
          Handle for Workflow Administration
 
Fields inherited from class com.day.qa.test.selenium.testrunner.BaseTestCase
baseURL, browser, password, selenium, selServerHost, selServerPort, speed, username
 
Constructor Summary
CQ5WCMBaseTestCase()
           
 
Method Summary
 String extendToContentFinderHandle(String handle)
          Extend handle to use content finder view
static void globalLogin(String usr, String pwd)
          Login into the repository and open the siteadmin page.
static void open(String url)
          Open url
 boolean pageExists(String url)
          Convenience method, see CQ5BaseTestCase#pageExist(String, String, String).
 boolean pageExists(String url, String user, String pass)
          Tests if a page exists.
 
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
 

Field Detail

adminURL

public static final String adminURL
See Also:
Constant Field Values

context

public static final String context
See Also:
Constant Field Values

HANDLE_LOGIN

public static final String HANDLE_LOGIN
Handle for Login

See Also:
Constant Field Values

HANDLE_SITE_ADMIN

public static final String HANDLE_SITE_ADMIN
Handle for Site Administration

See Also:
Constant Field Values

HANDLE_SECURITY_ADMIN

public static final String HANDLE_SECURITY_ADMIN
Handle for User Administration

See Also:
Constant Field Values

HANDLE_MISC_ADMIN

public static final String HANDLE_MISC_ADMIN
Handle for Miscellaneous Administration

See Also:
Constant Field Values

HANDLE_WORKFLOW_ADMIN

public static final String HANDLE_WORKFLOW_ADMIN
Handle for Workflow Administration

See Also:
Constant Field Values

HANDLE_TAGGING_ADMIN

public static final String HANDLE_TAGGING_ADMIN
Handle for Tagging Administration

See Also:
Constant Field Values

HANDLE_CONTENT_FINDER

public static final String HANDLE_CONTENT_FINDER
Handle for Content Finder

See Also:
Constant Field Values
Constructor Detail

CQ5WCMBaseTestCase

public CQ5WCMBaseTestCase()
Method Detail

open

public static void open(String url)
                 throws Exception
Open url

Parameters:
url -
Throws:
Exception

extendToContentFinderHandle

public String extendToContentFinderHandle(String handle)
Extend handle to use content finder view

Parameters:
handle -
Returns:

pageExists

public boolean pageExists(String url,
                          String user,
                          String pass)
Tests if a page exists.

Parameters:
url - the url of the page
user - the user to login
pass - the password to login
Returns:

pageExists

public boolean pageExists(String url)
Convenience method, see CQ5BaseTestCase#pageExist(String, String, String).

Parameters:
url -
Returns:
if a page with the given url exists.

globalLogin

public static void globalLogin(String usr,
                               String pwd)
Login into the repository and open the siteadmin page.



Copyright © 2008 Day Management AG. All Rights Reserved.