{"id":29690281,"url":"https://github.com/zoxive/httploadtesting","last_synced_at":"2025-07-23T06:06:37.121Z","repository":{"id":11412436,"uuid":"69597152","full_name":"Zoxive/HttpLoadTesting","owner":"Zoxive","description":"Load testing client + framework","archived":false,"fork":false,"pushed_at":"2023-02-15T10:57:41.000Z","size":268,"stargazers_count":6,"open_issues_count":12,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T09:50:11.923Z","etag":null,"topics":["http","load-testing"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zoxive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-29T18:43:34.000Z","updated_at":"2021-11-29T22:46:17.000Z","dependencies_parsed_at":"2023-02-18T05:45:46.434Z","dependency_job_id":null,"html_url":"https://github.com/Zoxive/HttpLoadTesting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Zoxive/HttpLoadTesting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zoxive%2FHttpLoadTesting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zoxive%2FHttpLoadTesting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zoxive%2FHttpLoadTesting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zoxive%2FHttpLoadTesting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zoxive","download_url":"https://codeload.github.com/Zoxive/HttpLoadTesting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zoxive%2FHttpLoadTesting/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266626115,"owners_count":23958344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http","load-testing"],"created_at":"2025-07-23T06:06:36.576Z","updated_at":"2025-07-23T06:06:37.113Z","avatar_url":"https://github.com/Zoxive.png","language":"C#","readme":"# HttpLoadTesting\n\nHTTP Load testing when single HTTP endpoint is not enough.\n\nAllows you to write test scenarios.\n\nInstall via nuget\n\n```Install-Package Zoxive.HttpLoadTesting.Client```\n\n\n```csharp\n// Test\npublic class ReadAPost : ILoadTest\n{\n    public string Name =\u003e \"ReadAPost\";\n\n    public Task Initialize(ILoadTestHttpClient loadTestHttpClient)\n    {\n    \t// nothing to initialize\n        return Task.FromResult(0);\n    }\n\n\tpublic async Task Execute(ILoadTestHttpClient loadTestHttpClient)\n\t{\n        // Simulate user delay in clicking (User think time)\n\t\tawait loadTestHttpClient.DelayUserClick();\n\n\t\t// User had to open the post\n\t\tawait loadTestHttpClient.Get(\"posts/1\");\n\n\t\t// User thinking and typing\n\t\tawait loadTestHttpClient.DelayUserThink()\n\n\t\tvar comment = new Dictionary\u003cstring, object\u003e\n\t\t{\n\t\t\t{\"name\", \"HttpLoadTesting\"},\n\t\t\t{\"email\", \"vel+minus+molestias+voluptatum@omnis.com\"},\n\t\t\t{\"body\", \"Comment body\"}\n\t\t};\n\n\t\tawait loadTestHttpClient.Post(\"posts/1/comments\", comment);\n\t}\n}\n\n// Console Application\npublic class Program\n{\n    public static void Main(string[] args)\n    {\n        // Specify schedules. Add a few users run for a while and remove them. You can run any schedule in any order.\n        // As long as you have active users!\n        var schedule = new List\u003cISchedule\u003e\n        {    \n            // Add Users over a period of time\n            new AddUsers(totalUsers: 10, usersEvery: 2, seconds: 5),\n            // Run for a duration of time\n            new Duration(0.25m),\n            // Remove Users over a period of time\n            new RemoveUsers(usersToRemove: 10, usersEvery:2, seconds: 1)\n        };\n\n        // Create as many tests as you want to run\n        // These are the tests each User will run round robin style\n        var tests = new List\u003cILoadTest\u003e\n        {\n            new ReadAPost()\n        };\n\n        // Create one or more \"HttpUsers\".\n        // This is essentually the HTTP Connection each simulated user will use. Round robin style\n        var users = new List\u003cIHttpUser\u003e\n        {\n            new HttpUser(\"https://jsonplaceholder.typicode.com/\", tests)\n            {\n                // Specify any properties i need on HttpClient. Like header values!\n                AlterHttpClient = SetHttpClientProperties,\n                // Specify any properties i need on HttpClientHandler. Like Cookies!\n                AlterHttpClientHandler = SetHttpClientHandlerProperties\n            }\n        };\n\n        var testExecution = new LoadTestExecution(users);\n        \n        // Run the Tests!\n        WebClient.Run(testExecution, schedule);\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoxive%2Fhttploadtesting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoxive%2Fhttploadtesting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoxive%2Fhttploadtesting/lists"}