cz.datalite.tests.selenium.DLSeleneseTestCaseZavisly Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Selenium Show documentation
Show all versions of Selenium Show documentation
Integration tests with Selenium 2.0 (WebDriver) - PageObjects pattern (still in beta)
The newest version!
//package cz.datalite.tests.selenium;
//
//import com.thoughtworks.selenium.Wait;
//import org.junit.Test;
//
///**
// * Třída určená pro závislé selenium testy ZK aplikací.
// * Jedná se o testy, které se naklikají přes browser a poté se v javě duplikují
// * všechny události jakoby je dělal znovu uživatel.
// * Závislé testy jsou na sobě nějakým způsobem závislé (např. wizard).
// *
// * @author Michal Pavlusek
// * @version 1.5
// * @since 1.0.1 (selenium testu)
// * @since 4.0 (JUnit testu)
// * @see
// * Selenium testy na wiki praha datalite
// */
//public abstract class DLSeleneseTestCaseZavisly
//{
// public DLSelenium test; // zde si vedu objekt, který přes browser testuje aplikaci
//
// public void init(DLSelenium test)
// {
// this.test = test;
// }
//
// /**
// * Z důvodu, že závislé testy jsou nespustitelné, tak je zde výchozí prázdný
// * test pro tyto testy, aby nevyhazovali ERROR (No runnable methods).
// */
// @Test
// public void zavisly()
// {
//
// }
//
// /**
// * Funkce čeká na zadaný element, až bude vykreslen do stránky.
// * Pokud se funkce nedočká, vypíše po vypršení timeout limitu zprávu.
// * Defaultní timeout je v systému nastaven na 30 sekund.
// * @param waitingElement element, na který se čeká
// * @param timeoutMessage zpráva na vypsání po vypršení timeoutu
// */
// public void pockejNaElement(final String waitingElement, String timeoutMessage)
// {
// new Wait()
// {
// public boolean until()
// {
// return test.isElementPresent(waitingElement);
// }
// }.wait(timeoutMessage);
// }
//
//}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy