-
Notifications
You must be signed in to change notification settings - Fork 2
Home
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 supporting TestNG parallel mode
<suite parallel="none|tests|classes|methods"> - 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
- Access the web driver in TestNG/Selenium test classes as easily as
WebDriver webDriver = getWebDriver();and let COSENG manage the web driver life cycle - 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 withWebElements we = getWebElements(); we.findAll() - Other conveniences with WebDriverUtil via
WebDriverUtil = getWebDriverUtil()include methods such assaveScreenshot,currentUrlContains,currentUrlEquals,acceptInvalidSSLCertificate(for supported browsers),uploadFile(both local and grid)
- Leverages TestNG HTML reporting and creates custom reports per test per browser