From afed9ba80be22ea90abaa0d575fac3247e17793f Mon Sep 17 00:00:00 2001 From: shivanks-hue Date: Thu, 11 Dec 2025 03:43:00 +0530 Subject: [PATCH 1/4] Updated Common.robot --- Resources/Common.robot | 18 +++++++++++------- requirements.txt | 15 +++++++++++---- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/Resources/Common.robot b/Resources/Common.robot index db0277e..8244585 100755 --- a/Resources/Common.robot +++ b/Resources/Common.robot @@ -2,16 +2,19 @@ Library AppiumLibrary *** Variables *** - +#${username} username +#${accesskey} accesskey +${LT_GRID_URL} https://${username}:${accesskey}@mobile-hub.lambdatest.com/wd/hub ${platformName} ios -#${platformVersion} 15 # Set your default version +${platformVersion} 15 # Set your default version ${deviceName} iPhone.* ${visual} True ${network} True ${isRealMobile} True -${LT_APP_ID} '' -${LT_GRID_URL} '' +#${LT_APP_ID} 'APPID' ${TIMEOUT} 3000 +${devicelog} True + *** Keywords *** @@ -20,7 +23,7 @@ Open test app [Timeout] ${TIMEOUT} ${CAPABILITIES}= Create Dictionary ... platformName=${platformName} - ... platformVersion=${version} + ... platformVersion=${platformVersion} ... deviceName=${deviceName} ... visual=${visual} ... network=${network} @@ -39,9 +42,10 @@ Open test app EXCEPT ${APP_ID}= Set Variable lt://proverbial-ios END - ${REMOTE_URL}= Set Variable https://%{LT_USERNAME}:%{LT_ACCESS_KEY}@${REMOTE_URL}/wd/hub + ${REMOTE_URL}= Set Variable https://${username}:${accesskey}@${REMOTE_URL}/wd/hub + - Open Application ${REMOTE_URL} platformName=ios platformVersion=${version} deviceName=${deviceName} visual=${visual} network=${network} devicelog=${devicelog} isRealMobile=${isRealMobile} app=${APP_ID} name=LT_Appium_Robot_App_iOS build=LT_Appium_Robot_App_Automation + Open Application ${REMOTE_URL} platformName=ios platformVersion=${platformVersion} deviceName=${deviceName} visual=${visual} network=${network} devicelog=${devicelog} isRealMobile=${isRealMobile} app=${APP_ID} name=LT_Appium_Robot_App_iOS build=LT_Appium_Robot_App_Automation Close test app Close All Applications diff --git a/requirements.txt b/requirements.txt index 4fd5540..a5acb45 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,11 @@ -selenium==3.141.0 -urllib3==1.26.6 -robotframework -robotframework-appiumlibrary +# selenium==3.141.0 +# urllib3==1.26.6 +# robotframework +# robotframework-appiumlibrary + +# selenium==4.12.0 +# urllib3==1.26.6 +# robotframework +# robotframework-appiumlibrary + + From 099613f2e821711813e65d60cf85cd143b309418 Mon Sep 17 00:00:00 2001 From: shivanks-hue Date: Thu, 11 Dec 2025 03:44:34 +0530 Subject: [PATCH 2/4] Updated Common.robot --- requirements.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/requirements.txt b/requirements.txt index a5acb45..856434c 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,3 @@ -# selenium==3.141.0 -# urllib3==1.26.6 -# robotframework -# robotframework-appiumlibrary - # selenium==4.12.0 # urllib3==1.26.6 # robotframework From 7d75004e46352473e98893dc2c895b2d2a033ede Mon Sep 17 00:00:00 2001 From: shivanks-hue Date: Thu, 11 Dec 2025 19:42:07 +0530 Subject: [PATCH 3/4] Fixed AndroidCommon.robot --- Resources/AndroidCommon.robot | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/Resources/AndroidCommon.robot b/Resources/AndroidCommon.robot index 47d51bf..c1ccefd 100644 --- a/Resources/AndroidCommon.robot +++ b/Resources/AndroidCommon.robot @@ -3,15 +3,18 @@ Library AppiumLibrary *** Variables *** +#${username} username +#${accesskey} accesskey +${LT_GRID_URL} https://${username}:${accesskey}@mobile-hub.lambdatest.com/wd/hub ${platformName} android ${platformVersion} 12 # Set your default version ${deviceName} Galaxy.* ${visual} True ${network} True ${isRealMobile} True -${LT_APP_ID} '' -${LT_GRID_URL} '' +#${LT_APP_ID} 'APPID' ${TIMEOUT} 3000 +${devicelog} True *** Keywords *** @@ -19,7 +22,7 @@ Open test app [Timeout] ${TIMEOUT} ${CAPABILITIES}= Create Dictionary ... platformName=${platformName} - ... platformVersion=${version} + ... platformVersion=${platformVersion} ... deviceName=${deviceName} ... visual=${visual} ... network=${network} @@ -33,14 +36,19 @@ Open test app EXCEPT ${REMOTE_URL}= Set Variable mobile-hub.lambdatest.com END - TRY - ${APP_ID}= Set Variable If '%{LT_APP_ID}' == '' lt://proverbial-android %{LT_APP_ID} - EXCEPT - ${APP_ID}= Set Variable lt://proverbial-android - END - ${REMOTE_URL}= Set Variable https://%{LT_USERNAME}:%{LT_ACCESS_KEY}@${REMOTE_URL}/wd/hub + # TRY + # ${APP_ID}= Set Variable If '%{LT_APP_ID}' == '' lt://proverbial-android %{LT_APP_ID} + # EXCEPT + # ${APP_ID}= Set Variable lt://proverbial-android + # END + ${APP_ID}= Set Variable If '${LT_APP_ID}' != '' ${LT_APP_ID} lt://proverbial-android + + +# ${REMOTE_URL}= Set Variable https://%{username}:%{accesskey}@${REMOTE_URL}/wd/hub + ${REMOTE_URL}= Set Variable https://${username}:${accesskey}@${REMOTE_URL}/wd/hub + - Open Application ${REMOTE_URL} platformName=android platformVersion=${version} deviceName=${deviceName} visual=${visual} network=${network} devicelog=${devicelog} isRealMobile=${isRealMobile} app=${APP_ID} name=LT_Appium_Robot_App_Android build=LT_Appium_Robot_App_Automation + Open Application ${REMOTE_URL} platformName=android platformVersion=${platformVersion} deviceName=${deviceName} network=${network} devicelog=${devicelog} isRealMobile=${isRealMobile} app=${APP_ID} name=LT_Appium_Robot_App_Android build=LT_Appium_Robot_App_Automation Close test app Close All Applications \ No newline at end of file From bf966b097ef740fd164bb278c5c611483d2e4f39 Mon Sep 17 00:00:00 2001 From: shivanks-hue Date: Thu, 11 Dec 2025 21:25:45 +0530 Subject: [PATCH 4/4] Fixed CommonWeb.robot --- Resources/CommonWeb.robot | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Resources/CommonWeb.robot b/Resources/CommonWeb.robot index 9428ace..274ac21 100644 --- a/Resources/CommonWeb.robot +++ b/Resources/CommonWeb.robot @@ -2,7 +2,9 @@ Library AppiumLibrary *** Variables *** - +#${username} username +#${accesskey} accesskey +${LT_GRID_URL} https://${username}:${accesskey}@mobile-hub.lambdatest.com/wd/hub ${platformName} android ${platformVersion} 11 # Set your default version ${deviceName} Galaxy.* @@ -11,7 +13,6 @@ ${devicelog} True ${network} True ${console} True ${isRealMobile} True -${LT_GRID_URL} '' ${TIMEOUT} 3000 @@ -21,7 +22,7 @@ Open test app [Timeout] ${TIMEOUT} ${CAPABILITIES}= Create Dictionary ... platformName=${platformName} - ... platformVersion=${version} + ... platformVersion=${platformVersion} ... deviceName=${deviceName} ... visual=${visual} ... network=${network} @@ -35,9 +36,9 @@ Open test app EXCEPT ${REMOTE_URL}= Set Variable mobile-hub.lambdatest.com END - ${REMOTE_URL}= Set Variable https://%{LT_USERNAME}:%{LT_ACCESS_KEY}@${REMOTE_URL}/wd/hub + ${REMOTE_URL}= Set Variable https://${username}:${accesskey}@${REMOTE_URL}/wd/hub - Open Application ${REMOTE_URL} platformName=${platformName} platformVersion=${version} deviceName=${deviceName} visual=${visual} console=${console} network=${network} devicelog=${devicelog} isRealMobile=${isRealMobile} name=LT_Appium_Robot_Web build=LT_Appium_Robot_Web_Automation + Open Application ${REMOTE_URL} platformName=${platformName} platformVersion=${platformVersion} deviceName=${deviceName} visual=${visual} console=${console} network=${network} devicelog=${devicelog} isRealMobile=${isRealMobile} name=LT_Appium_Robot_Web build=LT_Appium_Robot_Web_Automation Close test app Close All Applications \ No newline at end of file