Hi Nuwan,


Once we define a key as supperTenant<(tenant domain="carbon.super"
> *key="superTenant"*>) , are we going to keep the  <superTenant> element
> in usermanagement ?
>

We can give the any value as the key attribute of a tenant. Here we gave it
as "superTeant". And we keep the superTenant element in  userManagement as
we want the separation of it from other tenants.

Regards,

>
>
> On Tue, Feb 11, 2014 at 5:08 PM, Malintha Adikari <malin...@wso2.com>wrote:
>
>> Hi,
>>
>> automation.xml file contains all configuration details related to the
>> tests. UserManagement section in that file contains the tenant/user
>> details. Current structure of the user management section is as follows
>>
>>  <userManagement>
>>         <superTenant>
>>             <tenant domain="carbon.super" >
>>                 <admin>
>>                     <user key="admin">
>>                         <userName>admin</userName>
>>                         <password>admin</password>
>>                     </user>
>>                 </admin>
>>                 <users>
>>                     <user key="user2">
>>                         <userName>testuser21</userName>
>>                         <password>testuser21</password>
>>                     </user>
>>                 </users>
>>             </tenant>
>>         </superTenant>
>>         <tenants>
>>             <tenant domain="wso2.com">
>>                 <admin>
>>                     <user key="admin">
>>                         <userName>admin</userName>
>>                         <password>admin</password>
>>                     </user>
>>                 </admin>
>>                 <users>
>>                     <user key="user1">
>>                         <userName>testuser11</userName>
>>                         <password>testuser11</password>
>>                     </user>
>>                   ..................
>>                   ..................
>>
>> We have decided to introduce "key" attribute for tenant elements so that
>> users can refer the tenant using that key values in their test rather than
>> reffering it using the "domain" name  of the tenant. With the new "key"
>> attribute the tenant element will look like
>>
>> <tenant domain="carbon.super" *key="superTenant"*>
>>                 <admin>
>>                     <user key="admin">
>>                         <userName>admin</userName>
>>                         <password>admin</password>
>>                     </user>
>>                 </admin>
>>                 <users>
>>                     <user key="user2">
>>                         <userName>testuser21</userName>
>>                         <password>testuser21</password>
>>                     </user>
>>                 </users>
>>             </tenant>
>>
>> As users can refer to the tenants using keys , tenant configurations
>> (specially domain name) will be able to change without any changes to
>> written tests.
>>
>>
>> Regards,
>>  --
>> *Malintha Adikari*
>>  Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 71 2312958
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>


-- 
*Malintha Adikari*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 2312958
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to