Open skhandekar1 opened 2 years ago
I don't see any errors in the server log. I believe it is some issue with the client code.
That's too much code for us to adequately review. My advice would be to start stripping away everything except a bare skeleton from that code until you have a minimal reproducible scenario. It will probably make obvious what the issue is in your code.
I was getting this issue but seems issues with dependency , as appium takes selenium dependencies transitively I removed a selenium java pom dependency as appium client had it, worked after that. Not sure if this helps but my 2 cents !!!
The problem
I am trying to run a test class in a suite. The class that is giving the error is running a data driven test. The beforeMethod in the test runs fine, but for some reason the test fails as soon as it enters the @Test and tries setting a parameter in my Android Mobile test. This problem is consistent and only happens when i run the entire suite of classes. If I run the above mentioned class individually, it runs fine.
Environment
Details
Error is as follows:
I tried printing out the session ID i get from my driver at various places to find where its getting set to null, but i am not seeing it set to null anywhere:
Point it fails at is SetupData.setParameters(DataProviderType.OR_SESSION_DATA, data);
The relevant portion where failure occurs in my SetupData class is as follows:
My Dataproviders class is as follows:
My Base class is as follows (Renamed for security reasons):
Link to Appium logs
(https://gist.github.com/skhandekar1/e4d300b1ae9619009191c0398e948b4d)