报错:
Original error: Could not proxy command to remote server. Original error: Error: socket hang up
使用参数化来跑test case
@parameterized.expand([
('[email protected]', '123456',''),
('[email protected]', '123455','Password Incorrect'),
('[email protected]', '123456','Account does not exist')
])
# @Common.getImage
def test_login(self,username,password,message):
logging.info('==========test_login========')
user = login(self.driver)
self.assertTrue(user.login_action(self.driver,username,password))
if message == '':
self.assertTrue(user.check_login_status(username))
else:
self.assertTrue(user.check_toast(message))
sleep(3)
-----------------------------
遇到问题:
当使用三个用例参数组合去跑
中间那个会识别不到toast,看到现象就是感觉进程很快被杀掉进行下个用例参数
然后报
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: socket hang up
若单独允许该用例,则成功
目前正在查找原因