Na documentação falam para utilizar a versão 3.12 (GitHub - totvs/tir: This module is used to create and execute test suites and test cases for web interfaces.), consegui fazer a instalação, etc… porém ao executar o teste. Ocorre um ERRO que não estou conseguindo identificar.
Fala que não conseguiu abrir o browser, etc…
Alguém poderia me auxiliar?
PS D:\CDias\Azure\TIR_TestInterfaceRobot> & “C:/Users/Stan Lee/AppData/Local/Programs/Python/Python312/python.exe” d:/CDias/Azure/TIR_TestInterfaceRobot/TIR_01/Alteracao_ProdutoTESTSUITE.py
2025-07-24 11:05:36,740-INFO:: TIR Version: 2.4.0
2025-07-24 11:05:36,740-INFO:: Python Version: 3.12.7
2025-07-24 11:05:36,740-INFO:: Starting the browser
2025-07-24 11:05:42,732-WARNING:: Warning log_error Wasn’t possible execute Start() method: Message: Reached error page: about:neterror?e=netReset&u=http%3A//localhost%3A1234/&c=UTF-8&d=A%20conex%C3%A3o%20com%20o%20servidor%20foi%20reiniciada%20durante%20o%20carregamento%20da%20p%C3%A1gina.
Stacktrace:
RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:199:5
UnknownError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:910:5
checkReadyState@chrome://remote/content/marionette/navigate.sys.mjs:58:24
onNavigation@chrome://remote/content/marionette/navigate.sys.mjs:347:39
emit@resource://gre/modules/EventEmitter.sys.mjs:156:19
receiveMessage@chrome://remote/content/marionette/actors/MarionetteEventsParent.sys.mjs:33:25
2025-07-24 11:05:43,820-INFO:: Saving log locally.
2025-07-24 11:05:43,820-INFO:: [FwSendLog]: Não foi possível enviar o log após todas as tentativas.
2025-07-24 11:05:43,822-INFO:: [FwSendLog]: Log salvo localmente em D:\CDias\Azure\TIR_TestInterfaceRobot\1753365943.json.
2025-07-24 11:05:45,855-ERROR:: Warning Log Error Close Message: Tried to run command without establishing a connection
Traceback (most recent call last):
File “C:\Users\Stan Lee\AppData\Local\Programs\Python\Python312\Lib\site-packages\tir\technologies\webapp_internal.py”, line 8199, in log_error
self.driver.close()
File “C:\Users\Stan Lee\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py”, line 458, in close
self.execute(Command.CLOSE)
File “C:\Users\Stan Lee\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py”, line 347, in execute
self.error_handler.check_response(response)
File “C:\Users\Stan Lee\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\errorhandler.py”, line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidSessionIdException: Message: Tried to run command without establishing a connection
setUpClass (Alteracao_ProdutoTESTCASE.Alteracao_Produto) … ERROR
======================================================================
ERROR: setUpClass (Alteracao_ProdutoTESTCASE.Alteracao_Produto)
self.execute(Command.CLOSE)
File “C:\Users\Stan Lee\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py”, line 347, in execute
self.error_handler.check_response(response)
File “C:\Users\Stan Lee\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\errorhandler.py”, line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidSessionIdException: Message: Tried to run command without establishing a connection
setUpClass (Alteracao_ProdutoTESTCASE.Alteracao_Produto) … ERROR
======================================================================
ERROR: setUpClass (Alteracao_ProdutoTESTCASE.Alteracao_Produto)
selenium.common.exceptions.InvalidSessionIdException: Message: Tried to run command without establishing a connection
setUpClass (Alteracao_ProdutoTESTCASE.Alteracao_Produto) … ERROR
======================================================================
ERROR: setUpClass (Alteracao_ProdutoTESTCASE.Alteracao_Produto)
ERROR: setUpClass (Alteracao_ProdutoTESTCASE.Alteracao_Produto)
Traceback (most recent call last):
File “d:\CDias\Azure\TIR_TestInterfaceRobot\TIR_01\Alteracao_ProdutoTESTCASE.py”, line 9, in setUpClass
inst.oHelper = Webapp()
^^^^^^^^
File “C:\Users\Stan Lee\AppData\Local\Programs\Python\Python312\Lib\site-packages\tir\main.py”, line 24, in init
self.__webapp = WebappInternal(config_path, autostart)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Stan Lee\AppData\Local\Programs\Python\Python312\Lib\site-packages\tir\technologies\webapp_internal.py”, line 147, in init
self.log_error(message)
File “C:\Users\Stan Lee\AppData\Local\Programs\Python\Python312\Lib\site-packages\tir\technologies\webapp_internal.py”, line 8209, in log_error
self.assertTrue(False, log_message)
File “C:\Users\Stan Lee\AppData\Local\Programs\Python\Python312\Lib\unittest\case.py”, line 727, in assertTrue
raise self.failureException(msg)
AssertionError: False is not true : setUpClass - Wasn’t possible execute Start() method: Message: Reached error page: about:neterror?e=netReset&u=http%3A//localhost%3A1234/&c=UTF-8&d=A%20conex%C3%A3o%20com%20o%20servidor%20foi%20reiniciada%20durante%20o%20carregamento%20da%20p%C3%A1gina.
Stacktrace:
RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:199:5
UnknownError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:910:5
checkReadyState@chrome://remote/content/marionette/navigate.sys.mjs:58:24
onNavigation@chrome://remote/content/marionette/navigate.sys.mjs:347:39
emit@resource://gre/modules/EventEmitter.sys.mjs:156:19
receiveMessage@chrome://remote/content/marionette/actors/MarionetteEventsParent.sys.mjs:33:25
Ran 0 tests in 9.509s
FAILED (errors=1)