Hi Team,
I am starting with the automation of flutter application for android and ios but during this testing, I found my app is not launching properly.
Please find appium server logs:
{appium-server-logs.txt (457.5 KB)
My testScript:
const wdio = require(‘webdriverio’);
const assert = require(‘assert’);
const find = require(‘appium-flutter-finder’);
const osSpecificOps = process.env.APPIUM_OS === 'android' ?
platformName: 'Android',
deviceName: 'Pixel 5 API 30',
// @todo support non-unix style path
app:'/Users/harsha.sharmagelato.com/Dev/work/repos/gelato-api-mobile/build/app/outputs/flutter-apk/app-stage-debug.apk',
}: process.env.APPIUM_OS === 'ios' ? {
platformName: 'iOS',
platformVersion: '15.4',
deviceName: 'iPhone 13',
noReset: true,
app: '/Users/builder/Library/Developer/Xcode/DerivedData/Runner-edaimyiflreloheqntgnhkmwcclv/Build/Products/Debug-iphonesimulator/Runner.app',
} : {};
const opts = {
port: 4723,
path: '/wd/hub/',
capabilities: {
...osSpecificOps,
automationName: 'Flutter',
retryBackoffTime: 500,
}
};
(async () => {
console.log('Initial app testing');
const driver = await wdio.remote(opts);
console.log('***************');
const contextList = await driver.getContexts();
console.log(contextList);
// // Enter login page
// await driver.execute('flutter:waitFor', find.byValueKey('button_sign_in_google'));
driver.deleteSession();
})();
Can someone please suggest what I might be missing?