Skip to content

Locust: Organize scripts to help with ease of use and maintenance. #2

@kcondon

Description

@kcondon

Current scripts structure:

  1. Script to run eg. basic_test_04_mydata.py
    -contains task list of pages with weights
  2. Separate creds.json file for input
    -contains user info
    -api keys
    -collection of random dataset ids as input to dataset task
  3. Individual page scripts with additional input/ variables, eg. mydata_links.py

Suggested structure:

  1. Utility page files that know how to call a particular page
  2. Test files which contains a task list, uses the utility page files to execute tasks, accepts input from individual data files
  3. Data files that allows specifying variable data such as persistent ids, usernames, etc.
  4. Basic config file that specifies system under test (URL).
  5. Test Suite file that calls set of test files?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions