Changeset 17846
- Timestamp:
- 08/07/08 08:29:00 (1 month ago)
- Files:
-
- trunk/test/acceptance/src/net/project/test/acceptance/PersonalHomeTest.java (modified) (5 diffs)
- trunk/test/acceptance/src/net/project/test/acceptance/forms/AddingWorkToAssignableFormObjectTest.java (modified) (3 diffs)
- trunk/test/acceptance/src/net/project/test/acceptance/framework/AssignableFormsTester.java (modified) (4 diffs)
- trunk/test/acceptance/src/net/project/test/acceptance/schedule/TaskActionsTest.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/test/acceptance/src/net/project/test/acceptance/PersonalHomeTest.java
r17753 r17846 12 12 13 13 _framework.testPersonalHomePageSmoke(); 14 }15 16 public void testPersonalWorkSpaceButtons() throws Exception {17 // E4E_Pnet_UIpersonal_0218 19 assertImagePresent(_framework.TOOLBAR_BUTTON_CAPTUREWORK20 + _framework.OFF_B, "Capture Work");21 assertImagePresent(_framework.TOOLBAR_BUTTON_COPY + _framework.OFF_B,22 "Copy");23 assertImagePresent(_framework.TOOLBAR_BUTTON_CREATE + _framework.OFF_B,24 "Create");25 assertImagePresent(_framework.TOOLBAR_BUTTON_CREATE_EXT26 + _framework.OFF_B, "Add External");27 assertImagePresent(_framework.TOOLBAR_BUTTON_LINK + _framework.OFF_B,28 "Link");29 assertImagePresent(_framework.TOOLBAR_BUTTON_MODIFY + _framework.OFF_B,30 "Modify");31 assertImagePresent(_framework.TOOLBAR_BUTTON_NOTIFY + _framework.OFF_B,32 "Notify");33 assertImagePresent(_framework.TOOLBAR_BUTTON_PROPERTIES34 + _framework.OFF_B, "Properties");35 assertImagePresent(_framework.TOOLBAR_BUTTON_REMOVE + _framework.OFF_B,36 "Remove");37 assertImagePresent(_framework.TOOLBAR_BUTTON_SECURITY38 + _framework.OFF_B, "Security");39 assertImagePresent(_framework.TOOLBAR_BUTTON_SHARE + _framework.OFF_B,40 "Share");41 assertImagePresent(_framework.TOOLBAR_BUTTON_WORKFLOW42 + _framework.OFF_B, "Add to Workflow");43 44 assertImageNotPresent(_framework.TOOLBAR_BUTTON_CAPTUREWORK45 + _framework.ON_B, "Capture Work");46 assertImageNotPresent(_framework.TOOLBAR_BUTTON_COPY + _framework.ON_B,47 "Copy");48 assertImageNotPresent(_framework.TOOLBAR_BUTTON_CREATE49 + _framework.ON_B, "Create");50 assertImageNotPresent(_framework.TOOLBAR_BUTTON_CREATE_EXT51 + _framework.ON_B, "Add External");52 assertImageNotPresent(_framework.TOOLBAR_BUTTON_LINK + _framework.ON_B,53 "Link");54 assertImageNotPresent(_framework.TOOLBAR_BUTTON_MODIFY55 + _framework.ON_B, "Modify");56 assertImageNotPresent(_framework.TOOLBAR_BUTTON_NOTIFY57 + _framework.ON_B, "Notify");58 assertImageNotPresent(_framework.TOOLBAR_BUTTON_PROPERTIES59 + _framework.ON_B, "Properties");60 assertImageNotPresent(_framework.TOOLBAR_BUTTON_REMOVE61 + _framework.ON_B, "Remove");62 assertImageNotPresent(_framework.TOOLBAR_BUTTON_SECURITY63 + _framework.ON_B, "Security");64 assertImageNotPresent(65 _framework.TOOLBAR_BUTTON_SHARE + _framework.ON_B, "Share");66 assertImageNotPresent(_framework.TOOLBAR_BUTTON_WORKFLOW67 + _framework.ON_B, "Workflow");68 69 assertImagePresent(_framework.TOOLBAR_BUTTON_RESET + _framework.ON_B,70 "Refresh");71 assertLinkPresentWithImage(_framework.TOOLBAR_BUTTON_RESET72 + _framework.ON_B);73 assertImagePresent(_framework.TOOLBAR_BUTTON_SEARCH + _framework.ON_B,74 "Search");75 assertLinkPresentWithImage(_framework.TOOLBAR_BUTTON_SEARCH76 + _framework.ON_B);77 assertImagePresent(_framework.TOOLBAR_BUTTON_HELP + _framework.ON_B,78 "Help");79 assertLinkPresentWithImage(_framework.TOOLBAR_BUTTON_HELP80 + _framework.ON_B);81 82 assertImageNotPresent(_framework.TOOLBAR_BUTTON_RESET83 + _framework.OFF_B, "Refresh");84 assertImageNotPresent(_framework.TOOLBAR_BUTTON_SEARCH85 + _framework.OFF_B, "Search");86 assertImageNotPresent(87 _framework.TOOLBAR_BUTTON_HELP + _framework.OFF_B, "Help");88 14 } 89 15 … … 99 25 assertWindowPresentWithTitle("Project.net"); 100 26 101 _framework.click ToolbarHelpButton();27 _framework.clickActionHelp(); 102 28 103 29 assertWindowCountEquals(2); … … 615 541 // E4E_Pnet_UIpersonal_04 616 542 617 clickLinkWithImage(_framework.TOOLBAR_BUTTON_SEARCH + _framework.ON_B);543 clickLinkWithImage(_framework.TOOLBAR_BUTTON_SEARCH); 618 544 619 545 assertTextPresent("Search"); … … 631 557 632 558 assertLinkPresentWithExactText("Cancel"); 633 assertLinkPresentWithImage(_framework.ACTIONBAR_BUTTON_CANCEL 634 + _framework.OFF_B); 559 assertLinkPresentWithImage(_framework.ACTIONBAR_BUTTON_CANCEL); 635 560 assertLinkPresentWithExactText("Search"); 636 561 assertLinkPresentWithImage("/images/icons/actionbar-search_off.gif"); … … 642 567 assertLinkPresentWithImage("/images/icons/actionbar-search_off.gif"); 643 568 assertLinkPresentWithExactText("Cancel"); 644 assertLinkPresentWithImage(_framework.ACTIONBAR_BUTTON_CANCEL 645 + _framework.OFF_B); 569 assertLinkPresentWithImage(_framework.ACTIONBAR_BUTTON_CANCEL); 646 570 _framework.clickCancelActionbarButton(); 647 571 assertTitleEquals("Project.net"); trunk/test/acceptance/src/net/project/test/acceptance/forms/AddingWorkToAssignableFormObjectTest.java
r17121 r17846 129 129 */ 130 130 public void clickCreateToolbarButton() { 131 clickLinkWithImage(_framework.TOOLBAR_BUTTON_CREATE + _framework.ON_B);131 clickLinkWithImage(_framework.TOOLBAR_BUTTON_CREATE); 132 132 } 133 133 … … 137 137 */ 138 138 public void clickUpdateActionBarButton() { 139 clickLinkWithImage(ACTION_BAR_BUTTON_UPDATE + _framework.OFF_B);139 clickLinkWithImage(ACTION_BAR_BUTTON_UPDATE); 140 140 } 141 141 … … 150 150 //call this method to remember the abbrevation name for the form you are selecting 151 151 getFormObjectsAbbreviationName(checkboxFormsValue); 152 153 //click to the capture work link in upper right action bar 154 clickLinkWithImage(_framework.TOOLBAR_BUTTON_CAPTUREWORK + _framework.ON_B); 152 153 _framework.clickActionCaptureWork(); 155 154 156 155 //check if you are on right page trunk/test/acceptance/src/net/project/test/acceptance/framework/AssignableFormsTester.java
r17281 r17846 60 60 61 61 // 9. click on new icon on top toolbar 62 _framework.click CreateToolbarButton();62 _framework.clickActionCreate(); 63 63 64 64 if (assignable) { … … 113 113 */ 114 114 private void createNewForm() { 115 _framework.click CreateToolbarButton();115 _framework.clickActionCreate(); 116 116 assertTextPresent("Definition"); 117 117 assertTextPresent("Include Assignment Fields"); … … 164 164 String selectElementName = "ElementID"; 165 165 // click on the Create toolbar button 166 _framework.click CreateToolbarButton();166 _framework.clickActionCreate(); 167 167 168 168 assertTextPresent("Add Field"); … … 198 198 199 199 // create a new List 200 _framework.click CreateToolbarButton();200 _framework.clickActionCreate(); 201 201 202 202 // check if we are on create new List page trunk/test/acceptance/src/net/project/test/acceptance/schedule/TaskActionsTest.java
r17490 r17846 9 9 10 10 checkCheckbox("selected"); 11 _framework.click ModifyToolbarButton();11 _framework.clickActionModify(); 12 12 assertFormPresent("taskEdit"); 13 13 setWorkingForm("taskEdit");
