1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.samplu.admin.test;
17
18 import java.util.List;
19
20 import edu.samplu.common.Failable;
21 import edu.samplu.common.ITUtil;
22
23
24
25
26 public abstract class ParameterAbstractSmokeTestBase extends AdminTmplMthdSTNavBase{
27
28
29
30
31
32
33 public static final String BOOKMARK_URL = ITUtil.PORTAL + "?channelTitle=Parameter&channelUrl="
34 + ITUtil.getBaseUrlString() + ITUtil.KNS_LOOKUP_METHOD +
35 "org.kuali.rice.coreservice.impl.parameter.ParameterBo&docFormKey=88888888&returnLocation=" +
36 ITUtil.PORTAL_URL + ITUtil.HIDE_RETURN_LINK ;
37
38 private String docId;
39 private String parameterName;
40
41
42
43
44
45
46 @Override
47 protected String getLinkLocator() {
48 return "Parameter";
49 }
50
51 public void testParameterBookmark(Failable failable) throws Exception {
52
53 selectFrame("iframeportlet");
54 waitAndCreateNew();
55 List<String> params;
56 params=testCreateNewParameter(docId, parameterName);
57
58
59 open(ITUtil.getBaseUrlString()+BOOKMARK_URL);
60 selectFrame("iframeportlet");
61 params=testLookUpParameter(params.get(0), params.get(1));
62
63
64 params=testEditParameter(params.get(0), params.get(1));
65
66
67 open(ITUtil.getBaseUrlString()+BOOKMARK_URL);
68 selectFrame("iframeportlet");
69 params=testVerifyModifiedParameter(params.get(0), params.get(1));
70
71
72 params=testCopyParameter(params.get(0), params.get(1));
73
74
75 open(ITUtil.getBaseUrlString()+BOOKMARK_URL);
76 selectFrame("iframeportlet");
77 testVerifyModifiedParameter(params.get(0), params.get(1));
78 passed();
79 }
80
81 public void testParameterNav(Failable failable) throws Exception {
82
83 gotoCreateNew();
84 List<String> params;
85 params=testCreateNewParameter(docId, parameterName);
86
87
88 navigate();
89 selectFrame("iframeportlet");
90 params=testLookUpParameter(params.get(0), params.get(1));
91
92
93 params=testEditParameter(params.get(0), params.get(1));
94
95
96 navigate();
97 params=testVerifyModifiedParameter(params.get(0), params.get(1));
98
99
100 params=testCopyParameter(params.get(0), params.get(1));
101
102
103 navigate();
104 testVerifyModifiedParameter(params.get(0), params.get(1));
105 passed();
106 }
107 }