Flutter app automation on AWS device farm-APP is crashing

0

[DEVICEFARM] Setting up your device. This usually takes 2-3 minutes. [DEVICEFARM] ########### Start executing testspec ###########

[DEVICEFARM] ########### Entering phase install ###########

[DeviceFarm] devicefarm-cli use node 18 [DeviceFarm] node --version v18.16.1 [DeviceFarm] devicefarm-cli use appium 2 [DeviceFarm] appium --version 2.1.2 [DeviceFarm] appium driver uninstall uiautomator2 ✔ Successfully uninstalled driver 'uiautomator2' [DeviceFarm] appium driver install --source=npm appium-flutter-driver

  • Installing 'appium-flutter-driver' ✔ Installing 'appium-flutter-driver' ℹ Driver flutter@2.2.0 successfully installed - automationName: Flutter
  • platformNames: ["iOS","Android"] [DeviceFarm] appium driver install uiautomator2
  • Installing 'uiautomator2' using NPM install spec 'appium-uiautomator2-driver' ✔ Installing 'uiautomator2' using NPM install spec 'appium-uiautomator2-driver' ℹ Driver uiautomator2@2.34.1 successfully installed - automationName: UiAutomator2
  • platformNames: ["Android"] [DeviceFarm] appium driver list --installed
  • Listing installed drivers ✔ Listing installed drivers
  • flutter@2.2.0 [installed (npm)]
  • uiautomator2@2.34.1 [installed (npm)] [DeviceFarm] export APPIUM_BASE_PATH=/wd/hub [DeviceFarm] devicefarm-cli use java 11 [DeviceFarm] java -version openjdk version "11.0.20.1" 2023-08-22 LTS OpenJDK Runtime Environment Corretto-11.0.20.9.1 (build 11.0.20.1+9-LTS) OpenJDK 64-Bit Server VM Corretto-11.0.20.9.1 (build 11.0.20.1+9-LTS, mixed mode)

[DEVICEFARM] ########### Entering phase pre_test ###########

