View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2010 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of version 2.1 of the GNU Lesser General Public License as published by 
6    *  the Free Software Foundation.
7    *
8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
9    *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
10   *  See the GNU Lesser General Public License for more details at gnu.org.
11   */
12  
13  package com.eviware.soapui.model.testsuite;
14  
15  /***
16   * Runner for loadtests
17   * 
18   * @author Ole.Matzura
19   */
20  
21  public interface LoadTestRunner extends TestRunner
22  {
23  	/***
24  	 * Gets the number of threads currently running
25  	 */
26  
27  	public int getRunningThreadCount();
28  
29  	public LoadTest getLoadTest();
30  
31  	/***
32  	 * Returns the progress of the loadtest as a value between 0 and 1. Progress
33  	 * is measured depending on the LoadTest limit configuration
34  	 */
35  
36  	public float getProgress();
37  
38  	/***
39  	 * Confusing but unfortunately necessary; isStopped will return false until the loadtest has
40  	 * called all handlers, etc.. the status will be set to FINISHED before that.
41  	 * 
42  	 * @return
43  	 */
44  	
45  	public boolean hasStopped();
46  }