com.ibm.team.fvt.tests.clm.pages.qm
Class QmWebViewTestCasePage

java.lang.Object
  extended by com.ibm.team.fvt.tests.web.WebPage
      extended by com.ibm.team.fvt.tests.clm.pages.ClmWebPage
          extended by com.ibm.team.fvt.tests.clm.pages.qm.QmWebPage
              extended by com.ibm.team.fvt.tests.clm.pages.qm.QmWebProjectAreaPage
                  extended by com.ibm.team.fvt.tests.clm.pages.qm.QmWebViewPage
                      extended by com.ibm.team.fvt.tests.clm.pages.qm.QmWebViewSectionsPage
                          extended by com.ibm.team.fvt.tests.clm.pages.qm.QmWebViewTestCasePage
All Implemented Interfaces:
ClmWebPageConstants

public class QmWebViewTestCasePage
extends QmWebViewSectionsPage

Manage the QM Test Case web page.

The page address is specialized by add &subAction=viewTestCase&id=id at the end of the QmWebViewPage.

Following actions are accessible on this page:

Following functionalities are also defined or specialized by this page:


Field Summary
 
Fields inherited from class com.ibm.team.fvt.tests.web.WebPage
NO_DATA
 
Fields inherited from interface com.ibm.team.fvt.tests.clm.pages.ClmWebPageConstants
ADMINISTRATION_HOME_MENU_GROUP, JAZZ_TEAM_SERVER_HOME_MENU_ITEM, LIFECYCLE_PROJECT_ADMIN_MENU_ITEM, USER_NOT_AUTHORIZED_MESSAGE_ID, USER_NOT_AUTHORIZED_MESSAGE_LOCATOR
 
Constructor Summary
QmWebViewTestCasePage(java.lang.String url, ClmConfig config, com.ibm.team.fvt.tests.config.User user)
           
QmWebViewTestCasePage(java.lang.String url, ClmConfig config, com.ibm.team.fvt.tests.config.User user, java.lang.String... data)
           
 
Method Summary
 com.ibm.team.fvt.tests.web.WebBrowserElement createQualityTask(java.lang.String projectAreaTitle)
          Create a quality task for creating a test script.
 QmWebViewTestScriptPage createTestScript(java.lang.String testScript, java.lang.String... steps)
          Create the given test script with the given steps for the current test case.
 CcmWebWorkItemPage gotoDevelopmentItem(java.lang.String item)
          Go to the given work item through the 'Development Items' section.
 QmWebViewTestCaseResultPage gotoTestCaseResultPageUsingLink(java.lang.String executionRecord, java.lang.String kind)
          Go to the test case result page following the given image element.
 QmWebViewTestExecutionRecordPage gotoTestExecutionRecord(java.lang.String testCase)
          Go to the given test case execution record through the 'Test Case Execution Records' section.
 QmWebViewTestPlanPage gotoTestPlanPageUsingBreadcrumb()
          Go to the given test plan page through the breadcrumb.
 QmWebViewTestScriptExecutionPage run(java.lang.String executionRecord, java.lang.String testPlan)
          Run the current test case for the given execution record of the test plan.
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.qm.QmWebViewSectionsPage
selectSection
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.qm.QmWebViewPage
getResourceID, getResourceName, getTitle
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.qm.QmWebProjectAreaPage
getProjectAreaName, getProjectAreaTitle, gotoReportsPage, gotoTestCasePage, gotoTestCaseResultPage, gotoTestPlanPage
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.qm.QmWebPage
openActiveProjectAreasPage, openAdminUIMenu
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.ClmWebPage
checkRichHover, clickHomeMenuItem, getBannerTitle, getCcmApplication, getConfig, getDmApplication, getJtsApplication, getLpaApplication, getMiniDashboard, getQmApplication, getRmApplication, getUser, gotoCcmProjectPage, gotoCcmProjectPage, gotoDmProjectPage, gotoDmProjectPage, gotoJtsAdminHomePage, gotoLpaAllProjectsPage, gotoQmProjectPage, gotoQmProjectPage, gotoRmProjectPage, gotoRmProjectPage, logout, openHelpMenu, openHomeMenu, openMenu, openMenu, openToolbarMenu, openUserProfileMenu, refresh, save, waitWhileBusy
 
