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

    Fields
    Modifier and Type
    Field
    Description
    protected static com.microsoft.playwright.Browser
     
    protected com.microsoft.playwright.BrowserContext
     
    protected static com.microsoft.playwright.BrowserType
     
    protected static com.microsoft.playwright.BrowserType.LaunchOptions
     
    protected com.microsoft.playwright.Page
     
    protected static com.microsoft.playwright.Playwright
     
    protected int
    Retrieves the web application port
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static void
    Finalizes the testing environment
    (package private) void
    Cleans the testing environment after each test
    (package private) static void
    Initializes the testing environment
    (package private) void
    Resets the testing environment before each test

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 port
      Retrieves 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