zebrunner / carina-webdriver

Apache License 2.0
7 stars 10 forks source link

Setting environment variable in setPageUrl method doesn't work correctly #177

Closed adenskevitch closed 11 months ago

adenskevitch commented 11 months ago
baseURL = Configuration.get("base", StandardConfigurationOption.ENVIRONMENT)
                    .orElse(Configuration.getRequired(Parameter.URL));

orElse logic is execute even if environment variable present. So, if the url parameter is not defined, the configuration read error occurs: com.zebrunner.carina.utils.exception.InvalidConfigurationException: Getting the value of parameter 'url' as required failed: the value is missing.