Hi,
In my Java selenium jupiter Junit5 project, I am using Appium server that initialized with capabilities before tests run for example:
in BeforeAll method:
capabilities are:
{
“name”: “virtualDeviceNoApp”,
“caps”: {
“platformName”: “Android”,
“deviceName”: “emulator-5554”,
“noReset”: true,
“fullReset”: false}
}]
and in BeforeEach I upload the application from shell command
first question:
I need to identify if appium server is already in use before each run and close it,
I read that if I use appium capabilities it automatically needs to close before each run test, but when I run entire class or project - it means amount of tests, between the tests - before each test run it does not happens, and the appium not close.
How and what do I need to do for this task?
second issue in the same topic:
If I need Appium to run in different port (not on 4723), I know that I need to specified DriverUrl with different port, I specified it,
@DriverUrl
private String url = “http://127.0.0.1:5687/wd/hub”;
But the port still doesn’t change.
What the way to change the port in this using?
Hope I explained clearly,
Thanks a lots!
Efrat