Update config file

  1. Open the config.properties file
  2. And update the file ad below:
    selenium_timeout_in_second = 20
    selenium_window_width = 1366
    selenium_window_height = 768
    selenium_url = http://127.0.0.1:4444/wd/hub
    selenium_screenshot_path = screenshots/
    
    ft_test_log_required = 0
    ft_test_log_url = http://docker.sak:8080/testLog/log?
    ft_test_log_basic_auth = 1
    ft_test_log_user = bill
    ft_test_log_password = password
    
    ft_demo_website_url = http://demo-website.fanaticaltest.com/
    
    api_proxy_required = 0
    api_proxy_url = ip-address
    api_proxy_port = 80
    api_proxy_user = username
    api_proxy_pass = secret

    Important notes :

    1. selenium_timeout_in_second : default selenium timeout set to 20 seconds.
    2. selenium_window_width and selenium_window_height : are the default size for the browser.
    3. selenium_url : is the url of the local selenium. For more detail refer to the tutorial explain how it works.
    4. selenium_screenshot_path : is the path where the screenshot will be stored. Here you have a folder in the root of the project.
    5. ft_test_log_required : should be set to 0. In this tutorial we will not use the component ft-test-log. So ignore for now all the properties related to ft-test-log.
    6. ft_demo_website_url : is the link of the demo test. We have hosted the demo website on aws to help you in this tutorial. Keep in mind the PHP version of this instance is 7.0.16. So you will need to update your feature file (DemoWebShopping.feature and DemoWebTermConditions.feature) accordingly!
    7. api_proxy_required : should be set to 0 if you are not behind a proxy. Otherwise you will need to set to 1 and also configure the properties required for your proxy.

Next : Run the test using maven command