我有机会做任何事情之前,使用BitBar云进行的Appium会话超时

时间:2019-11-18 17:00:47

标签: timeout appium bitbar

我正在使用Appium GUI尝试与BitBar上的云服务器连接。我已经输入了功能,包括我的API密钥和应用程序ID,并且连接成功启动。但是,一旦出现应用程序加载屏幕,由于以下错误,测试将停止:

import pandas as pd import re import itertools pd.set_option('display.max_columns', 100) pd.set_option('display.width', 1000) df = pd.read_csv("data.csv") print(df, "\n") days = ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'] for index, row in df.iterrows(): # get the start and end days start_day = row['Namestart'] end_day = row['Nameend'] # get the start end end times start_time = re.findall(r'\s(\d+\:\d{2}\s?(?:AM|PM|am|pm))', row['Start Time'])[0] end_time = re.findall(r'\s(\d+\:\d{2}\s?(?:AM|PM|am|pm))', row['End Time'])[0] # get the indices corresponding to the start and end days start_index = days.index(start_day) end_index = days.index(end_day)+1 # count the number of days cnt = end_index - start_index print(cnt, "days\t", end='') # slice the days list from start_index to end_index for day in itertools.islice(days, start_index, end_index): if (day!=end_day): print(day, start_time, "- 5:30 PM\t", end='') else: print(day, start_time, "-", end_time, end='') print() # to start a new line before printing each row

我不知道我在做什么错,有人可以指出我正确的方向吗?

1 个答案:

答案 0 :(得分:0)

您只需增加newCommandTimeout或删除该功能。看来您将其设置为0。

如果您使用的是Appium Desktop,则根据here,它是appium changelog。Bitbar不能正确处理0值。很快就会解决。