SvenskaSpel / locust-plugins

A set of useful plugins/extensions for Locust
Apache License 2.0
526 stars 136 forks source link

Does locust support thick-client application? #176

Closed NaliniSake closed 3 weeks ago

NaliniSake commented 3 months ago

I'm trying to start the Excel.exe file with simple python OS operation, below is the code. The Locust starts the file with no issues but do not see any Transaction details(KPIs) in Locust web user interface. How can I capture the KPI/Metrics details in Locust web UI (http://localhost:8089 ). Please help me with request.

class SampleTest(User): @task def launch(self): os.startfile("C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE") wait_time = constant(2)

NaliniSake commented 3 months ago

Could someone please help me with my request?

cyberw commented 3 months ago

Hi! No, locust does not really support thick-client applications. If your exe/process does finish running after on its own (with no need for interaction) you could create a custom user for processes https://docs.locust.io/en/stable/testing-other-systems.html

But it's an odd use case even then. Locust is made for load testing server applications.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] commented 3 weeks ago

This issue was closed because it has been stalled for 10 days with no activity. This does not necessarily mean that the issue is bad, but it most likely means that nobody is willing to take the time to fix it. If you have found Locust useful, then consider contributing a fix yourself!