public int execute_test(String testName, List<String> params, XdmNode contextNode) throws Exception { if (LOGR.isLoggable( FINE)) { String logMsg = String.format( "Preparing test %s for execution, using params:%n %s", testName, params); LOGR.fine(logMsg); } TestEntry test = index.getTest(testName); if (test == null) { throw new Exception("Error: Test " + testName + " not found."); } XdmNode paramsNode = engine.getBuilder().build( new StreamSource(new StringReader(getParamsXML(params)))); if (contextNode == null && test.usesContext()) { String contextNodeXML = "<context><value>" + test.getContext() + "</value></context>"; contextNode = engine.getBuilder().build( new StreamSource(new StringReader(contextNodeXML))); } XPathContext context = getXPathContext(test, opts.getSourcesName(), contextNode); return executeTest(test, paramsNode, context); }
public int execute_test(String testName, List<String> params, XdmNode contextNode) throws Exception { if (LOGR.isLoggable( FINE)) { String logMsg = String.format( "Preparing test %s for execution, using params:%n %s", testName, params); LOGR.fine(logMsg); } TestEntry test = index.getTest(testName); if (test == null) { throw new Exception("Error: Test " + testName + " not found."); } XdmNode paramsNode = engine.getBuilder().build( new StreamSource(new StringReader(getParamsXML(params)))); if (contextNode == null && test.usesContext()) { String contextNodeXML = "<context><value>" + test.getContext() + "</value></context>"; contextNode = engine.getBuilder().build( new StreamSource(new StringReader(contextNodeXML))); } XPathContext context = getXPathContext(test, opts.getSourcesName(), contextNode); return executeTest(test, paramsNode, context); }
try { TEClassLoader cl = engine.getClassLoader(opts .getSourcesName()); instance = Misc.makeInstance(pe.getClassName(), pe.getClassParams(), cl); TEClassLoader cl = engine.getClassLoader(opts.getSourcesName()); method = Misc.getMethod(pe.getClassName(), pe.getMethod(), cl, 3, 4);
try { TEClassLoader cl = engine.getClassLoader(opts .getSourcesName()); instance = Misc.makeInstance(pe.getClassName(), pe.getClassParams(), cl); TEClassLoader cl = engine.getClassLoader(opts.getSourcesName()); method = Misc.getMethod(pe.getClassName(), pe.getMethod(), cl, 3, 4);
if (fe.getMinArgs() >= argCount && fe.getMaxArgs() <= argCount) { TEClassLoader cl = engine.getClassLoader(opts .getSourcesName()); Method method = Misc.getMethod(fe.getClassName(), fe.getMethod(), cl, argCount);
if (fe.getMinArgs() >= argCount && fe.getMaxArgs() <= argCount) { TEClassLoader cl = engine.getClassLoader(opts .getSourcesName()); Method method = Misc.getMethod(fe.getClassName(), fe.getMethod(), cl, argCount);
opts.getSourcesName()); XsltTransformer xt = executable.load(); XdmDestination dest = new XdmDestination();
opts.getSourcesName()); XsltTransformer xt = executable.load(); XdmDestination dest = new XdmDestination();
XdmNode paramsNode = LogUtils.getParamsFromLog(builder, log); XdmNode contextNode = LogUtils.getContextFromLog(builder, log); XPathContext context = getXPathContext(test, opts.getSourcesName(), contextNode); setTestPath(testPath);
XdmNode paramsNode = LogUtils.getParamsFromLog(builder, log); XdmNode contextNode = LogUtils.getContextFromLog(builder, log); XPathContext context = getXPathContext(test, opts.getSourcesName(), contextNode); setTestPath(testPath);
CtlEarlReporter report = new CtlEarlReporter(); if (null != opts.getSourcesName()) { report.generateEarlReport(resultsDir, testLog, opts.getSourcesName(), testInputMap);
CtlEarlReporter report = new CtlEarlReporter(); if (null != opts.getSourcesName()) { report.generateEarlReport(resultsDir, testLog, opts.getSourcesName(), testInputMap);
TECore core = (TECore) ov.getObject(); TEClassLoader cl = core.getEngine().getClassLoader( core.getOpts().getSourcesName());
TECore core = (TECore) ov.getObject(); TEClassLoader cl = core.getEngine().getClassLoader( core.getOpts().getSourcesName());