| 1 |
@sequence |
| 2 |
Feature: Sequence |
| 3 |
|
| 4 |
Scenario: Add work plan |
| 5 |
Given an empty IFC project |
| 6 |
When I press "bim.add_work_plan" |
| 7 |
And the variable "work_plan" is "IfcStore.get_file().by_type('IfcWorkPlan')[0].id()" |
| 8 |
Then nothing happens |
| 9 |
|
| 10 |
Scenario: Add Work schedule |
| 11 |
Given an empty IFC project |
| 12 |
When I press "bim.add_work_schedule" |
| 13 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 14 |
Then nothing happens |
| 15 |
|
| 16 |
Scenario: Remove work plan |
| 17 |
Given an empty IFC project |
| 18 |
When I press "bim.add_work_plan" |
| 19 |
And the variable "work_plan" is "IfcStore.get_file().by_type('IfcWorkPlan')[0].id()" |
| 20 |
When I press "bim.remove_work_plan(work_plan={work_plan})" |
| 21 |
Then nothing happens |
| 22 |
|
| 23 |
Scenario: Remove work schedule |
| 24 |
Given an empty IFC project |
| 25 |
When I press "bim.add_work_schedule" |
| 26 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 27 |
When I press "bim.remove_work_schedule(work_schedule={work_schedule})" |
| 28 |
Then nothing happens |
| 29 |
|
| 30 |
Scenario: Enable Editing Work Plan |
| 31 |
Given an empty IFC project |
| 32 |
When I press "bim.add_work_plan" |
| 33 |
And the variable "work_plan" is "IfcStore.get_file().by_type('IfcWorkPlan')[0].id()" |
| 34 |
When I press "bim.enable_editing_work_plan(work_plan={work_plan})" |
| 35 |
Then nothing happens |
| 36 |
|
| 37 |
Scenario: Edit Work Plan |
| 38 |
Given an empty IFC project |
| 39 |
When I press "bim.add_work_plan" |
| 40 |
And the variable "work_plan" is "IfcStore.get_file().by_type('IfcWorkPlan')[0].id()" |
| 41 |
And I press "bim.enable_editing_work_plan(work_plan={work_plan})" |
| 42 |
And I set "scene.BIMWorkPlanProperties.work_plan_attributes.get('Name').string_value" to "FooPlan" |
| 43 |
When I press "bim.edit_work_plan()" |
| 44 |
Then nothing happens |
| 45 |
|
| 46 |
Scenario: Edit Work Schedule |
| 47 |
Given an empty IFC project |
| 48 |
When I press "bim.add_work_schedule" |
| 49 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 50 |
And I press "bim.enable_editing_work_schedule(work_schedule={work_schedule})" |
| 51 |
And I set "scene.BIMWorkScheduleProperties.work_schedule_attributes.get('Name').string_value" to "FooSchedule" |
| 52 |
When I press "bim.edit_work_schedule()" |
| 53 |
Then nothing happens |
| 54 |
|
| 55 |
Scenario: Disable Editing Work Plan |
| 56 |
Given an empty IFC project |
| 57 |
When I press "bim.add_work_plan" |
| 58 |
And the variable "work_plan" is "IfcStore.get_file().by_type('IfcWorkPlan')[0].id()" |
| 59 |
And I press "bim.enable_editing_work_plan_schedules(work_plan={work_plan})" |
| 60 |
When I press "bim.disable_editing_work_plan" |
| 61 |
Then nothing happens |
| 62 |
|
| 63 |
Scenario: Assign work schedule |
| 64 |
Given an empty IFC project |
| 65 |
When I press "bim.add_work_schedule" |
| 66 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 67 |
When I press "bim.add_work_plan" |
| 68 |
And the variable "work_plan" is "IfcStore.get_file().by_type('IfcWorkPlan')[0].id()" |
| 69 |
And I press "bim.enable_editing_work_plan_schedules(work_plan={work_plan})" |
| 70 |
And I press "bim.assign_work_schedule(work_plan={work_plan}, work_schedule={work_schedule})" |
| 71 |
Then nothing happens |
| 72 |
|
| 73 |
Scenario: Unassign work schedule |
| 74 |
Given an empty IFC project |
| 75 |
When I press "bim.add_work_schedule" |
| 76 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 77 |
When I press "bim.add_work_plan" |
| 78 |
And the variable "work_plan" is "IfcStore.get_file().by_type('IfcWorkPlan')[0].id()" |
| 79 |
And I press "bim.enable_editing_work_plan_schedules(work_plan={work_plan})" |
| 80 |
And I press "bim.assign_work_schedule(work_plan={work_plan}, work_schedule={work_schedule})" |
| 81 |
And I press "bim.unassign_work_schedule(work_plan={work_plan}, work_schedule={work_schedule})" |
| 82 |
Then nothing happens |
| 83 |
|
| 84 |
Scenario: Delete assigned work schedule |
| 85 |
Given an empty IFC project |
| 86 |
When I press "bim.add_work_schedule" |
| 87 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 88 |
When I press "bim.add_work_plan" |
| 89 |
And the variable "work_plan" is "IfcStore.get_file().by_type('IfcWorkPlan')[0].id()" |
| 90 |
And I press "bim.enable_editing_work_plan_schedules(work_plan={work_plan})" |
| 91 |
And I press "bim.assign_work_schedule(work_plan={work_plan}, work_schedule={work_schedule})" |
| 92 |
When I press "bim.remove_work_schedule(work_schedule={work_schedule})" |
| 93 |
Then nothing happens |
| 94 |
|
| 95 |
Scenario: Remove Assigned work schedule |
| 96 |
Given an empty IFC project |
| 97 |
When I press "bim.add_work_schedule" |
| 98 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 99 |
When I press "bim.add_work_plan" |
| 100 |
And the variable "work_plan" is "IfcStore.get_file().by_type('IfcWorkPlan')[0].id()" |
| 101 |
And I press "bim.enable_editing_work_plan_schedules(work_plan={work_plan})" |
| 102 |
When I press "bim.assign_work_schedule(work_plan={work_plan}, work_schedule={work_schedule})" |
| 103 |
Then nothing happens |
| 104 |
|
| 105 |
Scenario: Add work calendar |
| 106 |
Given an empty IFC project |
| 107 |
When I press "bim.add_work_calendar" |
| 108 |
And the variable "work_calendar" is "IfcStore.get_file().by_type('IfcWorkCalendar')[0].id()" |
| 109 |
Then nothing happens |
| 110 |
|
| 111 |
Scenario: Remove work calendar |
| 112 |
Given an empty IFC project |
| 113 |
When I press "bim.add_work_calendar" |
| 114 |
And the variable "work_calendar" is "IfcStore.get_file().by_type('IfcWorkCalendar')[0].id()" |
| 115 |
When I press "bim.remove_work_calendar(work_calendar={work_calendar})" |
| 116 |
Then nothing happens |
| 117 |
|
| 118 |
Scenario: Edit work calendar attributes |
| 119 |
Given an empty IFC project |
| 120 |
When I press "bim.add_work_calendar" |
| 121 |
And the variable "work_calendar" is "IfcStore.get_file().by_type('IfcWorkCalendar')[0].id()" |
| 122 |
When I press "bim.enable_editing_work_calendar(work_calendar={work_calendar})" |
| 123 |
And I set "scene.BIMWorkCalendarProperties.work_calendar_attributes.get('Name').string_value" to "FooCalendar" |
| 124 |
When I press "bim.edit_work_calendar()" |
| 125 |
Then nothing happens |
| 126 |
|
| 127 |
Scenario: Enable editing calendar times |
| 128 |
Given an empty IFC project |
| 129 |
When I press "bim.add_work_calendar" |
| 130 |
And the variable "work_calendar" is "IfcStore.get_file().by_type('IfcWorkCalendar')[0].id()" |
| 131 |
When I press "bim.enable_editing_work_calendar_times(work_calendar={work_calendar})" |
| 132 |
Then nothing happens |
| 133 |
|
| 134 |
Scenario: Add calendar Working Time |
| 135 |
Given an empty IFC project |
| 136 |
When I press "bim.add_work_calendar" |
| 137 |
And the variable "work_calendar" is "IfcStore.get_file().by_type('IfcWorkCalendar')[0].id()" |
| 138 |
When I press "bim.enable_editing_work_calendar_times(work_calendar={work_calendar})" |
| 139 |
When I press "bim.add_work_time(work_calendar={work_calendar}, time_type="WorkingTimes")" |
| 140 |
Then nothing happens |
| 141 |
|
| 142 |
Scenario: Add calendar Exception Time |
| 143 |
Given an empty IFC project |
| 144 |
When I press "bim.add_work_calendar" |
| 145 |
And the variable "work_calendar" is "IfcStore.get_file().by_type('IfcWorkCalendar')[0].id()" |
| 146 |
And I press "bim.enable_editing_work_calendar_times(work_calendar={work_calendar})" |
| 147 |
When I press "bim.add_work_time(work_calendar={work_calendar}, time_type="ExceptionTimes")" |
| 148 |
Then nothing happens |
| 149 |
|
| 150 |
Scenario: Enable editing Working Time Attributes |
| 151 |
Given an empty IFC project |
| 152 |
When I press "bim.add_work_calendar" |
| 153 |
And the variable "work_calendar" is "IfcStore.get_file().by_type('IfcWorkCalendar')[0].id()" |
| 154 |
When I press "bim.enable_editing_work_calendar_times(work_calendar={work_calendar})" |
| 155 |
When I press "bim.add_work_time(work_calendar={work_calendar}, time_type="WorkingTimes")" |
| 156 |
And the variable "work_time" is "IfcStore.get_file().by_type('IfcWorkTime')[0].id()" |
| 157 |
When I press "bim.enable_editing_work_time(work_time={work_time})" |
| 158 |
|
| 159 |
Scenario: Edit Working Time Start and End Period |
| 160 |
Given an empty IFC project |
| 161 |
When I press "bim.add_work_calendar" |
| 162 |
And the variable "work_calendar" is "IfcStore.get_file().by_type('IfcWorkCalendar')[0].id()" |
| 163 |
When I press "bim.enable_editing_work_calendar_times(work_calendar={work_calendar})" |
| 164 |
When I press "bim.add_work_time(work_calendar={work_calendar}, time_type='WorkingTimes')" |
| 165 |
And the variable "work_time" is "IfcStore.get_file().by_type('IfcWorkTime')[0].id()" |
| 166 |
When I press "bim.enable_editing_work_time(work_time={work_time})" |
| 167 |
And I set "scene.BIMWorkCalendarProperties.work_time_attributes.get('Start').string_value" to "2021-01-01" |
| 168 |
And I set "scene.BIMWorkCalendarProperties.work_time_attributes.get('Finish').string_value" to "2022-01-01" |
| 169 |
When I press "bim.edit_work_time()" |
| 170 |
Then nothing happens |
| 171 |
|
| 172 |
Scenario: Add Working Time Period |
| 173 |
Given an empty IFC project |
| 174 |
When I press "bim.add_work_calendar" |
| 175 |
And the variable "work_calendar" is "IfcStore.get_file().by_type('IfcWorkCalendar')[0].id()" |
| 176 |
When I press "bim.enable_editing_work_calendar_times(work_calendar={work_calendar})" |
| 177 |
When I press "bim.add_work_time(work_calendar={work_calendar}, time_type='WorkingTimes')" |
| 178 |
And the variable "work_time" is "IfcStore.get_file().by_type('IfcWorkTime')[0].id()" |
| 179 |
When I press "bim.enable_editing_work_time(work_time={work_time})" |
| 180 |
When I press "bim.assign_recurrence_pattern(work_time={work_time}, recurrence_type='DAILY')" |
| 181 |
And the variable "recurrence_pattern" is "IfcStore.get_file().by_type('IfcRecurrencePattern')[0].id()" |
| 182 |
And I set "scene.BIMWorkCalendarProperties.start_time" to "9AM" |
| 183 |
And I set "scene.BIMWorkCalendarProperties.end_time" to "1PM" |
| 184 |
When I press "bim.add_time_period(recurrence_pattern={recurrence_pattern})" |
| 185 |
When I press "bim.edit_work_time()" |
| 186 |
Then nothing happens |
| 187 |
|
| 188 |
Scenario: Edit Working Time start finish and time period |
| 189 |
Given an empty IFC project |
| 190 |
When I press "bim.add_work_calendar" |
| 191 |
And the variable "work_calendar" is "IfcStore.get_file().by_type('IfcWorkCalendar')[0].id()" |
| 192 |
When I press "bim.enable_editing_work_calendar_times(work_calendar={work_calendar})" |
| 193 |
When I press "bim.add_work_time(work_calendar={work_calendar}, time_type='WorkingTimes')" |
| 194 |
And the variable "work_time" is "IfcStore.get_file().by_type('IfcWorkTime')[0].id()" |
| 195 |
When I press "bim.enable_editing_work_time(work_time={work_time})" |
| 196 |
And I set "scene.BIMWorkCalendarProperties.work_time_attributes.get('Start').string_value" to "2021-01-01" |
| 197 |
And I set "scene.BIMWorkCalendarProperties.work_time_attributes.get('Finish').string_value" to "2022-01-01" |
| 198 |
When I press "bim.assign_recurrence_pattern(work_time={work_time}, recurrence_type='DAILY')" |
| 199 |
And the variable "recurrence_pattern" is "IfcStore.get_file().by_type('IfcRecurrencePattern')[0].id()" |
| 200 |
And I set "scene.BIMWorkCalendarProperties.start_time" to "9AM" |
| 201 |
And I set "scene.BIMWorkCalendarProperties.end_time" to "1PM" |
| 202 |
When I press "bim.add_time_period(recurrence_pattern={recurrence_pattern})" |
| 203 |
When I press "bim.edit_work_time()" |
| 204 |
Then nothing happens |
| 205 |
|
| 206 |
|
| 207 |
Scenario: Unassign Calendar to task |
| 208 |
Given an empty IFC project |
| 209 |
When I press "bim.add_work_calendar" |
| 210 |
And the variable "work_calendar" is "IfcStore.get_file().by_type('IfcWorkCalendar')[0].id()" |
| 211 |
When I press "bim.add_work_schedule" |
| 212 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 213 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 214 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 215 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 216 |
And I press "bim.enable_editing_task_calendar(task={task})" |
| 217 |
And I press "bim.edit_task_calendar(work_calendar={work_calendar}, task={task})" |
| 218 |
When I press "bim.remove_task_calendar(work_calendar={work_calendar}, task={task})" |
| 219 |
Then nothing happens |
| 220 |
|
| 221 |
Scenario: Enable editing task |
| 222 |
Given an empty IFC project |
| 223 |
And I press "bim.add_work_schedule" |
| 224 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 225 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 226 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 227 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 228 |
When I press "bim.enable_editing_task_attributes(task={task})" |
| 229 |
Then nothing happens |
| 230 |
|
| 231 |
Scenario: Copy task attribute |
| 232 |
Given an empty IFC project |
| 233 |
And I press "bim.add_work_schedule" |
| 234 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 235 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 236 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 237 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 238 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 239 |
And I press "bim.enable_editing_task_attributes(task={task})" |
| 240 |
And I set "scene.BIMWorkScheduleProperties.task_attributes[2].string_value" to "Foo" |
| 241 |
When I set "scene.BIMTaskTreeProperties.tasks[1].is_selected" to "True" |
| 242 |
And I press "bim.copy_task_attribute(name='Description')" |
| 243 |
Then nothing happens |
| 244 |
|
| 245 |
Scenario: Unassign task Successor |
| 246 |
Given an empty IFC project |
| 247 |
When I press "bim.add_work_schedule" |
| 248 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 249 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 250 |
When I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 251 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 252 |
When I press "bim.add_task(task={task})" |
| 253 |
And the variable "nested_task_one" is "IfcStore.get_file().by_type('IfcTask')[1].id()" |
| 254 |
When I press "bim.add_task(task={task})" |
| 255 |
And the variable "nested_task_two" is "IfcStore.get_file().by_type('IfcTask')[2].id()" |
| 256 |
And I press "bim.enable_editing_task_attributes(task={nested_task_one})" |
| 257 |
And I press "bim.assign_successor(task={nested_task_two})" |
| 258 |
When I press "bim.unassign_successor(task={nested_task_two})" |
| 259 |
Then nothing happens |
| 260 |
|
| 261 |
Scenario: Edit time Lag |
| 262 |
Given an empty IFC project |
| 263 |
When I press "bim.add_work_schedule" |
| 264 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 265 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 266 |
When I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 267 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 268 |
When I press "bim.add_task(task={task})" |
| 269 |
And the variable "nested_task_one" is "IfcStore.get_file().by_type('IfcTask')[1].id()" |
| 270 |
When I press "bim.add_task(task={task})" |
| 271 |
And the variable "nested_task_two" is "IfcStore.get_file().by_type('IfcTask')[2].id()" |
| 272 |
And I press "bim.enable_editing_task_attributes(task={nested_task_one})" |
| 273 |
When I press "bim.assign_successor(task={nested_task_two})" |
| 274 |
And the variable "rel_sequence" is "IfcStore.get_file().by_type('IfcRelSequence')[0].id()" |
| 275 |
When I press "bim.assign_lag_time(sequence={rel_sequence})" |
| 276 |
And the variable "lag_time" is "IfcStore.get_file().by_type('IfcLagTime')[0].id()" |
| 277 |
And I press "bim.enable_editing_sequence_lag_time(sequence={rel_sequence}, lag_time={lag_time})" |
| 278 |
And I set "scene.BIMWorkScheduleProperties.lag_time_attributes.get('LagValue').string_value" to "P5D" |
| 279 |
When I press "bim.edit_sequence_lag_time(lag_time={lag_time})" |
| 280 |
Then nothing happens |
| 281 |
|
| 282 |
Scenario: Unassign time Lag |
| 283 |
Given an empty IFC project |
| 284 |
When I press "bim.add_work_schedule" |
| 285 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 286 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 287 |
When I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 288 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 289 |
When I press "bim.add_task(task={task})" |
| 290 |
And the variable "nested_task_one" is "IfcStore.get_file().by_type('IfcTask')[1].id()" |
| 291 |
When I press "bim.add_task(task={task})" |
| 292 |
And the variable "nested_task_two" is "IfcStore.get_file().by_type('IfcTask')[2].id()" |
| 293 |
And I press "bim.enable_editing_task_attributes(task={nested_task_one})" |
| 294 |
When I press "bim.assign_successor(task={nested_task_two})" |
| 295 |
And the variable "rel_sequence" is "IfcStore.get_file().by_type('IfcRelSequence')[0].id()" |
| 296 |
When I press "bim.assign_lag_time(sequence={rel_sequence})" |
| 297 |
And the variable "lag_time" is "IfcStore.get_file().by_type('IfcLagTime')[0].id()" |
| 298 |
When I press "bim.unassign_lag_time(sequence={rel_sequence})" |
| 299 |
Then nothing happens |
| 300 |
|
| 301 |
Scenario: Edit Sequence Relationship |
| 302 |
Given an empty IFC project |
| 303 |
When I press "bim.add_work_schedule" |
| 304 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 305 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 306 |
When I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 307 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 308 |
When I press "bim.add_task(task={task})" |
| 309 |
And the variable "nested_task_one" is "IfcStore.get_file().by_type('IfcTask')[1].id()" |
| 310 |
When I press "bim.add_task(task={task})" |
| 311 |
And the variable "nested_task_two" is "IfcStore.get_file().by_type('IfcTask')[2].id()" |
| 312 |
And I press "bim.enable_editing_task_attributes(task={nested_task_one})" |
| 313 |
When I press "bim.assign_successor(task={nested_task_two})" |
| 314 |
And the variable "rel_sequence" is "IfcStore.get_file().by_type('IfcRelSequence')[0].id()" |
| 315 |
And I press "bim.enable_editing_sequence_attributes(sequence={rel_sequence})" |
| 316 |
And I set "scene.BIMWorkScheduleProperties.sequence_attributes.get('SequenceType').enum_value" to "START_START" |
| 317 |
When I press "bim.edit_sequence_attributes()" |
| 318 |
Then nothing happens |
| 319 |
|
| 320 |
Scenario: See the current frame date as text |
| 321 |
Given an empty IFC project |
| 322 |
And I press "bim.add_work_schedule" |
| 323 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 324 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 325 |
And I set "scene.BIMWorkScheduleProperties.visualisation_start" to "01/01/21" |
| 326 |
And I set "scene.BIMWorkScheduleProperties.visualisation_finish" to "01/02/21" |
| 327 |
And I set "scene.BIMWorkScheduleProperties.speed_types" to "FRAME_SPEED" |
| 328 |
And I set "scene.BIMWorkScheduleProperties.speed_animation_frames" to "7" |
| 329 |
And I set "scene.BIMWorkScheduleProperties.speed_real_duration" to "1 w" |
| 330 |
And I press "bim.visualise_work_schedule_date_range(work_schedule={work_schedule})" |
| 331 |
When I am on frame "1" |
| 332 |
Then the object "Timeline" has a body of "2021-01-01" |
| 333 |
When I am on frame "2" |
| 334 |
Then the object "Timeline" has a body of "2021-01-02" |
| 335 |
|
| 336 |
Scenario: Animate the construction of a wall |
| 337 |
Given an empty IFC project |
| 338 |
And I press "bim.add_work_schedule" |
| 339 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 340 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 341 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 342 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 343 |
And I press "bim.enable_editing_task_attributes(task={task})" |
| 344 |
And I set "scene.BIMWorkScheduleProperties.task_attributes.get('PredefinedType').enum_value" to "CONSTRUCTION" |
| 345 |
And I press "bim.edit_task" |
| 346 |
And I press "bim.enable_editing_task_time(task={task})" |
| 347 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleStart').string_value" to "2021-01-02" |
| 348 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleFinish').string_value" to "2021-01-06" |
| 349 |
And I press "bim.edit_task_time" |
| 350 |
And I add a cube |
| 351 |
And the object "Cube" is selected |
| 352 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 353 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 354 |
And I press "bim.assign_class" |
| 355 |
And the object "IfcWall/Cube" is selected |
| 356 |
And I press "bim.assign_product(task={task})" |
| 357 |
And I set "scene.BIMWorkScheduleProperties.visualisation_start" to "01/01/21" |
| 358 |
And I set "scene.BIMWorkScheduleProperties.visualisation_finish" to "01/02/21" |
| 359 |
And I set "scene.BIMWorkScheduleProperties.speed_types" to "FRAME_SPEED" |
| 360 |
And I set "scene.BIMWorkScheduleProperties.speed_animation_frames" to "7" |
| 361 |
And I set "scene.BIMWorkScheduleProperties.speed_real_duration" to "1 w" |
| 362 |
And I press "bim.visualise_work_schedule_date_range(work_schedule={work_schedule})" |
| 363 |
When I am on frame "1" |
| 364 |
Then "scene.objects.get('IfcWall/Cube').hide_viewport" is "True" |
| 365 |
And "scene.objects.get('IfcWall/Cube').hide_render" is "True" |
| 366 |
When I am on frame "2" |
| 367 |
Then "scene.objects.get('IfcWall/Cube').hide_viewport" is "False" |
| 368 |
And "scene.objects.get('IfcWall/Cube').hide_render" is "False" |
| 369 |
And "scene.objects.get('IfcWall/Cube').color[:]" is "[0.0, 1.0, 0.0, 1]" |
| 370 |
When I am on frame "7" |
| 371 |
Then "scene.objects.get('IfcWall/Cube').color[:]" is "[1.0, 1.0, 1.0, 1]" |
| 372 |
|
| 373 |
Scenario: Animate the demolition of a wall |
| 374 |
Given an empty IFC project |
| 375 |
And I press "bim.add_work_schedule" |
| 376 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 377 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 378 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 379 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 380 |
And I press "bim.enable_editing_task_attributes(task={task})" |
| 381 |
And I set "scene.BIMWorkScheduleProperties.task_attributes.get('PredefinedType').enum_value" to "DEMOLITION" |
| 382 |
And I press "bim.edit_task" |
| 383 |
And I press "bim.enable_editing_task_time(task={task})" |
| 384 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleStart').string_value" to "2021-01-02" |
| 385 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleFinish').string_value" to "2021-01-06" |
| 386 |
And I press "bim.edit_task_time" |
| 387 |
And I add a cube |
| 388 |
And the object "Cube" is selected |
| 389 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 390 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 391 |
And I press "bim.assign_class" |
| 392 |
And the object "IfcWall/Cube" is selected |
| 393 |
And I press "bim.assign_process(task={task}, related_object=0, related_object_type='PRODUCT')" |
| 394 |
And I set "scene.BIMWorkScheduleProperties.visualisation_start" to "01/01/21" |
| 395 |
And I set "scene.BIMWorkScheduleProperties.visualisation_finish" to "01/02/21" |
| 396 |
And I set "scene.BIMWorkScheduleProperties.speed_types" to "FRAME_SPEED" |
| 397 |
And I set "scene.BIMWorkScheduleProperties.speed_animation_frames" to "7" |
| 398 |
And I set "scene.BIMWorkScheduleProperties.speed_real_duration" to "1 w" |
| 399 |
And I press "bim.visualise_work_schedule_date_range(work_schedule={work_schedule})" |
| 400 |
When I am on frame "1" |
| 401 |
Then "scene.objects.get('IfcWall/Cube').hide_viewport" is "False" |
| 402 |
And "scene.objects.get('IfcWall/Cube').hide_render" is "False" |
| 403 |
And "scene.objects.get('IfcWall/Cube').color[:]" is "[1.0, 1.0, 1.0, 1]" |
| 404 |
When I am on frame "2" |
| 405 |
Then "scene.objects.get('IfcWall/Cube').hide_viewport" is "False" |
| 406 |
And "scene.objects.get('IfcWall/Cube').hide_render" is "False" |
| 407 |
And "scene.objects.get('IfcWall/Cube').color[:]" is "[1.0, 0.0, 0.0, 1]" |
| 408 |
When I am on frame "7" |
| 409 |
Then "scene.objects.get('IfcWall/Cube').hide_viewport" is "True" |
| 410 |
And "scene.objects.get('IfcWall/Cube').hide_render" is "True" |
| 411 |
And "scene.objects.get('IfcWall/Cube').color[:]" is "[0.0, 0.0, 0.0, 1]" |
| 412 |
|
| 413 |
Scenario: Animate the operation of a wall |
| 414 |
Given an empty IFC project |
| 415 |
And I press "bim.add_work_schedule" |
| 416 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 417 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 418 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 419 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 420 |
And I press "bim.enable_editing_task_attributes(task={task})" |
| 421 |
And I set "scene.BIMWorkScheduleProperties.task_attributes.get('PredefinedType').enum_value" to "OPERATION" |
| 422 |
And I press "bim.edit_task" |
| 423 |
And I press "bim.enable_editing_task_time(task={task})" |
| 424 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleStart').string_value" to "2021-01-02" |
| 425 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleFinish').string_value" to "2021-01-06" |
| 426 |
And I press "bim.edit_task_time" |
| 427 |
And I add a cube |
| 428 |
And the object "Cube" is selected |
| 429 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 430 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 431 |
And I press "bim.assign_class" |
| 432 |
And the object "IfcWall/Cube" is selected |
| 433 |
And I press "bim.assign_product(task={task}, relating_product=0)" |
| 434 |
And I set "scene.BIMWorkScheduleProperties.visualisation_start" to "01/01/21" |
| 435 |
And I set "scene.BIMWorkScheduleProperties.visualisation_finish" to "01/02/21" |
| 436 |
And I set "scene.BIMWorkScheduleProperties.speed_types" to "FRAME_SPEED" |
| 437 |
And I set "scene.BIMWorkScheduleProperties.speed_animation_frames" to "7" |
| 438 |
And I set "scene.BIMWorkScheduleProperties.speed_real_duration" to "1 w" |
| 439 |
And I press "bim.visualise_work_schedule_date_range(work_schedule={work_schedule})" |
| 440 |
When I am on frame "1" |
| 441 |
Then "scene.objects.get('IfcWall/Cube').color[:]" is "[1.0, 1.0, 1.0, 1]" |
| 442 |
When I am on frame "2" |
| 443 |
Then "scene.objects.get('IfcWall/Cube').color[:]" is "[0.0, 0.0, 1.0, 1]" |
| 444 |
When I am on frame "7" |
| 445 |
Then "scene.objects.get('IfcWall/Cube').color[:]" is "[1.0, 1.0, 1.0, 1]" |
| 446 |
|
| 447 |
Scenario: Animate the movement of a wall |
| 448 |
Given an empty IFC project |
| 449 |
And I press "bim.add_work_schedule" |
| 450 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 451 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 452 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 453 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 454 |
And I press "bim.enable_editing_task_attributes(task={task})" |
| 455 |
And I set "scene.BIMWorkScheduleProperties.task_attributes.get('PredefinedType').enum_value" to "MOVE" |
| 456 |
And I press "bim.edit_task" |
| 457 |
And I press "bim.enable_editing_task_time(task={task})" |
| 458 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleStart').string_value" to "2021-01-02" |
| 459 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleFinish').string_value" to "2021-01-06" |
| 460 |
And I press "bim.edit_task_time" |
| 461 |
And I add a cube |
| 462 |
And I rename the object "Cube" to "ToObject" |
| 463 |
And the object "ToObject" is selected |
| 464 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 465 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 466 |
And I press "bim.assign_class" |
| 467 |
And the object "IfcWall/ToObject" is selected |
| 468 |
And I press "bim.assign_product(task={task}, relating_product=0)" |
| 469 |
When I add a cube |
| 470 |
And I rename the object "Cube" to "FromObject" |
| 471 |
And the object "FromObject" is selected |
| 472 |
And I press "bim.assign_class" |
| 473 |
And the object "IfcWall/FromObject" is selected |
| 474 |
And I press "bim.assign_process(task={task}, related_object_type='PRODUCT', related_object=0)" |
| 475 |
And I set "scene.BIMWorkScheduleProperties.visualisation_start" to "01/01/21" |
| 476 |
And I set "scene.BIMWorkScheduleProperties.visualisation_finish" to "01/02/21" |
| 477 |
And I set "scene.BIMWorkScheduleProperties.speed_types" to "FRAME_SPEED" |
| 478 |
And I set "scene.BIMWorkScheduleProperties.speed_animation_frames" to "7" |
| 479 |
And I set "scene.BIMWorkScheduleProperties.speed_real_duration" to "1 w" |
| 480 |
And I press "bim.visualise_work_schedule_date_range(work_schedule={work_schedule})" |
| 481 |
When I am on frame "1" |
| 482 |
Then "scene.objects.get('IfcWall/FromObject').color[:]" is "[1.0, 1.0, 1.0, 1]" |
| 483 |
And "scene.objects.get('IfcWall/FromObject').hide_viewport" is "False" |
| 484 |
And "scene.objects.get('IfcWall/FromObject').hide_render" is "False" |
| 485 |
And "scene.objects.get('IfcWall/ToObject').hide_viewport" is "True" |
| 486 |
And "scene.objects.get('IfcWall/ToObject').hide_render" is "True" |
| 487 |
When I am on frame "2" |
| 488 |
Then "scene.objects.get('IfcWall/FromObject').color[:]" is "[1.0, 0.5, 0.0, 1]" |
| 489 |
And "scene.objects.get('IfcWall/FromObject').hide_viewport" is "False" |
| 490 |
And "scene.objects.get('IfcWall/FromObject').hide_render" is "False" |
| 491 |
And "scene.objects.get('IfcWall/ToObject').color[:]" is "[1.0, 1.0, 0.0, 1]" |
| 492 |
And "scene.objects.get('IfcWall/ToObject').hide_viewport" is "False" |
| 493 |
And "scene.objects.get('IfcWall/ToObject').hide_render" is "False" |
| 494 |
When I am on frame "7" |
| 495 |
Then "scene.objects.get('IfcWall/FromObject').color[:]" is "[0.0, 0.0, 0.0, 1]" |
| 496 |
Then "scene.objects.get('IfcWall/FromObject').hide_viewport" is "True" |
| 497 |
Then "scene.objects.get('IfcWall/FromObject').hide_render" is "True" |
| 498 |
And "scene.objects.get('IfcWall/ToObject').color[:]" is "[1.0, 1.0, 1.0, 1]" |
| 499 |
And "scene.objects.get('IfcWall/ToObject').hide_viewport" is "False" |
| 500 |
And "scene.objects.get('IfcWall/ToObject').hide_render" is "False" |
| 501 |
|
| 502 |
Scenario: Animate the consumption of a wall |
| 503 |
Given an empty IFC project |
| 504 |
And I press "bim.add_work_schedule" |
| 505 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 506 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 507 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 508 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 509 |
And I press "bim.enable_editing_task_time(task={task})" |
| 510 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleStart').string_value" to "2021-01-02" |
| 511 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleFinish').string_value" to "2021-01-06" |
| 512 |
And I press "bim.edit_task_time" |
| 513 |
And I add a cube |
| 514 |
And the object "Cube" is selected |
| 515 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 516 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 517 |
And I press "bim.assign_class" |
| 518 |
And the object "IfcWall/Cube" is selected |
| 519 |
And I press "bim.assign_process(task={task}, related_object_type='PRODUCT', related_object=0)" |
| 520 |
And I set "scene.BIMWorkScheduleProperties.visualisation_start" to "01/01/21" |
| 521 |
And I set "scene.BIMWorkScheduleProperties.visualisation_finish" to "01/02/21" |
| 522 |
And I set "scene.BIMWorkScheduleProperties.speed_types" to "FRAME_SPEED" |
| 523 |
And I set "scene.BIMWorkScheduleProperties.speed_animation_frames" to "7" |
| 524 |
And I set "scene.BIMWorkScheduleProperties.speed_real_duration" to "1 w" |
| 525 |
And I press "bim.visualise_work_schedule_date_range(work_schedule={work_schedule})" |
| 526 |
When I am on frame "1" |
| 527 |
Then "scene.objects.get('IfcWall/Cube').color[:]" is "[1.0, 1.0, 1.0, 1]" |
| 528 |
And "scene.objects.get('IfcWall/Cube').hide_viewport" is "False" |
| 529 |
And "scene.objects.get('IfcWall/Cube').hide_render" is "False" |
| 530 |
When I am on frame "2" |
| 531 |
Then "scene.objects.get('IfcWall/Cube').color[:]" is "[0.2, 0.2, 0.2, 1]" |
| 532 |
And "scene.objects.get('IfcWall/Cube').hide_viewport" is "False" |
| 533 |
And "scene.objects.get('IfcWall/Cube').hide_render" is "False" |
| 534 |
When I am on frame "7" |
| 535 |
Then "scene.objects.get('IfcWall/Cube').color[:]" is "[0.0, 0.0, 0.0, 1]" |
| 536 |
Then "scene.objects.get('IfcWall/Cube').hide_viewport" is "True" |
| 537 |
Then "scene.objects.get('IfcWall/Cube').hide_render" is "True" |
| 538 |
|
| 539 |
|
| 540 |
|
| 541 |
Scenario: Clear Previous Animation |
| 542 |
Given an empty IFC project |
| 543 |
And I press "bim.add_work_schedule" |
| 544 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 545 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 546 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 547 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 548 |
And I press "bim.enable_editing_task_attributes(task={task})" |
| 549 |
And I set "scene.BIMWorkScheduleProperties.task_attributes.get('PredefinedType').enum_value" to "CONSTRUCTION" |
| 550 |
And I press "bim.edit_task" |
| 551 |
And I press "bim.enable_editing_task_time(task={task})" |
| 552 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleStart').string_value" to "2021-01-02" |
| 553 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleFinish').string_value" to "2021-01-06" |
| 554 |
And I press "bim.edit_task_time" |
| 555 |
And I add a cube |
| 556 |
And the object "Cube" is selected |
| 557 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 558 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 559 |
And I press "bim.assign_class" |
| 560 |
And the object "IfcWall/Cube" is selected |
| 561 |
And I press "bim.assign_product(task={task})" |
| 562 |
And I set "scene.BIMWorkScheduleProperties.visualisation_start" to "01/01/21" |
| 563 |
And I set "scene.BIMWorkScheduleProperties.visualisation_finish" to "01/02/21" |
| 564 |
And I set "scene.BIMWorkScheduleProperties.speed_types" to "FRAME_SPEED" |
| 565 |
And I set "scene.BIMWorkScheduleProperties.speed_animation_frames" to "7" |
| 566 |
And I set "scene.BIMWorkScheduleProperties.speed_real_duration" to "1 w" |
| 567 |
And I press "bim.visualise_work_schedule_date_range(work_schedule={work_schedule})" |
| 568 |
And I press "bim.clear_previous_animation" |
| 569 |
When I am on frame "3" |
| 570 |
Then "scene.objects.get('IfcWall/Cube').hide_viewport" is "False" |
| 571 |
And "scene.objects.get('IfcWall/Cube').hide_render" is "False" |
| 572 |
And "scene.objects.get('IfcWall/Cube').color[:]" is "[1.0, 1.0, 1.0, 1]" |
| 573 |
|
| 574 |
Scenario: Generate Gantt Chart |
| 575 |
Given an empty IFC project |
| 576 |
And I press "bim.add_work_schedule" |
| 577 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 578 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 579 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 580 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 581 |
And I press "bim.enable_editing_task_attributes(task={task})" |
| 582 |
And I set "scene.BIMWorkScheduleProperties.task_attributes.get('PredefinedType').enum_value" to "CONSTRUCTION" |
| 583 |
And I press "bim.edit_task" |
| 584 |
And I press "bim.enable_editing_task_time(task={task})" |
| 585 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleStart').string_value" to "2021-01-02" |
| 586 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleFinish').string_value" to "2021-01-06" |
| 587 |
And I press "bim.edit_task_time" |
| 588 |
And I press "bim.generate_gantt_chart(work_schedule={work_schedule})" |
| 589 |
Then nothing happens |
| 590 |
|
| 591 |
Scenario: Edit task with calendar |
| 592 |
Given an empty IFC project |
| 593 |
When I press "bim.add_work_calendar" |
| 594 |
And the variable "work_calendar" is "IfcStore.get_file().by_type('IfcWorkCalendar')[0].id()" |
| 595 |
When I press "bim.add_work_schedule" |
| 596 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 597 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 598 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 599 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 600 |
When I press "bim.add_task(task={task})" |
| 601 |
And the variable "nested_task_one" is "IfcStore.get_file().by_type('IfcTask')[1].id()" |
| 602 |
When I press "bim.add_task(task={task})" |
| 603 |
And the variable "nested_task_two" is "IfcStore.get_file().by_type('IfcTask')[2].id()" |
| 604 |
When I press "bim.add_task(task={task})" |
| 605 |
And the variable "nested_task_three" is "IfcStore.get_file().by_type('IfcTask')[3].id()" |
| 606 |
When I press "bim.enable_editing_work_calendar_times(work_calendar={work_calendar})" |
| 607 |
When I press "bim.add_work_time(work_calendar={work_calendar}, time_type="WorkingTimes")" |
| 608 |
When I press "bim.add_work_time(work_calendar={work_calendar}, time_type="ExceptionTimes")" |
| 609 |
And I press "bim.disable_editing_work_calendar" |
| 610 |
And I set "scene.BIMWorkScheduleProperties.active_task_index" to "1" |
| 611 |
And I press "bim.enable_editing_task_sequence()" |
| 612 |
And I press "bim.assign_successor(task={nested_task_two})" |
| 613 |
And I set "scene.BIMWorkScheduleProperties.active_task_index" to "3" |
| 614 |
And I press "bim.assign_predecessor(task={nested_task_two})" |
| 615 |
And I press "bim.disable_editing_task" |
| 616 |
And I press "bim.enable_editing_task_time(task={nested_task_three})" |
| 617 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleStart').string_value" to "2021-01-02" |
| 618 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleFinish').string_value" to "2021-01-06" |
| 619 |
And I press "bim.edit_task_time" |
| 620 |
And I press "bim.enable_editing_task_calendar(task={task})" |
| 621 |
And I press "bim.edit_task_calendar(work_calendar={work_calendar}, task={task})" |
| 622 |
And I set "scene.BIMWorkScheduleProperties.active_task_index" to "1" |
| 623 |
And I press "bim.enable_editing_task_sequence()" |
| 624 |
And I press "bim.disable_editing_task()" |
| 625 |
Then nothing happens |
| 626 |
|
| 627 |
|
| 628 |
Scenario: Assign task calendar with Working Time |
| 629 |
Given an empty IFC project |
| 630 |
When I press "bim.add_work_calendar" |
| 631 |
And the variable "work_calendar" is "IfcStore.get_file().by_type('IfcWorkCalendar')[0].id()" |
| 632 |
When I press "bim.add_work_schedule" |
| 633 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 634 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 635 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 636 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 637 |
When I press "bim.add_task(task={task})" |
| 638 |
And the variable "nested_task_one" is "IfcStore.get_file().by_type('IfcTask')[1].id()" |
| 639 |
When I press "bim.add_task(task={task})" |
| 640 |
And the variable "nested_task_two" is "IfcStore.get_file().by_type('IfcTask')[2].id()" |
| 641 |
When I press "bim.add_task(task={task})" |
| 642 |
And the variable "nested_task_three" is "IfcStore.get_file().by_type('IfcTask')[3].id()" |
| 643 |
When I press "bim.enable_editing_work_calendar_times(work_calendar={work_calendar})" |
| 644 |
When I press "bim.add_work_time(work_calendar={work_calendar}, time_type="WorkingTimes")" |
| 645 |
When I press "bim.add_work_time(work_calendar={work_calendar}, time_type="ExceptionTimes")" |
| 646 |
And I press "bim.disable_editing_work_calendar" |
| 647 |
And I press "bim.enable_editing_task_sequence()" |
| 648 |
And I set "scene.BIMWorkScheduleProperties.active_task_index" to "1" |
| 649 |
And I press "bim.assign_successor(task={nested_task_two})" |
| 650 |
And I set "scene.BIMWorkScheduleProperties.active_task_index" to "3" |
| 651 |
And I press "bim.assign_predecessor(task={nested_task_two})" |
| 652 |
And I press "bim.disable_editing_task" |
| 653 |
And I press "bim.enable_editing_task_calendar(task={task})" |
| 654 |
And I press "bim.edit_task_calendar(work_calendar={work_calendar}, task={nested_task_three})" |
| 655 |
And I press "bim.disable_editing_task()" |
| 656 |
And I press "bim.enable_editing_task_time(task={nested_task_three})" |
| 657 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleStart').string_value" to "2021-01-02" |
| 658 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleFinish').string_value" to "2021-01-06" |
| 659 |
# And I press "bim.edit_task_time" |
| 660 |
Then nothing happens |
| 661 |
|
| 662 |
Scenario: Assign task calendar with no working time |
| 663 |
Given an empty IFC project |
| 664 |
When I press "bim.add_work_calendar" |
| 665 |
And the variable "work_calendar" is "IfcStore.get_file().by_type('IfcWorkCalendar')[0].id()" |
| 666 |
When I press "bim.add_work_schedule" |
| 667 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 668 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 669 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 670 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 671 |
When I press "bim.add_task(task={task})" |
| 672 |
And the variable "nested_task_one" is "IfcStore.get_file().by_type('IfcTask')[1].id()" |
| 673 |
When I press "bim.add_task(task={task})" |
| 674 |
And the variable "nested_task_two" is "IfcStore.get_file().by_type('IfcTask')[2].id()" |
| 675 |
When I press "bim.add_task(task={task})" |
| 676 |
And the variable "nested_task_three" is "IfcStore.get_file().by_type('IfcTask')[3].id()" |
| 677 |
And I press "bim.enable_editing_task_sequence()" |
| 678 |
And I set "scene.BIMWorkScheduleProperties.active_task_index" to "1" |
| 679 |
And I press "bim.assign_successor(task={nested_task_two})" |
| 680 |
And I set "scene.BIMWorkScheduleProperties.active_task_index" to "3" |
| 681 |
And I press "bim.assign_predecessor(task={nested_task_two})" |
| 682 |
And I press "bim.disable_editing_task" |
| 683 |
And I press "bim.enable_editing_task_calendar(task={task})" |
| 684 |
And I press "bim.edit_task_calendar(work_calendar={work_calendar}, task={nested_task_three})" |
| 685 |
And I press "bim.disable_editing_task()" |
| 686 |
When I press "bim.enable_editing_work_calendar_times(work_calendar={work_calendar})" |
| 687 |
When I press "bim.add_work_time(work_calendar={work_calendar}, time_type="WorkingTimes")" |
| 688 |
And the variable "work_time" is "IfcStore.get_file().by_type('IfcWorkTime')[0].id()" |
| 689 |
When I press "bim.enable_editing_work_time(work_time={work_time})" |
| 690 |
And I set "scene.BIMWorkCalendarProperties.work_time_attributes.get('Start').string_value" to "01-08-2021" |
| 691 |
And I set "scene.BIMWorkCalendarProperties.work_time_attributes.get('Finish').string_value" to "01-08-2022" |
| 692 |
When I press "bim.assign_recurrence_pattern(work_time={work_time}, recurrence_type='DAILY')" |
| 693 |
And the variable "recurrence_pattern" is "IfcStore.get_file().by_type('IfcRecurrencePattern')[0].id()" |
| 694 |
And I set "scene.BIMWorkCalendarProperties.start_time" to "9AM" |
| 695 |
And I set "scene.BIMWorkCalendarProperties.end_time" to "1PM" |
| 696 |
When I press "bim.add_time_period(recurrence_pattern={recurrence_pattern})" |
| 697 |
And I press "bim.edit_work_time" |
| 698 |
# When I press "bim.add_work_time(work_calendar={work_calendar}, time_type="ExceptionTimes")" |
| 699 |
And I press "bim.disable_editing_work_calendar" |
| 700 |
And I press "bim.enable_editing_task_time(task={nested_task_three})" |
| 701 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleStart').string_value" to "2021-01-02" |
| 702 |
And I set "scene.BIMWorkScheduleProperties.task_time_attributes.get('ScheduleFinish').string_value" to "2021-01-06" |
| 703 |
And I press "bim.edit_task_time" |
| 704 |
Then nothing happens |
| 705 |
|
| 706 |
Scenario: Contract Task |
| 707 |
Given an empty IFC project |
| 708 |
When I press "bim.add_work_schedule" |
| 709 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 710 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 711 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 712 |
And the variable "summary_task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 713 |
When I press "bim.add_task(task={summary_task})" |
| 714 |
And I press "bim.contract_task(task={summary_task})" |
| 715 |
Then nothing happens |
| 716 |
|
| 717 |
Scenario: Expand Task |
| 718 |
Given an empty IFC project |
| 719 |
When I press "bim.add_work_schedule" |
| 720 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 721 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 722 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 723 |
And the variable "summary_task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 724 |
When I press "bim.add_task(task={summary_task})" |
| 725 |
And I press "bim.contract_task(task={summary_task})" |
| 726 |
And I press "bim.expand_task(task={summary_task})" |
| 727 |
Then nothing happens |
| 728 |
|
| 729 |
Scenario: Contract All Tasks |
| 730 |
Given an empty IFC project |
| 731 |
When I press "bim.add_work_schedule" |
| 732 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 733 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 734 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 735 |
And the variable "summary_task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 736 |
When I press "bim.add_task(task={summary_task})" |
| 737 |
And the variable "nested_task_one" is "IfcStore.get_file().by_type('IfcTask')[-1].id()" |
| 738 |
When I press "bim.add_task(task={summary_task})" |
| 739 |
And the variable "nested_task_two" is "IfcStore.get_file().by_type('IfcTask')[-1].id()" |
| 740 |
When I press "bim.contract_all_tasks()" |
| 741 |
Then nothing happens |
| 742 |
|
| 743 |
Scenario: Expand All Tasks |
| 744 |
Given an empty IFC project |
| 745 |
When I press "bim.add_work_schedule" |
| 746 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 747 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 748 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 749 |
And the variable "summary_task" is "IfcStore.get_file().by_type('IfcTask')[-1].id()" |
| 750 |
When I press "bim.add_task(task={summary_task})" |
| 751 |
And the variable "nested_task_one" is "IfcStore.get_file().by_type('IfcTask')[-1].id()" |
| 752 |
When I press "bim.add_task(task={summary_task})" |
| 753 |
And the variable "nested_task_two" is "IfcStore.get_file().by_type('IfcTask')[-1].id()" |
| 754 |
And I press "bim.contract_all_tasks()" |
| 755 |
When I press "bim.expand_all_tasks()" |
| 756 |
Then nothing happens |
| 757 |
|
| 758 |
Scenario: Assign Product Output |
| 759 |
Given an empty IFC project |
| 760 |
And I press "bim.add_work_schedule" |
| 761 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 762 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 763 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 764 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 765 |
And I add a cube |
| 766 |
And the object "Cube" is selected |
| 767 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 768 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 769 |
And I press "bim.assign_class(ifc_class='IfcWall', predefined_type='SOLIDWALL')" |
| 770 |
And the object "IfcWall/Cube" is selected |
| 771 |
And I press "bim.assign_product(task={task})" |
| 772 |
Then nothing happens |
| 773 |
|
| 774 |
Scenario: Assign Product Input |
| 775 |
Given an empty IFC project |
| 776 |
And I press "bim.add_work_schedule" |
| 777 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 778 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 779 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 780 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 781 |
And I add a cube |
| 782 |
And the object "Cube" is selected |
| 783 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 784 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 785 |
And I press "bim.assign_class(ifc_class='IfcWall', predefined_type='SOLIDWALL')" |
| 786 |
And the object "IfcWall/Cube" is selected |
| 787 |
And I press "bim.assign_process(task={task},related_object=0, related_object_type='PRODUCT')" |
| 788 |
Then nothing happens |
| 789 |
|
| 790 |
Scenario: Select Assigned Outputs |
| 791 |
Given an empty IFC project |
| 792 |
And I press "bim.add_work_schedule" |
| 793 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 794 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 795 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 796 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 797 |
And I add a cube |
| 798 |
And the object "Cube" is selected |
| 799 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 800 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 801 |
And I press "bim.assign_class()" |
| 802 |
And I press "bim.assign_product(task={task})" |
| 803 |
When I press "bim.select_task_related_products(task={task})" |
| 804 |
Then nothing happens |
| 805 |
|
| 806 |
Scenario: Select Assigned Inputs |
| 807 |
Given an empty IFC project |
| 808 |
And I press "bim.add_work_schedule" |
| 809 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 810 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 811 |
And I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 812 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 813 |
And I add a cube |
| 814 |
And the object "Cube" is selected |
| 815 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 816 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 817 |
And I press "bim.assign_class()" |
| 818 |
And the object "IfcWall/Cube" is selected |
| 819 |
And I press "bim.assign_process(task={task}, related_object_type='PRODUCT')" |
| 820 |
When I press "bim.select_task_related_products(task={task})" |
| 821 |
Then nothing happens |
| 822 |
|
| 823 |
Scenario: Duplicate Task |
| 824 |
Given an empty IFC project |
| 825 |
And I press "bim.add_work_schedule" |
| 826 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 827 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 828 |
When I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 829 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 830 |
When I press "bim.add_task(task={task})" |
| 831 |
And the variable "nested_task_one" is "IfcStore.get_file().by_type('IfcTask')[1].id()" |
| 832 |
When I press "bim.add_task(task={task})" |
| 833 |
And the variable "nested_task_two" is "IfcStore.get_file().by_type('IfcTask')[2].id()" |
| 834 |
And I press "bim.enable_editing_task_attributes(task={nested_task_one})" |
| 835 |
And I press "bim.assign_successor(task={nested_task_two})" |
| 836 |
When I press "bim.duplicate_task(task={task})" |
| 837 |
Then nothing happens |
| 838 |
|
| 839 |
Scenario: Duplicate Task and edit sequence Relationship |
| 840 |
Given an empty IFC project |
| 841 |
And I press "bim.add_work_schedule" |
| 842 |
And the variable "work_schedule" is "IfcStore.get_file().by_type('IfcWorkSchedule')[0].id()" |
| 843 |
And I press "bim.enable_editing_work_schedule_tasks(work_schedule={work_schedule})" |
| 844 |
When I press "bim.add_summary_task(work_schedule={work_schedule})" |
| 845 |
And the variable "task" is "IfcStore.get_file().by_type('IfcTask')[0].id()" |
| 846 |
When I press "bim.add_task(task={task})" |
| 847 |
And the variable "nested_task_one" is "IfcStore.get_file().by_type('IfcTask')[1].id()" |
| 848 |
When I press "bim.add_task(task={task})" |
| 849 |
And the variable "nested_task_two" is "IfcStore.get_file().by_type('IfcTask')[2].id()" |
| 850 |
And I press "bim.enable_editing_task_attributes(task={nested_task_one})" |
| 851 |
And I press "bim.assign_successor(task={nested_task_two})" |
| 852 |
And I press "bim.duplicate_task(task={task})" |
| 853 |
When I press "bim.enable_editing_task_sequence()" |
| 854 |
And I set "scene.BIMWorkScheduleProperties.active_task_index" to "1" |
| 855 |
Then nothing happens |
| 856 |
|
| 857 |
Scenario: Add Animation Camera |
| 858 |
Given an empty IFC project |
| 859 |
And I add a cube |
| 860 |
And the object "Cube" is selected |
| 861 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 862 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 863 |
And I press "bim.assign_class" |
| 864 |
And I press "bim.add_animation_camera" |
| 865 |
Then "scene.objects.get('4D Camera').name" is "4D Camera" |