var assert = require('assert'); var test_methods = require('./util/test_methods'); var p4ds = "unset"; test_methods.clientAsJdoe(function(err, c) { if (err) { console.log("ERROR", err); assert(false, "login failed"); return; } var api = c.createDefaultApi(); api.configP4dsGet(function(err, x) { if (err) { console.log("ERROR", err); p4ds = null; } p4ds = x; }); }); function checkForDone() { if (p4ds != "unset") { assert(p4ds != null, "no p4ds"); var localhost = p4ds.find(function(x) { return x.id == "localhost"; }); assert(localhost != null, "didn't find 'localhost' config"); } else { setTimeout(checkForDone, 500); } } setTimeout(checkForDone, 0);
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 19553 | swellard | Move and rename clients | ||
//guest/perforce_software/helix-web-services/main/source/clients/2016.1.0/javascript/test/default_api.config_p4ds_get.js | |||||
#1 | 19065 | tjuricek |
Revised Javascript Client SDK documentation to meet the new API, with fixes. Added a couple of basic tests, and added archival of the different testng XML output. The main major fix is to handle array output better. |