1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.samplu.admin.test;
17
18 import static org.junit.Assert.assertEquals;
19 import static org.junit.Assert.assertTrue;
20
21 import edu.samplu.common.UpgradedSeleniumITBase;
22 import org.junit.Test;
23
24
25
26
27
28
29 public class ReferenceCampusTypeIT extends UpgradedSeleniumITBase {
30 @Override
31 public String getTestUrl() {
32 return PORTAL;
33 }
34
35 @Test
36
37
38
39 public void testEditCampusType() throws Exception {
40 assertEquals("Kuali Portal Index", selenium.getTitle());
41 selenium.click("link=Administration");
42 selenium.waitForPageToLoad("30000");
43 assertEquals("Kuali Portal Index", selenium.getTitle());
44 selenium.click("link=Campus Type");
45 selenium.waitForPageToLoad("30000");
46 assertEquals("Kuali Portal Index", selenium.getTitle());
47 selenium.selectFrame("iframeportlet");
48 selenium.click("//input[@name='methodToCall.search' and @value='search']");
49 selenium.waitForPageToLoad("30000");
50 selenium.click("link=edit");
51 selenium.waitForPageToLoad("30000");
52 assertTrue(selenium.isElementPresent("methodToCall.cancel"));
53 selenium.click("methodToCall.cancel");
54 selenium.waitForPageToLoad("30000");
55 selenium.click("methodToCall.processAnswer.button0");
56 selenium.waitForPageToLoad("30000");
57 }
58 }