MarketSquare / MarketSquare/DbBot

unable to Parse keywords and error messages.

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
60
Forks
66
PR merge metrics
No merged PRs in 30d

Description

Traceback (most recent call last):
File "C:\Users\Arjun.Choyikkandy\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Arjun.Choyikkandy\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\run.py", line 53, in
DbBot().run()
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\run.py", line 44, in run
self._parser.xml_to_db(xml_file, self._options.build_number, self._options.branch_repo)
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\reader\robot_results_parser.py", line 56, in xml_to_db
self._parse_suite(test_run.suite, test_run_id, suite_metadata)
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\reader\robot_results_parser.py", line 127, in _parse_suite
self._parse_suites(suite, test_run_id, suite_metadata, suite_id)
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\reader\robot_results_parser.py", line 147, in _parse_suites
[self._parse_suite(subsuite, test_run_id, suite_metadata, parent_suite_id) for subsuite in suite.suites]
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\reader\robot_results_parser.py", line 147, in
[self._parse_suite(subsuite, test_run_id, suite_metadata, parent_suite_id) for subsuite in suite.suites]
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\reader\robot_results_parser.py", line 132, in _parse_suite
self._parse_keywords(suite.keywords, test_run_id, suite_id, None)
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\reader\robot_results_parser.py", line 190, in _parse_keywords
[self._parse_keyword(keyword, test_run_id, suite_id, test_id, keyword_id) for keyword in keywords]
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\reader\robot_results_parser.py", line 190, in
[self._parse_keyword(keyword, test_run_id, suite_id, test_id, keyword_id) for keyword in keywords]
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\reader\robot_results_parser.py", line 219, in _parse_keyword
self._parse_keywords(keyword.keywords, test_run_id, None, None, keyword_id)
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\reader\robot_results_parser.py", line 190, in _parse_keywords
[self._parse_keyword(keyword, test_run_id, suite_id, test_id, keyword_id) for keyword in keywords]
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\reader\robot_results_parser.py", line 190, in
[self._parse_keyword(keyword, test_run_id, suite_id, test_id, keyword_id) for keyword in keywords]
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\reader\robot_results_parser.py", line 219, in _parse_keyword
self._parse_keywords(keyword.keywords, test_run_id, None, None, keyword_id)
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\reader\robot_results_parser.py", line 190, in _parse_keywords
[self._parse_keyword(keyword, test_run_id, suite_id, test_id, keyword_id) for keyword in keywords]
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\reader\robot_results_parser.py", line 190, in
[self._parse_keyword(keyword, test_run_id, suite_id, test_id, keyword_id) for keyword in keywords]
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\reader\robot_results_parser.py", line 219, in _parse_keyword
self._parse_keywords(keyword.keywords, test_run_id, None, None, keyword_id)
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\reader\robot_results_parser.py", line 190, in _parse_keywords
[self._parse_keyword(keyword, test_run_id, suite_id, test_id, keyword_id) for keyword in keywords]
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\reader\robot_results_parser.py", line 190, in
[self._parse_keyword(keyword, test_run_id, suite_id, test_id, keyword_id) for keyword in keywords]
File "D:\sunday\d\DbBot-SQLAlchemy\dbbot\reader\robot_results_parser.py", line 215, in _parse_keyword
self._parse_messages(keyword.messages, keyword_id)
AttributeError: 'For' object has no attribute 'messages'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in dbbot/reader/robot_results_parser.py at _parse_keyword and the recursive _parse_keywords calls shown in the traceback. Inspect how For objects expose keyword data compared with messages, then rerun the XML-to-database path that produced the error. Done means keyword parsing reaches nested keywords without raising AttributeError and preserves the relevant error messages.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, sqlite
Domain
databases, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.