loadtests.js
Summary
Script to load all tests for the eID test suite into the GUI test runner
Method Summary
|
static EAC20
|
newEAC20(<Crypto> crypto, <Card> card)
Create a new instance of the EAC20 class
|
load("tools/TestRunner.js");
load("tools/TestGroup.js");
load("tools/TestProcedure.js");
load("../../icao/eac20.js");
var param = new Array();
param["crypto"] = new Crypto();
param["MRZ"] = "TPD<<T220001293<<<<<<<<<<<<<<<" +
"6408125<1010318D<<<<<<<<<<<<<6" +
"MUSTERMANN<<ERIKA<<<<<<<<<<<<<";
var certstorepath = GPSystem.mapFilename("../cvc", GPSystem.CWD);
param["certstore"] = new CVCertificateStore(certstorepath);
param["isrootpath"] = "/UTISCVCA";
param["atrootpath"] = "/UTATCVCA";
param["strootpath"] = "/UTSTCVCA";
param["isodcertpath"] = param["isrootpath"] + "/UTISDVCAOD/UTTERM";
param["isofcertpath"] = param["isrootpath"] + "/UTISDVCAOF/UTTERM";
param["atodcertpath"] = param["atrootpath"] + "/UTATDVCAOD/UTTERM";
param["atnocertpath"] = param["atrootpath"] + "/UTATDVCANO/UTTERM";
param["stabcertpath"] = param["strootpath"] + "/UTSTDVCAAB/UTTERM";
param["stcpcertpath"] = param["strootpath"] + "/UTSTDVCACP/UTTERM";
function newEAC20(crypto, card) {
var eac = new EAC20(crypto, card);
eac.verbose = true;
return eac;
}
var testRunner = new TestRunner("eID Test Suite");
testRunner.addTestGroupFromXML("tg_StandardInspectionProcedureWithBAC.xml", param);
testRunner.addTestGroupFromXML("tg_StandardInspectionProcedureWithSAC.xml", param);
testRunner.addTestGroupFromXML("tg_AdvancedInspectionProcedureWithBAC.xml", param);
testRunner.addTestGroupFromXML("tg_AdvancedInspectionProcedureWithSAC.xml", param);
testRunner.addTestGroupFromXML("tg_GeneralAuthenticationProcedure.xml", param);
print("Test-Suite loaded...");
print("Right-click on the tests on the left.");
Documentation generated by
JSDoc on Tue Sep 3 22:29:43 2013