public class ReadyTools extends java.lang.Object
| Modifiers | Name | Description |
|---|---|---|
static int |
COPY_BUFFER_SIZE |
|
static long |
READ_ALL |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static void |
assertSimilar(java.lang.String expected, java.lang.String real, char wildcard)Compares two string for similarity, allows wildcard. |
|
public static java.lang.String |
convertToHtml(java.lang.String str) |
|
public static java.io.File |
createTemporaryDirectory() |
|
public static void |
deleteDirectoryOnExit(java.io.File directory)Keep this method for compatibility of plugins with new version of ReadyAPI |
|
public static void |
deleteLeftoverDirectories() |
|
public static void |
deleteOnExit(java.io.File fileToDelete) |
|
public static java.lang.String |
ensureDir(java.lang.String dir, java.lang.String basedir) |
|
public static java.lang.String |
ensureDir(java.lang.String outputDir) |
|
public static java.lang.String |
ensureFileDir(java.lang.String file, java.lang.String basedir) |
|
public static double |
getCpuLoad() |
|
public static java.lang.String |
getDir(java.lang.String filePath) |
|
public static java.lang.String |
getEndpointFromUrl(java.net.URL baseUrl) |
|
public static java.lang.String |
getFileContent(java.lang.String path) |
|
public static java.lang.String |
getFilename(java.lang.String filePath) |
|
public static long |
getFreeOSMemory() |
|
public static long |
getFreeOSMemoryMb() |
|
public static int |
getIntegerSystemProperty(java.lang.String propertyName, int defaultValue) |
|
public static java.lang.String |
getOsName() |
|
public static java.lang.String |
getTitleProperty(java.lang.String path) |
|
public static long |
getTotalOSMemory() |
|
public static long |
getTotalOSMemoryMb() |
|
public static long |
getUsedMemory() |
|
public static java.lang.String |
getVmOptionValue(java.lang.String vmOptionMarker) |
|
public static long |
getXmx() |
|
public static long |
getXmxMb() |
|
public static byte[] |
gzipBinaryData(byte[] rawResponseData) |
|
public static boolean |
isEmpty(java.lang.String str) |
|
public static boolean |
isGetRequestBodyAllowed() |
|
public static boolean |
isGnome()Using command line for try getting info about linux gnome window manager |
|
public static boolean |
isLinux() |
|
public static boolean |
isMac() |
|
public static boolean |
isNullOrEmpty(java.lang.String str) |
|
public static boolean |
isSimilar(java.lang.String expected, java.lang.String real, char wildcard) |
|
public static boolean |
isWindows() |
|
public static boolean |
isX64Platform() |
|
public static boolean |
isX86Platform() |
|
public static java.lang.String |
joinRelativeUrl(java.lang.String baseUrl, java.lang.String url)Joins a relative url to a base url.. needs improvements.. |
|
public static java.lang.String |
normalizeFileSeparators(java.lang.String input) |
|
public static boolean |
openEmailClient(java.lang.String subject, java.lang.String body) |
|
public static void |
openFile(java.lang.String filePath)
|
|
public static void |
openURL(java.lang.String url) |
|
public static java.io.ByteArrayOutputStream |
readAll(java.io.InputStream instream, long maxSize) |
|
public static void |
readAndWrite(java.io.InputStream instream, long maxSize, java.io.OutputStream outstream) |
|
public static java.lang.String |
removePropertyExpansions(java.lang.String definitionUrl, java.lang.String definition) |
|
public static java.lang.String |
replaceHost(java.lang.String endpoint, java.lang.String host)Replaces the host part of the specified endpoint with the specified host |
|
public void |
run() |
|
public static void |
sleep(long milliseconds) |
|
public static java.lang.String[] |
tokenizeArgs(java.lang.String args) |
|
public static byte[] |
unzipGzippedData(byte[] zippedData) |
|
public static long |
writeAll(java.io.OutputStream out, java.io.InputStream in) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Compares two string for similarity, allows wildcard.
Keep this method for compatibility of plugins with new version of ReadyAPI
Using command line for try getting info about linux gnome window manager
Joins a relative url to a base url.. needs improvements..
Replaces the host part of the specified endpoint with the specified host
endpoint - the endpoint to modifyhost - the host to set