Skip to content

You are not logged in. Register orLog In

start:

OpenOffice.org - Testcase specification

Testname: Functions and formulas

Document Owner:

Frank Stecher

Last document change:

08.12.2008

Status of document:

Standard

Valid for version: OpenOffice.org_2.2, OpenOffice.org_2.2.1, OpenOffice.org_2.3, OpenOffice.org_2.3.1, OpenOffice.org_2.4, OpenOffice.org_3.0, OpenOffice.org_3.1, OO, OpenOffice.org_3.2

Test purpose:

Check the functions available for calculations


Known issues:


Preconditions of test:

Testcases works best on en_US locales, make sure this is set under tools-options-language settings or in the system locale setting

Test documents:

http://www.openoffice.org/nonav/issues/showattachment.cgi/49963/Funktionen.ods
http://www.openoffice.org/nonav/issues/showattachment.cgi/49964/percent.sxc
http://www.openoffice.org/nonav/issues/showattachment.cgi/42238/COT.ods
http://www.openoffice.org/nonav/issues/showattachment.cgi/46306/i47724_div0-xp.xls
http://qa.openoffice.org/source/browse/*checkout*/qa/qatesttool/calc/special/input/minimal.sdc?rev=1.1
INDEX-LINEST function.xls
i71158_GCD_LCM.ods
i91020_ADDRESS_INDIRECT.ods

Testcases:


Basic function testStatus: Standard

  • Download and open the testdocument Funktionen.ods
  • Press CTRL+SHIFT+F9 to perform a forced re-calculation of the Sheet
  • Check column D for other Values as Zero (0). A red cell background makes such occurences more visible.

    If the value shown in such red cells is zero, a rounding error causes this coloring and the difference has to be evaluated. Check this with an Excel and decimal places set to 16.
  • The following cells must show differences :
    • D49 as the Error types from Excel and OOo Calc does not match
    • D73 as the reference value could not be stored with the document and therefore TODAY() is much later than this referenced value.
    • D87 same as for D73 but with the function NOW()
    • D218 as a random number is random and can't be seriously compared with a fixed value in this case
    • D233 shows zero and green but obviously the values in B233 and C233 does not match. This is correct as the output for the function and the compared cell are text and text values are in fact zero values. Zero minus Zero is Zero so the comparison is correct. The function INFO itself gives a different output on OOo Calc and Excel as Calc is also available for other Operating Systems.


Edit FormulaStatus: Standard

  • File - New - Spreadsheet
  • Type in a cell the value
    • =rand()
  • After typing the last bracket the brackets their formatting has to be changed to bold
    • =rand()
  • Press [F9]
    • A small bubble help containing the function result will be visible
  • Place the result into the cell with [ENTER]

