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 ParameterTypeAbstractSmokeTestBase extends AdminTmplMthdSTNavBase{
27
28
29
30
31
32
33 public static final String BOOKMARK_URL = ITUtil.PORTAL + "?channelTitle=Parameter%20Type&channelUrl="
34 + ITUtil.getBaseUrlString() + ITUtil.KNS_LOOKUP_METHOD +
35 "org.kuali.rice.coreservice.impl.parameter.ParameterTypeBo&docFormKey=88888888&returnLocation=" +
36 ITUtil.PORTAL_URL + ITUtil.HIDE_RETURN_LINK ;
37
38 private String docId;
39 private String parameterType;
40 private String parameterCode;
41
42
43
44
45
46
47 @Override
48 protected String getLinkLocator() {
49 return "Parameter Type";
50 }
51
52 public void testParameterTypeBookmark(Failable failable) throws Exception {
53
54 selectFrame("iframeportlet");
55 waitAndCreateNew();
56 List<String> params;
57 params=testCreateNewParameterType(docId, parameterType,parameterCode);
58
59
60 open(ITUtil.getBaseUrlString()+BOOKMARK_URL);
61 selectFrame("iframeportlet");
62 params=testLookUpParameterType(params.get(0), params.get(1),params.get(2));
63
64
65 params=testEditParameterType(params.get(0), params.get(1),params.get(2));
66
67
68 open(ITUtil.getBaseUrlString()+BOOKMARK_URL);
69 selectFrame("iframeportlet");
70 params=testLookUpParameterType(params.get(0), params.get(1),params.get(2));
71
72
73 params=testCopyParameterType(params.get(0), params.get(1),params.get(2));
74
75
76 open(ITUtil.getBaseUrlString()+BOOKMARK_URL);
77 selectFrame("iframeportlet");
78 testVerifyCopyParameterType(params.get(0), params.get(1),params.get(2));
79 passed();
80 }
81
82 public void testParameterTypeNav(Failable failable) throws Exception {
83
84 gotoCreateNew();
85 List<String> params;
86 params=testCreateNewParameterType(docId, parameterType,parameterCode);
87
88
89 navigate();
90 selectFrame("iframeportlet");
91 params=testLookUpParameterType(params.get(0), params.get(1),params.get(2));
92
93
94 params=testEditParameterType(params.get(0), params.get(1),params.get(2));
95
96
97 navigate();
98 params=testLookUpParameterType(params.get(0), params.get(1),params.get(2));
99
100
101 params=testCopyParameterType(params.get(0), params.get(1),params.get(2));
102
103
104 navigate();
105 testVerifyCopyParameterType(params.get(0), params.get(1),params.get(2));
106 passed();
107 }
108 }