com.blazemeter.api.explorer.test.ITest Maven / Gradle / Ivy
/**
* Copyright 2018 BlazeMeter Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.blazemeter.api.explorer.test;
import com.blazemeter.api.explorer.Master;
import net.sf.json.JSONArray;
import java.io.File;
import java.io.IOException;
public interface ITest {
/**
* Start BlazeMeter test
* @return Master of started test
*/
Master start() throws IOException;
/**
* Start BlazeMeter test
*
* @return Master of started test
*/
Master startWithProperties(String properties) throws IOException;
/**
* Create empty BlazeMeter report, without starting JMeter or other testing tools.
* @return Master of started test
*/
Master startExternal() throws IOException;
/**
* Upload file to BlazeMeter Test
*/
void uploadFile(File file) throws IOException;
/**
* Update BlazeMeter Test
*/
void update(String data) throws IOException;
/**
* Validate BlazeMeter Test
*/
void validate(String data) throws IOException;
/**
* Get all validation for BlazeMeter Test
*/
JSONArray validations() throws IOException;
}