net.sf.jameleon.reporting
Class TestCaseCounter

java.lang.Object
  extended by net.sf.jameleon.reporting.TestCaseCounter

public class TestCaseCounter
extends Object

Keeps track of the test cases run and test case number in a given test run:


Constructor Summary
TestCaseCounter()
           
 
Method Summary
 int getNumFailed()
          Gets the total failed tests cases
 int getNumPassed()
          Gest the total passed test cases
 int getNumRun()
           
 int getTestCaseNum()
          Gets the current test script number
 void incrementFailed(int numFailed)
          Increment the number of tests failed.
 void incrementPassed(int numPassed)
          Increment the number of tests passed.
 void incrementTestCaseNum(int testCaseNum)
          Increment the test script number
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCaseCounter

public TestCaseCounter()
Method Detail

incrementPassed

public void incrementPassed(int numPassed)
Increment the number of tests passed.

Parameters:
numPassed - The number to increment by

incrementFailed

public void incrementFailed(int numFailed)
Increment the number of tests failed.

Parameters:
numFailed - The number to increment by

incrementTestCaseNum

public void incrementTestCaseNum(int testCaseNum)
Increment the test script number

Parameters:
testCaseNum - The number to increment by

getNumPassed

public int getNumPassed()
Gest the total passed test cases

Returns:
the total passed test cases

getNumFailed

public int getNumFailed()
Gets the total failed tests cases

Returns:
the total failed tests cases

getTestCaseNum

public int getTestCaseNum()
Gets the current test script number

Returns:
the current test script number

getNumRun

public int getNumRun()


Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.