I am trying to reuse our existing Jenkins setup to run appium tests
I have set up a Mac machine with devices connected to it on usb. And i would like to be able to control the initiation and termination of appium servers programmatically.
I’m using an ssh java client library to control the execution of appium server.
however when i try to execute using my java code I am getting a message for:
appium: command not found
I have verified that the path variables are the same and I am login in with the same user i use when i run appium manually on this machine.
is there a way to execute/terminate appium server remotely other then ssh?
or if using ssh what am I missing?
Looks like Appium is not on the $PATH of the user you are ssh’ing as (possibly the jenkins user?). What I personally would do is to cd to the Appium install and issue the commands from there. That’s probably the easiest way to tackle this, but you could also try adding Appium to the $PATH.
I can run appium command from jenkins local machine but when I try to run same appium command from jenkins server I got this error message; appium:command not found.