com.appperfect.functionaltester.script
Interface IWebGroup


public interface IWebGroup

Web Group is created to represent task group executing a web application IWebGroup object is created using IWebGroup addActionGroup(String groupName, String startingURL, boolean ignore); API of IWebTest


Field Summary
static int BASIC_AUTHENTICATION
 Constant used to set Authentication mechanism used by the target application.
static int DIGEST_AUTHENTICATION
 Constant used to set Authentication mechanism used by the target application.
static int GROUP_HTTP
 Represent HTTP Group protocol
static int GROUP_SOAP
 Represent SOAP Group protocol
static int NO_AUTHENTICATION
 Constant used to set Authentication mechanism used by the target application.
static int NTLM_AUTHENTICATION
 Constant used to set Authentication mechanism used by the target application.
 
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 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 setIgnored(boolean ignored)
 This method is used to decide if the group should be ignored during test execution.
 void setLaunchNewBrowser(boolean bLaunch)
 This method is used to set whether application should launch a new browser to replay the URL.
 void setProxyWhileReplaying(boolean bSetProxy)
 This method is used to set whether application should start proxy server while replaying.
 void setRepeatCount(int rptCount)
 This method is used to set repeat count for group within single iteration.
 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 decide whether 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.
 

Field Detail

BASIC_AUTHENTICATION

static final int BASIC_AUTHENTICATION
Constant used to set Authentication mechanism used by the target application. In case your application uses Basic authentication use this particular constant while setting authentication mechanism. Refer to setAuthenticationMechanism api

See Also:
Constant Field Values

DIGEST_AUTHENTICATION

static final int DIGEST_AUTHENTICATION
Constant used to set Authentication mechanism used by the target application. In case your application uses Digest authentication use this particular constant while setting authentication mechanism. Refer to setAuthenticationMechanism api

See Also:
Constant Field Values

GROUP_HTTP

static final int GROUP_HTTP
Represent HTTP Group protocol

See Also:
Constant Field Values

GROUP_SOAP

static final int GROUP_SOAP
Represent SOAP Group protocol

See Also:
Constant Field Values

NO_AUTHENTICATION

static final int NO_AUTHENTICATION
Constant used to set Authentication mechanism used by the target application. In case your application does not use any authentication use this particular constant while setting authentication mechanism. Refer to setAuthenticationMechanism api

See Also:
Constant Field Values

NTLM_AUTHENTICATION

static final int NTLM_AUTHENTICATION
Constant used to set Authentication mechanism used by the target application. In case your application uses NTLM authentication use this particular constant while setting authentication mechanism. Refer to setAuthenticationMechanism api

See Also:
Constant Field Values
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 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 Web Test provides various APIs to set authentication credentials. By default a group doesn't require any authentication credentials. AppPerfect Web Test 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

setIgnored

void setIgnored(boolean ignored)
This method is used to decide if the group should be ignored during test execution.

Parameters:
ignored - true if group should be ignored, false otherwise

setLaunchNewBrowser

void setLaunchNewBrowser(boolean bLaunch)
This method is used to set whether application should launch a new browser to replay the URL.

Parameters:
bLaunch - true if new browser should be launched, false otherwise

setProxyWhileReplaying

void setProxyWhileReplaying(boolean bSetProxy)
This method is used to set whether application should start proxy server while replaying. This should be set to true if test was recorded with simultaneous recording for Load Tester, else false

Parameters:
bSetProxy - true if proxy server should be used during replaying, false otherwise

setRepeatCount

void setRepeatCount(int rptCount)
This method is used to set repeat count for group within single iteration. By default group is executed once during single iteration. If one needs to execute group multiple times during single iteration then same should be set here.

Parameters:
rptCount - number of times group should repeat execution during single iteration.

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 decide whether 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.