diff --git a/Resources/AndroidCommon.robot b/Resources/AndroidCommon.robot index babce50..ff5950a 100644 --- a/Resources/AndroidCommon.robot +++ b/Resources/AndroidCommon.robot @@ -2,9 +2,6 @@ Library AppiumLibrary *** Variables *** -env var - ${LT_USERNAME}= Get Environment Variable LT_USERNAME - ${LT_ACCESS_KEY}= Get Environment Variable LT_ACCESS_KEY @{_tmp} ... platformName: ${platformName} @@ -18,7 +15,7 @@ env var #${BROWSER} ${ROBOT_BROWSER} ${CAPABILITIES} ${EMPTY.join(${_tmp})} -${REMOTE_URL} https://${LT_USERNAME}:${LT_ACCESS_KEY}@mobile-hub.lambdatest.com/wd/hub +${REMOTE_URL} https://%{LT_USERNAME}:%{LT_ACCESS_KEY}@mobile-hub.lambdatest.com/wd/hub #${app} lt://APP100201841649255527998398 ${app} lt://proverbial-android ${TIMEOUT} 3000 diff --git a/Resources/Common.robot b/Resources/Common.robot index ad9b48a..c9a8767 100755 --- a/Resources/Common.robot +++ b/Resources/Common.robot @@ -2,14 +2,11 @@ Library AppiumLibrary *** Variables *** -env var - ${LT_USERNAME}= Get Environment Variable LT_USERNAME - ${LT_ACCESS_KEY}= Get Environment Variable LT_ACCESS_KEY @{_tmp} ... platformName: ${platformName} ... platformVersion: ${version} - ... deviceName:${deviceName} + ... deviceName: ${deviceName} ... visual: ${visual} ... network: ${network} ... isRealMobile: ${isRealMobile} @@ -18,7 +15,7 @@ env var #${BROWSER} ${ROBOT_BROWSER} ${CAPABILITIES} ${EMPTY.join(${_tmp})} -${REMOTE_URL} https://${LT_USERNAME}:${LT_ACCESS_KEY}@mobile-hub.lambdatest.com/wd/hub +${REMOTE_URL} https://%{LT_USERNAME}:%{LT_ACCESS_KEY}@mobile-hub.lambdatest.com/wd/hub #${app} lt://APP100201841649255527998398 ${app} lt://proverbial-ios ${TIMEOUT} 3000 diff --git a/output.xml b/output.xml index 066804b..bb129a2 100755 --- a/output.xml +++ b/output.xml @@ -1,8 +1,8 @@ - - + + - + ${REMOTE_URL} platformName=${platformName} @@ -21,30 +21,26 @@ Please check https://github.com/appium/appium/blob/master/docs/en/writing-runnin | alias | no | alias | Takes a screenshot of the current page and embeds it into the log. - + -No application is open -Keyword 'Capture Page Screenshot' could not be run on failure: No application is open -WebDriverException: Message: Unauthorized, either Username or AccessKey is invalid. - - +Keyword 'Capture Page Screenshot' could not be run on failure: Execution terminated by signal + - + - + Closes all open applications. - + - + -Setup failed: -WebDriverException: Message: Unauthorized, either Username or AccessKey is invalid. - +Setup failed: +Execution terminated by signal - + @@ -53,13 +49,10 @@ WebDriverException: Message: Unauthorized, either Username or AccessKey is inval -Android +IOS -Error in file '/Users/ankitagarwal/Documents/Code-Snippet/LT-appium-python-robot/Resources/AndroidCommon.robot' on line 5: Setting variable 'env var' failed: Invalid variable name 'env var'. -Error in file '/Users/ankitagarwal/Documents/Code-Snippet/LT-appium-python-robot/Resources/AndroidCommon.robot' on line 6: Setting variable '' failed: Invalid variable name ''. -Error in file '/Users/ankitagarwal/Documents/Code-Snippet/LT-appium-python-robot/Resources/AndroidCommon.robot' on line 7: Setting variable '' failed: Invalid variable name ''. -Keyword 'Capture Page Screenshot' could not be run on failure: No application is open +Keyword 'Capture Page Screenshot' could not be run on failure: Execution terminated by signal