# Test Name: Chart2 - 3D view dialog specification chapter 4

Document Owner: Jörg Sievers | Last Document Change: 07. MAY. 2007 | Status of Document: Standard

### Test Purpose

- Validate the specified (chapter 4, detailed specification) behaviour of the new 3D view dialog introduced in the chart 2 modul.

### Preconditions of the test:

- The CWS:SRC680/chart2mst3 needs to be included in that build of OpenOffice.org you run these test cases.
- Software specification

### Test documents

- 3d_421_phong_chart.ods
- 3d_422_rounded_edge_4dot4percent_chart.ods
- 3d_422_rounded_edge_4dot5percent_chart.ods
- 3d_422_rounded_edge_7_4_4percent_chart.ods
- 3d_423_object_border_wo_rounded_edges.odt
- 3d_42_shading_flat.odt
- 3d_VRP_7500plus.ods
- 3d_simple_chart.ods

##### test case: t4Cancel3DViewDialogPerspective

- Load simple 3D chart test document (../chart2/update/input/3d_simple_chart.ods)
- Activate first and onliest OLE (the 3D chart) in the document via Navigator
- Edit / Object / Edit
- Open 3D View dialog via Format / 3D View
- Switch to tab page perspective
- Get the values of X rotation, Y rotation and Z rotation
- Get the state of Perspective check-box and the value of the perspective
- press CANCEL button
- Open 3D View dialog via Format / 3D View
- Get the values of X rotation, Y rotation and Z rotation
- Get the state of Perspective check-box and the value of the perspective
- If the values and state of the checkbox are the same the test case have been passed
- Leave the 3D View dialog with [Cancel]
- Close the document

##### test case: t4Cancel3DViewDialogAppearance

- Load simple 3D chart test document (../chart2/update/input/3d_simple_chart.ods)
- Activate first and onliest OLE (the 3D chart) in the document via Navigator
- Edit / Object / Edit
- Open 3D View dialog via Format / 3D View
- Switch to tab page Appearance
- Get the state of the check-box object borders
- The state of it has to be unchecked
- Check the check-box object borders
- Press CANCEL button
- Open 3D View dialog via Format / 3D View
- Switch to tab page Appearance
- Get the state of the check-box object borders
- The test case has been passed if the state of it is unchecked
- Leave the 3D View dialog with [Cancel]
- Close the document

##### test case: t4Cancel3DViewDialogIllumination

- Load simple 3D chart test document (../chart2/update/input/3d_simple_chart.ods)
- Activate first and onliest OLE (the 3D chart) in the document via Navigator
- Edit / Object / Edit
- Open 3D View dialog via Format / 3D View
- Switch to tab page Illumination
- Get the state of the first light source
- The state of it has to be disabled
- Enable the light source by pressing it's button.
- Press CANCEL button
- Open 3D View dialog via Format / 3D View
- Switch to tab page Illumination
- Get the state of the first light source
- The test case has been passed if the state of it is disabled
- Leave the 3D View dialog with [Cancel]
- Close the document

##### test case: t4OK3DViewDialogPerspective

- Load simple 3D chart test document (../chart2/update/input/3d_simple_chart.ods)
- Activate first and onliest OLE (the 3D chart) in the document via Navigator
- Edit / Object / Edit
- Open 3D View dialog via Format / 3D View
- Switch to tab page perspective
- Set the value of X rotation to -13 and press
- Set the value of Y rotation to 13 and press
- Set the value of Z rotation to 20 and press
- Verify that the state of Perspective check-box (it should be checked) and press
- Add a value 40of the perspective and press
- Execute the OK button with RETURN-key
- Open 3D View dialog via Format / 3D View
- Get the values of X rotation, Y rotation and Z rotation which should be the same as entered.
- Get the state of Perspective check-box and that the set value of the perspective has been stored correctly
- If the values and state of the checkbox are the same the test case have has been passed
- Leave the 3D View dialog with [Cancel]
- Close the document and ignore the changes

##### test case: t4OK3DViewDialogAppearance

- Load simple 3D chart test document (../chart2/update/input/3d_simple_chart.ods)
- Activate first and onliest OLE (the 3D chart) in the document via Navigator
- Edit / Object / Edit
- Open 3D View dialog via Format / 3D View
- Switch to tab page Appearance
- The scheme 'Realistic' should be selected
- Select the scheme Simple
- The state of the three check-boxes should have been changed to:
  - Shading unchecked
  - Object borders checked
  - Rounded edges disabled
- Press OK button
- Open 3D View dialog via Format / 3D View
- Switch to tab page Appearance
- Get the state of the check-boxes. They should be the same as they
  were before closing the dialog.
- The test case has been passed if the state of the check-boxes have been
  saved and the list-box has selected the 'Simple' entry
- Leave the 3D View dialog with [Cancel]
- Close the document and ignore the changes

##### test case: t4OK3DViewDialogIllumination

- Load simple 3D chart test document (../chart2/update/input/3d_simple_chart.ods)
- Activate first and onliest OLE (the 3D chart) in the document via Navigator
- Edit / Object / Edit
- Open 3D View dialog via Format / 3D View
- Switch to tab page Illumination
- The state of the first light source should be disabled
- Enable the light source by pressing it's button.
- Press OK button
- Open 3D View dialog via Format / 3D View
- Switch to tab page Illumination
- Get the state of the first light source
- The test case has been passed if the state of it is enabled
- Leave the 3D View dialog with [Cancel]
- Close the document and ignore the changes

##### test case: t41AllPerspectiveValuesZero

- Load simple 3D chart test document (../chart2/update/input/3d_simple_chart.ods)
- Activate first and onliest OLE (the 3D chart) in the document via Navigator
- Edit / Object / Edit
- Open 3D View dialog via Format / 3D View
- Switch to tab page Perspective
- Set the values of X rotation, Y rotation and Z rotation to 0
- Disable the Perspective check-box
- Save the file as ($WORKDIR/3d_simple_chart_zero.ods)
- File / Close the document
- Load the saved document ($WORKDIR/3d_simple_chart_zero.ods)
- Activate first and onliest OLE (the 3D chart) in the document via Navigator
- Edit / Object / Edit
- Open 3D View dialog via Format / 3D View
- Switch to tab page Perspective
- The test case is passed if the values of X rotation, Y rotation and Z rotation are 0

##### test case: t41PerspectiveDefaults

- Load simple 3D chart test document (../chart2/update/input/3d_simple_chart.ods)
- Activate first and onliest OLE (the 3D chart) in the document via Navigator [RETURN]
- Close the Navigator
- Press [DEL] to remove the chart
- Press [STRG+HOME]
- [I]nsert / Ch[a]rt
- After the Chart wizard appeared...
- Check 3D Look check-box and press FINISH button of the wizard
- Open 3D View dialog via Format / 3D View
- Switch to tab page Perspective
- The test case is passed if the the vakue of
  - X rotation = 11 degrees
  - Y rotation = 25 degrees
  - Z rotation = 5 degrees
  - Perspective check-box is checked
  - Perspective value = 20%
- Leave the 3D View dialog with [Cancel]
- Close the document and ignore the changes

##### test case: t41PerspectiveBoundaryValueAnalysis

- Load simple 3D chart test document (../chart2/update/input/3d_simple_chart.ods)
- Activate first and onliest OLE (the 3D chart) in the document via Navigator
- Edit / Object / Edit
- Open 3D View dialog via Format / 3D View
- Switch to tab page Perspective
- Enter the values
  li>X rotation = -180
- Y rotation = 180
- Z rotation = 100

- Press OK button
- Open 3D View dialog via Format / 3D View
- Switch to tab page Perspective
- Validate the values
  li>X rotation = 0
- Y rotation = 0
- Z rotation = -80

- Note: The result is confusing but the data is being stored in
  a matrix and there is not only one way back to the data -> see: i76711

