public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
org.json.simple.JSONArray |
executeGET(String targetURL,
Process reqtifyProcess,
boolean buildRequest) |
String |
findReqtifyPath()
We find the path where reqtify is installed with regedit and return it.
|
String |
getBrowserLanguage() |
String |
getLastLineOfFile(String path)
Return the last line of file like a log file.
|
boolean |
isReqtifyProjectExistInWorkspace(FilePath file,
String search) |
int |
nextFreePort(int from,
int to) |
public String findReqtifyPath() throws IOException
IOExceptionpublic org.json.simple.JSONArray executeGET(String targetURL, Process reqtifyProcess, boolean buildRequest) throws org.json.simple.parser.ParseException, IOException, ReqtifyException
org.json.simple.parser.ParseExceptionIOExceptionReqtifyExceptionpublic int nextFreePort(int from,
int to)
public boolean isReqtifyProjectExistInWorkspace(FilePath file, String search) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String getLastLineOfFile(String path)
path - the path of the file we want to readpublic String getBrowserLanguage()
Copyright © 2016–2019. All rights reserved.