Hi guys, I am trying to build testing lab with many devices. I have several projects that will run agains my testing lab.
My current problem is: How could I find out which device is busy with test and which is free for test?
Thank you in advance!
Hi guys, I am trying to build testing lab with many devices. I have several projects that will run agains my testing lab.
My current problem is: How could I find out which device is busy with test and which is free for test?
Thank you in advance!
I think you’ve got to code some kind of checkout system. I’m thinking of a database with a web front end that does the following:
I’m sure it will be a fairly complicated system, even moreso if you are intending to test iOS.
Depending upon your needs, you could make it simple or complex.
I created a simple reservation system to solve just this problem a year and a half ago. Here are my assumptions and the reasons for or consequences of them.
I wrote all of this with less than 100 lines of ruby code. Assuming you require more than one server, you’d need an additional 25-50 lines of code at most to handle the connection.
Additionally, I wrote a script to execute the test cases against the different devices starting either locally or through a web UI, update the test repo, and clear out old logs. This was an additional 200 lines of ruby code.
Thank you for your ideas. I was thinking where it is possible to ask an instance of appium where it has active session or not? Please let me know if it is possible.
Sure, it will be something like this, but I need a decent mechanism to ask appium instance: “Hey, do you have active session running?”
Here is a link to issue tracker with the same question: https://github.com/appium/appium/issues/5976
I’m not sure this is possible. My recommendation is still that you record the port number as part of the device state in your database, then you can query the database for device/appium port pairs. This will also help you to keep track of the ports used for when you need to start a new appium server.