# Pluglet API automated tests

## Table of contents.

    - Preliminary specification
    - How to build
    - How to run
    Documentation on test cases:
     - Browser side api tests
     - Scenario tests
     - Security tests
     - Tests on passed in client side api parameters
     - Tests on return values from client side api

    How to build.
    - setup environment for mozilla building and running
    - goto config directory and fill
      CommonProperties and set_env.bat files.
      (or set_env.sh in case of Unix build)
    - run the config/set_env.bat file
      (or source set_env.sh in case of Unix build)
    - goto src/org/mozilla/pluglet/test/basic/ directory
      and make with makefile in this directory

    How to run.
    There is autorun.pl script to run test cases and BWTest.lst.ORIG
    with list of all test cases in src/org/mozilla/pluglet/test/basic/
    directory.
    To run all test cases in BWTest.lst.ORIG:

    perl autorun.pl

    It is possible to list required test cases in another file:

    perl autorun.pl -f file_with_sub_list

    To run single test case:

    perl autorun.pl -t test_case