wdio.android.sauce.rdc.conf.js
@@ -0,0 +1,48 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var path_1 = require("path");
+var wdio_shared_sauce_conf_1 = require("./wdio.shared.sauce.conf");
+var buildName = "ZipPay app test: " + new Date().getTime();
+// ==================
+// Specify Test Files
+// ==================
+//
+wdio_shared_sauce_conf_1.default.specs = ['./test/**/*.js'];
+// ============
+// Capabilities
+// ============
+//
+// For all capabilities please check
+// http://appium.io/docs/en/writing-running-appium/caps/#general-capabilities
+wdio_shared_sauce_conf_1.default.capabilities = [
+ {
+ // The defaults you need to have in your config
+ "platformName": "android",
+ // "app": './apps/Zip_Sandbox_base.apk',
+ // 'app':'a9d9719d-61b5-4ae5-a8dd-a043dd3d6bb7',
+ "app": "storage:filename=Zip_Sandbox_base.apk",
+ // 'app': 'storage:a9d9719d-61b5-4ae5-a8dd-a043dd3d6bb7',
+ // "app": path_1.join(process.cwd(),'./apps/Zip_Sandbox_base.apk'),
+ // "appium:platformVersion": "11.0",
+ // We're using dynamic device allocation
+ // See https://docs.saucelabs.com/mobile-apps/automated-testing/appium/real-devices/#dynamic-device-allocation
+ // 'appium:deviceName': '(Samsung Galaxy S(7|8|9|10|20|21).*)|(Google Pixel.*)',
+ "deviceName": "Google Pixel.*",
+ "platformVersion": "11.0",
+ "automationName": "UIAutomator2",
+
+ // The name of the App in the Sauce Labs storage, for more info see
+ // https://docs.saucelabs.com/mobile-apps/app-storage/
+
+
+
+ "appActivity": "co.zip.view.welcome.InitActivity",
+ "newCommandTimeout": 240,
+ "enforceAppInstall": true,
+ "appiumVersion": "1.20.1",
+ "build": buildName,
+
+
+ },
+];
+exports.config = wdio_shared_sauce_conf_1.default;
wdio.shared.conf.js
@@ -0,0 +1,34 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.config = void 0;
+exports.config = {
+ // ==================
+ // Specify Test Files
+ // ==================
+ //
+ specs: ['./test/**/*.js'],
+ // ============
+ // Capabilities
+ // ============
+ //
+ capabilities: [],
+ // ===================
+ // Test Configurations
+ // ===================
+ //
+ logLevel: 'debug',
+ bail: 0,
+ baseUrl: 'http://localhost',
+ waitforTimeout: 15000,
+ connectionRetryTimeout: 180000,
+ connectionRetryCount: 3,
+ services: [],
+ // Framework you want to run your specs with.
+ framework: 'mocha',
+ reporters: ['spec'],
+ mochaOpts: {
+ ui: 'bdd',
+ require: ['@babel/register'],
+ timeout: 180000,
+ },
+};
wdio.shared.sauce.conf.js
@@ -0,0 +1,24 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var wdio_shared_conf_1 = require("./wdio.shared.conf");
+// =====================
+// Sauce specific config
+// =====================
+// wdio_shared_conf_1.config.user = process.env.SAUCE_USERNAME;
+// wdio_shared_conf_1.config.key = process.env.SAUCE_ACCESS_KEY;
+wdio_shared_conf_1.config.user = 'oauth-soheet1-21cea';
+wdio_shared_conf_1.config.key = '835462a5-e40f-43de-a77c-9854a7e2a394';
+// If you run your test on Sauce Labs you can specify the region you want to run your test
+// in via the `region` property. Available short handles for regions are `us` (default) and `eu`.
+// These regions are used for the Sauce Labs VM cloud and the Sauce Labs Real Device Cloud.
+// If you don't provide the region, it defaults to `us`.
+wdio_shared_conf_1.config.region = (process.env.REGION || 'eu');
+// =============================================
+// Max instances of the same device in the cloud
+// =============================================
+wdio_shared_conf_1.config.maxInstances = 20;
+// ========
+// Services
+// ========
+wdio_shared_conf_1.config.services = (wdio_shared_conf_1.config.services || []).concat('Sauce');
+exports.default = wdio_shared_conf_1.config;
package.json
@@ -0,0 +1,36 @@
+{
+ "name": "apgsautomation",
+ "version": "1.0.0",
+ "description": "",
+ "main": "index.js",
+ "directories": {
+ "test": "test"
+ },
+ "scripts": {
+ "test": "wdio",
+ "test.android.sauce.real.device.eu": "npx wdio configs/wdio.android.sauce.rdc.conf.js"
+ },
+ "keywords": [],
+ "author": "",
+ "license": "ISC",
+ "dependencies": {
+ "@wdio/cli": "^7.16.12",
+ "@wdio/sync": "^6.4.6",
+ "allure-commandline": "^2.13.0",
+ "appium": "^1.18.3",
+ "webdriverio": "^6.4.6"
+ },
+ "devDependencies": {
+ "@babel/cli": "^7.11.6",
+ "@babel/core": "^7.11.6",
+ "@babel/preset-env": "^7.11.5",
+ "@babel/register": "^7.11.5",
+ "@wdio/allure-reporter": "^7.16.11",
+ "@wdio/appium-service": "^7.16.11",
+ "@wdio/local-runner": "^7.16.12",
+ "@wdio/mocha-framework": "^7.16.11",
+ "@wdio/sauce-service": "^7.16.12",
+ "@wdio/spec-reporter": "^7.16.11",
+ "chai": "^4.2.0"
+ }
+}
babel.config.js
@@ -0,0 +1,9 @@
+module.exports = {
+ presets: [
+ ['@babel/preset-env', {
+ targets: {
+ node: 12
+ }
+ }]
+ ]
+}
\ No newline at end of file