Changeset 17846

Show
Ignore:
Timestamp:
08/07/08 08:29:00 (1 month ago)
Author:
vmalykhin
Message:

additional tests fixes related to new UI changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/test/acceptance/src/net/project/test/acceptance/PersonalHomeTest.java

    r17753 r17846  
    1212                 
    1313                _framework.testPersonalHomePageSmoke(); 
    14         } 
    15  
    16         public void testPersonalWorkSpaceButtons() throws Exception { 
    17                 // E4E_Pnet_UIpersonal_02 
    18  
    19                 assertImagePresent(_framework.TOOLBAR_BUTTON_CAPTUREWORK 
    20                                 + _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_EXT 
    26                                 + _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_PROPERTIES 
    34                                 + _framework.OFF_B, "Properties"); 
    35                 assertImagePresent(_framework.TOOLBAR_BUTTON_REMOVE + _framework.OFF_B, 
    36                                 "Remove"); 
    37                 assertImagePresent(_framework.TOOLBAR_BUTTON_SECURITY 
    38                                 + _framework.OFF_B, "Security"); 
    39                 assertImagePresent(_framework.TOOLBAR_BUTTON_SHARE + _framework.OFF_B, 
    40                                 "Share"); 
    41                 assertImagePresent(_framework.TOOLBAR_BUTTON_WORKFLOW 
    42                                 + _framework.OFF_B, "Add to Workflow"); 
    43  
    44                 assertImageNotPresent(_framework.TOOLBAR_BUTTON_CAPTUREWORK 
    45                                 + _framework.ON_B, "Capture Work"); 
    46                 assertImageNotPresent(_framework.TOOLBAR_BUTTON_COPY + _framework.ON_B, 
    47                                 "Copy"); 
    48                 assertImageNotPresent(_framework.TOOLBAR_BUTTON_CREATE 
    49                                 + _framework.ON_B, "Create"); 
    50                 assertImageNotPresent(_framework.TOOLBAR_BUTTON_CREATE_EXT 
    51                                 + _framework.ON_B, "Add External"); 
    52                 assertImageNotPresent(_framework.TOOLBAR_BUTTON_LINK + _framework.ON_B, 
    53                                 "Link"); 
    54                 assertImageNotPresent(_framework.TOOLBAR_BUTTON_MODIFY 
    55                                 + _framework.ON_B, "Modify"); 
    56                 assertImageNotPresent(_framework.TOOLBAR_BUTTON_NOTIFY 
    57                                 + _framework.ON_B, "Notify"); 
    58                 assertImageNotPresent(_framework.TOOLBAR_BUTTON_PROPERTIES 
    59                                 + _framework.ON_B, "Properties"); 
    60                 assertImageNotPresent(_framework.TOOLBAR_BUTTON_REMOVE 
    61                                 + _framework.ON_B, "Remove"); 
    62                 assertImageNotPresent(_framework.TOOLBAR_BUTTON_SECURITY 
    63                                 + _framework.ON_B, "Security"); 
    64                 assertImageNotPresent( 
    65                                 _framework.TOOLBAR_BUTTON_SHARE + _framework.ON_B, "Share"); 
    66                 assertImageNotPresent(_framework.TOOLBAR_BUTTON_WORKFLOW 
    67                                 + _framework.ON_B, "Workflow"); 
    68  
    69                 assertImagePresent(_framework.TOOLBAR_BUTTON_RESET + _framework.ON_B, 
    70                                 "Refresh"); 
    71                 assertLinkPresentWithImage(_framework.TOOLBAR_BUTTON_RESET 
    72                                 + _framework.ON_B); 
    73                 assertImagePresent(_framework.TOOLBAR_BUTTON_SEARCH + _framework.ON_B, 
    74                                 "Search"); 
    75                 assertLinkPresentWithImage(_framework.TOOLBAR_BUTTON_SEARCH 
    76                                 + _framework.ON_B); 
    77                 assertImagePresent(_framework.TOOLBAR_BUTTON_HELP + _framework.ON_B, 
    78                                 "Help"); 
    79                 assertLinkPresentWithImage(_framework.TOOLBAR_BUTTON_HELP 
    80                                 + _framework.ON_B); 
    81  
    82                 assertImageNotPresent(_framework.TOOLBAR_BUTTON_RESET 
    83                                 + _framework.OFF_B, "Refresh"); 
    84                 assertImageNotPresent(_framework.TOOLBAR_BUTTON_SEARCH 
    85                                 + _framework.OFF_B, "Search"); 
    86                 assertImageNotPresent( 
    87                                 _framework.TOOLBAR_BUTTON_HELP + _framework.OFF_B, "Help"); 
    8814        } 
    8915 
     
    9925                assertWindowPresentWithTitle("Project.net"); 
    10026 
    101                 _framework.clickToolbarHelpButton(); 
     27                _framework.clickActionHelp(); 
    10228 
    10329                assertWindowCountEquals(2); 
     
    615541                // E4E_Pnet_UIpersonal_04 
    616542         
    617                 clickLinkWithImage(_framework.TOOLBAR_BUTTON_SEARCH + _framework.ON_B); 
     543                clickLinkWithImage(_framework.TOOLBAR_BUTTON_SEARCH); 
    618544         
    619545                assertTextPresent("Search"); 
     
    631557         
    632558                assertLinkPresentWithExactText("Cancel"); 
    633                 assertLinkPresentWithImage(_framework.ACTIONBAR_BUTTON_CANCEL 
    634                                 + _framework.OFF_B); 
     559                assertLinkPresentWithImage(_framework.ACTIONBAR_BUTTON_CANCEL); 
    635560                assertLinkPresentWithExactText("Search"); 
    636561                assertLinkPresentWithImage("/images/icons/actionbar-search_off.gif"); 
     
    642567                assertLinkPresentWithImage("/images/icons/actionbar-search_off.gif"); 
    643568                assertLinkPresentWithExactText("Cancel"); 
    644                 assertLinkPresentWithImage(_framework.ACTIONBAR_BUTTON_CANCEL 
    645                                 + _framework.OFF_B); 
     569                assertLinkPresentWithImage(_framework.ACTIONBAR_BUTTON_CANCEL); 
    646570                _framework.clickCancelActionbarButton(); 
    647571                assertTitleEquals("Project.net"); 
  • trunk/test/acceptance/src/net/project/test/acceptance/forms/AddingWorkToAssignableFormObjectTest.java

    r17121 r17846  
    129129         */ 
    130130        public void clickCreateToolbarButton() { 
    131                 clickLinkWithImage(_framework.TOOLBAR_BUTTON_CREATE + _framework.ON_B); 
     131                clickLinkWithImage(_framework.TOOLBAR_BUTTON_CREATE); 
    132132        } 
    133133 
     
    137137         */ 
    138138        public void clickUpdateActionBarButton() { 
    139                 clickLinkWithImage(ACTION_BAR_BUTTON_UPDATE + _framework.OFF_B); 
     139                clickLinkWithImage(ACTION_BAR_BUTTON_UPDATE); 
    140140        } 
    141141         
     
    150150                //call this method to remember the abbrevation name for the form you are selecting  
    151151                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();             
    155154                 
    156155                //check if you are on right page 
  • trunk/test/acceptance/src/net/project/test/acceptance/framework/AssignableFormsTester.java

    r17281 r17846  
    6060 
    6161                // 9. click on new icon on top toolbar 
    62                 _framework.clickCreateToolbarButton(); 
     62                _framework.clickActionCreate(); 
    6363                 
    6464                if (assignable) { 
     
    113113         */ 
    114114        private void createNewForm() { 
    115                 _framework.clickCreateToolbarButton(); 
     115                _framework.clickActionCreate(); 
    116116                assertTextPresent("Definition"); 
    117117                assertTextPresent("Include Assignment Fields"); 
     
    164164                String selectElementName = "ElementID"; 
    165165                // click on the Create toolbar button 
    166                 _framework.clickCreateToolbarButton(); 
     166                _framework.clickActionCreate(); 
    167167 
    168168                assertTextPresent("Add Field"); 
     
    198198 
    199199                // create a new List 
    200                 _framework.clickCreateToolbarButton(); 
     200                _framework.clickActionCreate(); 
    201201 
    202202                // check if we are on create new List page 
  • trunk/test/acceptance/src/net/project/test/acceptance/schedule/TaskActionsTest.java

    r17490 r17846  
    99 
    1010        checkCheckbox("selected"); 
    11         _framework.clickModifyToolbarButton(); 
     11        _framework.clickActionModify(); 
    1212        assertFormPresent("taskEdit"); 
    1313        setWorkingForm("taskEdit");