hudson.plugins.blazemeter.api
Class BlazemeterApi

java.lang.Object
  extended by hudson.plugins.blazemeter.api.BlazemeterApi

public class BlazemeterApi
extends Object

User: Vitali Date: 4/2/12 Time: 14:05

Updated User: Doron Date: 8/7/12 Updated (proxy) User: Marcel Date: 9/23/13


Nested Class Summary
static class BlazemeterApi.BmUrlManager
           
 class BlazemeterApi.TestStatus
           
 
Field Summary
static String APP_KEY
           
 
Constructor Summary
BlazemeterApi()
           
 
Method Summary
 org.json.JSONObject aggregateReport(String userKey, String reportId)
           
 int getTestCount(String userKey)
           
 HashMap<String,String> getTestList(String userKey)
           
 TestInfo getTestRunStatus(String userKey, String testId)
           
 org.json.JSONObject startTest(String userKey, String testId)
           
 org.json.JSONObject stopTest(String userKey, String testId)
           
 org.json.JSONObject uploadBinaryFile(String userKey, String testId, File file)
           
 void uploadJmx(String userKey, String testId, File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APP_KEY

public static final String APP_KEY
See Also:
Constant Field Values
Constructor Detail

BlazemeterApi

public BlazemeterApi()
Method Detail

uploadJmx

public void uploadJmx(String userKey,
                      String testId,
                      File file)
Parameters:
userKey - - user key
testId - - test id
file - - jmx file // * @return test id // * @throws java.io.IOException // * @throws org.json.JSONException

uploadBinaryFile

public org.json.JSONObject uploadBinaryFile(String userKey,
                                            String testId,
                                            File file)
Parameters:
userKey - - user key
testId - - test id
file - - the file (Java class) you like to upload
Returns:
test id // * @throws java.io.IOException // * @throws org.json.JSONException

getTestRunStatus

public TestInfo getTestRunStatus(String userKey,
                                 String testId)

startTest

public org.json.JSONObject startTest(String userKey,
                                     String testId)

getTestCount

public int getTestCount(String userKey)
                 throws org.json.JSONException,
                        IOException,
                        javax.servlet.ServletException
Throws:
org.json.JSONException
IOException
javax.servlet.ServletException

stopTest

public org.json.JSONObject stopTest(String userKey,
                                    String testId)
Parameters:
userKey - - user key
testId - - test id // * @throws IOException // * @throws ClientProtocolException

aggregateReport

public org.json.JSONObject aggregateReport(String userKey,
                                           String reportId)
Parameters:
userKey - - user key
reportId - - report Id same as Session Id, can be obtained from start stop status. // * @throws IOException // * @throws ClientProtocolException

getTestList

public HashMap<String,String> getTestList(String userKey)
                                   throws IOException,
                                          javax.mail.MessagingException
Throws:
IOException
javax.mail.MessagingException


Copyright © July 2012-2013 BlazeMeterInc. All Rights Reserved.