Methods inherited from class com.ibm.team.fvt.tests.web.WebPage
changeUser, checkHoverTitle, checkRichHover, get, getBrowser, getLocation, getPage, getPage, getPageUsingBrowser, goBack, openPage, openPage, openPageUsingBrowser, openPageUsingHoverTitle, openPageUsingLink, openPageUsingLink, openPageUsingLink, openPageUsingLink, openPageUsingLink, openPageUsingLink, richHoverOverLink, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QmWebViewTestCasePage

public QmWebViewTestCasePage(java.lang.String url,
                             ClmConfig config,
                             com.ibm.team.fvt.tests.config.User user)

QmWebViewTestCasePage

public QmWebViewTestCasePage(java.lang.String url,
                             ClmConfig config,
                             com.ibm.team.fvt.tests.config.User user,
                             java.lang.String... data)
Method Detail

createQualityTask

public com.ibm.team.fvt.tests.web.WebBrowserElement createQualityTask(java.lang.String projectAreaTitle)
Create a quality task for creating a test script.

The current test case is saved (if necessary) after the test script creation.

Note that nothing happens if a quality task has been already created for the given test script.

Parameters:
projectAreaTitle - The project area title for the given task
Returns:
The link element on the created (or existing) quality task as a WebBrowserElement.

createTestScript

public QmWebViewTestScriptPage createTestScript(java.lang.String testScript,
                                                java.lang.String... steps)
Create the given test script with the given steps for the current test case.

The current test case is saved (if necessary) after the test script creation.

Note that nothing happens if the test script already exists.

Parameters:
testScript - The test script name to be created
steps - The steps to be created
Returns:
The QM opened page on the created (o existing) test script as a QmWebViewTestScriptPage.

gotoDevelopmentItem

public CcmWebWorkItemPage gotoDevelopmentItem(java.lang.String item)
Go to the given work item through the 'Development Items' section.

Parameters:
item - The development item name
Returns:
The opened work item page as a CcmWebWorkItemPage.

gotoTestCaseResultPageUsingLink

public QmWebViewTestCaseResultPage gotoTestCaseResultPageUsingLink(java.lang.String executionRecord,
                                                                   java.lang.String kind)
Go to the test case result page following the given image element.

If the given execution record is null, then it will jump on the first execution record found in the table.

Parameters:
executionRecord - The execution record name
kind - The kind of the result. Current valid values are:
  • "not-run": The execution record exist but was never run
  • "Blocked": The last result has the 'Blocked' status
Returns:
The opened test case result page as a QmWebViewTestCaseResultPage or null if the execution record does not exist.

gotoTestExecutionRecord

public QmWebViewTestExecutionRecordPage gotoTestExecutionRecord(java.lang.String testCase)
Go to the given test case execution record through the 'Test Case Execution Records' section.

Parameters:
testCase - The test case name.
Returns:
The opened test case execution record page as a QmWebViewTestExecutionRecordPage.

gotoTestPlanPageUsingBreadcrumb

public QmWebViewTestPlanPage gotoTestPlanPageUsingBreadcrumb()
Go to the given test plan page through the breadcrumb.

Returns:
The opened QM test case page as a QmWebViewTestPlanPage.
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - If the breadcrumb does not contain any test case link.

run

public QmWebViewTestScriptExecutionPage run(java.lang.String executionRecord,
                                            java.lang.String testPlan)
Run the current test case for the given execution record of the test plan.

First search if there's an existing test case result for the given execution record and use if if it has been never run or if it is in progress.

Parameters:
executionRecord - The execution record name
testPlan - The test plan in which to run the current test case.
Returns:
The opened test script execution page as a QmWebViewTestScriptExecutionPage.