com.appperfect.loadtester.script
Interface IHttpGroup

All Superinterfaces:
IGroup

public interface IHttpGroup
extends IGroup

IHttpGroup is created to represent groups executing a web application, used for recording tasks with HTTP/S protocols IHttpGroup action group is created using IGroup addActionGroup(int protocol, String groupName); API of ILoadTest For creating Starting Group use IHTTPGroup addStartingGroup(); API of ILoadTest For creating Starting Group use IHTTPGroup IHttpGroup addEndingGroup(); API of ILoadTest


Field Summary
 
Fields inherited from interface com.appperfect.loadtester.script.IGroup
GROUP_DATABASE, GROUP_HTTP, GROUP_SOAP, PAUSE_AFTER_EVERY_N_ITERATIONS, PAUSE_AFTER_N_ITERATIONS, PAUSE_AFTER_N_SECONDS, PAUSE_START_OF_GROUP, PAUSE_START_OF_TEST, STOP_AFTER_N_ITERATIONS, STOP_AFTER_N_SECONDS
 
Method Summary
 void addClientCertificate(java.lang.String password, java.lang.String certFilePath)
 This method is used to register a client certificate for a group
 void setAuthenticationDomainName(java.lang.String domain)
 This method is used to to set the Domain name if the authentication is of type IWebGroup.DIGEST_AUTHENTICATION or IWebGroup.NTLM_AUTHENTICATION.
 void setAuthenticationMechanism(int mechanism)
 Quite often the web applications being tested are not simple applications and require different types of authentications during the execution of the test.
 void setAuthenticationPassword(java.lang.String pwd, boolean parameterised)
 This method is used to set the password for Authentication
 void setAuthenticationUserName(java.lang.String name, boolean parameterised)
 This method is used to set the user name for Authentication
 void setContainsLoginTask(boolean task)
 This method is used to decide whether group contains the login task
 void setLoginTaskID(int taskId)
 This method is used to set login task id in this group
 void setLoginTaskID(int taskId, java.lang.String username, java.lang.String password)
 This method is used to set login task id in this group as well as login credentials
 void setStartingURL(java.lang.String url)
 This method is used to set starting url for the group.
 void setUseClientSSLAuthentication(boolean flag)
 This method is used to set that group should use client SSL authentication
 void setUseUrlRewritingSessionManagement(boolean flag)
 This method is used to set whether the web application is using URL-Rewriting for session management.
 
Methods inherited from interface com.appperfect.loadtester.script.IGroup
setGroupPauseOption, setGroupStopOption, setIgnored, setRepeatCount, setRunVirtualUsers
 

Method Detail

addClientCertificate

void addClientCertificate(java.lang.String password,
                          java.lang.String certFilePath)
This method is used to register a client certificate for a group

Parameters:
password - password for client certificate
certFilePath - file path on disk for client certificate

setAuthenticationDomainName

void setAuthenticationDomainName(java.lang.String domain)
This method is used to to set the Domain name if the authentication is of type IWebGroup.DIGEST_AUTHENTICATION or IWebGroup.NTLM_AUTHENTICATION.

Parameters:
domain - name of the domain

setAuthenticationMechanism

void setAuthenticationMechanism(int mechanism)
Quite often the web applications being tested are not simple applications and require different types of authentications during the execution of the test. AppPerfect FunctionalTester provides various APIs to set authentication credentials. By default a group doesn't require any authentication credentials. AppPerfect FunctionalTester support Form, Basic, Digest, NTLM types of authentication.

Parameters:
mechanism - : Possible values for mechanism are: IWebGroup.NO_AUTHENTICATION, IWebGroup.FORM_AUTHENTICATION, IWebGroup.BASIC_AUTHENTICATION, IWebGroup.DIGEST_AUTHENTICATION, IWebGroup.NTLM_AUTHENTICATION

setAuthenticationPassword

void setAuthenticationPassword(java.lang.String pwd,
                               boolean parameterised)
This method is used to set the password for Authentication

Parameters:
pwd - password for authentication
parameterised - true if password is parameterized, false otherwise

setAuthenticationUserName

void setAuthenticationUserName(java.lang.String name,
                               boolean parameterised)
This method is used to set the user name for Authentication

Parameters:
name - user name for authentication
parameterised - true if name is parameterized, false otherwise

setContainsLoginTask

void setContainsLoginTask(boolean task)
This method is used to decide whether group contains the login task

Parameters:
task - true if group contains login task else false

setLoginTaskID

void setLoginTaskID(int taskId)
This method is used to set login task id in this group

Parameters:
taskId - id of the login task

setLoginTaskID

void setLoginTaskID(int taskId,
                    java.lang.String username,
                    java.lang.String password)
This method is used to set login task id in this group as well as login credentials

Parameters:
taskId - id of the login task
username - user name used for login
password - password used for login

setStartingURL

void setStartingURL(java.lang.String url)
This method is used to set starting url for the group.

Parameters:
url - starting url for the group

setUseClientSSLAuthentication

void setUseClientSSLAuthentication(boolean flag)
This method is used to set that group should use client SSL authentication

Parameters:
flag - true if client SSL authentication should be used, false otherwise

setUseUrlRewritingSessionManagement

void setUseUrlRewritingSessionManagement(boolean flag)
This method is used to set whether the web application is using URL-Rewriting for session management. This informs application that it need to handle session ids present in the URLs.

Parameters:
flag - true if session is managed using URL-Rewriting, false otherwise


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.