Automated testing of authorization scenarios implemented with AzMan

我只是一个虾纸丫 提交于 2019-12-12 01:17:17

问题


I have a web application that uses AzMan authorization to grant different functionality to different users. I've just started using WatiN to implement some automated web UI tests that run under Visual Studio Team System/TFS. I'd like to be able to use it to verify the different authorization scenarios. To do this though I'd need to be able to run different tests as different users who are granted differing rights through AzMan (using dummy test accounts).

Does anyone have experience with automating testing of AzMan authorization?

How about running VS "unit" tests as different users under TFS?


回答1:


The method that you use for authentication will affect how you can do this.

If you are using Integrated Security (Windows auth) then one way could be to run your WatiN tests as other Windows users using impersonation.

If you are using Forms Authentication then you can just use WatiN to log in as the different users because it's just "pure web" POST's/GET's.



来源:https://stackoverflow.com/questions/922501/automated-testing-of-authorization-scenarios-implemented-with-azman

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!