public void testExecute() {
try
{
// Result of following Query should be 266773.
// SELECT NON EMPTY {[Measures].[Unit Sales]} ON COLUMNS, NON EMPTY {[Time].[1997]} ON ROWS FROM [Sales]
Assert.assertEquals("266773",(new Cell((((port1.execute(mdxQuerySales,execPropFoodMart)).getElementsByTagName("CellData")).item(0).getChildNodes()).item(1))).getCellValue());
// Result of following Query should be 66984555.
// SELECT NON EMPTY {[Measures].[nQuantity]} ON COLUMNS, NON EMPTY {[Time].[2006]} ON ROWS FROM [Inventory]
Assert.assertEquals("66984555",(new Cell((((port1.execute(mdxQueryInv,execPropInventory)).getElementsByTagName("CellData")).item(0).getChildNodes()).item(1))).getCellValue());
}
catch(Exception exc)
{
System.out.println("From TestExecute Exception");
System.out.println("Exception Error"+exc.getMessage());