Creating test users and roles in the weblogic server


Many might have faced this situation while fixing bugs in ADF application. There will be one main application and it uses task flows or classes from different shared libraries. For example there is an issue in one shared library, to fix that we just run that particular project/application and try to fix the issue in that shared library project. But if the application is ADF security enabled then it is little difficult to perform exact test cases what we do when it is integrated with main application after fix. Because all the security settings are in main application jazn-data.xml file.

We can disable security for a while and test the application. But it is not a good idea. Because by disabling security we are not doing full testing at all.

So how to overcome this situation?  

There is a sample way. We can create some dummy test users and test roles in development weblogic server. These test roles names should be same as the one we defined in jazn-data.xml in main application. And assign these roles to users according to test cases. Now we can run the shared library app alone in integrated weblogic server and login with the test users and perform all the tests what we can do with integrated application.

Follow below steps to create test users and test roles.

Log on to weblogic console


Click on Security Realm in left hand side pane.



Click New in the users table to create new users.



Provide User Name and password details. These details are used to log in to application at the time of testing. 


Click on Groups tab under Users and Groups section.


Click on new to create Groups. Provide Group name which is same as the role name in the main application jazn-data.xml file.


Now assign these groups to users according to the test cases.


After this settings, now we can run the shared lib in integrated weblogic server and login with test users and perform all the test cases.

Comments

Popular posts from this blog

Oracle OIM - Search and Update Organization using java API

BEA-000362 Server failed. Reason: [Management:141268]Parsing Failure in config.xml

oracle.jbo.InvalidOperException: JBO-25221