Git Product home page Git Product logo

Comments (3)

DudaGod avatar DudaGod commented on August 16, 2024

Hello.

Are we talking about launching an android and iOS in an emulator using an appium?
If yes, then for android you should use config like this:

// hermione.conf.js
module.exports = {
  // ...
  sessionsPerBrowser: 10, // run 10 browsers in parallel (will be used for all browsers or you can specify value for each browser)
  testsPerSession: 10, // run 10 tests in each browser session before close it
  sets: {
    touch: {
      files: './folder_with_your_tests/*.hermione.js',
      browsers: ['chrome-phone', 'safari13']
    }
  },
  browsers: {
    'chrome-phone': {
      desiredCapabilities: {
        platformName: 'Android',
        deviceName: 'android',
        browserVersion: 'YOUR_BROWSER_VERSION',
        browserName: 'chrome',
        automationName: 'UiAutomator1', // when starting android with UiAutomator2 it installs the required packages to the emulator and it can take 10-20 seconds. So you can use UiAutomator1 or preinstall required packages to your emulator itself
        skipDeviceInitialization: true
      },
      calibrate: true,
      compositeImage: true,
      screenshotDelay: 600,
      orientation: 'portrait',
      resetCursor: false
    }
};

For ios you should use config like this:

module.exports = {
  // ...
  sessionsPerBrowser: 10, // run 10 browsers in parallel (will be used for all browsers or you can specify value for each browser)
  testsPerSession: 10, // run 10 tests in each browser session before close it
  sets: {
    touch: {
      files: './folder_with_your_tests/*.hermione.js',
      browsers: ['chrome-phone', 'safari13']
    }
  },
  browsers: {
    'chrome-phone': {...},
    'safari13': {
      desiredCapabilities: {
        version: '13.0',
        browserName: 'safari',
        isHeadless: false,
        platformName: 'iOS',
        deviceOrientation: 'portrait'
        deviceName: 'iPhone 11',
        automationName: 'XCUITest'
      },
      orientation: 'portrait',
      calibrate: false,
      compositeImage: true,
      resetCursor: false,
      waitOrientationChange: false,
      sessionEnvFlags: { isW3C: false }, // can't work with w3c protocol - https://github.com/appium/appium-xcuitest-driver
    },
    plugins: {
      // ...
      'hermione-safari-commands': {
        enabled: true,
        browsers: {
          safari13: {
            commands: [
              'url',
              'click',
              'screenshot',
              'orientation',
              'swipe',
              'touch',
              'dragAndDrop',
              'deviceClickBack'
            ]
          }
        }
      }
    }
};

Tests in ios works only with plugin - https://github.com/gemini-testing/hermione-safari-commands. So you should install it.

from hermione.

RollerIn avatar RollerIn commented on August 16, 2024

@DudaGod thank you for your response , will check it and let you know
have one doubt, de we need to maintain any specific ports to run parallel sessions?

from hermione.

sipayRT avatar sipayRT commented on August 16, 2024

de we need to maintain any specific ports to run parallel sessions?

no, you don't need it at all for hermione

from hermione.

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.