public async Task Execute(IUserLoadTestHttpClient loadLoadTestHttpClient)
        {
            await loadLoadTestHttpClient.DelayUserClick();

            var postId = (string)loadLoadTestHttpClient.TestState[PostId];

            await loadLoadTestHttpClient.Get($"posts/{postId}");

            await loadLoadTestHttpClient.DelayUserThink();

            var comment = new Dictionary <string, object>
            {
                { "name", "HttpLoadTesting" },
                { "email", "*****@*****.**" },
                { "body", "Comment body" }
            };

            await loadLoadTestHttpClient.Post($"posts/{postId}/comments", comment);
        }
Exemplo n.º 2
0
        public async Task Execute(IUserLoadTestHttpClient loadLoadTestHttpClient)
        {
            //await loadLoadTestHttpClient.DelayUserClick();

            await loadLoadTestHttpClient.Get("");
        }
Exemplo n.º 3
0
        public async Task Execute(IUserLoadTestHttpClient loadTestHttpClient)
        {
            await loadTestHttpClient.Get("");

            //await Task.Delay(50);
        }