AzMan的与实施方案的授权自动化测试 [英] Automated testing of authorization scenarios implemented with AzMan

查看:425
本文介绍了AzMan的与实施方案的授权自动化测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用AzMan的授权授予不同的功能,不同的用户的web应用程序。
我刚刚开始使用华廷,以实现在Visual Studio团队系统/ TFS运行一些自动化的Web UI测试。我希望能够用它来验证不同的授权方案。要做到这一点,虽然我需要能够运行不同的测试,谁被授予AzMan的通过不同权(使用虚拟测试帐号)不同的用户。

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).

有没有人有经验,AzMan的授权自动化测试?

Does anyone have experience with automating testing of AzMan authorization?

如何TFS下运行VS单位测试,不同的用户?

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

推荐答案

这是您使用的身份验证会影响你如何能做到这一点的方法。

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

如果您使用的是集成安全性(Windows验证),其中一个方法可能是运行华廷测试,使用模拟其他Windows用户。

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

如果您正在使用窗体身份验证,那么你可以只使用华廷登录为不同的用户,因为它只是纯网络邮政/ GET的。

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.

这篇关于AzMan的与实施方案的授权自动化测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