Skip to content
Thomas Dupont edited this page Feb 21, 2017 · 1 revision

Welcome to the jstest wiki!

This library is free to use and represent a good way to standardise the test protocole.

Example of using:

var test = new JsTest();
test.launchTest(
    {
        test1 : function() {
            console.log("hello world");
        },
        test2 : function() {
            test.$.get('url.html');
            // ......
        }
        // .....
    }
);

#Documentation

prototype JsTest(bool jQuery = true)

bool jQuery, set false to disable the usage of distant jQuery. Usefull with no internet connection

###public int getTimer()

Return the current timer.

###public void launchTest(object testList)

object testList: list of all test you need to launch.

###public void setTimer(int timer)

int set different timer in milliseconds (default 500) between each test.

###public object $

The jQuery 3.1.1 instance of the JsTest, if jQuery parameter is set to false in the constructor, the object is empty.

Clone this wiki locally