如何编写测试用例和如何对我的项目进行过程测试 [英] How to Write test cases and How to Proced Test to my project

查看:248
本文介绍了如何编写测试用例和如何对我的项目进行过程测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用VS2010的devexpress orm。在我的项目中包含很多模块和项目。我计划实施Nunit Test。我搜索谷歌。我可以找到一些基本的想法。这意味着如何为ex启动应用程序:1。我们可以创建类liber。 2.下载Nunit Gui。 3.我写了[TestFixture]和测试方法。 4.重建我的项目5.将Dll加载到Nunit GUI。然后它会告诉我结果。我知道这个基础知识。我不知道如何继续下一步。怎么想我的逻辑?我在哪里可以测试,方法,控制器或属性。如何实现..任何人都可以用示例项目来解释我。



谢谢你

Hi I'm using devexpress orm with VS2010. in my project contains lot of modules and projects. i plan to implement Nunit Test. I search it to google. i can find some basic ideas. that means how to start the app for ex: 1. We can create class liber. 2. Download Nunit Gui. 3. I write [TestFixture] and Test methods. 4. Rebuild my project 5. Load the Dll to Nunit GUI. then it'll show me the result. i know this basics. i dont knw how to proceed next step. How to think my logics? where can i test, Methods , Controllers or properties . How to implement.. Can any one Explain me with example projects.

Thank u

推荐答案

持续集成是一种方法。也就是说,您需要一些其他计算机和持续集成软件,它可以轮询您的源代码存储库,更新其本地源,启动项目构建以及单元测试,然后向您发送报告。

大多数示例主要关注UnitTests,即测试单个方法或类的函数。在现有的大型项目中,您更需要集成测试。也就是说,在构建项目之后,将启动另一台计算机并自动部署您的软件。然后进行类似于单元测试的测试,但重点关注软件的较大部分。
"Continuous Integration" is the way to go along. That is, you'll need some other computer with a Continuous Integration software which polls your source code repository, updates its local sources, starts the builds of your projects, and also the unit tests, and then sends reports to you.
Most examples focus on UnitTests proper, i.e. testing of single methods or functions of a class. Within a large existing project, you'd rather need Integration Tests. That is, after your projects were built, another machine is started and your sofwtare is deployed automatically. And then tests similar to the unit tests, but focussing on larger segments of your software are run.


这篇关于如何编写测试用例和如何对我的项目进行过程测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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