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.kuali.rice.testtools.selenium.Failable;
19 import org.kuali.rice.testtools.selenium.ITUtil;
20 import org.apache.commons.lang.RandomStringUtils;
21
22
23
24
25 public abstract class ConfigComponentLookUpAndCopyAbstractSmokeTestBase extends AdminTmplMthdSTNavBase{
26
27
28
29
30
31
32 public static final String BOOKMARK_URL = ITUtil.PORTAL+"?channelTitle=Component&channelUrl="+ITUtil.getBaseUrlString()+
33 "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.rice.coreservice.impl.component.ComponentBo&docFormKey=88888888&returnLocation="+
34 ITUtil.PORTAL_URL+ ITUtil.HIDE_RETURN_LINK;
35
36
37
38
39
40
41 @Override
42 protected String getLinkLocator() {
43 return "Component";
44 }
45
46 public void testConfigComponentLookUpAndCopyBookmark(Failable failable) throws Exception {
47 testConfigComponentLookUpAndCopy();
48 passed();
49 }
50
51 public void testConfigComponentLookUpAndCopyNav(Failable failable) throws Exception {
52 testConfigComponentLookUpAndCopy();
53 passed();
54 }
55
56 public void testConfigComponentLookUpAndCopy() throws Exception
57 {
58 selectFrameIframePortlet();
59 waitAndClickByXpath("(//input[@name='methodToCall.search'])[2]", "Probably KULRICE-10763 500 Error Lookup not defined for business object class org.kuali.rice.coreservice.impl.component.ComponentBo");
60 waitAndClickByLinkText("copy");
61 String fourLetters = RandomStringUtils.randomAlphabetic(4);
62 waitAndTypeByName("document.documentHeader.documentDescription","Test description of Component copy " + ITUtil.createUniqueDtsPlusTwoRandomCharsNot9Digits());
63 selectByName("document.newMaintainableObject.namespaceCode","KR-WKFLW - Workflow");
64 waitAndTypeByName("document.newMaintainableObject.code","ActionList2" + fourLetters);
65 waitAndTypeByName("document.newMaintainableObject.name",fourLetters);
66 waitAndTypeByName("document.newMaintainableObject.name","Action List 2 " + fourLetters);
67 waitAndClickByName("methodToCall.route");
68 checkForDocError();
69 waitAndClickByName("methodToCall.close");
70 waitAndClickByName("methodToCall.processAnswer.button1");
71 }
72 }