| 1 |
@document |
| 2 |
Feature: Document |
| 3 |
|
| 4 |
Scenario: Load project documents |
| 5 |
Given an empty IFC project |
| 6 |
When I press "bim.load_project_documents" |
| 7 |
Then nothing happens |
| 8 |
|
| 9 |
Scenario: Load document |
| 10 |
Given an empty IFC project |
| 11 |
And I press "bim.load_project_documents" |
| 12 |
And I press "bim.add_information" |
| 13 |
And the variable "information" is "{ifc}.by_type('IfcDocumentInformation')[-1].id()" |
| 14 |
When I press "bim.load_document(document={information})" |
| 15 |
Then nothing happens |
| 16 |
|
| 17 |
Scenario: Load parent document |
| 18 |
Given an empty IFC project |
| 19 |
And I press "bim.load_project_documents" |
| 20 |
And I press "bim.add_information" |
| 21 |
And the variable "information" is "{ifc}.by_type('IfcDocumentInformation')[-1].id()" |
| 22 |
And I press "bim.load_document(document={information})" |
| 23 |
When I press "bim.load_parent_document" |
| 24 |
Then nothing happens |
| 25 |
|
| 26 |
Scenario: Disable document editing UI |
| 27 |
Given an empty IFC project |
| 28 |
And I press "bim.load_project_documents" |
| 29 |
When I press "bim.disable_document_editing_ui" |
| 30 |
Then nothing happens |
| 31 |
|
| 32 |
Scenario: Enable editing document |
| 33 |
Given an empty IFC project |
| 34 |
And I press "bim.load_project_documents" |
| 35 |
And I press "bim.add_information" |
| 36 |
And the variable "information" is "{ifc}.by_type('IfcDocumentInformation')[-1].id()" |
| 37 |
When I press "bim.enable_editing_document(document={information})" |
| 38 |
Then nothing happens |
| 39 |
|
| 40 |
Scenario: Disable editing document |
| 41 |
Given an empty IFC project |
| 42 |
And I press "bim.load_project_documents" |
| 43 |
And I press "bim.add_information" |
| 44 |
And the variable "information" is "{ifc}.by_type('IfcDocumentInformation')[-1].id()" |
| 45 |
And I press "bim.enable_editing_document(document={information})" |
| 46 |
When I press "bim.disable_editing_document" |
| 47 |
Then nothing happens |
| 48 |
|
| 49 |
Scenario: Add information |
| 50 |
Given an empty IFC project |
| 51 |
And I press "bim.load_project_documents" |
| 52 |
When I press "bim.add_information" |
| 53 |
Then nothing happens |
| 54 |
|
| 55 |
Scenario: Add document reference |
| 56 |
Given an empty IFC project |
| 57 |
And I press "bim.load_project_documents" |
| 58 |
And I press "bim.add_information" |
| 59 |
And the variable "information" is "{ifc}.by_type('IfcDocumentInformation')[-1].id()" |
| 60 |
And I press "bim.load_document(document={information})" |
| 61 |
When I press "bim.add_document_reference" |
| 62 |
Then nothing happens |
| 63 |
|
| 64 |
Scenario: Edit document |
| 65 |
Given an empty IFC project |
| 66 |
And I press "bim.load_project_documents" |
| 67 |
And I press "bim.add_information" |
| 68 |
And the variable "information" is "{ifc}.by_type('IfcDocumentInformation')[-1].id()" |
| 69 |
And I press "bim.enable_editing_document(document={information})" |
| 70 |
When I press "bim.edit_document" |
| 71 |
Then nothing happens |
| 72 |
|
| 73 |
Scenario: Remove document |
| 74 |
Given an empty IFC project |
| 75 |
And I press "bim.load_project_documents" |
| 76 |
And I press "bim.add_information" |
| 77 |
And the variable "information" is "{ifc}.by_type('IfcDocumentInformation')[-1].id()" |
| 78 |
When I press "bim.remove_document(document={information})" |
| 79 |
Then nothing happens |
| 80 |
|
| 81 |
Scenario: Assign document |
| 82 |
Given an empty IFC project |
| 83 |
And I press "bim.load_project_documents" |
| 84 |
And I press "bim.add_information" |
| 85 |
And the variable "information" is "{ifc}.by_type('IfcDocumentInformation')[-1].id()" |
| 86 |
And I press "bim.load_document(document={information})" |
| 87 |
And I press "bim.add_document_reference" |
| 88 |
And the variable "reference" is "{ifc}.by_type('IfcDocumentReference')[-1].id()" |
| 89 |
And I add a cube |
| 90 |
And the object "Cube" is selected |
| 91 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 92 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 93 |
And I press "bim.assign_class" |
| 94 |
When I press "bim.assign_document(document={reference})" |
| 95 |
Then nothing happens |
| 96 |
|
| 97 |
Scenario: Unassign document |
| 98 |
Given an empty IFC project |
| 99 |
And I press "bim.load_project_documents" |
| 100 |
And I press "bim.add_information" |
| 101 |
And the variable "information" is "{ifc}.by_type('IfcDocumentInformation')[-1].id()" |
| 102 |
And I press "bim.load_document(document={information})" |
| 103 |
And I press "bim.add_document_reference" |
| 104 |
And the variable "reference" is "{ifc}.by_type('IfcDocumentReference')[-1].id()" |
| 105 |
And I add a cube |
| 106 |
And the object "Cube" is selected |
| 107 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 108 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 109 |
And I press "bim.assign_class" |
| 110 |
And I press "bim.assign_document(document={reference})" |
| 111 |
When I press "bim.unassign_document(document={reference})" |
| 112 |
Then nothing happens |