需要DataDrive方法 [英] Need to DataDrive methods

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

问题描述

嗨朋友,


我有方法Login(),AddRecord()和Logout()..


我有MSAccess具有UserName和密码的登录


我有MSAccess  模块表,其中包含通过AddRecord()方法添加的记录


我需要运行数据驱动的测试


对于每个登录的用户,必须通过datadriven和logout添加Module表中的记录。


再次从登录表中通过下一个用户登录,必须添加模块表中的记录并注销...


我如何实现这一目标? / p>

如果我在
模块表中的登录 3行中有2行,那么


必须使用第一位用户登录并且必须添加3条记录并注销。


然后


必须使用 第二个用户登录并且必须添加3条记录并注销

解决方案

您必须创建6行d ata有两列  - 一个用于登录,另一个用于模块。


Hi buddies,

I have methods Login(), AddRecord() and Logout()..

I have MSAccess Login table which have UserName and Passwords

I have MSAccess Module table which have records to added via AddRecord() method

I need to run data driven test

For every logged in user, have to add records which are in Module table via datadriven and logout.

Again login via next user from Login table, have to add records which are in Module table and logout...

How can i achieve this?

If i have 2 rows in Login and 3 rows in Module table, then

Have to Login using first user and have to add 3 records and logout.

then

Have to Login using 2nd user and have to add 3 records and logout

解决方案

You will have to create 6 rows of data with two columns - one for Login and another for Module.


这篇关于需要DataDrive方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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