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
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to