Prerequisities:
- Download PyCharm IDE/Visual Studio/PyDev - https://www.jetbrains.com/pycharm-edu/download/
- Install Python - https://www.python.org/downloads/
- Install Selenium - pip install selenium (or) pip install -U selenium
NOTE: To run the test navigate to the features' folder in the terminal
i) To Run all the Feature files run the following command: behave
ii) To Run Single Feature File runt the below following command: behave login.feature
iii)To Run a specific Scenario:
-
Tag the scenario with any Tag name, For ex: @wip
-
Next, run the following command: behave login.feature --tags=wip
--In the result displays list of Un-tagged Scenarios and Tagged Scenarios. To skip the list of Un-Tagged scenarios display, need to run the command as follows: behave login.feature --no-skipped --tags=wip
Link: https://behave.readthedocs.io/en/latest/behave.html
NOTE: While running the scripts if you notice any error like below, run the following command: pip install -U selenium
Error: Exception AttributeError: module 'selenium.webdriver' has no attribute 'Chrome' Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/bin/behave", line 11, in sys.exit(main())