[DeviceFarm] export CLASSPATH=$CLASSPATH:$DEVICEFARM_TEST_PACKAGE_PATH/* [DeviceFarm] export CLASSPATH=$CLASSPATH:$DEVICEFARM_TEST_PACKAGE_PATH/dependency-jars/* [DeviceFarm] appium --base-path=$APPIUM_BASE_PATH --log-timestamp
--log-no-colors --relaxed-security --default-capabilities
"{"appium:deviceName": "$DEVICEFARM_DEVICE_NAME",
"platformName": "$DEVICEFARM_DEVICE_PLATFORM_NAME",
"appium:app": "$DEVICEFARM_APP_PATH",
"appium:udid":"$DEVICEFARM_DEVICE_UDID",
"appium:platformVersion": "$DEVICEFARM_DEVICE_OS_VERSION",
"appium:chromedriverExecutableDir": "$DEVICEFARM_CHROMEDRIVER_EXECUTABLE_DIR",
"appium:autoGrantPermissions":"true",
"appium:automationName": "Flutter"}" \

$DEVICEFARM_LOG_DIR/appium.log 2>&1 & [DeviceFarm] appium_initialization_time=0; until curl --silent --fail "http://0.0.0.0:4723${APPIUM_BASE_PATH}/status"; do if [[ $appium_initialization_time -gt 30 ]]; then echo "Appium did not start within 30 seconds. Exiting..."; exit 1; fi; appium_initialization_time=$((appium_initialization_time + 1)); echo "Waiting for Appium to start on port 4723..."; sleep 1; done; Waiting for Appium to start on port 4723... Waiting for Appium to start on port 4723... Waiting for Appium to start on port 4723... Waiting for Appium to start on port 4723... {"value":{"ready":true,"message":"The server is ready to accept new connections","build":{"version":"2.1.2"}}} [DEVICEFARM] ########### Entering phase test ###########

[DeviceFarm] echo "Navigate to test package directory" Navigate to test package directory [DeviceFarm] cd $DEVICEFARM_TEST_PACKAGE_PATH [DeviceFarm] echo "Starting the Appium TestNG test" Starting the Appium TestNG test [DeviceFarm] java -Dappium.screenshots.dir=$DEVICEFARM_SCREENSHOT_PATH org.testng.TestNG -testjar *-tests.jar
-d $DEVICEFARM_LOG_DIR/test-output -verbose 10 [TestNG] INVOKING CONFIGURATION: "UNKNOWN" - @BeforeSuite com.mirus.sp.utils.BaseClass.setup() Nov 10, 2023 7:52:29 PM io.appium.java_client.remote.AppiumCommandExecutor$1 lambda$0 INFO: Detected dialect: W3C [TestNG] PASSED CONFIGURATION: "UNKNOWN" - @BeforeSuite com.mirus.sp.utils.BaseClass.setup() finished in 119346 ms [TestNG] RUNNING: Suite: "Mirus App tests" containing "2" Tests (config: /tmp/testngXmlPathInJar-15517038925810580236/testng.xml) [TestNG] INVOKING CONFIGURATION: "Mirus App tests" - @BeforeClass com.mirus.sp.testcases.NavigationTest.appLogin() [TestNG] FAILED CONFIGURATION: "Mirus App tests" - @BeforeClass com.mirus.sp.testcases.NavigationTest.appLogin() finished in 10117 ms [TestNG] org.openqa.selenium.NoSuchSessionException: A session is either terminated or not started [TestNG] Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' [TestNG] System info: host: 'ip-10-1-159-205.us-west-2.compute.internal', ip: '10.1.159.205', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.196-185.743.amzn2.x86_64', java.version: '11.0.20.1' [TestNG] Driver info: io.appium.java_client.android.AndroidDriver [TestNG] Capabilities {address: 0.0.0.0, allowCors: false, allowInsecure: [], app: /tmp/devicefarm-workspace/e..., autoGrantPermissions: true, automationName: Flutter, basePath: /wd/hub, callbackPort: 4723, chromedriverExecutableDir: /tmp/devicefarm-workspace/e..., debugLogSpacing: false, defaultCapabilities: {appium:app: /tmp/devicefarm-workspace/e..., appium:autoGrantPermissions: true, appium:automationName: Flutter, appium:chromedriverExecutableDir: /tmp/devicefarm-workspace/e..., appium:deviceName: 1A231JEG501361, appium:platformVersion: 12, appium:udid: 1A231JEG501361, platformName: Android}, denyInsecure: [], deviceName: 1A231JEG501361, extraArgs: [], fastReset: true, javascriptEnabled: true, keepAliveTimeout: 600, localTimezone: false, logNoColors: true, logTimestamp: true, loglevel: debug, longStacktrace: false, noPermsCheck: false, platform: ANDROID, platformName: Android, platformVersion: 12, port: 4723, relaxedSecurityEnabled: true, sessionOverride: false, skipUninstall: true, strictCaps: false, subcommand: server, tmpDir: /tmp, udid: 1A231JEG501361, useDrivers: [], usePlugins: []} [TestNG] Session ID: 1a69ce42-d357-4261-b029-68e6d28360ce [TestNG] at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [TestNG] at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [TestNG] at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [TestNG] at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) [TestNG] at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187) [TestNG] at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122) [TestNG] at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49) [TestNG] at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158) [TestNG] at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239) [TestNG] at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) [TestNG] at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42) [TestNG] at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1) [TestNG] at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1) [TestNG] at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:285) [TestNG] at io.appium.java_client.DefaultGenericMobileElement.execute(DefaultGenericMobileElement.java:45) [TestNG] at io.appium.java_client.MobileElement.execute(MobileElement.java:1) [TestNG] at org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:106) [TestNG] at com.mirus.sp.pageobjects.LoginPage.login(LoginPage.java:54) [TestNG] at com.mirus.sp.testcases.NavigationTest.appLogin(NavigationTest.java:36) [TestNG] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [TestNG] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [TestNG] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [TestNG] at java.base/java.lang.reflect.Method.invoke(Method.java:566) [TestNG] at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) [TestNG] at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59) [TestNG] at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:458) [TestNG] at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222) [TestNG] at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142) [TestNG] at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:168) [TestNG] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105) [TestNG] at org.testng.TestRunner.privateRun(TestRunner.java:648) [TestNG] at org.testng.TestRunner.run(TestRunner.java:505) [TestNG] at org.testng.SuiteRunner.runTest(SuiteRunner.java:455) [TestNG] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450) [TestNG] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415) [TestNG] at org.testng.SuiteRunner.run(SuiteRunner.java:364) [TestNG] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) [TestNG] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) [TestNG] at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208) [TestNG] at org.testng.TestNG.runSuitesLocally(TestNG.java:1137) [TestNG] at org.testng.TestNG.runSuites(TestNG.java:1049) [TestNG] at org.testng.TestNG.run(TestNG.java:1017) [TestNG] at org.testng.TestNG.privateMain(TestNG.java:1354) [TestNG] at org.testng.TestNG.main(TestNG.java:1323) [TestNG] SKIPPED: "Mirus App tests" - com.mirus.sp.testcases.NavigationTest.testNavigation() finished in 0 ms [TestNG] org.openqa.selenium.NoSuchSessionException: A session is either terminated or not started [TestNG] Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' [TestNG] System info: host: 'ip-10-1-159-205.us-west-2.compute.internal', ip: '10.1.159.205', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.196-185.743.amzn2.x86_64', java.version: '11.0.20.1' [TestNG] Driver info: io.appium.java_client.android.AndroidDriver [TestNG] Capabilities {address: 0.0.0.0, allowCors: false, allowInsecure: [], app: /tmp/devicefarm-workspace/e..., autoGrantPermissions: true, automationName: Flutter, basePath: /wd/hub, callbackPort: 4723, chromedriverExecutableDir: /tmp/devicefarm-workspace/e..., debugLogSpacing: false, defaultCapabilities: {appium:app: /tmp/devicefarm-workspace/e..., appium:autoGrantPermissions: true, appium:automationName: Flutter, appium:chromedriverExecutableDir: /tmp/devicefarm-workspace/e..., appium:deviceName: 1A231JEG501361, appium:platformVersion: 12, appium:udid: 1A231JEG501361, platformName: Android}, denyInsecure: [], deviceName: 1A231JEG501361, extraArgs: [], fastReset: true, javascriptEnabled: true, keepAliveTimeout: 600, localTimezone: false, logNoColors: true, logTimestamp: true, loglevel: debug, longStacktrace: false, noPermsCheck: false, platform: ANDROID, platformName: Android, platformVersion: 12, port: 4723, relaxedSecurityEnabled: true, sessionOverride: false, skipUninstall: true, strictCaps: false, subcommand: server, tmpDir: /tmp, udid: 1A231JEG501361, useDrivers: [], usePlugins: []} [TestNG] Session ID: 1a69ce42-d357-4261-b029-68e6d28360ce [TestNG] at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [TestNG] at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [TestNG] at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [TestNG] at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) [TestNG] at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187) [TestNG] at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122) [TestNG] at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49) [TestNG] at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158) [TestNG] at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239) [TestNG] at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) [TestNG] at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42) [TestNG] at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1) [TestNG] at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1) [TestNG] at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:285) [TestNG] at io.appium.java_client.DefaultGenericMobileElement.execute(DefaultGenericMobileElement.java:45) [TestNG] at io.appium.java_client.MobileElement.execute(MobileElement.java:1) [TestNG] at org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:106) [TestNG] at com.mirus.sp.pageobjects.LoginPage.login(LoginPage.java:54) [TestNG] at com.mirus.sp.testcases.NavigationTest.appLogin(NavigationTest.java:36) [TestNG] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [TestNG] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [TestNG] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [TestNG] at java.base/java.lang.reflect.Method.invoke(Method.java:566) [TestNG] at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) [TestNG] at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59) [TestNG] at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:458) [TestNG] at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222) [TestNG] at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142) [TestNG] at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:168) [TestNG] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105) [TestNG] at org.testng.TestRunner.privateRun(TestRunner.java:648) [TestNG] at org.testng.TestRunner.run(TestRunner.java:505) [TestNG] at org.testng.SuiteRunner.runTest(SuiteRunner.java:455) [TestNG] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450) [TestNG] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415) [TestNG] at org.testng.SuiteRunner.run(SuiteRunner.java:364) [TestNG] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) [TestNG] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) [TestNG] at org.testng.TestNG.runSuitesSequentially(TestN

Shweta
질문됨 6달 전1131회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인