首页> 外文期刊>MSDN Magazine >Request/Response Testing With Windows PowerShell
【24h】

Request/Response Testing With Windows PowerShell

机译:使用Windows PowerShell进行请求/响应测试

获取原文
获取原文并翻译 | 示例
           

摘要

The most fundamental form of Web testing is HTTP request/response testing. This involves programmatically sending an HTTP request to the Web application, fetching the HTTP response, and examining the response for an expected value. When you need to perform request/response testing for ASP.NET applications, there are a number of approaches from which you can choose. You can write a C# or Visual Basic~(R) console application. You can write JavaScript or Perl scripts. If you're a glutton for punishment you can write a C/C++ program. And nowadays, you can use Windows PowerShell~(TM). I've used many of these techniques, and Windows PowerShell has become my preferred method for lightweight HTTP reauest/resDonse testing. I can simply write a small Windows PowerShell script that programmatically posts information to an ASP.NET application on a Web server. The script can then retrieve the HTTP response and examine it for an expected value to determine a pass/fail result. In this months column, I will show you how to use Windows PowerShell to perform request/response testing for an ASP.NET application. I'll assume you have at least some basic familiarity with ASP.NET and with Windows PowerShell. But even if these topics are new to you, you should still be able to follow this discussion without too much trouble.
机译:Web测试的最基本形式是HTTP请求/响应测试。这涉及以编程方式将HTTP请求发送到Web应用程序,获取HTTP响应以及检查响应的期望值。当您需要对ASP.NET应用程序执行请求/响应测试时,可以选择多种方法。您可以编写C#或Visual Basic〜(R)控制台应用程序。您可以编写JavaScript或Perl脚本。如果您是惩罚的嘴,则可以编写C / C ++程序。现在,您可以使用Windows PowerShell〜(TM)。我已经使用了许多这些技术,并且Windows PowerShell已成为我进行轻量级HTTP reauest / resDonse测试的首选方法。我可以简单地编写一个小的Windows PowerShell脚本,该脚本以编程方式将信息发布到Web服务器上的ASP.NET应用程序。然后,脚本可以检索HTTP响应并检查其期望值以确定通过/失败结果。在本月的专栏中,我将向您展示如何使用Windows PowerShell对ASP.NET应用程序执行请求/响应测试。我假设您至少对ASP.NET和Windows PowerShell具有一些基本的了解。但是,即使您不熟悉这些主题,您也仍然可以在没有太多麻烦的情况下继续进行此讨论。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号