1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.labs;
17
18 import java.io.File;
19 import java.util.List;
20 import org.junit.Test;
21 import org.kuali.rice.testtools.selenium.WebDriverFileResourceAftBase;
22 import org.openqa.selenium.By;
23
24
25
26
27 public class LabsMultiFileUploadBasic1Aft extends WebDriverFileResourceAftBase {
28
29
30
31
32 public static final String BOOKMARK_URL = "/kr-krad/labs?viewId=Lab-MultiFileUpload1";
33
34
35 protected List<File> fileUploadList;
36
37 @Override
38 protected String getBookmarkUrl() {
39 return BOOKMARK_URL;
40 }
41
42 @Override
43 protected void navigate() throws Exception {
44 waitAndClickByLinkText("MultiFile Upload - Basic");
45 }
46
47 protected void testMultiFileUploadBasic1() throws Exception {
48 fileUploadSetUp();
49 fileIngesterByName("files");
50 waitForElementVisibleBy(By.linkText("test.txt"));
51 waitForElementVisibleBy(By.linkText("test1.txt"));
52 }
53
54 private void fileUploadSetUp() throws Exception {
55 setUpResourceDir("general");
56 }
57
58 @Test
59 public void testMultiFileUploadBasic1Bookmark() throws Exception {
60 testMultiFileUploadBasic1();
61 passed();
62 }
63
64 @Test
65 public void testMultiFileUploadBasic1Nav() throws Exception {
66 testMultiFileUploadBasic1();
67 passed();
68 }
69 }