devonfw / mrchecker

End to End (E2E) test framework - MrChecker
33 stars 38 forks source link

[Maintenance] Run MTS tests locally #356

Closed michalbabiarz closed 6 months ago

michalbabiarz commented 3 years ago

Please run MTS locally from docker-compose file, run Selenium and API test for both JUnit and Cucumber. Also prepare a short instruction how to run MTS locally.

andrzejsamson commented 3 years ago

MTS can be run locally via docker. API tests run successfully local. Selenium tests for JUnit and Cucumber had problems. The firefox browser where I run the tests had problems with: "Browsing context has been discarded" and "Failed to decode response from marionette". The second issue is that some elements were not found - maybe the code from the elements changed.

andrzejsamson commented 3 years ago

Short intro how to run MTS locally:

  1. Download Docker -> it can be done found here
  2. Clone MTS repo from github -> https://github.com/devonfw/my-thai-star OR download only the docker file form here and unzip
  3. Go to the folder where the repo or the unzipped file is stored.
  4. Open CLI in that location.
  5. Run command -> docker-compose up
  6. The first run takes a few minutes.
  7. When the docker is running MTS is available on: localhost:8081/restaurant
  8. To stop the docker file run in CLI -> docker-compose down

MTS is available only when docker is up. Access to the API is via localhost:8081/api

michalbabiarz commented 3 years ago

Hi @other019 is the instruction included on the Wiki already?