1 /**
2 * Copyright 2005-2013 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package edu.samplu.krad.compview;
17
18 import edu.samplu.common.Failable;
19 import edu.samplu.common.ITUtil;
20 import edu.samplu.common.WebDriverLegacyITBase;
21
22 /**
23 * Tests the Component section in Rice.
24 *
25 * @author Kuali Rice Team (rice.collab@kuali.org)
26 */
27 public abstract class ParentLineAbstractSmokeTestBase extends WebDriverLegacyITBase {
28
29 /**
30 * /kr-krad/uicomponents?viewId=RichMessagesView&methodToCall=start
31 */
32 public static final String BOOKMARK_URL = "/kr-krad/uicomponents?methodToCall=start&readOnlyFields=field91&viewId=UifCompView_KNS#UifCompView-Page7";
33
34 /**
35 * Nav tests start at {@link edu.samplu.common.ITUtil#PORTAL}. Bookmark Tests should override and return {@link ParentLineAbstractSmokeTestBase#BOOKMARK_URL}
36 * {@inheritDoc}
37 * @return
38 */
39 @Override
40 public String getTestUrl() {
41 return ITUtil.PORTAL;
42 }
43
44 protected void navigation() throws Exception {
45 waitAndClickKRAD();
46 waitAndClickByXpath(KITCHEN_SINK_XPATH);
47 switchToWindow(KUALI_UIF_COMPONENTS_WINDOW_XPATH);
48 }
49
50 protected void testParentLineNav(Failable failable) throws Exception {
51 navigation();
52 testSubCollectionSize();
53 passed();
54 }
55
56 protected void testParentLineBookmark(Failable failable) throws Exception {
57 testSubCollectionSize();
58 passed();
59 }
60
61 }