简体   繁体   English

使用 C# 实现 HttpWatch 自动化的最佳方法是什么?

[英]What is the best approach to HttpWatch automation with C#?

We decided to automate manual Httpwatch pro testing.我们决定自动化手动 Httpwatch 专业测试。 Basically we are going to create a tool that will run in the background while the manual testers do their testing going through our website and the tool will check the tags and values.基本上,我们将创建一个在后台运行的工具,而手动测试人员通过我们的网站进行测试,该工具将检查标签和值。 What is the best approach for this?最好的方法是什么? it looks like we need something like this:看起来我们需要这样的东西:

if title of page is x

  if tag is y 

    if value is z then pass else fail.

Looks like x, y and z should be hardcoded (or put into database or flat file manually beforehand).看起来 x、y 和 z 应该是硬编码的(或事先手动放入数据库或平面文件)。 Is there something I am missing?有什么我想念的吗? what is your approach?你的方法是什么?

Thanks,谢谢,

Is using Httpwatch important for your project?使用 Httpwatch 对您的项目重要吗? If you are familiar with C#, C++ or Java, then you can do this with HTTP Debugger API. If you are familiar with C#, C++ or Java, then you can do this with HTTP Debugger API.

HTTP Debugger API HTTP 调试器 API

static void api_OnRequestHeader(uint id, string userName, string appName, bool isClient,string ipAddr,string url, string header)
{
    1. get tags from header
    2. check url and tags
}

For the front-end part where you intend to use manual testers, you can use Testing Anywhere to automate the process with functionalities like creating test exes that will allow you to create multiple concurrent sessions on the web application.对于您打算使用手动测试器的前端部分,您可以使用Testing Anywhere通过创建测试 exe等功能来自动化该过程,从而允许您在 web 应用程序上创建多个并发会话。 This will allow you to measure the performance in an automated scenario for multiple number of users.这将允许您在自动化场景中为多个用户测量性能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM