Interface PerformanceTest
-
- All Known Implementing Classes:
AbstractJaloItemTest,AbstractPerformanceTest,ConfigGetDatabase,ConfigGetOracle,ConfigGetParameter,ConfigGetString,JaloFlexibleSearchWithCache,JaloFlexiblSearchWithoutCache,JaloGetNonExistingProperty,JaloGetPk,JaloItemSetNonExistingProperty,JaloTenTimesSetNonExistingProperty,JaloTenTimesSetNonExistingPropertyInTx,ModelGetPk,RegistryGetDataSource,SlFlexibleSearch
public interface PerformanceTestInterface containing methods to write any performance test which will be executed on "OverallTest" page.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcleanup()Cleanup after test if needed.java.util.Map<java.lang.String,java.lang.Object>computeScores(int seconds)Compute scores and returns as map.voidexecuteBlock()Executes block of code to be tested.java.lang.StringgetTestName()Gets the test name.voidprepare()Prepare test if needed.
-
-
-
Method Detail
-
executeBlock
void executeBlock() throws java.lang.ExceptionExecutes block of code to be tested.- Throws:
java.lang.Exception
-
computeScores
java.util.Map<java.lang.String,java.lang.Object> computeScores(int seconds)
Compute scores and returns as map.- Parameters:
seconds- the seconds- Returns:
- the map with test scores
-
getTestName
java.lang.String getTestName()
Gets the test name.- Returns:
- the test name
-
prepare
void prepare() throws java.lang.ExceptionPrepare test if needed.- Throws:
java.lang.Exception- the exception
-
cleanup
void cleanup()
Cleanup after test if needed.
-
-