This commit is contained in:
Valentina Novgorodtceva 2024-07-22 15:16:12 +07:00
parent b584c65df9
commit bec5990bb5
1 changed files with 5 additions and 1 deletions

View File

@ -83,7 +83,11 @@ class AUT:
SquishServer().add_attachable_aut(self.aut_id, self.port)
if self.ctx is None:
self.ctx = context.get_context(self.aut_id)
squish.setApplicationContext(self.ctx)
try:
squish.setApplicationContext(self.ctx, timeout_sec)
except TypeError:
raise TypeError(f'Current list is {squish.applicationContextList()}')
assert squish.waitFor(lambda: self.ctx.isRunning, configs.timeouts.PROCESS_TIMEOUT_SEC)
except Exception as err:
LOG.error('Failed to attach AUT: %s', err)