Debian Codegraph @

src/bonsai/test/bim/feature/cost.feature

raw
1 @cost
2 Feature: Cost
3
4 Scenario: Add cost schedule
5 Given an empty IFC project
6 And I set "scene.BIMCostProperties.cost_schedule_predefined_types" to "COSTPLAN"
7 When I press "bim.add_cost_schedule"
8 Then nothing happens
9
10 Scenario: Enable editing cost schedule
11 Given an empty IFC project
12 And I press "bim.add_cost_schedule"
13 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
14 When I press "bim.enable_editing_cost_schedule_attributes(cost_schedule={cost_schedule})"
15 Then nothing happens
16
17 Scenario: Disable editing cost schedule
18 Given an empty IFC project
19 And I press "bim.add_cost_schedule"
20 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
21 And I press "bim.enable_editing_cost_schedule_attributes(cost_schedule={cost_schedule})"
22 When I press "bim.disable_editing_cost_schedule"
23 Then nothing happens
24
25 Scenario: Edit cost schedule
26 Given an empty IFC project
27 And I press "bim.add_cost_schedule"
28 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
29 And I press "bim.enable_editing_cost_schedule_attributes(cost_schedule={cost_schedule})"
30 When I press "bim.edit_cost_schedule"
31 Then nothing happens
32
33 Scenario: Remove cost schedule
34 Given an empty IFC project
35 And I press "bim.add_cost_schedule"
36 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
37 When I press "bim.remove_cost_schedule(cost_schedule={cost_schedule})"
38 Then nothing happens
39
40 Scenario: Enable editing cost items
41 Given an empty IFC project
42 And I press "bim.add_cost_schedule"
43 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
44 When I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
45 Then nothing happens
46
47 Scenario: Disable editing cost schedule - after editing items
48 Given an empty IFC project
49 And I press "bim.add_cost_schedule"
50 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
51 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
52 When I press "bim.disable_editing_cost_schedule"
53 Then nothing happens
54
55 Scenario: Add summary cost item
56 Given an empty IFC project
57 And I press "bim.add_cost_schedule"
58 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
59 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
60 When I press "bim.add_summary_cost_item()"
61 Then nothing happens
62
63 Scenario: Remove cost item
64 Given an empty IFC project
65 And I press "bim.add_cost_schedule"
66 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
67 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
68 And I press "bim.add_summary_cost_item()"
69 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
70 When I press "bim.remove_cost_item(cost_item={cost_item})"
71 Then nothing happens
72
73 Scenario: Enable editing cost item
74 Given an empty IFC project
75 And I press "bim.add_cost_schedule"
76 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
77 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
78 And I press "bim.add_summary_cost_item()"
79 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
80 When I press "bim.enable_editing_cost_item_attributes(cost_item={cost_item})"
81 Then nothing happens
82
83 Scenario: Disable editing cost item
84 Given an empty IFC project
85 And I press "bim.add_cost_schedule"
86 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
87 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
88 And I press "bim.add_summary_cost_item()"
89 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
90 And I press "bim.enable_editing_cost_item_attributes(cost_item={cost_item})"
91 When I press "bim.disable_editing_cost_item"
92 Then nothing happens
93
94 Scenario: Edit cost item
95 Given an empty IFC project
96 And I press "bim.add_cost_schedule"
97 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
98 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
99 And I press "bim.add_summary_cost_item()"
100 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
101 And I press "bim.enable_editing_cost_item_attributes(cost_item={cost_item})"
102 When I press "bim.edit_cost_item"
103 Then nothing happens
104
105 Scenario: Add cost item
106 Given an empty IFC project
107 And I press "bim.add_cost_schedule"
108 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
109 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
110 And I press "bim.add_summary_cost_item()"
111 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
112 When I press "bim.add_cost_item(cost_item={cost_item})"
113 Then nothing happens
114
115 Scenario: Contract Cost Item
116 Given an empty IFC project
117 And I set "scene.BIMCostProperties.cost_schedule_predefined_types" to "COSTPLAN"
118 And I press "bim.add_cost_schedule"
119 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
120 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
121 And I press "bim.add_summary_cost_item()"
122 And I press "bim.add_cost_item(cost_item={cost_item})"
123 When I press "bim.contract_cost_item(cost_item={cost_item})"
124 Then nothing happens
125
126 Scenario: Contract All Cost Items
127 Given an empty IFC project
128 And I set "scene.BIMCostProperties.cost_schedule_predefined_types" to "COSTPLAN"
129 And I press "bim.add_cost_schedule"
130 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
131 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
132 And I press "bim.add_summary_cost_item()"
133 And I press "bim.add_cost_item(cost_item={cost_item})"
134 When I press "bim.contract_cost_items"
135 Then nothing happens
136
137 Scenario: Expand Cost Item
138 Given an empty IFC project
139 And I set "scene.BIMCostProperties.cost_schedule_predefined_types" to "COSTPLAN"
140 And I press "bim.add_cost_schedule"
141 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
142 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
143 And I press "bim.add_summary_cost_item()"
144 And I press "bim.add_cost_item(cost_item={cost_item})"
145 And I press "bim.contract_cost_item(cost_item={cost_item})"
146 When I press "bim.expand_cost_item(cost_item={cost_item})"
147 Then nothing happens
148
149
150 Scenario: Expand All Cost Items
151 Given an empty IFC project
152 And I set "scene.BIMCostProperties.cost_schedule_predefined_types" to "COSTPLAN"
153 And I press "bim.add_cost_schedule"
154 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
155 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
156 And I press "bim.add_summary_cost_item()"
157 And I press "bim.add_cost_item(cost_item={cost_item})"
158 When I press "bim.expand_cost_items"
159 Then nothing happens
160
161
162 Scenario: Enable editing cost item quantities
163 Given an empty IFC project
164 And I press "bim.add_cost_schedule"
165 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
166 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
167 And I press "bim.add_summary_cost_item()"
168 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
169 When I press "bim.enable_editing_cost_item_quantities(cost_item={cost_item})"
170 Then nothing happens
171
172 Scenario: Add cost item quantity
173 Given an empty IFC project
174 And I press "bim.add_cost_schedule"
175 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
176 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
177 And I press "bim.add_summary_cost_item()"
178 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
179 And I press "bim.enable_editing_cost_item_quantities(cost_item={cost_item})"
180 When I press "bim.add_cost_item_quantity(cost_item={cost_item}, ifc_class='IfcQuantityArea')"
181 Then nothing happens
182
183 Scenario: Remove cost item quantity
184 Given an empty IFC project
185 And I press "bim.add_cost_schedule"
186 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
187 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
188 And I press "bim.add_summary_cost_item()"
189 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
190 And I press "bim.enable_editing_cost_item_quantities(cost_item={cost_item})"
191 And I press "bim.add_cost_item_quantity(cost_item={cost_item}, ifc_class='IfcQuantityArea')"
192 And the variable "quantity" is "{ifc}.by_type('IfcQuantityArea')[0].id()"
193 When I press "bim.remove_cost_item_quantity(cost_item={cost_item}, physical_quantity={quantity})"
194 Then nothing happens
195
196 Scenario: Enable editing cost item quantity
197 Given an empty IFC project
198 And I press "bim.add_cost_schedule"
199 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
200 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
201 And I press "bim.add_summary_cost_item()"
202 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
203 And I press "bim.enable_editing_cost_item_quantities(cost_item={cost_item})"
204 And I press "bim.add_cost_item_quantity(cost_item={cost_item}, ifc_class='IfcQuantityArea')"
205 And the variable "quantity" is "{ifc}.by_type('IfcQuantityArea')[0].id()"
206 When I press "bim.enable_editing_cost_item_quantity(physical_quantity={quantity})"
207 Then nothing happens
208
209 Scenario: Disable editing cost item quantity
210 Given an empty IFC project
211 And I press "bim.add_cost_schedule"
212 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
213 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
214 And I press "bim.add_summary_cost_item()"
215 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
216 And I press "bim.enable_editing_cost_item_quantities(cost_item={cost_item})"
217 And I press "bim.add_cost_item_quantity(cost_item={cost_item}, ifc_class='IfcQuantityArea')"
218 And the variable "quantity" is "{ifc}.by_type('IfcQuantityArea')[0].id()"
219 And I press "bim.enable_editing_cost_item_quantity(physical_quantity={quantity})"
220 When I press "bim.disable_editing_cost_item_quantity"
221 Then nothing happens
222
223 Scenario: Edit cost item quantity
224 Given an empty IFC project
225 And I press "bim.add_cost_schedule"
226 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
227 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
228 And I press "bim.add_summary_cost_item()"
229 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
230 And I press "bim.enable_editing_cost_item_quantities(cost_item={cost_item})"
231 And I press "bim.add_cost_item_quantity(cost_item={cost_item}, ifc_class='IfcQuantityArea')"
232 And the variable "quantity" is "{ifc}.by_type('IfcQuantityArea')[0].id()"
233 And I press "bim.enable_editing_cost_item_quantity(physical_quantity={quantity})"
234 And I set "scene.BIMCostProperties.quantity_attributes[2].float_value" to "3"
235 When I press "bim.edit_cost_item_quantity(physical_quantity={quantity})"
236 Then nothing happens
237
238 Scenario: Enable editing cost item quantity
239 Given an empty IFC project
240 And I press "bim.add_cost_schedule"
241 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
242 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
243 And I press "bim.add_summary_cost_item()"
244 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
245 When I press "bim.enable_editing_cost_item_values(cost_item={cost_item})"
246 Then nothing happens
247
248 Scenario: Add cost value - fixed
249 Given an empty IFC project
250 And I press "bim.add_cost_schedule"
251 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
252 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
253 And I press "bim.add_summary_cost_item()"
254 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
255 And I press "bim.enable_editing_cost_item_values(cost_item={cost_item})"
256 And I set "scene.BIMCostProperties.cost_types" to "FIXED"
257 When I press "bim.add_cost_value(parent={cost_item}, cost_type='FIXED')"
258 Then nothing happens
259
260 Scenario: Enable editing cost item value
261 Given an empty IFC project
262 And I press "bim.add_cost_schedule"
263 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
264 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
265 And I press "bim.add_summary_cost_item()"
266 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
267 And I press "bim.enable_editing_cost_item_values(cost_item={cost_item})"
268 And I set "scene.BIMCostProperties.cost_types" to "FIXED"
269 And I press "bim.add_cost_value(parent={cost_item}, cost_type='FIXED')"
270 And the variable "cost_value" is "{ifc}.by_type('IfcCostValue')[0].id()"
271 When I press "bim.enable_editing_cost_item_value(cost_value={cost_value})"
272 Then nothing happens
273
274 Scenario: Disable editing cost item value
275 Given an empty IFC project
276 And I press "bim.add_cost_schedule"
277 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
278 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
279 And I press "bim.add_summary_cost_item()"
280 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
281 And I press "bim.enable_editing_cost_item_values(cost_item={cost_item})"
282 And I set "scene.BIMCostProperties.cost_types" to "FIXED"
283 And I press "bim.add_cost_value(parent={cost_item}, cost_type='FIXED')"
284 And the variable "cost_value" is "{ifc}.by_type('IfcCostValue')[0].id()"
285 And I press "bim.enable_editing_cost_item_value(cost_value={cost_value})"
286 When I press "bim.disable_editing_cost_item_value"
287 Then nothing happens
288
289 Scenario: Edit cost item value
290 Given an empty IFC project
291 And I press "bim.add_cost_schedule"
292 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
293 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
294 And I press "bim.add_summary_cost_item()"
295 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
296 And I press "bim.enable_editing_cost_item_values(cost_item={cost_item})"
297 And I set "scene.BIMCostProperties.cost_types" to "FIXED"
298 And I press "bim.add_cost_value(parent={cost_item}, cost_type='FIXED')"
299 And the variable "cost_value" is "{ifc}.by_type('IfcCostValue')[0].id()"
300 And I press "bim.enable_editing_cost_item_value(cost_value={cost_value})"
301 When I press "bim.edit_cost_value(cost_value={cost_value})"
302 Then nothing happens
303
304 Scenario: Enable editing cost item value formula
305 Given an empty IFC project
306 And I press "bim.add_cost_schedule"
307 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
308 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
309 And I press "bim.add_summary_cost_item()"
310 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
311 And I press "bim.enable_editing_cost_item_values(cost_item={cost_item})"
312 And I set "scene.BIMCostProperties.cost_types" to "FIXED"
313 And I press "bim.add_cost_value(parent={cost_item}, cost_type='FIXED')"
314 And the variable "cost_value" is "{ifc}.by_type('IfcCostValue')[0].id()"
315 When I press "bim.enable_editing_cost_item_value_formula(cost_value={cost_value})"
316 Then nothing happens
317
318 Scenario: Edit cost item value formula
319 Given an empty IFC project
320 And I press "bim.add_cost_schedule"
321 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
322 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
323 And I press "bim.add_summary_cost_item()"
324 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
325 And I press "bim.enable_editing_cost_item_values(cost_item={cost_item})"
326 And I set "scene.BIMCostProperties.cost_types" to "FIXED"
327 And I press "bim.add_cost_value(parent={cost_item}, cost_type='FIXED')"
328 And the variable "cost_value" is "{ifc}.by_type('IfcCostValue')[0].id()"
329 And I press "bim.enable_editing_cost_item_value_formula(cost_value={cost_value})"
330 And I set "scene.BIMCostProperties.cost_value_formula" to "3 + 2"
331 When I press "bim.edit_cost_value_formula(cost_value={cost_value})"
332 Then nothing happens
333
334 Scenario: Add cost column
335 Given an empty IFC project
336 And I press "bim.add_cost_schedule"
337 And I set "scene.BIMCostProperties.should_show_column_ui" to "True"
338 And I set "scene.BIMCostProperties.cost_column" to "Foobar"
339 When I press "bim.add_cost_column(name='Foobar')"
340 Then nothing happens
341
342 Scenario: Remove cost column
343 Given an empty IFC project
344 And I press "bim.add_cost_schedule"
345 And I set "scene.BIMCostProperties.should_show_column_ui" to "True"
346 And I set "scene.BIMCostProperties.cost_column" to "Foobar"
347 And I press "bim.add_cost_column(name='Foobar')"
348 When I press "bim.remove_cost_column(name='Foobar')"
349 Then nothing happens
350
351 Scenario: Assign cost item quantity - count based
352 Given an empty IFC project
353 And I press "bim.add_cost_schedule"
354 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
355 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
356 And I press "bim.add_summary_cost_item()"
357 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
358 And I add a cube
359 And the object "Cube" is selected
360 And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
361 And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
362 And I press "bim.assign_class"
363 When I press "bim.assign_cost_item_quantity(cost_item={cost_item}, related_object_type='PRODUCT', prop_name='')"
364 Then nothing happens
365
366 Scenario: Assign cost item quantity - quantity based
367 Given an empty IFC project
368 And I press "bim.add_cost_schedule"
369 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
370 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
371 And I press "bim.add_summary_cost_item()"
372 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
373 And I add a cube
374 And the object "Cube" is selected
375 And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
376 And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
377 And I press "bim.assign_class"
378 And the object "IfcWall/Cube" is selected
379 And I press "bim.add_qto(obj='IfcWall/Cube', obj_type='Object')"
380 And I press "bim.perform_quantity_take_off"
381 When I press "bim.assign_cost_item_quantity(cost_item={cost_item}, related_object_type='PRODUCT', prop_name='NetVolume')"
382 Then nothing happens
383
384 Scenario: Unassign cost item quantity - selection based
385 Given an empty IFC project
386 And I press "bim.add_cost_schedule"
387 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
388 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
389 And I press "bim.add_summary_cost_item()"
390 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
391 And I add a cube
392 And the object "Cube" is selected
393 And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
394 And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
395 And I press "bim.assign_class"
396 And the object "IfcWall/Cube" is selected
397 And I press "bim.assign_cost_item_quantity(cost_item={cost_item}, related_object_type='PRODUCT', prop_name='')"
398 When I press "bim.unassign_cost_item_quantity(cost_item={cost_item}, related_object=0)"
399 Then nothing happens
400
401 Scenario: Unassign cost item quantity - explicit object
402 Given an empty IFC project
403 And I press "bim.add_cost_schedule"
404 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
405 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
406 And I press "bim.add_summary_cost_item()"
407 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
408 And I add a cube
409 And the object "Cube" is selected
410 And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
411 And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
412 And I press "bim.assign_class"
413 And the object "IfcWall/Cube" is selected
414 And I press "bim.assign_cost_item_quantity(cost_item={cost_item}, related_object_type='PRODUCT', prop_name='')"
415 And the variable "wall" is "{ifc}.by_type('IfcWall')[0].id()"
416 When I press "bim.unassign_cost_item_quantity(cost_item={cost_item}, related_object={wall})"
417 Then nothing happens
418
419 Scenario: Select cost item products
420 Given an empty IFC project
421 And I press "bim.add_cost_schedule"
422 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
423 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
424 And I press "bim.add_summary_cost_item()"
425 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
426 And I add a cube
427 And the object "Cube" is selected
428 And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
429 And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
430 And I press "bim.assign_class"
431 And the object "IfcWall/Cube" is selected
432 And I press "bim.assign_cost_item_quantity(cost_item={cost_item}, related_object_type='PRODUCT', prop_name='')"
433 When I press "bim.select_cost_item_products(cost_item={cost_item})"
434 Then nothing happens
435
436 Scenario: Select Cost Schedule Products
437 Given an empty IFC project
438 And I press "bim.add_cost_schedule"
439 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
440 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
441 And I press "bim.add_summary_cost_item()"
442 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
443 And I add a cube
444 And the object "Cube" is selected
445 And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
446 And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
447 And I press "bim.assign_class"
448 And the object "IfcWall/Cube" is selected
449 And I press "bim.assign_cost_item_quantity(cost_item={cost_item}, related_object_type='PRODUCT', prop_name='')"
450 When I press "bim.select_cost_schedule_products(cost_schedule={cost_schedule})"
451 Then nothing happens
452 Scenario: Load Cost Item Types
453 Given an empty IFC project
454 And I press "bim.add_cost_schedule"
455 And the variable "cost_schedule" is "{ifc}.by_type('IfcCostSchedule')[0].id()"
456 And I press "bim.enable_editing_cost_items(cost_schedule={cost_schedule})"
457 And I press "bim.add_summary_cost_item()"
458 And the variable "cost_item" is "{ifc}.by_type('IfcCostItem')[0].id()"
459 When I press "bim.add_cost_item(cost_item={cost_item})"
460 And I press "bim.load_cost_item_types"
461 Then nothing happens