1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.samplu.admin.test;
17
18 import edu.samplu.common.AdminMenuBlanketAppLegacyITBase;
19 import edu.samplu.common.ITUtil;
20 import org.apache.commons.lang.RandomStringUtils;
21
22 import static org.junit.Assert.assertTrue;
23
24
25
26
27
28
29 public class LocationCountryBlanketAppLegacyIT extends AdminMenuBlanketAppLegacyITBase {
30
31 @Override
32 public String getLinkLocator() {
33 return "Country";
34 }
35
36 @Override
37 public String blanketApprove() throws InterruptedException{
38 String docId = waitForDocId();
39 assertBlanketApproveButtonsPresent();
40 String twoUpperCaseLetters = RandomStringUtils.randomAlphabetic(2).toUpperCase();
41 String countryName = "Validation Test Country " + ITUtil.DTS + " " + twoUpperCaseLetters ;
42 waitAndTypeByXpath("//input[@id='document.documentHeader.documentDescription']", countryName);
43 waitAndTypeByXpath("//input[@id='document.newMaintainableObject.code']", twoUpperCaseLetters);
44 waitAndTypeByXpath("//input[@id='document.newMaintainableObject.name']", countryName);
45 waitAndTypeByXpath("//input[@id='document.newMaintainableObject.alternateCode']", "V" + twoUpperCaseLetters);
46 return docId;
47 }
48 }
49