testproject-io / java-opensdk

TestProject Java OpenSDK
Apache License 2.0
50 stars 42 forks source link

Add parallel execution for mobile #169

Open vladburian1 opened 2 years ago

vladburian1 commented 2 years ago

Hello, I'm trying to run tests in parallel, please suggest the best way to do that. I was able to run it on Android devices using TestNG (few mobile devices connected to Agent) : @BeforeMethod

  1. Initialize adb
  2. Get devices pool
  3. Get device status (if free)
  4. Get device UIDI
  5. Initialize new driver with that UDID
  6. Set device occupied @AfterMethod
  7. Set device free And it works, every new test running on new device, but the report is messed up, as new created driver it's creating a new report