Nine Project Managers

    drial

    0.1.0 • Public • Published

    Drial

    Simple test automation in the browser for people familiar with JavaScript. No third party madness and no additional APIs to learn.

    License

    AGPLv3 Much of this project's code is ripped straight from Share File Systems which is also licensed AGPLv3.

    Installation

    • Requires Node.js and git
    1. get the code
    2. git clone https://github.com/prettydiff/drial.git - get it from github
    3. npm install drial - get it from npm
    4. move into the project directory
    5. if cloned from git - cd drial
    6. if downloaded from npm - cd node_modules/drial
    7. npm install -g typescript - install the compiler
    8. npm install - install local dependencies required by the compiler
    9. tsc - compile the code
    10. node js/application build - build the application

    Run it

    • drial websites campaign:demo
    • For more options try the interactive command documentation drial commands websites.
    • See the documentation for things like additional command guidance, browser research, known problems, how to write tests, and how this application works.

    Getting started

    1. Execute drial commands to see commands available in the terminal and execute it with a command name for all supported options with examples: drial commands websites.
    2. Skim the documentation.

    Configuration

    This application stores all configurations in the file /lib/utilities/configuration.ts.

    Campaign path

    The application requires a campaign file to know which instructions to execute. The default location for campaign files is /campaigns of this application. To specify a different location open the configuration file and modify the value of campaignPath property with an absolute file system path. Once complete rebuild with the command: drial build.

    Browser path

    The default installation paths for several popular browsers per operating system are listed in the configuration file.

    • If your browser's default installation path for your operating system is absent please open a Github issue with the file system path and I will update the application.
    • If you are using a custom installation path and need to change the configuration file then make your change and run the command drial build to compile the code.

    Campaign Files

    Please read the documentation files on client side tests: /documentation/website_tests.md.

    Timing

    Aside from the listed examples and test specified delays all test instructions attempt to execute as fast as the machine will allow.

    • The application starts with a 2 second delay to provide enough time for the browser to open before sending it test instructions. This delay can be customized. See drial commands websites for an example.
    • The application waits for a page to fully load before sending test instructions. This is the factor that slows down this application the most. If testing appears slow examine the performance of the page, such as if its waiting on third party scripts to request additional artifacts.

    Install

    npm i drial

    DownloadsWeekly Downloads

    18

    Version

    0.1.0

    License

    AGPL-3.0-only

    Unpacked Size

    843 kB

    Total Files

    132

    Last publish

    Collaborators

    • austincheney