public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
Object |
executeGET(String targetURL,
Process reqtifyProcess,
boolean buildRequest) |
static String |
findReqtifyPath() |
String |
getBrowserLanguage() |
static List |
getFunctionArgumentsData(String currentJob,
boolean report) |
String |
getLastLineOfFile(String path) |
static String |
getSavedFunctionName(String currentJob) |
static String |
getSavedReportName(String currentJob) |
static String |
getWorkspacePath(String currentJob) |
static void |
initReqtifyProcess() |
boolean |
isLocalPortFree(int port) |
boolean |
isReqtifyProjectExistInWorkspace(FilePath file,
String search) |
int |
nextFreePort(int from,
int to) |
public static String findReqtifyPath() throws IOException
IOExceptionpublic Object executeGET(String targetURL, Process reqtifyProcess, boolean buildRequest) throws org.json.simple.parser.ParseException, IOException, ReqtifyException
org.json.simple.parser.ParseExceptionIOExceptionReqtifyExceptionpublic boolean isLocalPortFree(int port)
public int nextFreePort(int from,
int to)
public boolean isReqtifyProjectExistInWorkspace(FilePath file, String search) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String getBrowserLanguage()
public static List getFunctionArgumentsData(String currentJob, boolean report)
public static String getWorkspacePath(String currentJob) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static void initReqtifyProcess()
throws IOException
IOExceptionCopyright © 2016–2020. All rights reserved.