Skip to content
James Crocker edited this page Oct 19, 2016 · 14 revisions

Concurrent Selenium TestNG (COSENG) is a Java implementation supporting concurrent (parallel) TestNG and Selenium UI testing.

  • Run Selenium/TestNG UI tests concurrently!
  • Run with ONE web driver that persists and is utilized across all TestNG suite XML. Thus, a complex end to end test can be achieved with each successive suite picking up where the previous ended
  • Run tests exclusively or in any combination of local execution and Selenium GRID
  • TestNG/Selenium test classes extend CosengRunner
    • Example Google.java
    • CosengRunner provides the appropriate web driver at the appropriate level of parallelization; so all that is needed to use the web driver for the test is WebDriver webDriver = getWebDriver();
    • CosengRunner also provides convenience methods to access other commonly used web driver derivatives such as Actions, WebDriverWait, JavascriptExecutor, Angular NgWebDriver
    • CosengRunner additionally wraps Selenium WebElement as an object. The convenience allows for WebElement searchForm = newWebElement(By.id(ELEMENT_SEARCHFORM)); searchForm.find(); Assert.assertTrue(searchForm.isDisplayed()); along with WebElements we = getWebElements(); we.findAll()
    • Other conveniences with WebDriverUtil via WebDriverUtil = getWebDriverUtil() include methods such as saveScreenshot, currentUrlContains, currentUrlEquals, acceptInvalidSSLCertificate (for supported browsers), uploadFile (both local and grid)
  • Leverages TestNG HTML reporting and creates custom reports per test per browser

Clone this wiki locally