Hi Lakshani,

Can you check whether the user has enough permissions ? Like login and
etc.  This is just a hunch.

Regards,
Hemika

Hemika Kodikara
Software Engineer
WSO2 Inc.
lean . enterprise . middleware
http://wso2.com

Mobile : +94777688882

On Mon, Nov 23, 2015 at 10:59 AM, Lakshani Gamage <laksh...@wso2.com> wrote:

> Hi all,
>
> I'm trying to write some tests for app manager and I want to login to
> store with a non admin user. I updated automation.xml as below.
>
> <userManagement>
>         <superTenant>
>             <tenant domain="carbon.super" key="superTenant">
>                 <admin>
>                     <user key="superAdmin">
>                         <userName>admin</userName>
>                         <password>admin</password>
>                     </user>
>                 </admin>
>                 <users>
>                     <user key="testuser1">
>                         <userName>testuser1</userName>
>                         <password>testuser1pass</password>
>                     </user>
>                 </users>
>             </tenant>
>         </superTenant>
>         <tenants>
>         </tenants>
>     </userManagement>
>
> But when tests are running, it looks like "testuser1" is not available. It
> gives following exceptions.
>
> java.lang.Exception: Operation not successful: Invalid username or
> password.
> at
> org.wso2.appmanager.integration.utils.VerificationUtil.checkErrors(VerificationUtil.java:35)
> at
> org.wso2.appmanager.integration.utils.APPMStoreRestClient.login(APPMStoreRestClient.java:68)
> at
> org.wso2.appmanager.integration.test.cases.RatingTestCase.testWebAppRating(RatingTestCase.java:78)
>
> Am I missing anything?
>
> Thanks,
> Lakshani
> --
> Lakshani Gamage
>
> *Software Engineer*
> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to