github.com/redhat-appstudio/e2e-tests@v0.0.0-20230619105049-9a422b2094d7/docs/LoadTests.md (about)

     1  # Red Hat AppStudio Load Test Scripts
     2  
     3  This Test Section Provides Load Testing Scripts for Red Hat AppStudio 
     4  
     5  ## Requirements 
     6  
     7  - Install AppStudio in Preview Mode refer [infra-deployments](https://github.com/redhat-appstudio/infra-deployments) for installation details 
     8  - Install sandbox operators in e2e mode
     9  - Encode your docker config json to a base64 encoded string 
    10  
    11  ## Running the script
    12  1. Change your directory to `tests/load-tests` 
    13  2. Environment variables are required to set for the e2e framework that the load test uses. Refer to [Running the tests](https://github.com/redhat-appstudio/e2e-tests#running-the-tests).
    14  3. Run the bash script
    15  ```
    16  ./run.sh 
    17  ```
    18  For help run `go run main.go --help`.
    19  You can configure the parameters by editing `run.sh` and add/change parameters(e.g. number of users, number of batches...).
    20  
    21  ## How does this work 
    22  The Script works in Steps
    23  - Starts by creating `n` number of UserSignup CRD's which will create `n` number of NameSpaces , number of users can be changed by the flag `--users`
    24  - Then it proceeds by creating AppStudio Applications for each user followed by Appstudio Component, i.e Creates users on a 1:1 basis 
    25  - Creating the Component will start the pipelines, if the `-w` flag is given it will wait for the pipelines to finish then print results 
    26  - Then after the tests are completed it will dump the results / stats, on error the stats will still get dumped along with the trace
    27  
    28  ## How to contribute
    29  Just edit the file `cmd/loadTests.go`