Giter Club home page Giter Club logo

Comments (2)

FisherKK avatar FisherKK commented on June 17, 2024

Hello. I don't get what EM1 device is.

Please navigate to your sdk_home location then to directory tools/bin and use avdmanager in terminal to read available devices that can be used in create_avd_device field:

$ ./avdmanager list device

I would also recommend creating your AVD via Android Studio first with config you wish to have. Then inspect it config.ini in ~/.android/avd/<your_avd_name> directory and see what value does device field has. Then use it in script!

Write if you have any more problems :)

from fastlane-plugin-automated-test-emulator-run.

ir2pid avatar ir2pid commented on June 17, 2024

hey, copying the .ini and cache.img file makes it work now thanks!

another thing, I start 3 emulators but the screenshots work on one, rest are idle.

attaching my json:

{
  "avd_list": [
    {
      "avd_name": "Pixel_XL_API_24",
      "create_avd_package": "system-images;android-24;google_apis;x86",
      "create_avd_device": "pixel_xl",
      "create_avd_tag": "google_apis",
      "create_avd_abi": "x86",
      "create_avd_additional_options": "",
      "create_avd_hardware_config_filepath": "/Users/xx/android/fastlane/pixel_xl.ini",
      "launch_avd_port": "",
      "launch_avd_snapshot_filepath": "/Users/sdutta/xx/fastlane/cache.img",
      "launch_avd_launch_binary_name": "emulator",
      "launch_avd_additional_options": "-gpu on"
    },
    {
      "avd_name": "Nexus_7_API_24",
      "create_avd_package": "system-images;android-24;google_apis;x86",
      "create_avd_device": "Nexus 7 2013",
      "create_avd_tag": "google_apis",
      "create_avd_abi": "x86",
      "create_avd_additional_options": "",
      "create_avd_hardware_config_filepath": "/Users/xx/android/fastlane/nexus7.ini",
      "launch_avd_port": "",
      "launch_avd_snapshot_filepath": "/Users/sdutta/xx/android/fastlane/cache.img",
      "launch_avd_launch_binary_name": "emulator",
      "launch_avd_additional_options": "-gpu on"
    },
    {
      "avd_name": "Nexus_10_API_24",
      "create_avd_package": "system-images;android-24;google_apis;x86",
      "create_avd_device": "Nexus 10",
      "create_avd_tag": "google_apis",
      "create_avd_abi": "x86",
      "create_avd_additional_options": "",
      "create_avd_hardware_config_filepath": "/Users/xx/android/fastlane/nexus10.ini",
      "launch_avd_port": "",
      "launch_avd_snapshot_filepath": "/Users/xx/android/fastlane/cache.img",
      "launch_avd_launch_binary_name": "emulator",
      "launch_avd_additional_options": "-gpu on"
    }
  ]
}

my lane:


  desc "Runs tests with AVD setup according to JSON file config with usage of other lane."
  lane :fastscreen do
      automated_test_emulator_run(
        AVD_recreate_new:false,
        AVD_clean_after:false,
        AVD_setup_path: "/Users/sdutta/Workspace/mobile/skoobe-app/platform/android/fastlane/AVD_setup.json",
        shell_task:"fastlane screenshots"
      )
   end

can you help me with running screenshots on all 3

from fastlane-plugin-automated-test-emulator-run.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.