flashlight icon indicating copy to clipboard operation
flashlight copied to clipboard

Unable to run Maestro flows when multiple devices are detected

Open 1987cr opened this issue 1 year ago • 2 comments

  • flashlight 0.10.0
  • maestro 1.30.4

I'm trying to run a simple maestro test but the command gets stuck:

This is the maestro test:

performance.yaml

appId: com.getpaired.app.stg
---
- launchApp

When I run command command on it's own this is the result:

> maestro test .maestro/performance.yaml

Android

[1] emulator-5554

iOS

[2] iPhone SE (3rd generation) - iOS 16.2 - 4E825D75-1A73-4F66-96C6-5CC03A38EE80
[3] iPhone 14 - iOS 16.2 - DD1E0502-8A70-460C-B8A2-5D5CE0314ADA

Multiple running devices detected. Choose a device to run on.

Enter a number from the list above:

1


Running on emulator-5554                        
                                                
 ║                                              
 ║  > Flow                                      
 ║                                              
 ║    ✅  Launch app "com.getpaired.app.stg"    
 ║                           

When I run it through flashlight it gets stuck forever after device selection prompt:

> flashlight test --bundleId com.getpaired.app.stg \
  --testCommand "maestro test .maestro/performance.yaml" \
  --duration 40000 \
  --resultsFilePath results.json
  
[12:08:53] ℹ️  Installing C++ profiler for arm64-v8a architecture
[12:08:53] ✅  C++ Profiler installed in /data/local/tmp/BAMPerfProfiler
[12:08:53] ℹ️  Running iteration 1/10
Android


[1] emulator-5554

iOS

[2] iPhone SE (3rd generation) - iOS 16.2 - 4E825D75-1A73-4F66-96C6-5CC03A38EE80
[3] iPhone 14 - iOS 16.2 - DD1E0502-8A70-460C-B8A2-5D5CE0314ADA

Multiple running devices detected. Choose a device to run on.

Enter a number from the list above:


1

Any idea on what could it be happening?

1987cr avatar Aug 02 '23 10:08 1987cr