Class OpenMetadataConformanceWorkbenchWorkPad
java.lang.Object
org.odpi.openmetadata.conformance.beans.OpenMetadataConformanceWorkbenchWorkPad
- Direct Known Subclasses:
PerformanceWorkPad
,PlatformConformanceWorkPad
,RepositoryConformanceWorkPad
OpenMetadataConformanceWorkbenchWorkPad provides the super type for the work pad used by each of the conformance workbenches.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Date
protected String
protected String
protected int
protected Map<String,
OpenMetadataTestCase> protected List<OpenMetadataConformanceTestEvidence>
protected String
protected String
protected boolean
protected String
protected String
protected String
protected String
-
Constructor Summary
ConstructorDescriptionOpenMetadataConformanceWorkbenchWorkPad
(String workbenchId, String workbenchName, String workbenchVersionNumber, String workbenchDocURL, String localServerUserId, String localServerPassword, String tutType, int maxPageSize) Constructor takes properties that are common to all work pads. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDiscoveredProperty
(Integer profileId, Integer requirementId, String testCaseId, String testCaseName, String testCaseDocumentationURL, String propertyName, Object propertyValue) Log a property discovered by a test case.void
addNotSupportedCondition
(Integer profileId, Integer requirementId, String testCaseId, String testCaseName, String testCaseDocumentationURL, String assertionId) Log that a test case has reported the correct response to a non-supported function.void
addSuccessfulCondition
(Integer profileId, Integer requirementId, String testCaseId, String testCaseName, String testCaseDocumentationURL, String assertionId, String methodName, Long elapsedTime) Log that a test case has reported that a condition has been met for a specific requirement.void
addUnsuccessfulCondition
(Integer profileId, Integer requirementId, String testCaseId, String testCaseName, String testCaseDocumentationURL, String assertionId, String methodName, Long elapsedTime) Log that a test case has reported that a condition has not been met for a specific requirement.Return the password for this server.Return the userId for this server.int
Return the maximum number of records that should be returned on a REST call.Accumulate the set of profile names registered with this work pad.abstract List<OpenMetadataConformanceProfileResults>
Accumulate the evidences for each profilegetProfileResults
(String profileName) Accumulate the evidences for a given profile.abstract List<OpenMetadataConformanceProfileSummary>
Accumulate the summarized evidences for each profileReturn the URL to the documentation for this workbench.Return the unique identifier of the workbench.Return the name of this workbench.Return the completion state of the workbench.Return the version number that determines the conformance level.protected OpenMetadataConformanceStatus
processEvidence
(List<OpenMetadataConformanceTestEvidence> testEvidenceList, List<OpenMetadataConformanceTestEvidence> positiveTestEvidence, List<OpenMetadataConformanceTestEvidence> negativeTestEvidence) From the test evidence list, set up the positive and negative evidence lists and return the conformance status based on the evidence.void
Register any activity to help with working out when the workbench has quiesced.void
Set the completion state of the workbench to true.toString()
toString() JSON-style
-
Field Details
-
workbenchId
-
workbenchName
-
workbenchVersionNumber
-
workbenchDocURL
-
localServerUserId
-
localServerPassword
-
tutName
-
tutType
-
maxPageSize
protected int maxPageSize -
workbenchComplete
protected boolean workbenchComplete -
testEvidenceList
-
testCaseMap
-
lastActive
-
-
Constructor Details
-
OpenMetadataConformanceWorkbenchWorkPad
public OpenMetadataConformanceWorkbenchWorkPad(String workbenchId, String workbenchName, String workbenchVersionNumber, String workbenchDocURL, String localServerUserId, String localServerPassword, String tutType, int maxPageSize) Constructor takes properties that are common to all work pads.- Parameters:
workbenchId
- unique identifier of the workbench.workbenchName
- display name for the workbench.workbenchVersionNumber
- version number of the workbench.workbenchDocURL
- link to documentation for the workbench.localServerUserId
- local server's userIdlocalServerPassword
- local server's passwordtutType
- type of technology to testmaxPageSize
- maximum number of results to return on any one call.
-
-
Method Details
-
getWorkbenchId
Return the unique identifier of the workbench.- Returns:
- string id
-
getWorkbenchName
Return the name of this workbench.- Returns:
- name
-
getWorkbenchVersionNumber
Return the version number that determines the conformance level.- Returns:
- string version number
-
getWorkbenchDocURL
Return the URL to the documentation for this workbench.- Returns:
- url
-
getLocalServerUserId
Return the userId for this server.- Returns:
- userId
-
getWorkbenchStatus
Return the completion state of the workbench.- Returns:
- boolean - whether workbench is complete
-
setWorkbenchComplete
public void setWorkbenchComplete()Set the completion state of the workbench to true. This signifies that the synchronous portion of the tests have completed. The workbench may still be processing asynchronous events which trigger further tests. -
getLocalServerPassword
Return the password for this server.- Returns:
- password
-
getMaxPageSize
public int getMaxPageSize()Return the maximum number of records that should be returned on a REST call.- Returns:
- int
-
getProfileNames
Accumulate the set of profile names registered with this work pad.- Returns:
- the profile names
-
getProfileResults
Accumulate the evidences for a given profile.- Parameters:
profileName
- for which to obtain the detailed results- Returns:
- the test evidence organized by profile and requirement within profile
-
getProfileResults
Accumulate the evidences for each profile- Returns:
- the test evidence organized by profile and requirement within profile
-
getProfileSummaries
Accumulate the summarized evidences for each profile- Returns:
- the summarized test evidence organized by profile and requirement within profile
-
processEvidence
protected OpenMetadataConformanceStatus processEvidence(List<OpenMetadataConformanceTestEvidence> testEvidenceList, List<OpenMetadataConformanceTestEvidence> positiveTestEvidence, List<OpenMetadataConformanceTestEvidence> negativeTestEvidence) From the test evidence list, set up the positive and negative evidence lists and return the conformance status based on the evidence.- Parameters:
testEvidenceList
- list of evidencepositiveTestEvidence
- extracted positive evidencenegativeTestEvidence
- extracted negative evidence- Returns:
- conformance status
-
addSuccessfulCondition
public void addSuccessfulCondition(Integer profileId, Integer requirementId, String testCaseId, String testCaseName, String testCaseDocumentationURL, String assertionId, String methodName, Long elapsedTime) Log that a test case has reported that a condition has been met for a specific requirement.- Parameters:
profileId
- profile for the requirementrequirementId
- identifier of the requirementtestCaseId
- identifier of the reporting test casetestCaseName
- name of the reporting test casetestCaseDocumentationURL
- link to the test case documentation.assertionId
- details of the assertionmethodName
- the method that the condition testselapsedTime
- of the test executing (in milliseconds)
-
addUnsuccessfulCondition
public void addUnsuccessfulCondition(Integer profileId, Integer requirementId, String testCaseId, String testCaseName, String testCaseDocumentationURL, String assertionId, String methodName, Long elapsedTime) Log that a test case has reported that a condition has not been met for a specific requirement.- Parameters:
profileId
- profile for the requirementrequirementId
- identifier of the requirementtestCaseId
- identifier of the reporting test casetestCaseName
- name of the reporting test casetestCaseDocumentationURL
- link to the test case documentation.assertionId
- details of the assertionmethodName
- the method that the condition testselapsedTime
- of the test executing (in milliseconds)
-
addNotSupportedCondition
public void addNotSupportedCondition(Integer profileId, Integer requirementId, String testCaseId, String testCaseName, String testCaseDocumentationURL, String assertionId) Log that a test case has reported the correct response to a non-supported function.- Parameters:
profileId
- profile for the requirementrequirementId
- identifier of the requirementtestCaseId
- identifier of the reporting test casetestCaseName
- name of the reporting test casetestCaseDocumentationURL
- link to the test case documentation.assertionId
- details of the assertion
-
addDiscoveredProperty
public void addDiscoveredProperty(Integer profileId, Integer requirementId, String testCaseId, String testCaseName, String testCaseDocumentationURL, String propertyName, Object propertyValue) Log a property discovered by a test case.- Parameters:
profileId
- profile for the requirementrequirementId
- identifier of the requirementtestCaseId
- identifier of the reporting test casetestCaseName
- name of the reporting test casetestCaseDocumentationURL
- link to the test case documentation.propertyName
- name of the propertypropertyValue
- value of the property
-
registerActivity
public void registerActivity()Register any activity to help with working out when the workbench has quiesced. Any kind of activity is significant, especially if beyond the end of the synchronous tests. -
toString
toString() JSON-style
-