Skip to content

Files

Latest commit

42353dd · Jun 5, 2025

History

History

ElasticSearchTests

README.md

Elastic Search Test Script

ES tests ensure that the Elastic Search functionalities are working and there are no showstoppers in the ES upgrades deployed to environments.
The automated tests comprises of these tests.

Executing Scripts

On Local Machine

Setting up test environment

# create and activate a virtualenv using your preferred method. Example:
python -m venv venv
source venv/bin/activate


# install requirements
pip install -r requires.txt

More on setting up virtual environments

Running Tests

  • Copy settings-sample.cfg to settings.cfg and populate settings.cfg for the environment you want to test.
  • Run tests using pytest command like:
# To execute all the test cases 
pytest -v --rootdir= ElasticSearchTests/testCases
  • You could also pass the following arguments
    • -n 3 --dist=loadfile - This will run the tests parallelly in 3 instances. The number of reruns is configurable.
    • --reruns 1 - This will re-run the tests once in case of failures.The number of reruns is configurable too.

Trigger Manually on Gitaction

clone this repository

To manually trigger the script,

  • Go to Gitactions
  • Select the desired workflow, here ES Tests action
  • Run workflow
  • Select workflow as master
  • Select the environment as desired
  • Run!

If you are a part of the QA team, you'll receive emails for the result of the run after it's complete.

clone this repository

Besides, you should be able to find the zipped results in the Artifacts section, of the corresponding run (after it's complete).