全球数据驱动测试 [英] Global data driven test

查看:91
本文介绍了全球数据驱动测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Coded UI Test实现这一点?

How to implement this using Coded UI Test?

对于每个登录凭据,我测试需要数据驱动功能的网页。换句话说,我的目标是创建一个脚本,其中在每次用户登录后(比方说,3个用户),我运行进一步的数据驱动测试方法(比方说,2个不同的数据驱动控件)。

For each login credentials, I test web pages that needs data-driven functionality. In other words, I aim to create a a script wherein after each user login(lets say, 3 users) I run further data-driven test methods(lets say, 2 different data driven controls).

前:  Foreach用户登录(x用户数)//使用户登录为全局数据驱动

An ex:  Foreach user login (x number of users)// making user login as global data driven

{

   帐户设置(数据驱动)//本地数据驱动

   Account settings (Data-driven)// local data-driven

个人数据
(数据驱动)

}

}

 

谢谢

推荐答案

在数据驱动CSV文件中展开这些组合。因此,CSV中的单个行包含类似

Expand those combinations in your data driving CSV file. So your single row in the CSV contains something like

用户名1,密码1,帐户设置数据1,个人数据1

Username1, password1, account settings data1, personal data1

用户名1,密码1,帐户设置数据3 ,个人数据2

Username1, password1, account settings data3, personal data2

用户名2,密码2,帐户设置数据1,个人数据1

Username2, password2, account settings data1, personal data1

用户名2,密码2,帐户设置数据2,个人数据2

Username2, password2, account settings data2, personal data2


这篇关于全球数据驱动测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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