|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.team.fvt.tests.web.WebPageElement
com.ibm.team.fvt.tests.web.WebElementWrapper
com.ibm.team.fvt.tests.web.WebWindow
com.ibm.team.fvt.tests.web.WebDialog
com.ibm.team.fvt.tests.clm.pages.dialogs.ClmWebPageDialog
com.ibm.team.fvt.tests.clm.pages.dialogs.ClmNewTestCaseDialog
public abstract class ClmNewTestCaseDialog
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:
createNewDefaultTestCase(String, String, String, String, String)
: Creates a new default test case.selectOwner(String)
: Select the owner of the created test case.selectTestPhase(String)
: Select the test phase of the created test case.setDescription(String)
: Set the description of the created test case.setName(String)
: Set the name of the created test case.setWeight(String)
: Set the wieght of the created test case.Following operations are also specialized for dialogs:
WebWindow.getCloseButton(boolean)
: Return the xpath of the button to close the
dialog.
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 |
---|
public ClmNewTestCaseDialog(ClmWebPage page, org.openqa.selenium.By findBy)
public ClmNewTestCaseDialog(ClmWebPage page, org.openqa.selenium.By findBy, java.lang.String frame)
Method Detail |
---|
public void createNewDefaultTestCase(java.lang.String name, java.lang.String description, java.lang.String weight, java.lang.String owner, java.lang.String testPhase)
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)public void createTestCases()
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.
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
open
in class com.ibm.team.fvt.tests.web.WebDialog
public final void selectOwner(java.lang.String owner)
owner
- The owner to select in the drop-down listpublic final void selectTestPhase(java.lang.String phase)
phase
- The phase to select in the drop-down list, should not be null
public final void setDescription(java.lang.String description)
This is a no-op if the provided value is null
.
description
- The description textpublic final void setName(java.lang.String name)
name
- The test case name, should not be null
public final void setWeight(java.lang.String weight)
This is a no-op if the provided value is null
.
weight
- The weight value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |