文件名称:guitestfirst
介绍说明--下载内容来自于网络,使用问题请自行百度
《使用测试优先方法开发用户界面》
测试优先是测试驱动开发(Test-Driven Development, TDD)的核心思想,它要求在编写产品代码前先编写基于产品代码的测试代码。在测试驱动开发的单元测试中,对GUI应用实施自动测试应该是测试驱动开发的软肋之一。由于界面的操作是有由人来完成的,所以要想在GUI中完成单元自动测试是有一定难度的。Kent Beck在它的《测试驱动开发》中就曾提到过这个问题。
本文将通过一个例子来讲解在测试驱动开发中如何针对GUI进行单元测试。这个例子是David Astels著的《测试驱动开发实用指南(影印版)》中一个关于影片列表管理的例子。该书中文版即将在国内出版。书中讨论并介绍了开发这个例子的多种方法。笔者将介绍其中的一种,并且为了方便使用C++的朋友的学习,书中的代码我用C++写了一遍,类名和变量名尽量和原书保持一致,以方便阅读该书的C++读者。在此也要感谢David Astels给我们带来如此精彩的一本书。
本文叙述背景为:CppUnit1.9.0, Visual C++ 6.0, Windows2000 pro-"priority use of test methods developed user interface" priority testing is test-driven development (Test-Dri ven Development, TDD), the core ideas It requires the preparation of products prior to the preparation of code based on the product code of test code. In test-driven development of unit testing, the introduction of the automated GUI application testing should be test-driven development one of the weak links. Interface operation is to be completed by the people, in order to complete GUI module automatically tests are necessarily difficult. Kent Beck, in its "test-driven development" had mentioned this issue. This will be an example to explain the test-driven development in how to address GUI unit test. This is David Astels example of a "test-driven developme
测试优先是测试驱动开发(Test-Driven Development, TDD)的核心思想,它要求在编写产品代码前先编写基于产品代码的测试代码。在测试驱动开发的单元测试中,对GUI应用实施自动测试应该是测试驱动开发的软肋之一。由于界面的操作是有由人来完成的,所以要想在GUI中完成单元自动测试是有一定难度的。Kent Beck在它的《测试驱动开发》中就曾提到过这个问题。
本文将通过一个例子来讲解在测试驱动开发中如何针对GUI进行单元测试。这个例子是David Astels著的《测试驱动开发实用指南(影印版)》中一个关于影片列表管理的例子。该书中文版即将在国内出版。书中讨论并介绍了开发这个例子的多种方法。笔者将介绍其中的一种,并且为了方便使用C++的朋友的学习,书中的代码我用C++写了一遍,类名和变量名尽量和原书保持一致,以方便阅读该书的C++读者。在此也要感谢David Astels给我们带来如此精彩的一本书。
本文叙述背景为:CppUnit1.9.0, Visual C++ 6.0, Windows2000 pro-"priority use of test methods developed user interface" priority testing is test-driven development (Test-Dri ven Development, TDD), the core ideas It requires the preparation of products prior to the preparation of code based on the product code of test code. In test-driven development of unit testing, the introduction of the automated GUI application testing should be test-driven development one of the weak links. Interface operation is to be completed by the people, in order to complete GUI module automatically tests are necessarily difficult. Kent Beck, in its "test-driven development" had mentioned this issue. This will be an example to explain the test-driven development in how to address GUI unit test. This is David Astels example of a "test-driven developme
(系统自动生成,下载前可以参看下载内容)
下载文件列表
guitestfirst
guitestfirst/Movie
guitestfirst/Movie/ReadMe.txt
guitestfirst/Movie/Movie.def
guitestfirst/Movie/StdAfx.cpp
guitestfirst/Movie/res
guitestfirst/Movie/res/Movie.rc2
guitestfirst/Movie/MovieListEditor.cpp
guitestfirst/Movie/Movie.cpp
guitestfirst/Movie/StdAfx.h
guitestfirst/Movie/MovieListEditor.h
guitestfirst/Movie/Resource.h
guitestfirst/Movie/Movie.rc
guitestfirst/Movie/MovieListWindow.h
guitestfirst/Movie/MovieListWindow.cpp
guitestfirst/Movie/Movie.dsp
guitestfirst/GuiTestFirst
guitestfirst/GuiTestFirst/ReadMe.txt
guitestfirst/GuiTestFirst/GuiTestFirst.h
guitestfirst/GuiTestFirst/GuiTestFirstDlg.h
guitestfirst/GuiTestFirst/GuiTestFirstDlg.cpp
guitestfirst/GuiTestFirst/StdAfx.h
guitestfirst/GuiTestFirst/StdAfx.cpp
guitestfirst/GuiTestFirst/res
guitestfirst/GuiTestFirst/res/GuiTestFirst.rc2
guitestfirst/GuiTestFirst/res/GuiTestFirst.ico
guitestfirst/GuiTestFirst/Resource.h
guitestfirst/GuiTestFirst/GuiTestFirst.rc
guitestfirst/GuiTestFirst/TestWidgets.h
guitestfirst/GuiTestFirst/TestWidgets.cpp
guitestfirst/GuiTestFirst/GuiTestFirst.cpp
guitestfirst/GuiTestFirst/SuiteName.h
guitestfirst/GuiTestFirst/TestFirstSuite.h
guitestfirst/GuiTestFirst/TestFirstSuite.cpp
guitestfirst/GuiTestFirst/mockEditor.h
guitestfirst/GuiTestFirst/mockEditor.cpp
guitestfirst/GuiTestFirst/GuiTestFirst.dsw
guitestfirst/GuiTestFirst/TestOperation.h
guitestfirst/GuiTestFirst/TestOperation.cpp
guitestfirst/GuiTestFirst/GuiTestFirst.dsp
guitestfirst/AppMovieList
guitestfirst/AppMovieList/ReadMe.txt
guitestfirst/AppMovieList/AppMovieList.h
guitestfirst/AppMovieList/AppMovieList.cpp
guitestfirst/AppMovieList/StdAfx.h
guitestfirst/AppMovieList/StdAfx.cpp
guitestfirst/AppMovieList/Resource.h
guitestfirst/AppMovieList/AppMovieList.rc
guitestfirst/AppMovieList/res
guitestfirst/AppMovieList/res/AppMovieList.rc2
guitestfirst/AppMovieList/res/AppMovieList.ico
guitestfirst/AppMovieList/AppMovieListDlg.h
guitestfirst/AppMovieList/AppMovieListDlg.cpp
guitestfirst/AppMovieList/MyEditor.h
guitestfirst/AppMovieList/MyEditor.cpp
guitestfirst/AppMovieList/AppMovieList.dsp
www.dssz.com.txt
guitestfirst/Movie
guitestfirst/Movie/ReadMe.txt
guitestfirst/Movie/Movie.def
guitestfirst/Movie/StdAfx.cpp
guitestfirst/Movie/res
guitestfirst/Movie/res/Movie.rc2
guitestfirst/Movie/MovieListEditor.cpp
guitestfirst/Movie/Movie.cpp
guitestfirst/Movie/StdAfx.h
guitestfirst/Movie/MovieListEditor.h
guitestfirst/Movie/Resource.h
guitestfirst/Movie/Movie.rc
guitestfirst/Movie/MovieListWindow.h
guitestfirst/Movie/MovieListWindow.cpp
guitestfirst/Movie/Movie.dsp
guitestfirst/GuiTestFirst
guitestfirst/GuiTestFirst/ReadMe.txt
guitestfirst/GuiTestFirst/GuiTestFirst.h
guitestfirst/GuiTestFirst/GuiTestFirstDlg.h
guitestfirst/GuiTestFirst/GuiTestFirstDlg.cpp
guitestfirst/GuiTestFirst/StdAfx.h
guitestfirst/GuiTestFirst/StdAfx.cpp
guitestfirst/GuiTestFirst/res
guitestfirst/GuiTestFirst/res/GuiTestFirst.rc2
guitestfirst/GuiTestFirst/res/GuiTestFirst.ico
guitestfirst/GuiTestFirst/Resource.h
guitestfirst/GuiTestFirst/GuiTestFirst.rc
guitestfirst/GuiTestFirst/TestWidgets.h
guitestfirst/GuiTestFirst/TestWidgets.cpp
guitestfirst/GuiTestFirst/GuiTestFirst.cpp
guitestfirst/GuiTestFirst/SuiteName.h
guitestfirst/GuiTestFirst/TestFirstSuite.h
guitestfirst/GuiTestFirst/TestFirstSuite.cpp
guitestfirst/GuiTestFirst/mockEditor.h
guitestfirst/GuiTestFirst/mockEditor.cpp
guitestfirst/GuiTestFirst/GuiTestFirst.dsw
guitestfirst/GuiTestFirst/TestOperation.h
guitestfirst/GuiTestFirst/TestOperation.cpp
guitestfirst/GuiTestFirst/GuiTestFirst.dsp
guitestfirst/AppMovieList
guitestfirst/AppMovieList/ReadMe.txt
guitestfirst/AppMovieList/AppMovieList.h
guitestfirst/AppMovieList/AppMovieList.cpp
guitestfirst/AppMovieList/StdAfx.h
guitestfirst/AppMovieList/StdAfx.cpp
guitestfirst/AppMovieList/Resource.h
guitestfirst/AppMovieList/AppMovieList.rc
guitestfirst/AppMovieList/res
guitestfirst/AppMovieList/res/AppMovieList.rc2
guitestfirst/AppMovieList/res/AppMovieList.ico
guitestfirst/AppMovieList/AppMovieListDlg.h
guitestfirst/AppMovieList/AppMovieListDlg.cpp
guitestfirst/AppMovieList/MyEditor.h
guitestfirst/AppMovieList/MyEditor.cpp
guitestfirst/AppMovieList/AppMovieList.dsp
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.