1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.samplu.travel.test;
17
18 import edu.samplu.common.Failable;
19 import edu.samplu.common.ITUtil;
20 import edu.samplu.common.WebDriverLegacyITBase;
21
22
23
24
25
26
27 public abstract class FiscalOfficerInfoMaintenanceAbstractSmokeTestBase extends WebDriverLegacyITBase {
28
29
30
31
32
33
34
35
36 public static final String BOOKMARK_URL = ITUtil.PORTAL
37 + "?channelTitle=FiscalOfficerInfo%20Maintenance%20(New)&channelUrl="
38 + ITUtil.getBaseUrlString()
39 + "/kr-krad/maintenance?methodToCall=start&dataObjectClassName=edu.sampleu.travel.dto.FiscalOfficerInfo&returnLocation="
40 + ITUtil.PORTAL_URL + ITUtil.HIDE_RETURN_LINK;
41
42 protected void bookmark() {
43 open(ITUtil.getBaseUrlString() + BOOKMARK_URL);
44 }
45
46
47
48
49
50
51
52 @Override
53 public String getTestUrl() {
54 return ITUtil.PORTAL;
55 }
56
57 protected void navigation() throws InterruptedException {
58 waitAndClickKRAD();
59 waitAndClickByXpath(FISCAL_OFFICER_INFO_MAINTENANCE_NEW_XPATH);
60 }
61
62 protected void testFiscalOfficerInfoMaintenanceNav(Failable failable) throws Exception {
63 navigation();
64 testFiscalOfficerInfoMaintenanceNew();
65 passed();
66 }
67
68 protected void testFiscalOfficerInfoMaintenanceBookmark(Failable failable) throws Exception {
69 testFiscalOfficerInfoMaintenanceNew();
70 passed();
71 }
72 }