Package com.decs.application
Class PlaywrightIT
java.lang.Object
com.decs.application.PlaywrightIT
- Direct Known Subclasses:
JobDashboardTests,NodeManagerTests,ProblemEditorTests,StressTests
@SpringBootTest(webEnvironment=RANDOM_PORT,
args="192.168.2.104")
public class PlaywrightIT
extends Object
Playwright Interface Class
This class manages the playwright framework.
- Version:
- 1.0
- Author:
- Bruno Guiomar
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static com.microsoft.playwright.Browserprotected com.microsoft.playwright.BrowserContextprotected static com.microsoft.playwright.BrowserTypeprotected static com.microsoft.playwright.BrowserType.LaunchOptionsprotected com.microsoft.playwright.Pageprotected static com.microsoft.playwright.Playwrightprotected intRetrieves the web application port -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidafterAll()Finalizes the testing environment(package private) voidCleans the testing environment after each test(package private) static voidInitializes the testing environment(package private) voidResets the testing environment before each test
-
Field Details
-
playwright
protected static com.microsoft.playwright.Playwright playwright -
browser
protected static com.microsoft.playwright.Browser browser -
browserType
protected static com.microsoft.playwright.BrowserType browserType -
launchOptions
protected static com.microsoft.playwright.BrowserType.LaunchOptions launchOptions -
page
protected com.microsoft.playwright.Page page -
browserContext
protected com.microsoft.playwright.BrowserContext browserContext -
port
@LocalServerPort protected int portRetrieves the web application port
-
-
Constructor Details
-
PlaywrightIT
public PlaywrightIT()
-
-
Method Details
-
beforeAll
@BeforeAll static void beforeAll()Initializes the testing environment -
afterAll
@AfterAll static void afterAll()Finalizes the testing environment -
beforeEach
@BeforeEach void beforeEach()Resets the testing environment before each test -
afterEach
@AfterEach void afterEach()Cleans the testing environment after each test
-