在运行时生成测试方法 [英] testmethods generation at runtime

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

问题描述



我是C#的新手,我正在编写一个测试项目来测试一个应用程序.申请数据在excel中给出.我想要的是,我必须为Excel中的每个工作表编写一种测试方法.但是excel中的工作表不是固定的,将来可能会更改.
我必须使用一种测试方法为每张图纸动态生成测试方法.
请为此提供任何解决方案.

谢谢,
Rajeev Kumar.

Hi,

I am new to c#, i am writing a test project to test one application. The data for application is given in excel. What i want is, i have to write a test method for each sheet in excel. But the sheets in excel is not fixed, it may be changed in future.
I have to generate test method for each sheet dynamically using one test method.
Please provide any solution for this.

Thanks,
Rajeev Kumar.

推荐答案

尝试,
通过C#从Excel中读取多个工作表 [ ^ ]
http://msdn.microsoft.com/en-us/magazine/cc163536.aspx [ ^ ]
如何从Excel工作表读取和写入数据 [
Try,
Reading multiple worksheets from Excel by C#[^]
http://msdn.microsoft.com/en-us/magazine/cc163536.aspx[^]
how-to-read-and-write-data-from-excel-sheet[^]


这篇关于在运行时生成测试方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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