@Test @Title("Change language verify access to Base oprions Configuration options permission") public void test002ChangeLanguage() throws Exception { String username = RandomName.readFromFile().get(0); String password = RandomName.readFromFile().get(1); // Login with new credentials and select concept Login.LoginAs(username, password); $(By.xpath(".//*[@id='changeSafetyConceptForm:safetyConceptGroupMenu']")) .waitUntil(present, 8000) .selectOption(1); $(By.xpath(".//*[@id='changeSafetyConceptForm:yes']")).waitUntil(enabled, 6000).click(); // Open Base settings in German Grundfunktionen and select English Language OpenView.openExtras("Einstellungen"); $(By.xpath(".//*[@id='1']/table/tbody/tr/td[4]/a")).click(); $(By.xpath(".//*[@id='baseOptionsForm:j_id608:0:j_id610_body']/table/tbody/tr/td[2]/select")) .selectOption("Englisch"); $("#saveEnabled").waitUntil(enabled, 10000).click(); $(By.xpath(".//*[@id='footerForm:message']/dt")).waitUntil(visible, 8000); Thread.sleep(1000); }
@Test public void randomNameWorks() { assertEquals( "Testattava;Erotettu pilkulla;150;Edellinen kokeilee numeroa", testable.returnRandomName()); }
@Before public void setUp() { testable = new RandomName(); testable.setInputFile(inputFile); }