white学习1(入门篇)
来源:互联网 发布:成都旅游省钱 知乎 编辑:程序博客网 时间:2024/05/17 22:43
官方网址:http://white.codeplex.com/
简单使用: 1、下载解压White_Bin_0.18.zip(具体看最新的压缩包) 2、导入相关dll 3、编写测试代码 using System; using System.Collections.Generic; using System.Text; using Core.UIItems.WindowItems; using Core.UIItems; using Core; using NUnit.Framework; using Core.Factory; namespace WhiteTest1 { [TestFixture] public class Class1 { private string path = @"E:/tmp/AutoBuild/Latest/MyProject/MyProject/bin/Debug/MyProject.exe"; [Test] public void ButtonClickable_btnClick1_ChangesText() { Application application = Application.Launch(path); Window window = application.GetWindow("Form1", InitializeOption.NoCache); Button button = window.Get<Button>("button1"); button.Click(); Label label = window.Get<Label>("label1"); Assert.AreEqual("OK!", label.Text); } } } 4、像运行Nunit测试一样运行White测试 本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/Testing_is_believing/archive/2009/11/11/4797026.aspx
上面是转了陈能技老师写的入门篇,white真的是很好用的开源测试工具,下面是本人学习官方资料的笔记。
- white学习1(入门篇)
- white学习13(官方网站的内容),介绍White.NUnit
- white学习2(官方网站的内容)
- white学习3(官方网站的内容)
- white学习4(官方网站的内容)
- white学习5(官方网站的内容)
- white学习6(官方网站的内容)
- white学习7(官方网站的内容)
- white学习8(官方网站的内容)
- white学习9(官方网站的内容)
- white学习10(官方网站的内容)
- white学习10(官方网站的内容)
- white学习11(官方网站的内容)
- white学习14(官方网站的内容)
- white学习15(官方网站的内容)
- white学习16(官方网站的内容)
- White, Black and White Again )(CodeForces
- White
- install pear
- linux 启动
- 导向恶意网站的搜索引擎搜索结果
- 会感染电脑的恶意Flash文件
- HTTP cookies, or how not to design protocols
- white学习1(入门篇)
- [4.26]周二
- Context Awareness Computing
- 近期计划
- 新来的朋友!
- Tomcat+JSP经典配置
- DriverInfo类
- 职场常识
- C# winform 获取网页的图片验证码,并显示