public class LogbookStep extends Object
Constructor and Description |
---|
LogbookStep(World world) |
Modifier and Type | Method and Description |
---|---|
void |
download_logbook_lifecycle_object_for_unit(String unitTitle) |
void |
download_logbook_lifecycle_unit(String unitTitle) |
void |
download_logbook_operation() |
void |
the_logbook_has_not_the_status(String status)
Check if logbook does not contains given status
|
void |
the_logbook_operation_has_a_status(String status)
check on logbook if the global status is OK (status of the last event, if last event is correct)
|
void |
the_logbook_operation_is_consistent()
Check logbook operation consistency : no double evId, same evProcType, evId = evProcId for master, max status
level is in the last event
|
void |
the_outcome_detail_is(String eventName,
String eventOutDetail) |
void |
the_results_are(String eventName,
String eventResults)
check if the outcome detail is valid for an event type according to logbook
|
void |
the_status_are(List<String> eventNames,
String eventStatus)
check if the status is valid for a list of event type according to logbook
|
public LogbookStep(World world)
@When(value="^je recherche le journal des op\u00e9rations") public void download_logbook_operation()
@When(value="^je recherche le JCV de l\'unit\u00e9 archivistique dont le titre est (.*)") public void download_logbook_lifecycle_unit(String unitTitle)
@When(value="^je recherche le JCV du groupe d\'objet de l\'unit\u00e9 archivistique dont le titre est (.*)") public void download_logbook_lifecycle_object_for_unit(String unitTitle)
@Then(value="^le statut final du journal des op\u00e9rations est (.*)$") public void the_logbook_operation_has_a_status(String status) throws VitamClientException
status
- expected statusVitamClientException
- VitamClientException@Then(value="^le journal des op\u00e9rations est coh\u00e9rent$") public void the_logbook_operation_is_consistent() throws VitamClientException
VitamClientException
@Then(value="^le journal ne contient pas de statut (.*)$") public void the_logbook_has_not_the_status(String status) throws VitamClientException
status
- forbidden statusVitamClientException
- VitamClientException@Then(value="^l\'outcome d\u00e9tail de l\'\u00e9v\u00e9nement (.*) est (.*)$") public void the_outcome_detail_is(String eventName, String eventOutDetail) throws Throwable
Throwable
@Then(value="^le[s]? statut[s]? (?:de l\'\u00e9v\u00e9nement|des \u00e9v\u00e9nements) (.*) (?:est|sont) (.*)$") public void the_status_are(List<String> eventNames, String eventStatus) throws VitamClientException, InvalidParseOperationException
eventNames
- list of eventeventStatus
- status of eventVitamClientException
InvalidParseOperationException
@Then(value="^le r\u00e9sultat de l\'\u00e9v\u00e9nement (.*) est (.*)$") public void the_results_are(String eventName, String eventResults) throws VitamClientException, InvalidParseOperationException
eventName
- the eventeventResults
- outcome detail of the eventVitamClientException
InvalidParseOperationException
Copyright © 2018 Vitam. All rights reserved.