openstf / stf

Control and manage Android devices from your browser.
https://openstf.io
Other
13.39k stars 2.79k forks source link

How to setup stf with many machines #783

Open jihun-im opened 6 years ago

jihun-im commented 6 years ago

I have 3 questions.

  1. I want to have 1 webpage and 50 different android devices ready for our developers
  2. At webpage, I want to select devices and upload Instrumentation.apk to automatically starts tests concurrently on all selected devices (Maybe I should fix front-end of STF)
  3. I want to install apk on devices at the same time.

Please run stf doctor and paste the output here. 2017-12-29T03:18:06.891Z INF/cli:doctor 4752 [] OS Arch: x64 2017-12-29T03:18:06.892Z INF/cli:doctor 4752 [] OS Platform: darwin 2017-12-29T03:18:06.892Z INF/cli:doctor 4752 [] OS Platform: 17.2.0 2017-12-29T03:18:06.892Z INF/cli:doctor 4752 [] Using Node 8.4.0 2017-12-29T03:18:06.905Z INF/cli:doctor 4752 [] Using ZeroMQ 4.2.3 2017-12-29T03:18:06.917Z INF/cli:doctor 4752 [] Using GraphicsMagick 1.3.27 2017-12-29T03:18:06.920Z INF/cli:doctor 4752 [] Using RethinkDB 2.3.6 2017-12-29T03:18:06.921Z INF/cli:doctor 4752 [] Using ADB 1.0.39 2017-12-29T03:18:06.929Z INF/cli:doctor 4752 [*] Using ProtoBuf 3.5.1

koral-- commented 6 years ago

One of the solutions may look this (STF modification is not needed):

  1. For 50 devices you will probably need several providers: https://github.com/openstf/stf/blob/master/doc/DEPLOYMENT.md
  2. You can create your own service which communicates with STF using API. After selecting devices you retrieve the remote debug URL for all the devices.
  3. Assuming that you have APK uploaded and devices connected via adb to your back-end you can use tools like composer to install APK and run tests simultaneously on all the devices.