| java.lang.Object com.canoo.webtest.engine.ContextHelper
ContextHelper | final public class ContextHelper (Code) | | Utility class for
Context .
|
defineAsCurrentResponse | public static void defineAsCurrentResponse(Context context, byte[] responseBytes, String contentType, String urlStr)(Code) | | Parameters: context - Parameters: responseBytes - Parameters: contentType - Parameters: urlStr - |
defineAsCurrentResponse | public static void defineAsCurrentResponse(Context context, String responseText, String contentType, String urlStr)(Code) | | Parameters: context - Parameters: responseText - Parameters: contentType - Parameters: urlStr - |
writeResponseFile | public static File writeResponseFile(WebResponse response, File file)(Code) | | Writes the response to the file. If an error occurs, just logs it and returns null .
Parameters: response - the response to write Parameters: file - the file to write in file if everything works fine, null if an error occured. |
|
|