bhavinkpatel / jumpcloud_qa_assignment

0 stars 0 forks source link

Application should be able to successfully process multiple connections #14

Open bhavinkpatel opened 3 years ago

bhavinkpatel commented 3 years ago

Test Data / Request / Prerequisite

Test Steps

  1. Start application (/broken-hashserve_darwin)
  2. Enter Sequential Requests
  3. Observe the output
  4. Enter Parallel Requests
  5. Observe the output

Expected Result

Notes

bhavinkpatel commented 3 years ago

Output for sequential requests,

123{"TotalRequests":3,"AverageTime":169649}. This shows that all requests were successfully run in order and the verified using the request to /stats.

bhavinkpatel commented 3 years ago

For the parallel/simultaneous scenario, output was,

[1] 52502
[2] 52503
[3] 52504
Bhavin-Patels-BenchPrep-MacBook-Pro:~ bhavinkpatel$ 213
[1]   Done                    curl -X POST -H "application/json" -d '{"password":"bhavinpatel"}' http://127.0.0.1:8088/hash
[2]-  Done                    curl -X POST -H "application/json" -d '{"password":"bhavinpatel1"}' http://127.0.0.1:8088/hash
[3]+  Done                    curl -X POST -H "application/json" -d '{"password":"bhavinpatel2"}' http://127.0.0.1:8088/hash
Bhavin-Patels-BenchPrep-MacBook-Pro:~ bhavinkpatel$ curl http://127.0.0.1:8088/stats
{"TotalRequests":3,"AverageTime":371821}Bhavin-Patels-BenchPrep-MacBook-Pro:~ bhavinkpatel$ 

This shows that each command was successfully ran and confirmed by running /stats.