Thanks for the reply Wreed. I am facing same problem even after passing config. Here is updated AfterConfiguration hook. I am providing log file along with this.
AfterConfiguration do |config|
systemâappiumâ
end
poornimas-Mac-mini:AutomationScipts poornima$ cucumber features/01-SignIn.feature:7
/usr/local/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.11.0/lib/selenium/webdriver/common/interactions/pointer_actions.rb:21: warning: previous definition of DEFAULT_MOVE_DURATION w
as here
[Appium] Appium support for versions of node < 8 has been deprecated and will be removed in a future version. Please upgrade!
[Appium] Welcome to Appium v1.8.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
If i Run same the code after starting appium server manually output goes like this.
poornimas-Mac-mini:AutomationScipts poornima$ cucumber features/01-SignIn.feature:7
/usr/local/lib/ruby/gems/2.5.0/gems/appium_lib_core-1.3.7/lib/appium_lib_core/common/base/bridge/w3c.rb:8: warning: already initialized constant Selenium::WebDriver::PointerActions:
EFAULT_MOVE_DURATION
/usr/local/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.11.0/lib/selenium/webdriver/common/interactions/pointer_actions.rb:21: warning: previous definition of DEFAULT_MOVE_DURATION w
as here
[Appium] Appium support for versions of node < 8 has been deprecated and will be removed in a future version. Please upgrade!
[Appium] Welcome to Appium v1.8.1
[HTTP] Could not start REST http interface listener. The requested port may already be in use. Please make sure there is no other instance of this server running already.
Fatal Error: listen EADDRINUSE 0.0.0.0:4723
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at Server._listen2 (net.js:1258:14)
at listen (net.js:1294:10)
at net.js:1404:9
at _combinedTickCallback (internal/process/next_tick.js:83:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
Feature: As a user, I want to be able to sign in with my Fresenius user ID, so that I can access the Compass application on iOS, Android, and web platforms.
[DEPRECATION] Appium::Driver.new(opts) will not generate global driver by default.If you would like to generate the global driver dy default, please initialise driver with Appium::Dri
ver.new(opts, true)
Scenario: The user will be presented with a login screen where he can enter a username and password. # features/01-SignIn.f
eature:7
# Format: Given I launch the application ââ in device ââ with udid ââ on wdaport â8100â and local port "4723"
Given I launch the application âcompass.ipaâ in device âiPhoneâ with udid â3fa1898388954983622d2764e219ffc5da7d067bâ on wdaport â8100â and local port â4723â # features/step_defini
tions/steps.rb.rb:4
And I assert for identifier âsignInLogoImageViewâ # features/step_defini
tions/steps.rb.rb:71
And I assert for identifier âsignInUsernameTextFieldâ # features/step_defini
tions/steps.rb.rb:71
And I assert for identifier âsignInPasswordTextFieldâ # features/step_defini
tions/steps.rb.rb:71
And I assert for identifier âsignInForgotPasswordButtonâ # features/step_defini
tions/steps.rb.rb:71
And I assert for identifier âsignInContactSupportButtonâ # features/step_defini
tions/steps.rb.rb:71
And I assert for identifier âsignInButtonâ # features/step_defini
tions/steps.rb.rb:71
1 scenario (1 passed)
7 steps (7 passed)
On running same test without Afterconfiguration hook
poornimas-Mac-mini:AutomationScipts poornima$ cucumber features/01-SignIn.feature:7
/usr/local/lib/ruby/gems/2.5.0/gems/appium_lib_core-1.3.7/lib/appium_lib_core/common/base/bridge/w3c.rb:8: warning: already initialized constant Selenium::WebDriver::PointerActions:
EFAULT_MOVE_DURATION
/usr/local/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.11.0/lib/selenium/webdriver/common/interactions/pointer_actions.rb:21: warning: previous definition of DEFAULT_MOVE_DURATION w
as here
Feature: As a user, I want to be able to sign in with my Fresenius user ID, so that I can access the Compass application on iOS, Android, and web platforms.
[DEPRECATION] Appium::Driver.new(opts) will not generate global driver by default.If you would like to generate the global driver dy default, please initialise driver with Appium::Dri
ver.new(opts, true)
Scenario: The user will be presented with a login screen where he can enter a username and password. # features/01-SignIn.f
eature:7
# Format: Given I launch the application ââ in device ââ with udid ââ on wdaport â8100â and local port "4723"
Given I launch the application âcompass.ipaâ in device âiPhoneâ with udid â3fa1898388954983622d2764e219ffc5da7d067bâ on wdaport â8100â and local port â4723â # features/step_defini
tions/steps.rb.rb:4
And I assert for identifier âsignInLogoImageViewâ # features/step_defini
tions/steps.rb.rb:71
And I assert for identifier âsignInUsernameTextFieldâ # features/step_defini
tions/steps.rb.rb:71
And I assert for identifier âsignInPasswordTextFieldâ # features/step_defini
tions/steps.rb.rb:71
And I assert for identifier âsignInForgotPasswordButtonâ # features/step_defini
tions/steps.rb.rb:71
And I assert for identifier âsignInContactSupportButtonâ # features/step_defini
tions/steps.rb.rb:71
And I assert for identifier âsignInButtonâ # features/step_defini
tions/steps.rb.rb:71
1 scenario (1 passed)
7 steps (7 passed)
0m9.511s