testit-tms / adapters-python

Apache License 2.0
10 stars 11 forks source link

missing 2 required positional arguments: 'attachments' and 'links' #122

Open l-GreeN-l opened 6 months ago

l-GreeN-l commented 6 months ago

При запуске тестов возникает ошибка:

INTERNALERROR> TypeError: TestRunV2GetModel._from_openapi_data() missing 2 required positional arguments: 'attachments' and 'links'
Uploading artifacts for failed job
00:01
Uploading artifacts...
WARNING: ./reports_junit/junit.xml: no matching files. Ensure that the artifact path is relative to the working directory (/builds/cb/qa/sco_pytest) 
ERROR: No files to upload                          
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: command terminated with exit code 1

Без параметра --testit тест запускается и проходит Подскажите пожалуйста в чем может быть проблема?

Строка запуска

pytest ./tests/API/BPMN/Actual_assortiment/test_actual_assortiment.py -k test_actual_assortment_smoke  --reruns 2 --testit --tmsAdapterMode=0 --tmsTestRunId=${TEST_RUN_ID} --tmsUrl=${URL} --tmsPrivateToken=${PRIVATE_TOKEN} --tmsConfigurationId=${CONFIGURATION_ID} --tmsProjectId=${PRJ_ID} --tmsCertValidation=false

workItemIds и externalID такие же как в testit

@testit.workItemIds(131852)
@testit.externalID('7625ff076c12c4efae78806b66e91ad109ae489552aa9db4844e71ed6a8a3409')
def test_actual_assortment_smoke(co_service_db, api_brpmn_integration_service):

Версии пакетов

Пакет Test IT Enterpris
testit-adapter-pytest 2.5.3
testit-api-client 3.4.1
testit-python-commons 2.5.3

Test IT

Продукт Test IT Enterpris
Версия 4.2.1
Сборка 4.2.1
lebedevadare commented 6 months ago

Здравствуйте, имею такую же проблему с запуском . Использую файл connection_config.ini и запускаю командой pytest --testit

Korella commented 3 months ago

Попробуйте понизить версию до 2.1-2.4 https://github.com/testit-tms/adapters-python/tree/main?tab=readme-ov-file#compatibility

dmitriy-belkin commented 2 months ago

мне понижении версии не помогает

iasleep commented 2 months ago

Та же проблема. Решение будет?

PavelButuzov commented 2 months ago

Добрый день. Убедитесь, пожалуйста, что при понижении версии адаптера до 2.1-2.4 идет понижение api-клиента. Таблица совместимости api-клиента https://github.com/testit-tms/api-client-python?tab=readme-ov-file#compatibility. Для Test IT 4.2.1 необходим api-клиент 3.1.

grybakov commented 1 month ago

Добрый день. Убедитесь, пожалуйста, что при понижении версии адаптера до 2.1-2.4 идет понижение api-клиента. Таблица совместимости api-клиента https://github.com/testit-tms/api-client-python?tab=readme-ov-file#compatibility. Для Test IT 4.2.1 необходим api-клиент 3.1.

Добрый день. Убедитесь, пожалуйста, что при понижении версии адаптера до 2.1-2.4 идет понижение api-клиента. Таблица совместимости api-клиента https://github.com/testit-tms/api-client-python?tab=readme-ov-file#compatibility. Для Test IT 4.2.1 необходим api-клиент 3.1.

Словил такую беду. Помогло. Спасибо.