Coder Social home page Coder Social logo

Comments (1)

ShiraziElham avatar ShiraziElham commented on August 21, 2024

solution seems to be :
on importer.cy , on line 72 and 110 , instead of
for project in self.projects:
we needed for project in self.projects['projects']:.

Now I am getting anothet error. Here is my output for both inputs showing after it:

Traceback (most recent call last):
File "start.py", line 33, in
importer.start()
File "/home/elham/source/qase/qase-testrail-migration/importer.py", line 104, in start
self._create_suites(code, project['id'], None)
File "/home/elham/source/qase/qase-testrail-migration/importer.py", line 175, in _create_suites
sections = self._get_sections(testrail_project_id, testrail_suite_id)
File "/home/elham/source/qase/qase-testrail-migration/importer.py", line 210, in _get_sections
sections = self.testrail.send_get('get_sections/' + str(project_id) + f'&suite_id={suite_id}&limit={limit}&offset={offset}')
File "/home/elham/source/qase/qase-testrail-migration/testrail.py", line 39, in send_get
return self.__send_request('GET', uri, filepath)
File "/home/elham/source/qase/qase-testrail-migration/testrail.py", line 85, in __send_request
raise APIError('TestRail API returned HTTP %s (%s)' % (response.status_code, error))
testrail.APIError: TestRail API returned HTTP 400 ({'error': 'Field :suite_id is not a valid ID.'})

my 1st input was:
"projects": [
"AB Global",
{
"name": "AB Global",
"suits": [5545]
}
]

my 2nd input was:
"projects": [ "AB Global"]

as you see even when I do not identify any suites ( to get all of them ) still getting the same error. Please assist.

from qase-testrail-migration.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.