
core.apiCore.interfaces.TestPrepare Maven / Gradle / Ivy
package core.apiCore.interfaces;
import core.helpers.Helper;
import core.support.objects.ServiceObject;
public class TestPrepare {
private static final String WAIT_FOR_SECONDS = "waitForSeconds";
/**
* /* (String TestSuite, String TestCaseID, String RunFlag, String Description,
* String InterfaceType, String UriPath, String ContentType, String Method,
* String Option, String RequestHeaders, String TemplateFile, String
* RequestBody, String OutputParams, String RespCodeExp, String
* ExpectedResponse, String ExpectedResponse, String NotExpectedResponse, String
* TcComments, String tcName, String tcIndex)
*
* interface for azure storage api calls
*
* @param apiObject
* @return
* @throws Exception
*/
public static void TestPrepareInterface(ServiceObject apiObject) throws Exception {
switch (apiObject.getMethod()) {
case WAIT_FOR_SECONDS:
waitForSeconds(apiObject);
break;
default:
Helper.assertTrue("method not selected", false);
break;
}
}
public static void waitForSeconds(ServiceObject apiObject) throws Exception {
int seconds = Integer.valueOf(apiObject.getOption());
Helper.wait.waitForSeconds(seconds);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy