Class AnalysisEnvironment
java.lang.Object
com.jacob.com.JacobObject
com.jacob.com.Dispatch
de.tracetronic.jenkins.plugins.ecutest.wrapper.com.ETComDispatch
de.tracetronic.jenkins.plugins.ecutest.wrapper.com.AnalysisEnvironment
- All Implemented Interfaces:
ComAnalysisEnvironment,AutoCloseable
COM object representing the currently started analysis environment.
This environment supports operations to run analysis jobs.
-
Field Summary
Fields inherited from class com.jacob.com.Dispatch
fdexNameCaseSensitive, Get, LOCALE_SYSTEM_DEFAULT, m_pDispatch, Method, Put, PutRef -
Constructor Summary
ConstructorsConstructorDescriptionAnalysisEnvironment(com.jacob.com.Dispatch dispatch, boolean useTimeout) Instantiates a newAnalysisEnvironment. -
Method Summary
Modifier and TypeMethodDescriptionexecuteJob(String jobFile) Same asexecuteJob(String, boolean)but with default parameters.executeJob(String jobFile, boolean createReportDir) Starts the execution of an analysis job.Gets the current analysis execution info.booleanmergeJobReports(String mainReportFilename, List<String> jobReports) Merges reports of analysis job executions into a main report.Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.wrapper.com.ETComDispatch
close, finalize, isAttached, performDirectRequest, performDirectRequest, performRequest, performRequest, performRequest, performRequest, useTimeoutMethods inherited from class com.jacob.com.Dispatch
call, call, call, call, callN, callN, callN_CaseSensitive, callSub, callSub, callSub, callSub, callSubN, callSubN, coCreateInstance, get, get, get_CaseSensitive, getActiveInstance, getIDOfName, getIDsOfNames, getIDsOfNames, getProgramId, hasExited, hasExited, invoke, invoke, invoke, invokeSub, invokeSub, invokeSub, invokeSubv, invokeSubv, invokeSubv, invokev, invokev, invokev, invokev, put, put, put_Casesensitive, putRef, putRef, QueryInterface, safeReleaseMethods inherited from class com.jacob.com.JacobObject
debug, getBuildDate, getBuildVersion, isDebugEnabled
-
Constructor Details
-
AnalysisEnvironment
public AnalysisEnvironment(com.jacob.com.Dispatch dispatch, boolean useTimeout) Instantiates a newAnalysisEnvironment.This constructor is used instead of a case operation to turn a Dispatch object into a wider object - it must exist in every wrapper class whose instances may be returned from method calls wrapped in VT_DISPATCH Variants.
- Parameters:
dispatch- the dispatchuseTimeout- specifies whether to apply timeout
-
-
Method Details
-
getAnalysisExecutionInfo
Description copied from interface:ComAnalysisEnvironmentGets the current analysis execution info.- Specified by:
getAnalysisExecutionInfoin interfaceComAnalysisEnvironment- Returns:
- the
ComAnalysisExecutionInfodispatch - Throws:
ETComException- in case of a COM exception
-
executeJob
Same asexecuteJob(String, boolean)but with default parameters.- Parameters:
jobFile- the full path name of the analysis job file- Returns:
- the
ComAnalysisExecutionInfodispatch - Throws:
ETComException- in case of a COM exception
-
executeJob
public ComAnalysisExecutionInfo executeJob(String jobFile, boolean createReportDir) throws ETComException Description copied from interface:ComAnalysisEnvironmentStarts the execution of an analysis job.- Specified by:
executeJobin interfaceComAnalysisEnvironment- Parameters:
jobFile- the full path name of the analysis job filecreateReportDir- specifies whether a new report directory is created or whether the report should be stored next to the job- Returns:
- the
ComAnalysisExecutionInfodispatch - Throws:
ETComException- in case of a COM exception
-
mergeJobReports
public boolean mergeJobReports(String mainReportFilename, List<String> jobReports) throws ETComException Description copied from interface:ComAnalysisEnvironmentMerges reports of analysis job executions into a main report.- Specified by:
mergeJobReportsin interfaceComAnalysisEnvironment- Parameters:
mainReportFilename- the full path of the main reportjobReports- the list of file names to reports of analysis job executions- Returns:
trueif merge was successful,falseotherwise- Throws:
ETComException- in case of a COM exception
-