LabKey / testAutomation

LabKey Server testing infrastructure and helpers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LabKey Selenium WebDriver Test Library

This repository contains base test classes and helpers for LabKey's functional Selenium tests.

Test Setup

  1. Clone this into the server directory of your LabKey enlistment. More details on setting up a development environment can be found on labkey.org.

  2. Install web browser and browser driver. In order to run the Selenium tests, you will need a web browser and the corresponding browser driver. You should install the newest driver compatible with your browser. Driver executable should be available on your system PATH.

    • Firefox
    • Google Chrome
      • Chromedriver
      • Note: Updates frequently and should be kept in sync with Chrome browser version
    • Other Browsers
      • Edge, Safari, Opera, etc. are not currently supported.
  3. Run ./gradlew :server:testAutomation:initProperties to generate the test.properties file. If setting up a fresh development environment, this will run automatically with the root ijConfigure task.

    • Update selenium.browser to specify the browser you want to run against ("chrome" or "firefox")
  4. Verify test setup

    1. Build LabKey and start server
    2. Run tests: ./gradlew :server:testAutomation:uiTests -Psuite=DRT

About

LabKey Server testing infrastructure and helpers


Languages

Language:Java 92.1%Language:HTML 4.6%Language:JavaScript 2.4%Language:R 0.4%Language:TSQL 0.3%Language:PLpgSQL 0.2%Language:Shell 0.1%Language:Perl 0.0%Language:Batchfile 0.0%Language:CSS 0.0%Language:Rich Text Format 0.0%Language:C++ 0.0%