mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-31 17:06:29 +00:00
77 lines
2.7 KiB
Gherkin
77 lines
2.7 KiB
Gherkin
@material
|
|
Feature: Material
|
|
|
|
Scenario: Add default material
|
|
Given an empty IFC project
|
|
When I press "bim.add_default_material"
|
|
Then the material "Default" exists
|
|
|
|
Scenario: Add material
|
|
Given an empty IFC project
|
|
And I add a cube
|
|
And the object "Cube" is selected
|
|
And I add a material
|
|
When I press "bim.add_material"
|
|
Then the material "Material" is an IFC material
|
|
|
|
Scenario: Remove material
|
|
Given an empty IFC project
|
|
And I add a cube
|
|
And the object "Cube" is selected
|
|
And I add a material
|
|
And I press "bim.add_material"
|
|
When I press "bim.remove_material"
|
|
Then the material "Material" is not an IFC material
|
|
|
|
Scenario: Unlink material
|
|
Given an empty IFC project
|
|
And I add a cube
|
|
And the object "Cube" is selected
|
|
And I add a material
|
|
And I press "bim.add_material"
|
|
When I press "bim.unlink_material"
|
|
Then the material "Material" is not an IFC material
|
|
|
|
Scenario: Assign material - Assign a material
|
|
Given an empty IFC project
|
|
And I add a cube
|
|
And the object "Cube" is selected
|
|
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
|
|
And I press "bim.assign_class"
|
|
And I press "bim.add_default_material"
|
|
When I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterial"
|
|
And I press "bim.assign_material"
|
|
Then the object "IfcWall/Cube" has the material "Default"
|
|
|
|
Scenario: Assign material - Assign a material layer set
|
|
Given an empty IFC project
|
|
And I add a cube
|
|
And the object "Cube" is selected
|
|
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
|
|
And I press "bim.assign_class"
|
|
And I add an empty
|
|
And the object "Empty" is selected
|
|
And I set "scene.BIMRootProperties.ifc_product" to "IfcElementType"
|
|
And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType"
|
|
And I press "bim.assign_class"
|
|
And I press "bim.add_default_material"
|
|
When I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialLayerSet"
|
|
And I press "bim.assign_material"
|
|
Then nothing happens
|
|
|
|
Scenario: Assign material - Assign a material profile set
|
|
Given an empty IFC project
|
|
And I add a cube
|
|
And the object "Cube" is selected
|
|
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
|
|
And I press "bim.assign_class"
|
|
And I add an empty
|
|
And the object "Empty" is selected
|
|
And I set "scene.BIMRootProperties.ifc_product" to "IfcElementType"
|
|
And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType"
|
|
And I press "bim.assign_class"
|
|
And I press "bim.add_default_material"
|
|
When I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialProfileSet"
|
|
And I press "bim.assign_material"
|
|
Then nothing happens
|