com.ibm.team.fvt.tests.clm.pages.dialogs
Class ClmNewTestCaseDialog

java.lang.Object
  extended by com.ibm.team.fvt.tests.web.WebPageElement
      extended by com.ibm.team.fvt.tests.web.WebElementWrapper
          extended by com.ibm.team.fvt.tests.web.WebWindow
              extended by com.ibm.team.fvt.tests.web.WebDialog
                  extended by com.ibm.team.fvt.tests.clm.pages.dialogs.ClmWebPageDialog
                      extended by com.ibm.team.fvt.tests.clm.pages.dialogs.ClmNewTestCaseDialog
Direct Known Subclasses:
CcmNewTestCaseDialog, QmNewTestCaseDialog

public abstract class ClmNewTestCaseDialog
extends ClmWebPageDialog

Abstract class to manage the New Test Case Dialog

This dialog can be contained within an iframe or not, depending on the context. Sub-classes must set the inFrame boolean member variable to true if the dialog is contained within an iframe.

Following actions are accessible on this page:

Following operations are also specialized for dialogs:


Constructor Summary
ClmNewTestCaseDialog(ClmWebPage page, org.openqa.selenium.By findBy)
           
ClmNewTestCaseDialog(ClmWebPage page, org.openqa.selenium.By findBy, java.lang.String frame)
           
 
Method Summary
 void createNewDefaultTestCase(java.lang.String name, java.lang.String description, java.lang.String weight, java.lang.String owner, java.lang.String testPhase)
          Create a new test case using the 'Default Test Case Template'.
 void createTestCases()
          Create the default test cases.
 com.ibm.team.fvt.tests.web.WebBrowserElement open(com.ibm.team.fvt.tests.web.WebBrowserElement openElement)
          
 void selectOwner(java.lang.String owner)
          Select the owner of the created test case.
 void selectTestPhase(java.lang.String phase)
          Select the test phase of the created test case.
 void setDescription(java.lang.String description)
          Set the description of the created test case.
 void setName(java.lang.String name)
          Set the name of the created test case.
 void setWeight(java.lang.String weight)
          Set the wieght of the created test case.
 
Methods inherited from class com.ibm.team.fvt.tests.web.WebWindow
cancel, close
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClmNewTestCaseDialog

public ClmNewTestCaseDialog(ClmWebPage page,
                            org.openqa.selenium.By findBy)

ClmNewTestCaseDialog

public ClmNewTestCaseDialog(ClmWebPage page,
                            org.openqa.selenium.By findBy,
                            java.lang.String frame)
Method Detail

createNewDefaultTestCase

public void createNewDefaultTestCase(java.lang.String name,
                                     java.lang.String description,
                                     java.lang.String weight,
                                     java.lang.String owner,
                                     java.lang.String testPhase)
Create a new test case using the 'Default Test Case Template'.

Parameters:
name - The name of the test case (mandatory)
description - The description of the test case (null if not used)
weight - The weight of the test case (null if default to be used)
owner - The owner of the test case (mandatory)
testPhase - The test phase of the test case (null if default to be used)

createTestCases

public void createTestCases()
Create the default test cases.

Note that this is possible only in certain circumstances (ie. when at least mandatory name field is already filled. Otherwise, this action will fail as the OK button won't be enabled.


open

public com.ibm.team.fvt.tests.web.WebBrowserElement open(com.ibm.team.fvt.tests.web.WebBrowserElement openElement)

Wait for the end of dialog content loading.

TODO Pull-up to WebDialog or WebWindow

Overrides:
open in class com.ibm.team.fvt.tests.web.WebDialog

selectOwner

public final void selectOwner(java.lang.String owner)
Select the owner of the created test case.

Parameters:
owner - The owner to select in the drop-down list

selectTestPhase

public final void selectTestPhase(java.lang.String phase)
Select the test phase of the created test case.

Parameters:
phase - The phase to select in the drop-down list, should not be null

setDescription

public final void setDescription(java.lang.String description)
Set the description of the created test case.

This is a no-op if the provided value is null.

Parameters:
description - The description text

setName

public final void setName(java.lang.String name)
Set the name of the created test case.

Parameters:
name - The test case name, should not be null

setWeight

public final void setWeight(java.lang.String weight)
Set the wieght of the created test case.

This is a no-op if the provided value is null.

Parameters:
weight - The weight value