1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  package edu.sampleu.admin;
17  
18  import org.junit.Test;
19  import org.kuali.rice.testtools.selenium.AutomatedFunctionalTestUtils;
20  import org.kuali.rice.testtools.selenium.WebDriverLegacyITBase;
21  import org.kuali.rice.testtools.selenium.WebDriverUtils;
22  
23  
24  
25  
26  
27  
28  public class ComponentAft extends ConfigComponentAftBase {
29  
30      String docId;
31  
32      
33  
34  
35  
36  
37      public static final String BOOKMARK_URL = AutomatedFunctionalTestUtils.PORTAL + "?channelTitle=Component&channelUrl=" + WebDriverUtils
38              .getBaseUrlString() +"/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.rice.coreservice.impl.component.ComponentBo&docFormKey=88888888&returnLocation=" +
39              AutomatedFunctionalTestUtils.PORTAL_URL + "&hideReturnLink=true";
40  
41      @Override
42      protected String getBookmarkUrl() {
43          return BOOKMARK_URL;
44      }
45  
46      protected void testComponentParameter() throws Exception {
47          
48          namespaceCode = "KR-IDM";
49          uniqueString = AutomatedFunctionalTestUtils.createUniqueDtsPlusTwoRandomCharsNot9Digits();
50          String componentName = "name" + uniqueString; 
51          String componentCode = "code" + uniqueString; 
52          docId = testCreateNew();
53          submitAndClose();
54  
55          
56          navigate();
57          testLookUpComponent(docId, componentName, componentCode);
58  
59          
60          testEditComponent(docId, componentName, componentCode);
61  
62          
63          navigate();
64          testVerifyEditedComponent(docId, componentName, componentCode);
65  
66          
67          testCopyComponent(docId, componentName + "copy", componentCode + "copy");
68  
69          
70          navigate();
71          testVerifyCopyComponent(docId, componentName + "copy", componentCode + "copy");
72          passed();
73      }
74  
75      @Test
76      public void testComponentParameterBookmark() throws Exception {
77          testComponentParameter();
78      }
79  
80      @Test
81      public void testComponentParameterNav() throws Exception {
82          testComponentParameter();
83      }
84  }