Interface PerformanceTest
- All Known Implementing Classes:
AbstractJaloItemTest,AbstractPerformanceTest,ConfigGetDatabase,ConfigGetOracle,ConfigGetParameter,ConfigGetString,JaloFlexibleSearchWithCache,JaloFlexiblSearchWithoutCache,JaloGetNonExistingProperty,JaloGetPk,JaloItemSetNonExistingProperty,JaloTenTimesSetNonExistingProperty,JaloTenTimesSetNonExistingPropertyInTx,ModelGetPk,RegistryGetDataSource,SlFlexibleSearch
public interface PerformanceTest
Interface containing methods to write any performance test which will be executed on "OverallTest" page.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Cleanup after test if needed.computeScores(int seconds) Compute scores and returns as map.voidExecutes block of code to be tested.Gets the test name.voidprepare()Prepare test if needed.
-
Method Details
-
executeBlock
Executes block of code to be tested.- Throws:
Exception
-
computeScores
Compute scores and returns as map.- Parameters:
seconds- the seconds- Returns:
- the map with test scores
-
getTestName
String getTestName()Gets the test name.- Returns:
- the test name
-
prepare
Prepare test if needed.- Throws:
Exception- the exception
-
cleanup
void cleanup()Cleanup after test if needed.
-