Mobile web automation is almost the same as writing tests for desktop browsers. If accessibilityID's can't be used and for example only XPATH is only available then the following setup could be used to make cross-platform selectors const SELECTORS = Automating Chrome or Safari The locator strategy for this boilerplate is to use accessibilityID's, see also the WebdriverIO docs or this newsletter on AppiumPro.ĪccessibilityID's make it easy to script once and run on iOS and Android because most of the apps already have some accessibilityID's. Since we do not have Appium installed as part of this package, this has been configured to use the global Appium installation. This shared config holds all the defaults so the iOS and Android configs only need to hold the capabilities and specs that are needed for running on iOS and or Android (app or browser). This boilerplate uses a specific config for iOS and Android, see configs and are based on. Run the tests for iOS with npm run ios.app and for Android with npm run android.app Merge the scripts to your package.json scripts Merge project dev dependencies with your projects dev dependencies in your package.json Then copy the files to your project directory (all files in /tests and the nf-files in the config-folder) To setup your local machine to use an Android emulator and an iOS simulator see Setting up Android and iOS on a local machine Quick start See Installing Appium on a local machine Setting up Android and iOS on a local machine For more info about that Google on setting up a grid with Appium. This boilerplate only handles local execution on 1 em/simulator at a time, not parallel execution. apps directory, download the app and move the zip files into that directory The releases can be found and downloaded here.īefore running tests, please create a. This boilerplate uses the WebdriverIO native demo app which can be found here. Android Chrome and iOS Safari browser ( check here).This boilerplate is for Webdriver V6, if you need a boilerplate for:\īoilerplate project to run Appium tests together with WebdriverIO for:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |