unit-testing - WatiN 测试记录器 : How to get the compiled code in C# from the steps the recorder records

标签 unit-testing testing automation automated-tests watin

我是第一次使用Watin Test Recorder,已经打开IE等记录了测试,给的URL是http://www.google.com然后在谷歌的文本框中输入一些东西

有什么方法可以让我在 Watin 中获得相同步骤的 C# 等效代码

最佳答案

假设您使用的是 V2.0 的记录器,您应该能够将 C# 代码复制到 剪贴板并从那里做你喜欢的事。

看这个:http://www.viewletcentral.com/vc/viewlet/684114871/ . 显示复制到剪贴板的大约一半。

关于unit-testing - WatiN 测试记录器 : How to get the compiled code in C# from the steps the recorder records,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7417990/

相关文章:

c# - 测试 Linq 查询 EF 和存储库模式

ruby-on-rails - Ruby on Rails - 测试时的 TDD 测试错误

java - 并行自动化测试和线程安全变量

python - Pywinauto 计时等待 0.5 秒而不是立即

excel - 在打开的Word文档中找到未知的姓名和姓氏,将其复制并使用excel VBA粘贴到excel .activesheet中的单元格A12中

ios - 如何从 OCMock 开始并检查方法是否被调用

unit-testing - OCUnit:如何在不启动 iPhone 模拟器的情况下运行测试?

ios - 如何为自定义 XCTest 断言编写自动化测试?

python - 模拟父类(super class) __init__ 方法或父类(super class)作为一个整体进行测试

testing - iOS试飞应用安装失败