- Leave the 3D View dialog with [Cancel]
- Close the document and ignore the changes

  ##### test case: t41PerspectiveDonutDefaults

  - Load simple 3D chart test document (../chart2/update/input/3d_simple_chart.ods)
  - Activate first and onliest OLE (the 3D chart) in the document via Navigator [RETURN]
  - Close the Navigator
  - Press [DEL] to remove the chart
  - Press [STRG+HOME]
  - [I]nsert / Ch[a]rt
  - After the Chart wizard appeared...
  - Select the third entry from the top (Pie)
  - Select the third from the left in that group (Donut)
  - Check 3D Look check-box and press FINISH button of the wizard
  - Open 3D View dialog via Format / 3D View
  - Switch to tab page Perspective
  - The test case is passed if the the vakue of
    - X rotation = -60 degrees
    - Y rotation = 0 degrees
    - Z rotation = 0 degrees
    - Perspective check-box is checked
    - Perspective value = 5%
  - Leave the 3D View dialog with [Cancel]
  - Close the document and ignore the changes

  ##### test case: t411PerspectiveDefaultVRP_VPN_VUP

  - Load simple 3D chart test document (../chart2/update/input/3d_simple_chart.ods)
  - Activate first and onliest OLE (the 3D chart) in the document via Navigator [RETURN]
  - Close the Navigator
  - Press [DEL] to remove the chart
  - Press [STRG+HOME]
  - [I]nsert / Ch[a]rt
  - After the Chart wizard appeared...
  - Check 3D Look check-box and press FINISH button of the wizard
  - File / SaveAs / ../$WORK_DIRECTORY/3d_DefaultVRP_VPN_VUP.ods
  - File / Close the document
  - Extract Object 1/content.xml from 3d_DefaultVRP_VPN_VUP.ods with jar or unzip command
  - The test case has been passed if the Object 1/content.xml containts the following
    three definitions of the camera settings:
    - dr3d:vrp="(17634.6218373783 10271.4823817647 24594.8639082739)"
    - dr3d:vpn="(0.416199821709347 0.173649045905254 0.892537795986984)"
    - dr3d:vup="(-0.0733876362771618 0.984807599917971 -0.157379306090273)"

  ##### test case: t411Perspective_focal-length

  - Load simple 3D chart test document (../chart2/update/input/3d_simple_chart.ods)
  - Activate first and onliest OLE (the 3D chart) in the document via Navigator [RETURN]
  - Close the Navigator
  - Press [DEL] to remove the chart
  - Press [STRG+HOME]
  - [I]nsert / Ch[a]rt
  - After the Chart wizard appeared...
  - Check 3D Look check-box and press FINISH button of the wizard
  - File / SaveAs / ../$WORK_DIRECTORY/3d_Default_focal-length.ods
  - File / Close the document
  - Extract Object 1/content.xml from 3d_Default_focal-length.ods with jar or unzip command
  - The test case has been passed if the Object 1/content.xml containts
    - dr3d:focal-length="8cm"

  ##### test case: t411Perspective_distance

  - Load simple 3D chart test document (../chart2/update/input/3d_simple_chart.ods)
  - Activate first and onliest OLE (the 3D chart) in the document via Navigator [RETURN]
  - Close the Navigator
  - Press [DEL] to remove the chart
  - Press [STRG+HOME]
  - [I]nsert / Ch[a]rt
  - After the Chart wizard appeared...
  - Check 3D Look check-box and press FINISH button of the wizard
  - File / SaveAs / ../$WORK_DIRECTORY/3d_Default_distance.ods
  - File / Close the document
  - Extract Object 1/content.xml from 3d_Default_distance.ods with jar or unzip command
  - The test case has been passed if the Object 1/content.xml containts
    - dr3d:distance="4.2cm"

  ##### test case: t411Perspective_VRP_Len_out_of_boundary_value

  - Load chart test document (../chart2/update/input/3d_VRP_7500plus.ods)
  - Activate first and onliest OLE (the 3D chart) in the document via Navigator [RETURN]
  - Close the Navigator
  - Open 3D View dialog via Format / 3D View
  - Switch to tab page Perspective
  - The test case is passed if the the vakue of
    - Perspective check-box is checked
    - Perspective value = 100%
  - Leave the 3D View dialog with [Cancel]
  - Close the document and ignore the changes

  ##### test case: t42Appearance_Defaults

  - Load simple 3D chart test document (../chart2/update/input/3d_simple_chart.ods)
  - Activate first and onliest OLE (the 3D chart) in the document via Navigator [RETURN]
  - Close the Navigator
  - Press [DEL] to remove the chart
  - Press [STRG+HOME]
  - [I]nsert / Ch[a]rt
  - After the Chart wizard appeared...
  - Check 3D Look check-box and press FINISH button of the wizard
  - Open 3D View dialog via Format / 3D View
  - Switch to tab page Apperance
  - The test case has been passed if the
    - Scheme list-box has the value Realistic
    - Shading check-box is checked
    - Object borders check-box is not checked
    - Rounded edges check-box is checked
  - Leave the 3D View dialog with [Cancel]
  - Close the document and ignore the changes

  ##### test case: t42Appearance_ObjectBorders

  - Load test document (../chart2/update/input/3d_423_object_border_wo_rounded_edges.odt)
  - Activate first and onliest OLE (the 3D chart) in the document via Navigator [RETURN]
  - Close the Navigator
  - [E]dit / [O]bject / [E]dit to
  - Open 3D View dialog via Format / 3D View
  - Switch to tab page Apperance
  - The test case has been passed if the
    - Scheme list-box has the value Custom
    - Shading check-box is tri-state
    - Object borders check-box is checked
    - Rounded edges check-box is not enabled
  - Leave the 3D View dialog with [Cancel]
  - Close the document and ignore the changes

  ##### test case: t42Appearance_Shading_flat

  - Load simple 3D chart test document (../chart2/update/input/3d_42_shading_flat.odt)
  - Activate first and onliest OLE (the 3D chart) in the document via Navigator [RETURN]
  - Close the Navigator
  - [E]dit / [O]bject / [E]dit to
  - Open 3D View dialog via Format / 3D View
  - Switch to tab page Apperance
  - The test case has been passed if the
    - Scheme list-box has the value Simple
    - Shading check-box is unchecked
    - Object borders check-box is checked
    - Rounded edges check-box is not enabled
  - Leave the 3D View dialog with [Cancel]
  - Close the document and ignore the changes

  ##### test case: t42Appearance_Shading_phong

  - Load chart test document (../chart2/update/input/3d_phong_chart.ods)
  - Activate first and onliest OLE (the 3D chart) in the document via Navigator [RETURN]
  - Close the Navigator
  - Open 3D View dialog via Format / 3D View
  - Switch to tab page Apperance
  - The test case has been passed if the
    - Scheme list-box has the value Custom
    - Shading check-box is trisate
    - Object borders check-box is not checked
    - Rounded edges check-box is checked
  - Leave the 3D View dialog with [Cancel]
  - Close the document and ignore the changes

  ##### test case: t42Appearance_Rounded_Off

  - Load chart test document (../chart2/update/input/3d_rounded_edge_4dot4percent_chart.ods)
  - Activate first and onliest OLE (the 3D chart) in the document via Navigator [RETURN]
  - Close the Navigator
  - Open 3D View dialog via Format / 3D View
  - Switch to tab page Apperance
  - The test case has been passed if the
    - Scheme list-box has the value Custom
    - Shading check-box is checked
    - Object borders check-box is not checked
    - Rounded edges check-box is not checked
  - Leave the 3D View dialog with [Cancel]
  - Close the document and ignore the changes

  ##### test case: t42Appearance_Rounded_On

  - Load chart test document (../chart2/update/input/3d_rounded_edge_4dot5percent_chart.ods)
  - Activate first and onliest OLE (the 3D chart) in the document via Navigator [RETURN]
  - Close the Navigator
  - Open 3D View dialog via Format / 3D View
  - Switch to tab page Apperance
  - The test case has been passed if the
    - Scheme list-box has the value Custom
    - Shading check-box is checked
    - Object borders check-box is not checked
    - Rounded edges check-box is checked
  - Leave the 3D View dialog with [Cancel]
  - Close the document and ignore the changes

  ##### test case: t42Appearance_Rounded_Up_Boundary

  - Load chart test document (../chart2/update/input/3d_rounded_edge_7_4_4percent_chart.ods)
  - Activate first and onliest OLE (the 3D chart) in the document via Navigator [RETURN]
  - Close the Navigator
  - Open 3D View dialog via Format / 3D View
  - Switch to tab page Apperance
  - The test case has been passed if the
    - Scheme list-box has the value Custom
    - Shading check-box is checked
    - Object borders check-box is not checked
    - Rounded edges check-box is checked
  - Leave the 3D View dialog with [Cancel]
  - Close the document and ignore the changes

  ##### test case: t43Illumination8LightSources

  - Load simple 3D chart test document (../chart2/update/input/3d_42_shading_flat.odt)
  - Activate first and onliest OLE (the 3D chart) in the document via Navigator [RETURN]
  - Close the Navigator
  - [E]dit / [O]bject / [E]dit to
  - Open 3D View dialog via Format / 3D View
  - Switch to tab page Illumination
  - The test case has been passed if the count of light source buttons = 8
  - Leave the 3D View dialog with [Cancel]
  - Close the document

  ##### test case: t43IlluminationColorSelection

  - Load simple 3D chart test document (../chart2/update/input/3d_42_shading_flat.odt)
  - Activate first and onliest OLE (the 3D chart) in the document via Navigator [RETURN]
  - Close the Navigator
  - [E]dit / [O]bject / [E]dit to
  - Open 3D View dialog via Format / 3D View
  - Switch to tab page Illumination
    - Change the color of the second light source with the presets of colors (list box)
    - Change the ambient light with the the color dialog
  - Leave the dialog with OK
  - Open 3D View dialog via Format / 3D View
  - Switch to tab page Illumination
  - The test case has been passed if the made changes for the second light source and the ambient light
    are now visible in the dialog again.
  - Leave the 3D View dialog with [Cancel]
  - Close the document and ignore the changes

  ##### test case: t43IlluminationRuler

  - Load simple 3D chart test document (../chart2/update/input/3d_42_shading_flat.odt)
  - Activate first and onliest OLE (the 3D chart) in the document via Navigator [RETURN]
  - Close the Navigator
  - [E]dit / [O]bject / [E]dit to
  - Open 3D View dialog via Format / 3D View
  - Switch to tab page Illumination
  - Select the second light source (which is enabled by default)
  - Use the rulers to modify the angle of the light source
  - Leave the dialog with OK
  - Save the file as ($WORKDIR/3d_illumination_ruler.ods)
  - File / Close the document
  - Extract with jar or unzip from $WORKDIR/3d_illumination_ruler.ods
    the "Object 1/content.xml"
  - The test case has been passed if in the XML file the default of the
    second light is NOT the default
    - dr3d:direction="(0.57735026918963 0.57735026918963 0.57735026918963)"

  ### Problematic areas

  no problematic areas