Debian Codegraph @

src/bonsai/test/bim/feature/library.feature

raw
1 @library
2 Feature: Library
3
4 Scenario: Add library
5 Given an empty IFC project
6 When I press "bim.add_library"
7 Then nothing happens
8
9 Scenario: Remove library
10 Given an empty IFC project
11 And I press "bim.add_library"
12 And the variable "library" is "{ifc}.by_type('IfcLibraryInformation')[-1].id()"
13 When I press "bim.remove_library(library={library})"
14 Then nothing happens
15
16 Scenario: Enable editing library references
17 Given an empty IFC project
18 And I press "bim.add_library"
19 And the variable "library" is "{ifc}.by_type('IfcLibraryInformation')[-1].id()"
20 When I press "bim.enable_editing_library_references(library={library})"
21 Then nothing happens
22
23 Scenario: Disable editing library references
24 Given an empty IFC project
25 And I press "bim.add_library"
26 And the variable "library" is "{ifc}.by_type('IfcLibraryInformation')[-1].id()"
27 And I press "bim.enable_editing_library_references(library={library})"
28 When I press "bim.disable_editing_library_references"
29 Then nothing happens
30
31 Scenario: Enable editing library
32 Given an empty IFC project
33 And I press "bim.add_library"
34 And the variable "library" is "{ifc}.by_type('IfcLibraryInformation')[-1].id()"
35 And I press "bim.enable_editing_library_references(library={library})"
36 When I press "bim.enable_editing_library"
37 Then nothing happens
38
39 Scenario: Disable editing library
40 Given an empty IFC project
41 And I press "bim.add_library"
42 And the variable "library" is "{ifc}.by_type('IfcLibraryInformation')[-1].id()"
43 And I press "bim.enable_editing_library_references(library={library})"
44 And I press "bim.enable_editing_library"
45 When I press "bim.disable_editing_library"
46 Then nothing happens
47
48 Scenario: Edit library
49 Given an empty IFC project
50 And I press "bim.add_library"
51 And the variable "library" is "{ifc}.by_type('IfcLibraryInformation')[-1].id()"
52 And I press "bim.enable_editing_library_references(library={library})"
53 And I press "bim.enable_editing_library"
54 When I press "bim.edit_library"
55 Then nothing happens
56
57 Scenario: Add library reference
58 Given an empty IFC project
59 And I press "bim.add_library"
60 And the variable "library" is "{ifc}.by_type('IfcLibraryInformation')[-1].id()"
61 And I press "bim.enable_editing_library_references(library={library})"
62 When I press "bim.add_library_reference"
63 Then nothing happens
64
65 Scenario: Remove library reference
66 Given an empty IFC project
67 And I press "bim.add_library"
68 And the variable "library" is "{ifc}.by_type('IfcLibraryInformation')[-1].id()"
69 And I press "bim.enable_editing_library_references(library={library})"
70 And I press "bim.add_library_reference"
71 And the variable "reference" is "{ifc}.by_type('IfcLibraryReference')[-1].id()"
72 When I press "bim.remove_library_reference(reference={reference})"
73 Then nothing happens
74
75 Scenario: Enable editing library reference
76 Given an empty IFC project
77 And I press "bim.add_library"
78 And the variable "library" is "{ifc}.by_type('IfcLibraryInformation')[-1].id()"
79 And I press "bim.enable_editing_library_references(library={library})"
80 And I press "bim.add_library_reference"
81 And the variable "reference" is "{ifc}.by_type('IfcLibraryReference')[-1].id()"
82 When I press "bim.enable_editing_library_reference(reference={reference})"
83 Then nothing happens
84
85 Scenario: Disable editing library reference
86 Given an empty IFC project
87 And I press "bim.add_library"
88 And the variable "library" is "{ifc}.by_type('IfcLibraryInformation')[-1].id()"
89 And I press "bim.enable_editing_library_references(library={library})"
90 And I press "bim.add_library_reference"
91 And the variable "reference" is "{ifc}.by_type('IfcLibraryReference')[-1].id()"
92 And I press "bim.enable_editing_library_reference(reference={reference})"
93 When I press "bim.disable_editing_library_reference()"
94 Then nothing happens
95
96 Scenario: Edit library reference
97 Given an empty IFC project
98 And I press "bim.add_library"
99 And the variable "library" is "{ifc}.by_type('IfcLibraryInformation')[-1].id()"
100 And I press "bim.enable_editing_library_references(library={library})"
101 And I press "bim.add_library_reference"
102 And the variable "reference" is "{ifc}.by_type('IfcLibraryReference')[-1].id()"
103 And I press "bim.enable_editing_library_reference(reference={reference})"
104 When I press "bim.edit_library_reference()"
105 Then nothing happens
106
107 Scenario: Assign library reference
108 Given an empty IFC project
109 And I press "bim.add_library"
110 And the variable "library" is "{ifc}.by_type('IfcLibraryInformation')[-1].id()"
111 And I press "bim.enable_editing_library_references(library={library})"
112 And I press "bim.add_library_reference"
113 And the variable "reference" is "{ifc}.by_type('IfcLibraryReference')[-1].id()"
114 And I add a cube
115 And the object "Cube" is selected
116 And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
117 And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
118 And I press "bim.assign_class"
119 And the object "IfcWall/Cube" is selected
120 When I press "bim.assign_library_reference(reference={reference})"
121 Then nothing happens
122
123 Scenario: Unassign library reference
124 Given an empty IFC project
125 And I press "bim.add_library"
126 And the variable "library" is "{ifc}.by_type('IfcLibraryInformation')[-1].id()"
127 And I press "bim.enable_editing_library_references(library={library})"
128 And I press "bim.add_library_reference"
129 And the variable "reference" is "{ifc}.by_type('IfcLibraryReference')[-1].id()"
130 And I add a cube
131 And the object "Cube" is selected
132 And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
133 And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
134 And I press "bim.assign_class"
135 And the object "IfcWall/Cube" is selected
136 And I press "bim.assign_library_reference(reference={reference})"
137 When I press "bim.unassign_library_reference(reference={reference})"
138 Then nothing happens