From e9adff9019b27dd891f732753a4dd7d0c7abca43 Mon Sep 17 00:00:00 2001 From: Georgi Michev <georgi.michev@vereign.com> Date: Wed, 26 Jun 2024 13:00:19 +0300 Subject: [PATCH] Update the instructions for running the tests Clarification for running the tests was requested. Signed-off-by: Georgi Michev <georgi.michev@vereign.com> --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index eee94f89..32544217 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ # Introduction -This repository holds the test automation framework based on Java and used for testing TSA +This repository holds the test automation framework based on Java and used for testing TSA. Some of the tests require the environment on which they will be run against to be deployed with database and this database to have specific structure mentioned below on [MongoDB](###mongodb) # Setup @@ -23,10 +23,15 @@ This repository holds the test automation framework based on Java and used for t ### Running -- Run the tests on a remote env: ```gradle regressionSuite -PbaseUrl={BASE_URL} -Dcucumber.tags="@tsa, not @wip" -Dcourgette.threads=1 -Dcourgette.runLevel=Scenario -Dcourgette.rerunFailedScenarios=false -Dcourgette.rerunAttempts=1``` - +Running tests using Itellij IDEA: +- meet all the requirements in the [Prerequisites](###prerequisites) +- create new Gradle [Run Configuraiton](https://www.jetbrains.com/help/idea/run-debug-configuration.html) useing the run options from the example below +```gradle +regressionSuite -PbaseUrl={BASE_URL} -Dcucumber.tags="@{TAG}, not @wip" -Dcourgette.threads=1 -Dcourgette.runLevel=Scenario -Dcourgette.rerunFailedScenarios=false -Dcourgette.rerunAttempts=1 +``` _{BASE_URL} - should be replaced with the path where the services are deployed: -example: http://localhost_ +example: http://localhost_ +_{TAG} - Enter which tests to be execute. Valid options are - 'tsa' 'cache', 'infohub', 'policy', 'signer', 'task', 'negative'._ ## Specifications for different database implementations ### MongoDB @@ -47,4 +52,4 @@ infohub and tasks services. To simplify manual tests execution we have a postman collection with the list of supported endpoints, you can find [here](postman/TSA.postman_collection.json) ## License -<hr/> \ No newline at end of file +<hr/> -- GitLab