public final class Functions extends Object
Modifier and Type | Method and Description |
---|---|
static String |
changeDate(String date,
String dateOffset,
String dateFormat,
TestContext context)
Runs change date function with arguments.
|
static String |
changeDate(String date,
String dateOffset,
TestContext context)
Runs change date function with arguments.
|
static String |
createCDataSection(String content,
TestContext context)
Runs create CData section function with arguments.
|
static String |
currentDate(String dateFormat,
TestContext context)
Runs current date function with arguments.
|
static String |
currentDate(TestContext context)
Runs current date function with arguments.
|
static String |
decodeBase64(String content,
Charset charset,
TestContext context)
Runs decode base 64 function with arguments.
|
static String |
decodeBase64(String content,
TestContext context)
Runs decode base 64 function with arguments.
|
static String |
digestAuthHeader(String username,
String password,
String realm,
String noncekey,
String method,
String uri,
String opaque,
String algorithm,
TestContext context)
Runs create digest auth header function with arguments.
|
static String |
encodeBase64(String content,
Charset charset,
TestContext context)
Runs encode base 64 function with arguments.
|
static String |
encodeBase64(String content,
TestContext context)
Runs encode base 64 function with arguments.
|
static String |
escapeXml(String content,
TestContext context)
Runs escape XML function with arguments.
|
static String |
randomNumber(Long length,
boolean padding,
TestContext context)
Runs random number function with arguments.
|
static String |
randomNumber(Long length,
TestContext context)
Runs random number function with arguments.
|
static String |
randomString(Long numberOfLetters,
boolean useNumbers,
TestContext context)
Runs random string function with arguments.
|
static String |
randomString(Long numberOfLetters,
String notationMethod,
boolean useNumbers,
TestContext context)
Runs random string function with arguments.
|
static String |
randomString(Long numberOfLetters,
String notationMethod,
TestContext context)
Runs random string function with arguments.
|
static String |
randomString(Long numberOfLetters,
TestContext context)
Runs random string function with arguments.
|
static String |
randomUUID(TestContext context)
Runs random UUID function with arguments.
|
static String |
readFile(String filePath,
TestContext context)
Reads the file resource and returns the complete file content.
|
static String |
urlDecode(String content,
Charset charset,
TestContext context)
Runs URL decode function with arguments.
|
static String |
urlDecode(String content,
TestContext context)
Runs URL decode function with arguments.
|
static String |
urlEncode(String content,
Charset charset,
TestContext context)
Runs URL encode function with arguments.
|
static String |
urlEncode(String content,
TestContext context)
Runs URL encode function with arguments.
|
public static String currentDate(TestContext context)
public static String currentDate(String dateFormat, TestContext context)
public static String changeDate(String date, String dateOffset, String dateFormat, TestContext context)
date
- dateOffset
- dateFormat
- public static String changeDate(String date, String dateOffset, TestContext context)
date
- dateOffset
- public static String createCDataSection(String content, TestContext context)
public static String encodeBase64(String content, TestContext context)
public static String encodeBase64(String content, Charset charset, TestContext context)
public static String decodeBase64(String content, TestContext context)
public static String decodeBase64(String content, Charset charset, TestContext context)
public static String urlEncode(String content, TestContext context)
public static String urlEncode(String content, Charset charset, TestContext context)
public static String urlDecode(String content, TestContext context)
public static String urlDecode(String content, Charset charset, TestContext context)
public static String digestAuthHeader(String username, String password, String realm, String noncekey, String method, String uri, String opaque, String algorithm, TestContext context)
public static String randomUUID(TestContext context)
public static String randomNumber(Long length, TestContext context)
length
- public static String randomNumber(Long length, boolean padding, TestContext context)
length
- padding
- public static String randomString(Long numberOfLetters, TestContext context)
numberOfLetters
- public static String randomString(Long numberOfLetters, boolean useNumbers, TestContext context)
numberOfLetters
- useNumbers
- public static String randomString(Long numberOfLetters, String notationMethod, boolean useNumbers, TestContext context)
numberOfLetters
- notationMethod
- useNumbers
- public static String randomString(Long numberOfLetters, String notationMethod, TestContext context)
numberOfLetters
- notationMethod
- public static String escapeXml(String content, TestContext context)
public static String readFile(String filePath, TestContext context)
filePath
- Copyright © 2008–2019 ConSol Software GmbH. All rights reserved.