Class TestManagement
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.TestManagement
- All Implemented Interfaces:
ComTestManagement,AutoCloseable
COM object providing operations to offer access to the test management interface.
-
Field Summary
Fields inherited from class com.jacob.com.Dispatch
fdexNameCaseSensitive, Get, LOCALE_SYSTEM_DEFAULT, m_pDispatch, Method, Put, PutRef -
Constructor Summary
ConstructorsConstructorDescriptionTestManagement(com.jacob.com.Dispatch dispatch, boolean useTimeout) Instantiates a newTestManagement. -
Method Summary
Modifier and TypeMethodDescriptionbooleanexportPackage(String filePath, String exportPath) Same asexportPackage(String, String, boolean, int)but without timeout.booleanexportPackage(String filePath, String exportPath, boolean createNewPath, int timeout) Exports the given package to test management system.booleanexportPackage(String filePath, String exportPath, int timeout) Same asexportPackage(String, String, boolean, int)but without timeout and default optional parameter.booleanexportPackageAttributes(String filePath) Same asexportPackageAttributes(String, int)but without timeout.booleanexportPackageAttributes(String filePath, int timeout) Exports the attributes of given package to test management system.booleanexportProject(String filePath, String exportPath) Same asexportProject(String, String, boolean, int)but without timeout.booleanexportProject(String filePath, String exportPath, boolean createNewPath, int timeout) Exports the given project to test management system.booleanexportProject(String filePath, String exportPath, int timeout) Same asexportProject(String, String, boolean, int)but without timeout and default optional parameter.booleanexportProjectAttributes(String filePath) Same asexportProjectAttributes(String, int)but without timeout.booleanexportProjectAttributes(String filePath, int timeout) Exports the attributes of given project to test management system.booleanexportReport(String filePath, int timeout) Same asexportReport(String, String, int)but without archive path.booleanexportReport(String filePath, String archivePath) Same asexportReport(String, String, int)but without timeout.booleanexportReport(String filePath, String archivePath, int timeout) Exports the given project report file to test management system.booleanimportPackage(String tmProjectPath, String importPath) Same asimportPackage(String, String, int)but without timeout.booleanimportPackage(String tmProjectPath, String importPath, int timeout) Imports a package from a test management system.booleanimportPackageAttributes(String filePath) Same asimportPackageAttributes(String, int)but without timeout.booleanimportPackageAttributes(String filePath, int timeout) Imports the attributes of given package to test management system.booleanimportPackageDirectory(String tmDirectoryPath, String importPath) Same asimportPackageDirectory(String, String, int)but without timeout.booleanimportPackageDirectory(String tmDirectoryPath, String importPath, int timeout) Imports a directory from a test management system with all sub directories and package.booleanimportProject(String tmProjectPath, String importPath) Same asimportProject(String, String, boolean, int)but without timeout.booleanimportProject(String tmProjectPath, String importPath, boolean importMissingPackages, int timeout) Imports a project from a test management system.booleanimportProject(String tmProjectPath, String importPath, int timeout) Same asimportProject(String, String, boolean, int)but with time out and default optional parameter.booleanimportProjectAttributes(String filePath) Same asimportProjectAttributes(String, int)but without timeout.booleanimportProjectAttributes(String filePath, int timeout) Imports the attributes of given project to test management system.booleanimportProjectById(String tmProjectId, String importPath) Same asimportProjectById(String, String, boolean, int), but without importMissingPackages and no timeout (= 0).booleanimportProjectById(String tmProjectId, String importPath, boolean importMissingPackages, int timeout) Dispatches the function call to the ecu.test COM-API method ImportProjectById.booleanimportProjectById(String tmProjectId, String importPath, int timeout) Same asimportProjectById(String, String, boolean, int), but without importMissingPackages.booleanimportProjectDirectory(String tmDirectoryPath, String importPath) Same asimportProjectDirectory(String, String, int)but without timeout.booleanimportProjectDirectory(String tmDirectoryPath, String importPath, int timeout) Imports a directory from a test management system with all sub directories and projects.booleanChecks if the test management service can be started.booleanPerforms a login to the preconfigured test management service.booleanlogout()Performs a logout to the preconfigured test management service.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
-
TestManagement
public TestManagement(com.jacob.com.Dispatch dispatch, boolean useTimeout) Instantiates a newTestManagement.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
-
isAvailable
Description copied from interface:ComTestManagementChecks if the test management service can be started.- Specified by:
isAvailablein interfaceComTestManagement- Returns:
trueif the service could be started,falseotherwise- Throws:
ETComException- in case of a COM exception
-
login
Description copied from interface:ComTestManagementPerforms a login to the preconfigured test management service.- Specified by:
loginin interfaceComTestManagement- Parameters:
user- the user namepassword- the password- Returns:
trueif login succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
logout
Description copied from interface:ComTestManagementPerforms a logout to the preconfigured test management service.- Specified by:
logoutin interfaceComTestManagement- Returns:
trueif logout succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
importPackage
Same asimportPackage(String, String, int)but without timeout.- Parameters:
tmProjectPath- the path specifying the package in the test management systemimportPath- the directory to save the package (relative to package directory or absolute)- Returns:
trueif import succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
importPackage
public boolean importPackage(String tmProjectPath, String importPath, int timeout) throws ETComException Description copied from interface:ComTestManagementImports a package from a test management system. The tmProjectPath specifies the package in the test management system. The package will be imported into directory given by importPath.- Specified by:
importPackagein interfaceComTestManagement- Parameters:
tmProjectPath- the path specifying the package in the test management systemimportPath- the directory to save the package (relative to package directory or absolute)timeout- the timeout in seconds to wait for import to be finished- Returns:
trueif import succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
importPackageDirectory
public boolean importPackageDirectory(String tmDirectoryPath, String importPath) throws ETComException Same asimportPackageDirectory(String, String, int)but without timeout.- Parameters:
tmDirectoryPath- the path specifying the package in the test management systemimportPath- the directory to save the package (relative to package directory or absolute)- Returns:
trueif import succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
importPackageDirectory
public boolean importPackageDirectory(String tmDirectoryPath, String importPath, int timeout) throws ETComException Description copied from interface:ComTestManagementImports a directory from a test management system with all sub directories and package. The tmDirectoryPath specifies the directory in the test management system. The directory will be imported into the directory given by importPath.- Specified by:
importPackageDirectoryin interfaceComTestManagement- Parameters:
tmDirectoryPath- the path specifying the package in the test management systemimportPath- the directory to save the package (relative to package directory or absolute)timeout- the timeout in seconds to wait for import to be finished- Returns:
trueif import succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
importProject
Same asimportProject(String, String, boolean, int)but without timeout.- Parameters:
tmProjectPath- the path specifying the project in the test management systemimportPath- the directory to save the project (relative to package directory or absolute)- Returns:
trueif import succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
importProject
public boolean importProject(String tmProjectPath, String importPath, int timeout) throws ETComException Same asimportProject(String, String, boolean, int)but with time out and default optional parameter.- Parameters:
tmProjectPath- the path specifying the project in the test management systemimportPath- the directory to save the project (relative to package directory or absolute)timeout- the timeout in seconds to wait for import to be finished- Returns:
trueif import succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
importProject
public boolean importProject(String tmProjectPath, String importPath, boolean importMissingPackages, int timeout) throws ETComException Description copied from interface:ComTestManagementImports a project from a test management system. The tmProjectPath specifies the project in the test management system. The project will be imported into directory given by importPath.- Specified by:
importProjectin interfaceComTestManagement- Parameters:
tmProjectPath- the path specifying the project in the test management systemimportPath- the directory to save the project (relative to package directory or absolute)importMissingPackages- specifies whether missing packages will be automatically importedtimeout- the timeout in seconds to wait for import to be finished- Returns:
trueif import succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
importProjectById
Same asimportProjectById(String, String, boolean, int), but without importMissingPackages and no timeout (= 0).- Parameters:
tmProjectId- the project ID in test management systemimportPath- the directory to save the project (relative to package directory or absolute)- Returns:
trueif import succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
importProjectById
public boolean importProjectById(String tmProjectId, String importPath, int timeout) throws ETComException Same asimportProjectById(String, String, boolean, int), but without importMissingPackages.- Parameters:
tmProjectId- the project ID in test management systemimportPath- the directory to save the project (relative to package directory or absolute)timeout- the timeout in seconds to wait for import to be finished (timeout = 0: no timeout)- Returns:
trueif import succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
importProjectById
public boolean importProjectById(String tmProjectId, String importPath, boolean importMissingPackages, int timeout) throws ETComException Dispatches the function call to the ecu.test COM-API method ImportProjectById.- Specified by:
importProjectByIdin interfaceComTestManagement- Parameters:
tmProjectId- the project ID in test management systemimportPath- the directory to save the project (relative to package directory or absolute)importMissingPackages- specifies whether to import missing packagestimeout- the timeout in seconds to wait for import to be finished (timeout = 0: no timeout)- Returns:
trueif import succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
importProjectDirectory
public boolean importProjectDirectory(String tmDirectoryPath, String importPath) throws ETComException Same asimportProjectDirectory(String, String, int)but without timeout.- Parameters:
tmDirectoryPath- the path specifying the project in the test management systemimportPath- the directory to save the project (relative to package directory or absolute)- Returns:
trueif import succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
importProjectDirectory
public boolean importProjectDirectory(String tmDirectoryPath, String importPath, int timeout) throws ETComException Description copied from interface:ComTestManagementImports a directory from a test management system with all sub directories and projects. The tmDirectoryPath specifies the directory in the test management system. The directory will be imported into the directory given by importPath.- Specified by:
importProjectDirectoryin interfaceComTestManagement- Parameters:
tmDirectoryPath- the path specifying the project in the test management systemimportPath- the directory to save the project (relative to package directory or absolute)timeout- the timeout in seconds to wait for import to be finished- Returns:
trueif import succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
importPackageAttributes
Same asimportPackageAttributes(String, int)but without timeout.- Parameters:
filePath- the file path of the package whose attributes have to be imported (relative to package directory or absolute)- Returns:
trueif import succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
importPackageAttributes
Description copied from interface:ComTestManagementImports the attributes of given package to test management system.- Specified by:
importPackageAttributesin interfaceComTestManagement- Parameters:
filePath- the file path of the package whose attributes have to be imported (relative to package directory or absolute)timeout- the timeout in seconds to wait for export to be finished- Returns:
trueif import succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
importProjectAttributes
Same asimportProjectAttributes(String, int)but without timeout.- Parameters:
filePath- the file path of the project whose attributes have to be imported (relative to package directory or absolute)- Returns:
trueif import succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
importProjectAttributes
Description copied from interface:ComTestManagementImports the attributes of given project to test management system.- Specified by:
importProjectAttributesin interfaceComTestManagement- Parameters:
filePath- the file path of the project whose attributes have to be imported (relative to package directory or absolute)timeout- the timeout in seconds to wait for export to be finished- Returns:
trueif import succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
exportPackage
Same asexportPackage(String, String, boolean, int)but without timeout.- Parameters:
filePath- the file path of the package to be exported (relative to package directory or absolute)exportPath- the path specifying where the package should be placed at- Returns:
trueif export succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
exportPackage
Same asexportPackage(String, String, boolean, int)but without timeout and default optional parameter.- Parameters:
filePath- the file path of the package to be exported (relative to package directory or absolute)exportPath- the path specifying where the package should be placed attimeout- the timeout in seconds to wait for export to be finished- Returns:
trueif export succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
exportPackage
public boolean exportPackage(String filePath, String exportPath, boolean createNewPath, int timeout) throws ETComException Description copied from interface:ComTestManagementExports the given package to test management system. The exportPath is needed to specify where the package should be placed at.- Specified by:
exportPackagein interfaceComTestManagement- Parameters:
filePath- the file path of the package to be exported (relative to package directory or absolute)exportPath- the path specifying where the package should be placed atcreateNewPath- if the exportPath does not exist, it will be createdtimeout- the timeout in seconds to wait for export to be finished- Returns:
trueif export succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
exportProject
Same asexportProject(String, String, boolean, int)but without timeout.- Parameters:
filePath- the file path of the project to be exported (relative to package directory or absolute)exportPath- the path specifying where the project should be placed at- Returns:
trueif export succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
exportProject
Same asexportProject(String, String, boolean, int)but without timeout and default optional parameter.- Parameters:
filePath- the file path of the project to be exported (relative to package directory or absolute)exportPath- the path specifying where the project should be placed attimeout- the timeout in seconds to wait for export to be finished- Returns:
trueif export succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
exportProject
public boolean exportProject(String filePath, String exportPath, boolean createNewPath, int timeout) throws ETComException Description copied from interface:ComTestManagementExports the given project to test management system. The exportPath is needed to specify where the project should be placed at.- Specified by:
exportProjectin interfaceComTestManagement- Parameters:
filePath- the file path of the project to be exported (relative to package directory or absolute)exportPath- the path specifying where the project should be placed atcreateNewPath- if the exportPath does not exist, it will be createdtimeout- the timeout in seconds to wait for export to be finished- Returns:
trueif export succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
exportPackageAttributes
Same asexportPackageAttributes(String, int)but without timeout.- Parameters:
filePath- the file path of the package whose attributes have to be exported (relative to package directory or absolute)- Returns:
trueif export succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
exportPackageAttributes
Description copied from interface:ComTestManagementExports the attributes of given package to test management system.- Specified by:
exportPackageAttributesin interfaceComTestManagement- Parameters:
filePath- the file path of the package whose attributes have to be exported (relative to package directory or absolute)timeout- the timeout in seconds to wait for export to be finished- Returns:
trueif export succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
exportProjectAttributes
Same asexportProjectAttributes(String, int)but without timeout.- Parameters:
filePath- the file path of the project whose attributes have to be exported (relative to package directory or absolute)- Returns:
trueif export succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
exportProjectAttributes
Description copied from interface:ComTestManagementExports the attributes of given project to test management system.- Specified by:
exportProjectAttributesin interfaceComTestManagement- Parameters:
filePath- the file path of the project whose attributes have to be exported (relative to package directory or absolute)timeout- the timeout in seconds to wait for export to be finished- Returns:
trueif export succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
exportReport
Same asexportReport(String, String, int)but without archive path.- Parameters:
filePath- the file path of the report file to be exportedtimeout- the timeout in seconds to wait for export to be finished- Returns:
trueif export succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
exportReport
Same asexportReport(String, String, int)but without timeout.- Parameters:
filePath- the file path of the report file to be exportedarchivePath- if the exportPath does not exist, it will be created- Returns:
trueif export succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-
exportReport
Description copied from interface:ComTestManagementExports the given project report file to test management system. The archive path may be used to copy the report to another directory and to reference it from the test management entry.- Specified by:
exportReportin interfaceComTestManagement- Parameters:
filePath- the file path of the project report file to be exportedarchivePath- if the exportPath does not exist, it will be createdtimeout- the timeout in seconds to wait for export to be finished- Returns:
trueif export succeeded,falseotherwise- Throws:
ETComException- in case of a COM exception
-