I am running appium tests on Azure Devops yaml pipelines
The tests are created in MS Unit Test and in C#
Tests are being run with following command
nohup appium -p 4723 & dotnet test <csproj name> --logger trx --results-directory $(Agent.TempDirectory) --verbosity:detailed
The tests run perfectly on my local Mac machine
On yaml pipeline when i run tests it fails with following error
Assembly Initialization method ......AssemblyInitialization threw exception. OpenQA.Selenium.WebDriverException: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource. Aborting test execution.
This fails at following code
var capURI = "http://127.0.0.1:4723/wd/hub";
Instance = new AndroidDriver<IWebElement>(new Uri(capURI), cap, TimeSpan.FromSeconds(1200));
I added debug logs to check if desired capabilities are correct or not. The desired capabilities are correct.