Comments (3)
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.
@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.
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)
- Option resetCursor moves the cursor to the center of the screen HOT 2
- Methods of the object stored in hermione.ctx are not passed to the test HOT 9
- Некорректный тип функции `it(` HOT 4
- v9.0.0: Breaking changes HOT 1
- Use Chrome's new Headless mode HOT 3
- Отсутствуют типы для метода moveCursorTo HOT 1
- Тесты на типы HOT 2
- Perform preliminary research and develop a solution for automatic API reference generation or typings
- moveCursorTo не идентичен moveTo в hermione 7 (move target out of bounds) HOT 5
- hermione.ctx нельзя типизировать HOT 4
- Not clear how to create wrapper and fail test with browser.mock HOT 2
- Add a handy way to screenshot the viewport HOT 1
- В тесте недоступно поле browserId HOT 5
- Пропала типизация describe/it и т.п. HOT 2
- Preload the element completely before taking a screenshot
- Implement throttling of test commands
- Add ability to rerun all failed tests HOT 1
- Update webdriverio package HOT 1
- Вытащить наружу методы по работе с браузером HOT 4
- Add github-action for CI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hermione.