1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.samplu.admin.test;
17
18 import org.junit.Test;
19
20 import edu.samplu.common.ITUtil;
21 import edu.samplu.common.WebDriverLegacyITBase;
22
23
24
25
26
27
28
29 public class ComponentWDIT extends WebDriverLegacyITBase {
30 String docId;
31 String componentName;
32 String componentCode;
33
34 public static final String TEST_URL = ITUtil.PORTAL + "?channelTitle=Component&channelUrl=" + ITUtil.getBaseUrlString() +
35 "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.rice.coreservice.impl.component.ComponentBo&docFormKey=88888888&returnLocation=" +
36 ITUtil.PORTAL_URL + "&hideReturnLink=true";
37
38 @Override
39 public String getTestUrl() {
40 return TEST_URL;
41 }
42
43 @Test
44 public void testComponentParameter() throws Exception {
45 waitAndCreateNew();
46 componentName = "TestName" + ITUtil.DTS_TWO;
47 componentCode = "TestCode" + ITUtil.DTS_TWO;
48 docId = testCreateNewComponent(componentName, componentCode);
49
50
51 open(ITUtil.getBaseUrlString()+TEST_URL);
52 selectFrameIframePortlet();
53 testLookUpComponent(docId, componentName,componentCode);
54
55 testEditComponent(docId, componentName, componentCode);
56
57
58 open(ITUtil.getBaseUrlString()+TEST_URL);
59 selectFrameIframePortlet();
60 testVerifyEditedComponent(docId, componentName, componentCode);
61
62 testCopyComponent(docId, componentName + "copy", componentCode + "copy");
63
64
65 open(ITUtil.getBaseUrlString()+TEST_URL);
66 selectFrameIframePortlet();
67 testVerifyCopyComponent(docId, componentName + "copy", componentCode + "copy");
68 }
69 }