Author Archives: Admin

usage of URL MApping

if add urlmapping in provision tab,following variable will be available in your scripts.

BASE_URL_SCHEME – URL scheme. Allowed values: http , https
BASE_URL_HOST – URL host.
BASE_URL_PORT – URL port (may be omitted if default port for protocol is used: 80 for http, 443 for https).
BASE_URL_PATH – URL path including trailing slash.

note:this variables will be available in configuration script.

How to get a mainservice fields value into the subservice?

Direct method its not possible. but you can use value-of-settings.

For Example:

Mainservice contains a field with id ‘firstname’.

using the below statement you can get the value into the configuration script of mainservice but you cannot get into the subservice configuration script.

$firstname=trim(getenv(“SETTINGS_firstname”));

use the value of settings in subservice field as below

</setting>
<setting type=”string” id=”firstname_subservice” value-of-setting=”firstname” visibility=”hidden” protected=”true”></setting>
</settings>

$firstname=trim(getenv(“SETTINGS_firstname_subservice”));// here you will get the value of mainservice.

Domain list or a dropdown box for a domain in Subservice of APS package

we can do this using value of settings.

# create domain list box in subservice using the following

<setting type=”list” id=”domain” element-type=”domain-name”>
<name>domain name</name>
</setting>

# in subservice again create a hidden field with type “list” as below. here use the value of settings

<setting type=”list” id=”subdomain” element-type=”string” value-of-setting=”domain” protected=”true” visibility=”hidden”>
<name>Subdomain list</name>
</setting>

# use the subdomain in a for loop in verification script and load it into a dyanamic drop down