как и обещал, выложил скрипт
https://github.com/s..._testexecute.py
жду ваших обсуждений :)
Stanislav_alphaopen еще не добавил друзей
14 ноября 2016 - 12:30
30 августа 2016 - 15:55
Создал тему на https://community.sm...-p/125967#M7113
P.s. Как справлюсь с задачей, выложу вам как быстро запустить Python сервак на flask для управления TC извне
30 августа 2016 - 12:57
Немного разобрался
def conn(project_path): pythoncom.CoInitialize() test_execute_app = win32com.client.Dispatch("TestExecute.TestExecuteApplication.12") integration_object = test_execute_app.Integration integration_object.OpenProjectSuite(project_path) print 'project suite is opened: ' + str(integration_object.IsProjectSuiteOpened()) integration_object.RunRoutine('Framework', 'uUserTests', 'test1') pythoncom.CoUninitialize()
почему-то вылетает предпоследний пункт - integration_object.RunRoutine('Framework', 'uUserTests', 'test1'), выдает что com_error: (-2147352567, '\xce\xf8\xe8\xe1\xea\xe0.', (0, None, u'Unable to find the specified element. Project: Framework, UnitName: uUserTests, RoutineName: test1', None, 0, -2147352567), None)
хотя эта функция в этом скрипте в этом проекте есть
23 мая 2016 - 11:33
Вот решение
13 мая 2016 - 14:24
Вместо RunRoutine используйте RunRoutineEx. Там можно передать список параметров в виде массива.
Выручаете, как всегда. Спасибо! :)
Community Forum Software by IP.Board Русификация от IBResource
Лицензия зарегистрирована на: Software-Testing.Ru