Matrix LimitsStatus: Standard

  • File - New - Spreadsheet
  • Click on the Name Box located on the formula toolbar (It's to the left of the f(x) symbol at the beginning of the toolbar)
  • It should show A1, if not delete the content in this box and type A1
  • Type ':IV2049' (without the quotes) and press enter
  • Click again on the name box and erase the characters A1:IV2049
  • Type test and press Enter
  • Type '1' (without the quote) and press ALT+SHIFT+ENTER
  • After as moment the range A1:IV2049 is filled with 1 in each cell
  • Go to A2051 and type =test . Press CTRL+SHIFT+ENTER to create an Array formula
  • A2051 must show Err:514
  • Press CTRL+F3
  • Click on test in the range name dialog
  • Change the number 2049 on the Assigned to : Line to 2048
  • Click on Modify
  • Click on Ok
  • Select A2051 again and type =test
  • Press CTRL+SHIFT+ENTER to create an Array formula
  • Wait a moment. The range A2051 :IV4098 must show up as a copy of A1:IV2048. If not file an Issue.
  • File - Save as
  • Give it a name of your choice and select OpenDocument Spreadsheet .ODS as fileformat in the filter line. Click on Save.
  • File - Save as
  • Give it a name of your choice and select StarCalc 5.0 (.sdc) as fileformat in the filter line. Click on Save. Confirm the Warning about possibly lost formats with Yes
  • If you have the chance to use Excel, do the same for the Excel filter.
  • Press CTRL+F3
  • Click on test in the range name dialog
  • Change the number 2048 on the Assigned to : Line to 2049
  • Click on Modify
  • Click on Ok
  • A2051:IV4098 must show Err:514. If not, file an Issue
  • Close the document by pressing CTRL+W
  • File - Open
  • Select the previously saved ODS document and open it.
  • Press CTRL+SHIFT+F9 to perform a recalculation of the Sheet
  • The range A2051:IV4098 must show a single 1 in each cell, if not, file an Issue.
  • Close the document by pressing CTRL+W
  • File - Open
  • Select the previously saved SDC document and open it.
  • Press CTRL+SHIFT+F9 to perform a recalculation of the Sheet
  • The range A2051:IV4098 must show a single 1 in each cell, if not, file an Issue.
  • If possible load the previously saved XLS file with Excel and check that the result is 1 for all cells within A2051:IV4098

Percent SignStatus: Standard

  • Download and open the test document percent.sxc
  • Press CTRL+SHIFT+F9 to force a recalculation
  • Have a look at column D. All colored backgrounds must be Green and the values must be shown as zero. If not file an Issue.

Excel Export for COT, ACOT, COTH, and ACOTHStatus: Standard

  • File / Open / testdocument COT.ods (it's an OpenDocument Format; ODF)
    • the spreadsheet contains
      • COT(x)
      • ACOT(x)
      • COTH(x)
      • ACOTH(x)
  • File / Save As / Name_of-your-choice.xls and select the Excel97 filter
  • File / Close
  • File / Load / Name_of-your-choice.xls (the exported Excel97 file)
    • now the spreadsheet should have replaced the functions as follows:
      • COT(x) in the COT.ods should be now 1/TAN(x)
      • ACOT(x) in the COT.ods should be now PI/2-ATAN(x)
      • COTH(x) in the COT.ods should be now 1/TANH(x)
      • ACOTH(x) in the COT.ods should be now ATANH(1/x)

#DIV/0! Error code implemented for Excel filesStatus: Standard

  • File / Load testdocument i47724_div0-xp.xls
  • Press [CTRL+SHIFT+F9]
  • Check that the functions in B2:B14 shows #DIV/0!
  • Check that the functions in B20, B22 and B23 shows #DIV/0!
  • File / Save As / name_of_your_choice.xls (Excel97 filter)
  • File / Close
  • File / Load / name_of_your_choice.xls (the exported Excel97 file)
  • Check that the functionresults show the #DIV/0! errorcode


#DIV/0! Error code implemented for StarOffice binary filesStatus: Standard

  • Download and Open the test document minimal.sdc (see test documents)
  • Press [CTRL+SHIFT+F9]
  • Validate that the value in cell A1 is 1,2 (or 1.2 - depending on the delimitter)
  • Validate that the value in cell A2 is #DIV/0! (devision with zero)
  • Validate that the value in cell A3 is 3,14 (or 3.14 - depending on the delimitter)
  • Close the document

This testcase is also implemented in an autotest


INDEX() function supports return of an entire vector of a 2D arrayStatus: Standard

  • Open testdocument "INDEX-LINEST function.xls"
  • Verify that the values in row 8 are the same as in row 13
  • Save the document to the current fileformat (e.g. *.ods)
  • Close and reload the document
  • Verify that the values in row 8 are the same as in row 13
  • Save the document to *.xls
  • Close and reload the document
  • Verify that the values in row 8 are the same as in row 13
  • Close the document

GCD() and LCM() results for non-integersStatus: Standard

  • Open testdocument "i71158_GCD_LCM.ods"
  • Verify that the values in columns F and J are "TRUE"
  • Save the document to the current fileformat (e.g. *.ods)
  • Close and reload the document
  • Verify that the values in columns F and J are "TRUE"
  • Save the document to *.xls
  • Close and reload the document
  • Verify that the values in columns F and J are "TRUE"
  • Close the document

Support ADDRESS 4th and INDIRECT 2nd parameterStatus: Standard

  • Open testdocument "i91020_ADDRESS_INDIRECT.ods"
  • Verify that the value in cell A1 is True
  • Save the document to the current fileformat (e.g. *.ods)
  • Close and reload the document
  • Verify that the value in cell A1 is True
  • Save the document to *.xls
  • Close and reload the document
  • Verify that the value in cell A1 is True
  • Close the document

Formula syntax in tip helpStatus: Standard

  • Open new spreadsheet document
  • Ensure that the tip help is activated (Tools-Options-General-Help-Tips)
  • In cell A1 enter "=sum " (or something equivalent to the used office localization)
  • Verify that there is one tip help with the completed formula =sum()
  • Type an additional (
  • Verify that now there is a tip help with the syntax of the sum function
  • Type an additional a
  • Verify that there is now a second help tip with the completed asb() function
  • Press ESC multiple times to clean the cell
  • Close document

References:

-

Acronyms:

-

testcase specification history

Functions and formulas

DateChangeUser
08.12.2008 (15:01:43)status updatedOliver Craemer
08.12.2008 (15:01:25)testcase details addedOliver Craemer
08.12.2008 (14:53:00)testcase addedOliver Craemer
01.07.2008 (14:29:26)status updatedOliver Craemer
01.07.2008 (14:29:03)testcase details addedOliver Craemer
01.07.2008 (14:22:49)testcase addedOliver Craemer
01.07.2008 (14:21:00)status updatedOliver Craemer
09.06.2008 (11:47:36)testcase details updatedOliver Craemer
09.06.2008 (11:43:46)testcase details addedOliver Craemer
09.06.2008 (11:42:23)testcase addedOliver Craemer
09.06.2008 (10:51:58)status updatedOliver Craemer
09.06.2008 (10:51:50)testcase details addedOliver Craemer
09.06.2008 (10:46:41)testcase addedOliver Craemer
22.02.2008 (09:52:55)testcase deletedOliver Craemer
22.02.2008 (09:40:52)testcase addedOliver Craemer
28.11.2007 (12:23:45)status updatedFrank Stecher
28.11.2007 (12:23:30)status updatedFrank Stecher
28.11.2007 (12:23:24)status updatedFrank Stecher
28.11.2007 (12:23:15)status updatedFrank Stecher
28.11.2007 (12:23:08)status updatedFrank Stecher
28.11.2007 (12:22:27)testcase :Percent Sign updatedFrank Stecher
28.11.2007 (12:22:00)testcase :Basic function test updatedFrank Stecher
28.11.2007 (12:19:05)testcase details updatedFrank Stecher
28.11.2007 (12:18:12)testcase :#DIV/0! Error code implemented for Excel files updatedFrank Stecher
28.11.2007 (12:17:05)testcase :Excel Export for COT, ACOT, COTH, and ACOTH updatedFrank Stecher
28.11.2007 (12:08:10)testcase details updatedFrank Stecher
28.11.2007 (10:54:43)testcase details updatedFrank Stecher
27.11.2007 (16:41:19)testcase details updatedFrank Stecher
27.11.2007 (16:37:37)testcase details updatedFrank Stecher
27.11.2007 (16:25:34)testcase deletedFrank Stecher
27.11.2007 (16:19:24)header updatedFrank Stecher
27.11.2007 (16:14:13)testcase details updatedFrank Stecher
27.11.2007 (16:11:08)testcase details updatedFrank Stecher
10.10.2007 (12:15:36)testcase details updatedJogi Sievers
10.10.2007 (12:13:13)testcase details updatedJogi Sievers
10.10.2007 (12:04:12)testcase details updatedJogi Sievers
10.10.2007 (12:03:40)testcase details updatedJogi Sievers
10.10.2007 (11:52:54)testcase :#DIV/0! Error code implemented for StarOffice binary files updatedJogi Sievers
10.10.2007 (11:49:43)header updatedJogi Sievers
10.10.2007 (11:34:44)testcase details updatedJogi Sievers
10.10.2007 (11:32:22)testcase details updatedJogi Sievers
10.10.2007 (11:26:33)testcase details updatedJogi Sievers
10.10.2007 (11:23:22)testcase :#DIV/0! Error code implemented for StarOffice binary files updatedJogi Sievers
10.10.2007 (11:22:57)testcase :#DIV/0! Error code implemented for Excel files updatedJogi Sievers
10.10.2007 (11:21:04)testcase details addedJogi Sievers
10.10.2007 (11:19:17)testcase addedJogi Sievers
03.07.2007 (13:19:06)testcase details addedOliver Craemer
03.07.2007 (13:11:09)testcase addedOliver Craemer
13.04.2007 (15:41:07)version updatedFrank Stecher
13.04.2007 (15:40:44)status updatedFrank Stecher
17.01.2007 (16:26:28)status updatedFrank Stecher
17.01.2007 (16:26:16)status updatedFrank Stecher
17.01.2007 (16:26:03)status updatedFrank Stecher
17.01.2007 (16:25:52)status updatedFrank Stecher
17.01.2007 (16:25:46)status updatedFrank Stecher
17.01.2007Testcase specification createdFrank Stecher


13.11.09 12:11:10