mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-22 15:18:44 +00:00
Add maven-jar-plugin to publish qfmd's test classes in a jar (e.g., for inclusion in applications for selenium testing); Updates in library classes to support alternative usages
This commit is contained in:
@ -18,7 +18,7 @@ import org.openqa.selenium.chrome.ChromeOptions;
|
||||
*******************************************************************************/
|
||||
public class QBaseSeleniumTest
|
||||
{
|
||||
private static ChromeOptions chromeOptions;
|
||||
protected static ChromeOptions chromeOptions;
|
||||
|
||||
protected WebDriver driver;
|
||||
protected QSeleniumJavalin qSeleniumJavalin;
|
||||
@ -52,15 +52,29 @@ public class QBaseSeleniumTest
|
||||
**
|
||||
*******************************************************************************/
|
||||
@BeforeEach
|
||||
void beforeEach()
|
||||
public void beforeEach()
|
||||
{
|
||||
driver = new ChromeDriver(chromeOptions);
|
||||
driver.manage().window().setSize(new Dimension(1700, 1300));
|
||||
qSeleniumLib = new QSeleniumLib(driver);
|
||||
|
||||
qSeleniumJavalin = new QSeleniumJavalin();
|
||||
addJavalinRoutes(qSeleniumJavalin);
|
||||
qSeleniumJavalin.start();
|
||||
if(useInternalJavalin())
|
||||
{
|
||||
qSeleniumJavalin = new QSeleniumJavalin();
|
||||
addJavalinRoutes(qSeleniumJavalin);
|
||||
qSeleniumJavalin.start();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** control if the test needs to start its own javalin server, or if we're running
|
||||
** in an environment where an external web server is being used.
|
||||
*******************************************************************************/
|
||||
protected boolean useInternalJavalin()
|
||||
{
|
||||
return (true);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user