com.atlassian.jira.functest.framework.dump
Class TestInformationKit

java.lang.Object
  extended by com.atlassian.jira.functest.framework.dump.TestInformationKit

public class TestInformationKit
extends Object

Contains common code for generated test messages and the like. This is used by both the old JIRAWebtest code and the new FuncTestCase code.

This code uses static variables however thats OK because the func tests are single threaded and run one after the other, so statics are fine.

Since:
v4.0

Nested Class Summary
static class TestInformationKit.TestCaseCounter
           
static class TestInformationKit.TestCaseInfo
           
 
Constructor Summary
TestInformationKit()
           
 
Method Summary
static void endTestSuite()
           
static List<TestInformationKit.TestCaseInfo> getAllTestsRun()
           
static List<TestInformationKit.TestCaseCounter> getCountersForTest(String testName)
           
static String getEndMsg(junit.framework.TestCase testCase, String tenant, long runtimeMS)
           
static String getEndMsg(junit.framework.TestCase testCase, String tenant, long runtimeMS, FuncTestWebClientListener webClientListener)
           
static String getEndMsg(junit.framework.TestCase testCase, String tenant, long runtimeMS, FuncTestWebClientListener webClientListener, Throwable problemT)
           
static String getEndMsg(junit.framework.TestCase testCase, String tenant, long runtimeMS, Throwable problemT)
           
static String getStartMsg(junit.framework.TestCase testCase, String tenant)
           
static TestInformationKit.TestCaseInfo getTotals()
           
static FuncTestTimer pullTimer(String name)
           
static void recordCounter(String counterName, long value)
          This will record a "named" performance counter against the current TestCase in play
static void startTestSuite(int totalTestCases)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestInformationKit

public TestInformationKit()
Method Detail

startTestSuite

public static void startTestSuite(int totalTestCases)

getStartMsg

public static String getStartMsg(junit.framework.TestCase testCase,
                                 String tenant)

getEndMsg

public static String getEndMsg(junit.framework.TestCase testCase,
                               String tenant,
                               long runtimeMS)

getEndMsg

public static String getEndMsg(junit.framework.TestCase testCase,
                               String tenant,
                               long runtimeMS,
                               FuncTestWebClientListener webClientListener)

getEndMsg

public static String getEndMsg(junit.framework.TestCase testCase,
                               String tenant,
                               long runtimeMS,
                               Throwable problemT)

getEndMsg

public static String getEndMsg(junit.framework.TestCase testCase,
                               String tenant,
                               long runtimeMS,
                               FuncTestWebClientListener webClientListener,
                               Throwable problemT)

getAllTestsRun

public static List<TestInformationKit.TestCaseInfo> getAllTestsRun()

getTotals

public static TestInformationKit.TestCaseInfo getTotals()

endTestSuite

public static void endTestSuite()

getCountersForTest

public static List<TestInformationKit.TestCaseCounter> getCountersForTest(String testName)

pullTimer

public static FuncTestTimer pullTimer(String name)

recordCounter

public static void recordCounter(String counterName,
                                 long value)
This will record a "named" performance counter against the current TestCase in play

Parameters:
counterName - some arbitary counter name
value - the value to record


Copyright © 2002-2012 Atlassian. All Rights Reserved.