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


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 uploadFile(String userKey, String testId, String fileName, String pathName)
           
 void uploadJmx(String userKey, String testId, String fileName, String pathName)
           
 
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,
                      String fileName,
                      String pathName)
Parameters:
userKey - - user key
testId - - test id
fileName - - test name
pathName - - jmx file path // * @return test id // * @throws java.io.IOException // * @throws org.json.JSONException

uploadFile

public org.json.JSONObject uploadFile(String userKey,
                                      String testId,
                                      String fileName,
                                      String pathName)
Parameters:
userKey - - user key
testId - - test id
fileName - - name for file you like to upload
pathName - - to the file 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-2012 BlazeMeterInc. All Rights Reserved.