GithubHelp home page GithubHelp logo

beetle.dt's Introduction

Beetle.DT(分布式压力测试工具)

基于.NET实现的分布式压力测试工具,用户可以根据需求编写相关的测试用例;通过工具的管理界面即可以把测试用例推送到服务中心, 再根据实际压测的需求把测试用例分配到不同节点上运行。工具会根据测试的情况实时获取测试结果,测试完成后用户还可以查询具体 的测试报告。节点采用进程隔离的方式运行测试用例,所以测试用例的运行都是相互独立。 image

工具结构

工具分为三个主要部分,分别是:管理中心,节点和用户管理端。在部署了管理中心和节点后,用户就可以通过管理端进行测试用例管理,运行和监控的操作。 image image image

配置管理中心

Beetle.DTCenter.exe

   管理中心服务端口
   <add key="server-host" value=""/>
  <add key="server-port" value="9091"/>
   用户管理端服务端口
  <add key="manager-host" value=""/>
  <add key="manager-port" value="9092"/>

配置节点

Beetle.DTNode.exe

 设置管理中心的服务端口
 <appSettings>
  <!-- ... -->
  <add key="server-host" value="127.0.0.1"/>
  <add key="server-port" value="9091"/>
  <!-- ... -->
</appSettings>

编写测试用例

	public class Test : TestCase<Config>
	{
		public override string Name
		{
			get
			{
				return "httptest";
			}
		}

		protected override void OnExecute()
		{
			System.Net.WebRequest wReq = System.Net.WebRequest.Create(Config.Url);
			System.Net.WebResponse wResp = wReq.GetResponse();
			System.IO.Stream respStream = wResp.GetResponseStream();
			using (System.IO.StreamReader reader = new System.IO.StreamReader(respStream, Encoding.UTF8))
			{
				reader.ReadToEnd();
			}
		}
	}

	public class Config
	{

		public string Url { get; set; }
	}

beetle.dt's People

Contributors

beetlex-io avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.