Git Product home page Git Product logo

locust-wms-load-test's People

Contributors

eduardrosert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

locust-wms-load-test's Issues

Issues using locust-wms-load-test

Hello,
I tried to run the WMS test... at first it looked promising.

However I found the following problems:

  • locust-wms seems to store it's setting somewhere in the browser (cookies or something)... and once you enter the initial parameters, you can not change them anymore (even closing the browser does not work). It accepts the info but the tests do not start. I had limited success with it by clearing browser data - but event that does not work always.
  • LOG_VERBOSE=1 does not seem to do anything...
  • it seems that the test is requesting GetCapabilities as html instead of xml
# docker run --rm -i -t -p 8089:8089 \
       --env LOG_VERBOSE=1 \
       eduardrosert/locust-wms-test
[2023-12-06 12:16:09,675] 121eb5b3bb1a/INFO/locust.main: Starting web interface at http://0.0.0.0:8089 (accepting connections from all network interfaces)
[2023-12-06 12:16:09,682] 121eb5b3bb1a/INFO/locust.main: Starting Locust 2.2.3
[2023-12-06 12:16:29,460] 121eb5b3bb1a/INFO/locust.runners: Ramping to 100 users at a rate of 10.00 per second
Request successful: https://gis.xxx.com/geoserver/wms?request=GetCapabilities&service=wms&version=1.3.0

GetCapabilities parse error with OWS

Looking to adopt locust and replace Jmeter as load-testing framework for OWS

Ran this container with:

docker run --rm -i -t -p 8089:8089        eduardrosert/locust-wms-test        locust -f /app/wms-load-test/locustfile.py               --host=https://ows.dea.ga.gov.au//wms

Ran into the following errors:

File "/usr/local/lib/python3.6/site-packages/locust/core.py", line 374, in run
    self.execute_next_task()
  File "/usr/local/lib/python3.6/site-packages/locust/core.py", line 400, in execute_next_task
    self.execute_task(task["callable"], *task["args"], **task["kwargs"])
  File "/usr/local/lib/python3.6/site-packages/locust/core.py", line 412, in execute_task
    task(self, *args, **kwargs)
  File "/app/wms-load-test/locustfile.py", line 527, in get_capa
    self.allLayers[wmsversion] = getAllLayers(capabilities=capabilities, wmsversion=wmsversion)
  File "/app/wms-load-test/locustfile.py", line 271, in getAllLayers
    root = capabilities[rootNodeName]["Capability"]["Layer"]
'WMT_MS_Capabilities'

and

  File "/usr/local/lib/python3.6/site-packages/locust/core.py", line 374, in run
    self.execute_next_task()
  File "/usr/local/lib/python3.6/site-packages/locust/core.py", line 400, in execute_next_task
    self.execute_task(task["callable"], *task["args"], **task["kwargs"])
  File "/usr/local/lib/python3.6/site-packages/locust/core.py", line 412, in execute_task
    task(self, *args, **kwargs)
  File "/app/wms-load-test/locustfile.py", line 527, in get_capa
    self.allLayers[wmsversion] = getAllLayers(capabilities=capabilities, wmsversion=wmsversion)
  File "/app/wms-load-test/locustfile.py", line 293, in getAllLayers
    dimensions = getDimensions(layer, wmsversion = wmsversion)
  File "/app/wms-load-test/locustfile.py", line 324, in getDimensions
    dim = parseDimension(dimensions)
  File "/app/wms-load-test/locustfile.py", line 253, in parseDimension
    "values" : dimension["@default"], #fall back to default
'@default'

Need to make width and height of boundingbox customizable for wms

https://ows.dev.dea.ga.gov.au/?request=GetMap&crs=EPSG%3A4326&layers=ga_ls7e_ard_3&width=1200&height=600&format=image%2Fpng&bbox=-14%2C-1%2C166%2C89&service=wms&version=1.3.0&styles=false_colour&time=2006-12-21

is XML file does not appear to have any style information associated with it. The document tree is shown below.
<ServiceExceptionReport xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.3.0" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd">
<ServiceException locator="Width parameter"> Width 1200 exceeds supported maximum 512. </ServiceException>
</ServiceExceptionReport>

k8s deployment file incorrect command

Problem

the current example https://github.com/EduardRosert/locust-wms-load-test/blob/master/k8s-locust-wms-test.yaml#L39-L40 returns command /bin/bash not found error

tried

      command: ["locust"]
      args: ["-f /app/wms-load-test/locustfile.py"]

the pod doesn't start and errors

the pod started correctly when both command and args were commented out.

correct config (final solution)

        command: ["locust", "-f", "/app/wms-load-test/locustfile.py", "--host=$(WMS_SERVICE_URL)"]
        # args: [ "-f /app/wms-load-test/locustfile.py"]

note, without $() around WMS_SERVICE_URL the value is taken as `$WMS_SERVICE_URL.

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.