编写自动化测试应用程序 [英] Write Automated Testing Application

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

问题描述

大家好,

我想编写一个C#应用程序,该应用程序可以通过IP或USB连接将击键推到另一台计算机上,以自动进行软件测试.

我们的应用程序(待测试)是一个桌面应用程序,可提供调查表并记录用户的回复.我的测试应用程序需要读取我们的数据库(以获取问题类型和回答范围),并将击键推到另一台运行我们的问卷软件的计算机上以回答问卷.因此,测试软件基本上可以充当被测试计算机/应用程序的键盘.

我将不胜感激有关如何完成此操作的任何建议.您将使用IP还是USB?您如何将击键发送到另一台计算机以控制正在测试的应用程序?

感谢您的任何见识.

Hi Guys,

I''d like to write a C# application that can push keystrokes over an IP or USB connection to another computer to automate software testing.

Our application (to be tested) is a desktop application that provides a questionnaire and records user responses. My testing application needs to read our database (to get question type and response range) and push keystrokes to another computer running our questionnaire software to answer the questionnaires. So, the testing software would basically be acting as a keyboard for the computer/application being tested.

I would appreciate any suggestions on how to accomplish this. Would you use IP or USB? How would you send keystrokes to the other computer to control the application being tested?

Thanks for any insight.

推荐答案

最好的方法之一是使用套接字进行通信,否则更简单的方法开始使用wcf服务.在您从数据库中获取问题的地方托管一个WCF服务,在另一端(桌面应用程序)托管一个WCF服务,在那里您显示调查表应该使用此WCF服务.
One the best approach is to use sockets for communication else easier approach start using the wcf service. host a WCF service in the place where u fetch the questions from database and the another end (desktop application) where u show the questionnaire should consume the this WCF service.


确定应用程序的行为在多个操作系统和虚拟化环境中,AppDNA软件可提供准确性,对应用程序行为的深刻见解以及可观的时间节省,因此您可以测试各种部署选项并为您的组织做出正确的选择.使用应用程序管理ROI计算器估算节省时间和成本的自动化应用程序管理.

提供深入的应用程序兼容性和迁移测试:
AppDNA软件可自动执行应用程序兼容性和迁移测试,从而深入了解企业中各个应用程序组合中的应用程序行为.
AppDNA软件通常存储68,000多个应用程序数据点,称为应用程序的"DNA",它确定应用程序在多种操作系统和虚拟化环境下的行为.广泛的功能使您可以测试应用程序与Windows 7,Citrix XenApp,Microsoft App-V,Windows Server 2008 R2和Web应用程序的兼容性.

应用独特的算法应用程序测试:
基于复杂的启发式算法而不是严格的规则,AppDNA软件可以唯一地询问应用程序的安装配置文件,API使用情况和其他组件,以揭示应用程序的行为和问题. AppDNA软件可以从操作系统中提取相似的DNA配置文件,无论是现成的原始"版本还是整套定制的OS映像.

通过自动化测试确保准确性:
AppDNA软件算法的深度和灵活性提供了比其他应用程序测试选项更高的准确性. AppDNA软件无需部署应用程序和代理或尝试使用应用程序的所有功能以期发现问题,而是使您可以将静态分析替换为动态分析,从而将过程减少到数天而不是数周或数月. br/>
简化困难应用程序的测试:
AppDNA软件分析包括MSI和EXE在内的多种安装格式,使您能够像现在的商业应用程序一样轻松地测试内部开发的应用程序和遗留的商业应用程序.由于不需要运行甚至不需要安装任何应用程序,因此AppDNA软件可以在几小时或几天内测试包含数百个应用程序的试点项目或整个15,000个应用程序组合.

简化Web应用程序兼容性测试:
AppDNA软件使您可以使用AppDNA软件来管理Web应用程序兼容性测试,从而简化Internet Explorer 8或9的发布. AppDNA软件采用自动抓取技术来遍历和分析Web应用程序.
Determining the behavior of applications across multiple operating systems and virtualization environments, AppDNA software provides accuracy, deep insight about application behavior and incredible time savings so you can test a variety of deployment options and make the right choices for your organization. Estimate the time and cost savings automating application management with the application management ROI calculator.

Provide deep application compatibility and migration testing:
AppDNA software automates application compatibility and migration testing, providing deep insight into application behavior across the application portfolios in the enterprise.
Typically storing over 68,000 application data points, known as the application''s "DNA," AppDNA software determines the behavior of the application against multiple operating systems and virtualization environments. Broad functionality lets you test application compatibility against Windows 7, Citrix XenApp, Microsoft App-V, Windows Server 2008 R2 and web applications.

Apply unique algorithmic application testing:
Based on sophisticated heuristic algorithms instead of rigid rules, AppDNA software uniquely interrogates the application''s installation profile, API usage and other components to expose application behaviors and issues. AppDNA software extracts a similar DNA profile from an OS, whether a "vanilla" out-of-the box version or an entire set of customized OS images.

Ensure accuracy with automated testing:
The depth and flexibility of AppDNA software algorithms provide far greater accuracy than other application testing options. Instead of having to deploy applications and agents or try to use all of an application''s functionality in the hope of finding issues, AppDNA software lets you replace dynamic analysis with static analysis to reduce the process to days rather than weeks or months.

Simplify testing of difficult applications:
AppDNA software analyzes a wide variety of installation formats, including MSI and EXE, enabling you to test in-house developed applications and legacy commercial applications as easily as current commercial applications. Because no applications need to be run or even installed, AppDNA software can test either a pilot project of a few hundred applications or an entire 15,000 application portfolio in a matter of hours or days.

Simplify web application compatibility testing:
AppDNA software lets you simplify rollouts of Internet Explorer 8 or 9 by using AppDNA software to manage web application compatibility testing. AppDNA software employs automatic spidering technology to traverse and analyze web applications.


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

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