zebrunner / appium

Enhanced Appium for Elastic Selenium Grid/MCloud services
8 stars 3 forks source link

analyze the reason and possible improvements #217

Closed vdelendik closed 9 months ago

vdelendik commented 1 year ago

below ins the log for the 20 threads execution on iOS:

12:31:24  2023-08-18 10:31:24 IDriverPool [TestNG-tests-13-32] [ERROR] Driver initialization 'default' FAILED! Retry 1 of 6 time - Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: [MCLOUD] Local application file has not appeared after .lock file removal[[[--udid 00008030-000C18A4362B402E --name iPhone_SE2 --sessionId 933851d2-c6d3-460d-8048-3ff85c754e77]]] 
12:31:24  Host info: host: 'ip-172-31-26-92.eu-central-1.compute.internal', ip: '172.31.26.92'
12:31:24  Build info: version: '4.7.0', revision: '0a5b49d16f'
12:31:24  System info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.184-175.749.amzn2.x86_64', java.version: '17.0.7'
12:31:24  Driver info: io.appium.java_client.ios.IOSDriver
12:31:24  Command: [null, newSession {capabilities=[{appium:deviceType=phone, appium:provider=mcloud, appium:enableVideo=true, appium:waitForQuiescence=false, appium:newCommandTimeout=2000, appium:locale=en_US, appium:simpleIsVisibleCheck=true, appium:autoAcceptAlerts=false, appium:language=en, appium:automationName=XCuiTest, appium:fullReset=true, appium:enableLog=true, appium:noReset=false, appium:deviceName=ANY, platformName=IOS, appium:app=https://mfp-solvd-com.s3.eu-central-1.amazonaws.com/mfp/ios/mfp-ios-23.17.0-%5B45731%5D.ipa?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230818T102435Z&X-Amz-SignedHeaders=host&X-Amz-Expires=259199&X-Amz-Credential=AKIA54PAXCDGY3N3QVVY%2F20230818%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Signature=e9d9d2593bdcafbc07a0332862d7c7297b3f8efe874d6a3ac3cb61c71823cc6f}], desiredCapabilities=Capabilities {appium:app: https://mfp-solvd-com.s3.eu/..., appium:autoAcceptAlerts: false, appium:automationName: XCuiTest, appium:deviceName: ANY, appium:deviceType: phone, appium:enableLog: true, appium:enableVideo: true, appium:fullReset: true, appium:language: en, appium:locale: en_US, appium:newCommandTimeout: 2000, appium:noReset: false, appium:provider: mcloud, appium:simpleIsVisibleCheck: true, appium:waitForQuiescence: false, platformName: IOS}}]
12:31:24  Capabilities {}
12:31:24  2023-08-18 10:31:24 IMobileUtils [TestNG-tests-12-31] [INFO] element already present before swipe: exerciseByName (AppiumBy.accessibilityId: Push Up)
12:31:24  2023-08-18 10:31:24 IDriverPool [TestNG-tests-4-23] [ERROR] Driver initialization 'default' FAILED! Retry 1 of 6 time - Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: [MCLOUD] Local application file has not appeared after .lock file removal[[[--udid 8faa419517bda5c6665d4a8eb99b7d4a59cc0b8f --name iPhone_7_Plus --sessionId 677df4a8-9f8d-4c12-9d67-56a17fa28eb6]]] 
12:31:24  Host info: host: 'ip-172-31-26-92.eu-central-1.compute.internal', ip: '172.31.26.92'
12:31:24  Build info: version: '4.7.0', revision: '0a5b49d16f'
12:31:24  System info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.184-175.749.amzn2.x86_64', java.version: '17.0.7'
12:31:24  Driver info: io.appium.java_client.ios.IOSDriver
12:31:24  Command: [null, newSession {capabilities=[{appium:deviceType=phone, appium:provider=mcloud, appium:enableVideo=true, appium:waitForQuiescence=false, appium:newCommandTimeout=2000, appium:locale=en_US, appium:simpleIsVisibleCheck=true, appium:autoAcceptAlerts=false, appium:language=en, appium:automationName=XCuiTest, appium:fullReset=true, appium:enableLog=true, appium:noReset=false, appium:deviceName=ANY, platformName=IOS, appium:app=https://mfp-solvd-com.s3.eu-central-1.amazonaws.com/mfp/ios/mfp-ios-23.17.0-%5B45731%5D.ipa?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230818T102435Z&X-Amz-SignedHeaders=host&X-Amz-Expires=259199&X-Amz-Credential=AKIA54PAXCDGY3N3QVVY%2F20230818%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Signature=e9d9d2593bdcafbc07a0332862d7c7297b3f8efe874d6a3ac3cb61c71823cc6f}], desiredCapabilities=Capabilities {appium:app: https://mfp-solvd-com.s3.eu/..., appium:autoAcceptAlerts: false, appium:automationName: XCuiTest, appium:deviceName: ANY, appium:deviceType: phone, appium:enableLog: true, appium:enableVideo: true, appium:fullReset: true, appium:language: en, appium:locale: en_US, appium:newCommandTimeout: 2000, appium:noReset: false, appium:provider: mcloud, appium:simpleIsVisibleCheck: true, appium:waitForQuiescence: false, platformName: IOS}}]
12:31:24  Capabilities {}
vdelendik commented 9 months ago

already fixed in scope of #238 in 2.0.9 release. the root cause - appium removals of the donwloaded and cached apk/ipa files