Package mondrian.xmla
Class XmlaCognosTest
- java.lang.Object
-
- TestCase
-
- mondrian.test.FoodMartTestCase
-
- mondrian.xmla.XmlaBaseTestCase
-
- mondrian.xmla.XmlaCognosTest
-
public class XmlaCognosTest extends XmlaBaseTestCase
Test suite for compatibility of Mondrian XMLA with Cognos8.2 connected via Simba O2X bridge.- Author:
- Thiyagu, Shishir
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class mondrian.xmla.XmlaBaseTestCase
XmlaBaseTestCase.Action, XmlaBaseTestCase.CallBack, XmlaBaseTestCase.XmlaRequestCallbackImpl
-
-
Field Summary
-
Fields inherited from class mondrian.xmla.XmlaBaseTestCase
CATALOG, CATALOG_NAME_PROP, CATALOG_PROP, catalogNameUrls, CUBE_NAME_PROP, DATA_SOURCE_INFO, DATA_SOURCE_INFO_PROP, DEBUG, FORMAT_MULTI_DIMENSIONAL, FORMAT_PROP, LAST_SCHEMA_UPDATE_DATE, LOCALE_PROP, REQUEST_TYPE_PROP, ROLE_PROP, SALES_CUBE, SESSION_ID_PROP
-
Fields inherited from class mondrian.test.FoodMartTestCase
propSaver
-
-
Constructor Summary
Constructors Constructor Description XmlaCognosTest()
XmlaCognosTest(java.lang.String name)
-
Method Summary
-
Methods inherited from class mondrian.xmla.XmlaBaseTestCase
addDatasourceInfoResponseKey, doTest, doTest, doTest, doTest, doTestInline, doTestInline, doTests, doTestsJson, fileToDocument, fileToString, filterConnectString, generateExpectedString, generateRequestString, getCatalogNameUrls, getDefaultRequestProperties, getServlet, getSessionId, helperTest, helperTestExpect, maskVersion, replaceLastSchemaUpdateDate, tearDown, validate
-
Methods inherited from class mondrian.test.FoodMartTestCase
allMember, assertAxisReturns, assertAxisThrows, assertBooleanExprReturns, assertExprReturns, assertExprThrows, assertQueriesReturnSimilarResults, assertQueryReturns, assertQueryThrows, assertSize, cubeByName, execute, executeExpr, executeQuery, executeSingletonAxis, genderMembersIncludingAll, getConnection, getDimensionWithName, getTestContext, isDefaultNullMemberRepresentation, isGroupingSetsSupported, member, productMembersPotScrubbersPotsAndPans, storeMembersCAAndOR, storeMembersUsaAndCanada, verifySameNativeAndNot, warehouseMembersCanadaMexicoUsa
-
-
-
-
Method Detail
-
filter
protected java.lang.String filter(java.lang.String testCaseName, java.lang.String filename, java.lang.String content)
Description copied from class:XmlaBaseTestCase
Filters the content of a test resource. The default implementation returns the content unchanged, but a derived class might override this method to change the content.- Overrides:
filter
in classXmlaBaseTestCase
- Parameters:
testCaseName
- Name of current test case, e.g. "testFoo"filename
- Name of requested content, e.g. "${request}"content
- Content- Returns:
- Modified content
-
testCognosMDXSuiteHR_001
public void testCognosMDXSuiteHR_001() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteHR_002
public void testCognosMDXSuiteHR_002() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteSales_001
public void testCognosMDXSuiteSales_001() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteSales_002
public void testCognosMDXSuiteSales_002() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteSales_003
public void testCognosMDXSuiteSales_003() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteSales_004
public void testCognosMDXSuiteSales_004() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteConvertedAdventureWorksToFoodMart_003
public void testCognosMDXSuiteConvertedAdventureWorksToFoodMart_003() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteConvertedAdventureWorksToFoodMart_005
public void testCognosMDXSuiteConvertedAdventureWorksToFoodMart_005() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteConvertedAdventureWorksToFoodMart_006
public void testCognosMDXSuiteConvertedAdventureWorksToFoodMart_006() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteConvertedAdventureWorksToFoodMart_007
public void testCognosMDXSuiteConvertedAdventureWorksToFoodMart_007() throws java.lang.Exception
- Throws:
java.lang.Exception
-
_testCognosMDXSuiteConvertedAdventureWorksToFoodMart_009
public void _testCognosMDXSuiteConvertedAdventureWorksToFoodMart_009() throws java.lang.Exception
- Throws:
java.lang.Exception
-
_testCognosMDXSuiteConvertedAdventureWorksToFoodMart_012
public void _testCognosMDXSuiteConvertedAdventureWorksToFoodMart_012() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteConvertedAdventureWorksToFoodMart_013
public void testCognosMDXSuiteConvertedAdventureWorksToFoodMart_013() throws java.lang.Exception
- Throws:
java.lang.Exception
-
_testCognosMDXSuiteConvertedAdventureWorksToFoodMart_014
public void _testCognosMDXSuiteConvertedAdventureWorksToFoodMart_014() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteConvertedAdventureWorksToFoodMart_015
public void testCognosMDXSuiteConvertedAdventureWorksToFoodMart_015() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteConvertedAdventureWorksToFoodMart_016
public void testCognosMDXSuiteConvertedAdventureWorksToFoodMart_016() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteConvertedAdventureWorksToFoodMart_017
public void testCognosMDXSuiteConvertedAdventureWorksToFoodMart_017() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteConvertedAdventureWorksToFoodMart_020
public void testCognosMDXSuiteConvertedAdventureWorksToFoodMart_020() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteConvertedAdventureWorksToFoodMart_021
public void testCognosMDXSuiteConvertedAdventureWorksToFoodMart_021() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteConvertedAdventureWorksToFoodMart_024
public void testCognosMDXSuiteConvertedAdventureWorksToFoodMart_024() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteConvertedAdventureWorksToFoodMart_028
public void testCognosMDXSuiteConvertedAdventureWorksToFoodMart_028() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCognosMDXSuiteConvertedAdventureWorksToFoodMart_029
public void testCognosMDXSuiteConvertedAdventureWorksToFoodMart_029() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testDimensionPropertyForPercentageIssue
public void testDimensionPropertyForPercentageIssue() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testNegativeSolveOrder
public void testNegativeSolveOrder() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testNonEmptyWithCognosCalcOneLiteral
public void testNonEmptyWithCognosCalcOneLiteral() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCellProperties
public void testCellProperties() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCrossJoin
public void testCrossJoin() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testWithFilterOn3rdAxis
public void testWithFilterOn3rdAxis() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testWithSorting
public void testWithSorting() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testWithFilter
public void testWithFilter() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testWithAggregation
public void testWithAggregation() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getDiffRepos
protected DiffRepository getDiffRepos()
- Specified by:
getDiffRepos
in classXmlaBaseTestCase
-
getServletCallbackClass
protected java.lang.Class<? extends XmlaRequestCallback> getServletCallbackClass()
- Specified by:
getServletCallbackClass
in classXmlaBaseTestCase
-
getSessionId
protected java.lang.String getSessionId(XmlaBaseTestCase.Action action)
Description copied from class:XmlaBaseTestCase
Creates, retrieves or clears the session id for this test.- Specified by:
getSessionId
in classXmlaBaseTestCase
- Parameters:
action
- Action to perform- Returns:
- Session id for create, query; null for clear
-
-