All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fitbook.StressTest Maven / Gradle / Ivy

Go to download

FitLibrary provides general-purpose fixtures (and runners) for storytests with Fit and FitNesse.

The newest version!
/*
 * @author Rick Mugridge 12/07/2004
 * Copyright (c) 2004 Rick Mugridge, University of Auckland, NZ
 * Released under the terms of the GNU General Public License version 2 or later.
 */
package fitbook;

/**
 * 
 */
public class StressTest extends fit.ColumnFixture {
	public int clients = 0;
	public int maxReactionTime = 0;
	
	public long reactionTime() {
		return applicationReactionTime();
	}
	public boolean withinTime() {
		return applicationReactionTime() < maxReactionTime;
	}
	private long applicationReactionTime() {
		return Math.round(clients * 0.1);
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy