Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running unium at AWS Device Farm #36

Open
daemon4d opened this issue Mar 13, 2019 · 8 comments
Open

Running unium at AWS Device Farm #36

daemon4d opened this issue Mar 13, 2019 · 8 comments
Assignees

Comments

@daemon4d
Copy link

daemon4d commented Mar 13, 2019

Hi. Thanks for fantastic framework. One of my big wishes will be to run this on public device farms such as AWS Device Farm. Do you have any ideas how to approach implementation of this feature. As a programmer I can certainly contribute to code this feature. My first idea is that we can implement special appium driver to forward our messages via appium server.

@gwaredd
Copy link
Owner

gwaredd commented Apr 24, 2019

Hey, I have been giving this some thought and it should be possible as-is without any modification.

Appium and Unium can already work together to give you the benefits of both.

My understanding is that if you create a custom test environment, you can enable port forwarding with adb within the device farm just as you would for an emulator. I am not sure how you would do this with iOS though.

When I have time I shall give it a go.

@daemon4d
Copy link
Author

daemon4d commented Apr 24, 2019 via email

@gwaredd
Copy link
Owner

gwaredd commented Apr 24, 2019

It's a good approach, and would also work with iOS. It would make tests less portable though.

Port forwarding on android is not complicated via adb. I haven't looked into iOS.

I don't know enough about AWS to have an informed opinion here.

@daemon4d
Copy link
Author

daemon4d commented Apr 24, 2019 via email

@gwaredd
Copy link
Owner

gwaredd commented Apr 26, 2019

I don't think it will hurt to add.

Unium has always been created from the view of a game developer first, tester second and everyone else ignored - so some architectural decisions have been influenced by that (like that lack of POST requests). So I still want to figure out a unified approach if possible where tests just work regardless of where they are running.

@ldrly-roger
Copy link

I'm working on this starting ... right about now. I believe all one really needs is a very lightweight Appium driver. AWS Device Farm will happily run Appium tests, so it should be feasible to upload a compiled application (with Unium enabled) along with an appium test suite zipped up with this driver. If I understand it correctly, writing some appium tests in python and bundling it with the Unium appium driver also written in python, device farm should be able to execute the tests against the application.

It's a parallel approach to what's been done with AltUnityTester + AltUnityRunner. For an example see https://gitlab.com/altom/altunity/altunitytester/-/tree/master/aws-device-farm-example for the tests and https://pypi.org/project/altunityrunner/ for the Appium driver that it will bundle up.

@gwaredd
Copy link
Owner

gwaredd commented Feb 6, 2020

Hey, sounds pretty cool! I don't know enough about the inner workings of appium or it's drivers to comment but sounds feasible to me 😀 Let me know how you get on.

@drapostolos
Copy link

Hey, I have been giving this some thought and it should be possible as-is without any modification.

as said above, Unium should work as-is in AWS Device farm custom environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants