Skip to content

Commit ec01c10

Browse files
committed
feat: added multiple android device support
1 parent c01d87d commit ec01c10

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Framework/Built_In_Automation/Mobile/CrossPlatform/Appium/BuiltInFunctions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,7 @@ def start_appium_driver(
933933
if str(appium_details[device_id]["type"]).lower() == "android":
934934
# All Desired caps = https://appium.io/docs/en/writing-running-appium/caps/
935935
desired_caps["platformName"] = appium_details[device_id]["type"] # Set platform name
936+
desired_caps["udid"] = appium_details[device_id]["serial"]
936937
desired_caps["autoLaunch"] = "false" # Do not launch application
937938
desired_caps["fullReset"] = "false" # Do not reinstall application
938939
if no_reset:

Framework/MainDriverApi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,6 +1260,7 @@ def send_dom_variables():
12601260
def set_device_info_according_to_user_order(device_order, device_dict, test_case_no, test_case_name, user_info_object, Userid, **kwargs):
12611261
# Need to set device_info for browserstack here
12621262
global device_info
1263+
device_order = [[i, i] for i in range(1, len(device_dict) + 1)] # overriding zsvc return device order. zsvc only returns [[1,1]] without considering the number of devices available
12631264
shared.Set_Shared_Variables("device_order", device_order)
12641265
if isinstance(device_order, list):
12651266
try:

0 commit comments

Comments
 (0)