如何测试我的Windows应用程序 [英] How to test my windows application

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

问题描述

Hi
我使用C#Windows Applicaton创建了一个聊天客户端。

它只是通过使用表单和类来实现的......没有业务逻辑......或者UML ......

如何测试我的应用程序。我认为对于单元测试,这个编码不合适,,,

我想得到可能的错误和功能障碍,,,,



请帮助

Hi I have created a chat client using C# Windows Applicaton.
It's made just by using Forms and classes... No Business Logic.... or UML...
How can I test my application. I think for Unit test, This coding will not be suitable,,,
I want to get the possible errors and dysfunctions,,,,

Please help

推荐答案

单元测试只是故事的一部分,例如:Wikipedia上的软件测试 [ ^ ]。
Unit testing is just a part of the story, see, for instance: "Software testing at Wikipedia"[^].


如果您的内联网聊天应用程序意味着您想要使用套接字编程为客户端和服务器指定。



如果您为自己的系统编写聊天,请创建两个实例作为客户端和服务器,然后开始从服务器向客户端发送消息,反之亦然。
If your chat application for intranet means u want specify for client and servers by using sockets programming.

if you written for your own system chatting, create two instance as client and server then start sending message from server to client vice versa.


yep,, its working perfect,... But when we install client, Its hitting some issues....

如果你花时间描述你的问题,你会得到更好的回应打,并提出具体问题。我们无法理解您的想法。



特定错误的描述,以及精心挑选的代码示例,可以让人们在这里为您提供有关如何实施测试的想法分析这些错误并纠正它们。如果你花时间描述你正在打击的问题并提出具体问题,你会得到更好的回答。我们无法理解您的想法。



特定错误的描述,以及精心挑选的代码示例,可以让人们在这里为您提供有关如何实施测试的想法分析这些错误并进行更正。



显而易见的第一步是隔离代码中发生错误的特定位置,并记录特定的错误消息。



在代码中设置断点,并继续设置它们,直到您能够准确地看到错误发生的位置。此时,单步进入区域/块/方法/无论发生错误的位置,仔细检查任何变量或数据结构的状态,将其当前值与预期值进行比较。



在这种情况下,考虑到应用程序的网络流量方面,您可能需要安装或使用某些网络监控软件:如果您已经在某种程度上隔离了问题,那么您再次让这里的人们能够以最有效的方式分享他们的想法,以拦截/分析网络交流。

You will get better responses if you take the time to describe what "issues" you are "hitting," and ask specific questions. We cannot read your mind.

A description of specific errors, accompanied by carefully selected code samples, can enable people here to give you ideas about how you can implement testing to analyze these errors, and correct them.You will get better responses if you take the time to describe what "issues" you are "hitting," and ask specific questions. We cannot read your mind.

A description of specific errors, accompanied by carefully selected code samples, can enable people here to give you ideas about how you can implement testing to analyze these errors, and correct them.

An obvious first step is to isolate the specific place in your code where errors occur, and to document the specific error messages.

Set break-points in your code, and keep on setting them, until you are able to precisely see where an error occurs. At that point, single step into the zone/block/method/whatever where the error occurs, carefully examining the state of any variables, or data-structures, comparing their current values with expected values.

In this case, given the network-traffic aspect of your application, you may need to install, or use, some network monitoring software: once again, if you have isolated the problems to some degree, then you enable people here to share their ideas for the most productive way to intercept/analyze network exchanges.


这篇关于如何测试我的Windows应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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