public class CacheHitTest extends FoodMartTestCase
CacheHitTest
class contains test suites that return
hit ratio of aggregation cache for various sequences of MDX queries.
This is not run as part of Main test suite as it only reports ratios for further investigations.
FoodMartTestCase.QueryAndResult
propSaver
Constructor and Description |
---|
CacheHitTest() |
Modifier and Type | Method and Description |
---|---|
void |
clearCache(String cube)
Clears aggregation cache
|
void |
report(ServerInfo serverInfo)
Prints cache hit ratio.
|
void |
runRandomSuite(junit.framework.TestSuite suite,
int n)
Loops
n times, each time run a random test case
in the test suite |
void |
runTestSuiteInOrder(junit.framework.TestSuite suite,
int numIter)
Loops
numIte times, each time run all child test
suite in the suite |
void |
testBigSetRandom()
Runs a set of bigger MDX queries that requires more memory
and targets a bigger region of cache in random order.
|
void |
testSmallSetRandom()
Runs a set of small MDX queries that targets a small region
of aggregation cache in random order.
|
void |
testSmallSetSequential()
Runs a set of small MDX queries that targets a small region
of aggregation cache sequentially.
|
void |
testSmallSetVCRandom()
Runs a set of small MDX queries that targets a small region
of aggregation cache in random order.
|
void |
testSmallSetVCSequential()
Runs a set of small MDX queries that targets a small region
of aggregation cache sequentially.
|
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, tearDown, warehouseMembersCanadaMexicoUsa
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, toString
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
public void testSmallSetSequential() throws Exception
Exception
- on errorpublic void testSmallSetRandom() throws Exception
Exception
- on errorpublic void testSmallSetVCSequential() throws Exception
Exception
- on errorpublic void testSmallSetVCRandom() throws Exception
Exception
- on errorpublic void testBigSetRandom() throws Exception
Exception
- on errorpublic void runRandomSuite(junit.framework.TestSuite suite, int n) throws Exception
n
times, each time run a random test case
in the test suite
suite
- the suite of test casesn
- number of timesException
- on errorpublic void runTestSuiteInOrder(junit.framework.TestSuite suite, int numIter) throws Exception
numIte
times, each time run all child test
suite in the suite
suite
- the suite of test suitesnumIter
- number of iterationsException
- on errorpublic void report(ServerInfo serverInfo)
serverInfo
- Server statisticspublic void clearCache(String cube)
cube
- Cube name