mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +00:00
More qto and spatial tests. Tests can now select items in a UIList.
This commit is contained in:
@@ -86,3 +86,37 @@ Scenario: Perform quantity take-off - using Blender engine
|
||||
When I look at the "Quantity Sets" panel
|
||||
Then I see "Qto_WallBaseQuantities"
|
||||
And I see "NetVolume"
|
||||
|
||||
Scenario: Manual quantification
|
||||
Given an empty IFC project
|
||||
And I add a cube
|
||||
And the object "Cube" is selected
|
||||
And I look at the "Class" panel
|
||||
And I set the "Products" property to "IfcElement"
|
||||
And I set the "Class" property to "IfcWall"
|
||||
And I click "Assign IFC Class"
|
||||
And I look at the "Manual Quantification" panel
|
||||
When I set the "qto_name" property to "Foo"
|
||||
And I set the "prop_name" property to "Bar"
|
||||
And I click "Calculate Single Quantity"
|
||||
When I look at the "Quantity Sets" panel
|
||||
Then I see "Foo"
|
||||
And I see "Bar"
|
||||
|
||||
Scenario: Manual quantification - set an engine and function
|
||||
Given an empty IFC project
|
||||
And I add a cube
|
||||
And the object "Cube" is selected
|
||||
And I look at the "Class" panel
|
||||
And I set the "Products" property to "IfcElement"
|
||||
And I set the "Class" property to "IfcWall"
|
||||
And I click "Assign IFC Class"
|
||||
And I look at the "Manual Quantification" panel
|
||||
And I set the "Calculator" property to "IfcOpenShell"
|
||||
And I set the "Function" property to "Volume: Net Volume"
|
||||
When I set the "qto_name" property to "Foo"
|
||||
And I set the "prop_name" property to "Bar"
|
||||
And I click "Calculate Single Quantity"
|
||||
When I look at the "Quantity Sets" panel
|
||||
Then I see "Foo"
|
||||
And I see "Bar"
|
||||
|
||||
@@ -101,8 +101,6 @@ Scenario: Select similar container
|
||||
When I press "bim.select_similar_container"
|
||||
Then nothing happens
|
||||
|
||||
#HERE STARTS TESTS FOR SPATIAL TOOL
|
||||
|
||||
Scenario: Execute generate space from cursor position
|
||||
Given an empty IFC project
|
||||
When I press "bim.generate_space"
|
||||
@@ -126,3 +124,51 @@ Scenario: Execute toggle space visibility
|
||||
And I press "bim.assign_class(ifc_class='IfcSpace', predefined_type='SPACE')"
|
||||
When I press "bim.toggle_space_visibility"
|
||||
Then nothing happens
|
||||
|
||||
Scenario: Spatial decomposition - see panel
|
||||
Given an empty IFC project
|
||||
When I look at the "Spatial Decomposition" panel
|
||||
Then the "BIM_UL_containers_manager" list has 4 items
|
||||
And I don't see the "BIM_UL_elements" list
|
||||
|
||||
Scenario: Isolate spatial container
|
||||
Given an empty IFC project
|
||||
And I look at the "Spatial Decomposition" panel
|
||||
When I select the "My Site" item in the "BIM_UL_containers_manager" list
|
||||
And I click "Isolate"
|
||||
Then nothing happens
|
||||
|
||||
Scenario: Show spatial container
|
||||
Given an empty IFC project
|
||||
And I look at the "Spatial Decomposition" panel
|
||||
When I select the "My Site" item in the "BIM_UL_containers_manager" list
|
||||
And I click "HIDE_OFF"
|
||||
Then nothing happens
|
||||
|
||||
Scenario: Hide spatial container
|
||||
Given an empty IFC project
|
||||
And I look at the "Spatial Decomposition" panel
|
||||
When I select the "My Site" item in the "BIM_UL_containers_manager" list
|
||||
And I click "HIDE_ON"
|
||||
Then nothing happens
|
||||
|
||||
Scenario: Select spatial container
|
||||
Given an empty IFC project
|
||||
And I look at the "Spatial Decomposition" panel
|
||||
When I select the "My Site" item in the "BIM_UL_containers_manager" list
|
||||
And I click "OBJECT_DATA"
|
||||
Then the object "IfcSite/My Site" is selected
|
||||
|
||||
Scenario: Delete spatial container
|
||||
Given an empty IFC project
|
||||
And I look at the "Spatial Decomposition" panel
|
||||
When I select the "My Building" item in the "BIM_UL_containers_manager" list
|
||||
And I click "X"
|
||||
Then the "BIM_UL_containers_manager" list has 2 items
|
||||
|
||||
Scenario: Add spatial container
|
||||
Given an empty IFC project
|
||||
And I look at the "Spatial Decomposition" panel
|
||||
And I set the "subelement_class" property to "IfcExternalSpatialElement"
|
||||
When I click "ADD"
|
||||
Then the "BIM_UL_containers_manager" list has 5 items
|
||||
|
||||
Reference in New Issue
Block a user