org.jzonic.webtester
Class WebTestContext
java.lang.Object
|
+--org.jzonic.webtester.WebTestContext
- public class WebTestContext
- extends java.lang.Object
The WebTestContext is used during every test and keeps
all informations like the current form or the content
of the latest HTML page
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebTestContext
public WebTestContext()
getContent
public void getContent(java.lang.String url)
throws java.net.MalformedURLException,
java.io.IOException,
org.xml.sax.SAXException
setContent
protected void setContent(java.lang.String content)
selectForm
public void selectForm(int number)
throws org.xml.sax.SAXException
getHtmlText
public java.lang.String getHtmlText()
- Returns:
-
getProxyHost
public java.lang.String getProxyHost()
setProxyHost
public void setProxyHost(java.lang.String proxyHost)
getProxyPort
public int getProxyPort()
setProxyPort
public void setProxyPort(int proxyPort)
getWebForm
public com.meterware.httpunit.WebForm getWebForm()
setResponse
public void setResponse(com.meterware.httpunit.WebResponse resp)
throws java.io.IOException
getTitle
public java.lang.String getTitle()
throws org.xml.sax.SAXException
- Parameters:
title - - Returns:
-
- Throws:
org.xml.sax.SAXException -
getLinkWith
public com.meterware.httpunit.WebLink getLinkWith(java.lang.String linkName)
throws org.xml.sax.SAXException
- Parameters:
btnName - - Returns:
-
- Throws:
org.xml.sax.SAXException -
setVariables
public void setVariables(java.util.Properties props)
- Parameters:
props -
replaceVar
public java.lang.String replaceVar(java.lang.String text)
selectTable
public void selectTable(java.lang.String tableName)
throws org.xml.sax.SAXException
- Parameters:
tableName -
getTable
public com.meterware.httpunit.WebTable getTable()
Copyright © 2004 Andreas Mecky. All Rights Reserved.