You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import qcri
loc = r'c:/demo_robot/reports/output.xml'
parsers = qcri.get_parsers(loc, cfg='qcri.cfg') <--- HERE is the problem
results = qcri.parse_results(parsers[0], loc)
conn = qcri.connect('', '', '', '', '')
qcri.import_results(conn, '', results, attach_report=False)
It fails HERE and i am wondering what I am doing wrong.
Traceback (most recent call last):
File "update_test_results_to_alm.py", line 3, in
parsers = qcri.get_parsers(loc, cfg='qcri.cfg')
File "C:\Python38\lib\site-packages\qcri\application\importer.py", line 121, in get_parsers
avail_parsers = _load_parsers(cfg)
File "C:\Python38\lib\site-packages\qcri\application\importer.py", line 239, in _load_parsers
options = cfg.options('parsers')
AttributeError: 'str' object has no attribute 'options'
I have place the cfg file in my project directory with UTF-8 encoding and following is my python code
if name == 'main':
loc = r'C:\Projects\C360_Web\Framework\output.xml'
parsers = qcri.get_parsers(loc, cfg='qcri.cfg')
results = qcri.parse_results(parsers[0], loc)
conn = qcri.connect('', '', '', '', '')
qcri.import_results(conn, '', results, attach_report=True)
However I am getting this error on get_parsers function. Am I doing something wrong ?
The text was updated successfully, but these errors were encountered: