org.jaffa.tools.loadtest
Class LoadTesterLogOnImpl

java.lang.Object
  extended byorg.jaffa.tools.loadtest.LoadTesterLogOnImpl
All Implemented Interfaces:
ILoadTesterLogOn

public class LoadTesterLogOnImpl
extends Object
implements ILoadTesterLogOn

Implements the ILoadTesterLogOn and implements the logon and logOff methods

Author:
MaheshD

Constructor Summary
LoadTesterLogOnImpl()
           
 
Method Summary
 void logOff(com.meterware.httpunit.WebConversation wc, String webRoot)
          Logs off from the System.
 com.meterware.httpunit.WebResponse logOn(com.meterware.httpunit.WebConversation wc, String webRoot, String user, String password, String sucessTitle)
          Logs on to the system with the username and password provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadTesterLogOnImpl

public LoadTesterLogOnImpl()
Method Detail

logOn

public com.meterware.httpunit.WebResponse logOn(com.meterware.httpunit.WebConversation wc,
                                                String webRoot,
                                                String user,
                                                String password,
                                                String sucessTitle)
Logs on to the system with the username and password provided. Returns null if it fails to log on .

Specified by:
logOn in interface ILoadTesterLogOn
Parameters:
wc - WebConversation to get the response.
webRoot - url to the log on page.
user - username
password - password
sucessTitle - The Title text after it has successfully logged on.
Returns:
returns a WebResponse if successful or else returns null.

logOff

public void logOff(com.meterware.httpunit.WebConversation wc,
                   String webRoot)
Logs off from the System.

Specified by:
logOff in interface ILoadTesterLogOn
Parameters:
wc - WebConversation to get the response
webRoot - url which needs to be logged off.


Copyright © 2002-2004 JAFFA Project.