Debian Codegraph @

src/bonsai/test/bim/feature/pset_template.feature

raw
1 @pset_template
2 Feature: Pset_Template
3 Covers property sets and property templates creation, edition, deletion.
4
5 Scenario: Add pset template
6 Given an empty IFC project
7 When I load a new pset template file
8 And I press "bim.add_pset_template"
9 Then nothing happens
10
11 Scenario: Remove pset template
12 Given an empty IFC project
13 When I load a new pset template file
14 And I press "bim.add_pset_template"
15 And I press "bim.remove_pset_template"
16 Then nothing happens
17
18 Scenario: Enable editing pset template
19 Given an empty IFC project
20 When I load a new pset template file
21 And I press "bim.add_pset_template"
22 And I press "bim.enable_editing_pset_template"
23 Then nothing happens
24
25 Scenario: Edit pset template
26 Given an empty IFC project
27 When I load a new pset template file
28 And I press "bim.add_pset_template"
29 And I press "bim.enable_editing_pset_template"
30 And I press "bim.edit_pset_template"
31 Then nothing happens
32
33 Scenario: Disable editing pset template
34 Given an empty IFC project
35 When I load a new pset template file
36 And I press "bim.add_pset_template"
37 And I press "bim.enable_editing_pset_template"
38 And I press "bim.disable_editing_pset_template"
39 Then nothing happens
40
41 Scenario: Save pset template
42 Given an empty IFC project
43 When I load a new pset template file
44 And I press "bim.save_pset_template_file"
45 Then nothing happens
46
47 Scenario: Add prop template
48 Given an empty IFC project
49 When I load a new pset template file
50 And I press "bim.add_pset_template"
51 And I press "bim.add_prop_template"
52 Then nothing happens
53
54 Scenario: Remove prop template
55 Given an empty IFC project
56 When I load a new pset template file
57 And I press "bim.add_pset_template"
58 And I press "bim.add_prop_template"
59 And the variable "prop_template" is "{pset_ifc}.by_type('IfcSimplePropertyTemplate')[-1].id()"
60 And I press "bim.remove_prop_template(prop_template={prop_template})"
61 Then nothing happens
62
63 Scenario: Enable editing prop template
64 Given an empty IFC project
65 When I load a new pset template file
66 And I press "bim.add_pset_template"
67 And the variable "prop_template" is "{pset_ifc}.by_type('IfcSimplePropertyTemplate')[-1].id()"
68 And I press "bim.enable_editing_prop_template(prop_template={prop_template})"
69 Then nothing happens
70
71 Scenario: Edit prop template
72 Given an empty IFC project
73 When I load a new pset template file
74 And I press "bim.add_pset_template"
75 And the variable "prop_template" is "{pset_ifc}.by_type('IfcSimplePropertyTemplate')[-1].id()"
76 And I press "bim.enable_editing_prop_template(prop_template={prop_template})"
77 And I press "bim.edit_prop_template"
78 Then nothing happens
79
80 Scenario: Edit prop template - enumeration property
81 Given an empty IFC project
82 When I load a new pset template file
83 And I press "bim.add_pset_template"
84 And the variable "prop_template" is "{pset_ifc}.by_type('IfcSimplePropertyTemplate')[-1].id()"
85 And I press "bim.enable_editing_prop_template(prop_template={prop_template})"
86 And I set "scene.BIMPsetTemplateProperties.active_prop_template.template_type" to "P_ENUMERATEDVALUE"
87 And I press "bim.edit_prop_template"
88 Then nothing happens
89
90 Scenario: Add prop enum
91 Given an empty IFC project
92 When I load a new pset template file
93 And I press "bim.add_pset_template"
94 And I press "bim.add_prop_template"
95 And the variable "prop_template" is "{pset_ifc}.by_type('IfcSimplePropertyTemplate')[-1].id()"
96 And I press "bim.enable_editing_prop_template(prop_template={prop_template})"
97 And I set "scene.BIMPsetTemplateProperties.active_prop_template.template_type" to "P_ENUMERATEDVALUE"
98 And I press "bim.add_prop_enum"
99 And I press "bim.edit_prop_template"
100 Then nothing happens
101
102 Scenario: Delete prop enum
103 Given an empty IFC project
104 When I load a new pset template file
105 And I press "bim.add_pset_template"
106 And I press "bim.add_prop_template"
107 And the variable "prop_template" is "{pset_ifc}.by_type('IfcSimplePropertyTemplate')[-1].id()"
108 And I press "bim.enable_editing_prop_template(prop_template={prop_template})"
109 And I set "scene.BIMPsetTemplateProperties.active_prop_template.template_type" to "P_ENUMERATEDVALUE"
110 And I press "bim.add_prop_enum"
111 And I press "bim.delete_prop_enum(index=0)"
112 And I press "bim.edit_prop_template"
113 Then nothing happens
114
115 Scenario: Disable editing prop template
116 Given an empty IFC project
117 When I load a new pset template file
118 And I press "bim.add_pset_template"
119 And the variable "prop_template" is "{pset_ifc}.by_type('IfcSimplePropertyTemplate')[-1].id()"
120 And I press "bim.enable_editing_prop_template(prop_template={prop_template})"
121 And I press "bim.disable_editing_prop_template"
122 Then nothing happens