更改登录用户名和密码使用编码的UI测试 [英] Change login User name and password Using coded UI test

查看:149
本文介绍了更改登录用户名和密码使用编码的UI测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更改登录用户名和密码使用编码的UI测试,如何更改浏览器的登录名和用户名?假设我想测试在我的Web应用程序上具有不同权限的不同帐户?

Change login User name and password Using coded UI test, How would I change the login and username of the browser? Say i want to test different accounts that have different permissions on my Web App?

推荐答案

您可以使用以下任何一种重载功能来启动AuT

You can use any one of the following overload function to Launch AuT

public static ApplicationUnderTest Launch(ProcessStartInfo startInfo);
$
public static ApplicationUnderTest Launch(string fileName,string alternateFileName,string arguments,string userName,SecureString password,string domain) ;

public static ApplicationUnderTest Launch(ProcessStartInfo startInfo);
public static ApplicationUnderTest Launch(string fileName, string alternateFileName, string arguments, string userName, SecureString password, string domain);

fileName =>要启动的浏览器的路径

fileName => The path to the browser you want to launch

alternateFileName =>使用环境变量给出的备用名称

alternateFileName => Anternate name given using environment variable

arguments =>提供给应用程序的参数。如果是浏览器,您可以传递网址。

arguments => Parameters supplied to the application. In case of Browser you can pass the URL.

-Deepak。

 


这篇关于更改登录用户名和密码使用编码的UI测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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