Skip to content

Commit

Permalink
Add Allure test report
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 4, 2024
1 parent c30b0f8 commit 363bea6
Show file tree
Hide file tree
Showing 21 changed files with 426 additions and 402 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "test_job_types[Genpact]", "status": "broken", "statusDetails": {"message": "requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)", "trace": "self = <Response [521]>, kwargs = {}\n\n def json(self, **kwargs):\n r\"\"\"Returns the json-encoded content of a response, if any.\n \n :param \\*\\*kwargs: Optional arguments that ``json.loads`` takes.\n :raises requests.exceptions.JSONDecodeError: If the response body does not\n contain valid json.\n \"\"\"\n \n if not self.encoding and self.content and len(self.content) > 3:\n # No encoding set. JSON RFC 4627 section 3 states we should expect\n # UTF-8, -16 or -32. Detect which one to use; If the detection or\n # decoding fails, fall back to `self.text` (using charset_normalizer to make\n # a best guess).\n encoding = guess_json_utf(self.content)\n if encoding is not None:\n try:\n return complexjson.loads(self.content.decode(encoding), **kwargs)\n except UnicodeDecodeError:\n # Wrong UTF codec detected; usually because it's not UTF-8\n # but some other 8-bit codec. This is an RFC violation,\n # and the server didn't bother to tell us what codec *was*\n # used.\n pass\n except JSONDecodeError as e:\n raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)\n \n try:\n> return complexjson.loads(self.text, **kwargs)\n\n/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/requests/models.py:971: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/json/__init__.py:346: in loads\n return _default_decoder.decode(s)\n/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/json/decoder.py:337: in decode\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <json.decoder.JSONDecoder object at 0x7f6a1ccb1390>\ns = '<!DOCTYPE html>\\n<!--[if lt IE 7]> <html class=\"no-js ie6 oldie\" lang=\"en-US\"> <![endif]-->\\n<!--[if IE 7]> <html ...istener(\"DOMContentLoaded\",d)})();</script>\\n</div><!-- /.error-footer -->\\n\\n\\n </div>\\n</div>\\n</body>\\n</html>\\n'\nidx = 0\n\n def raw_decode(self, s, idx=0):\n \"\"\"Decode a JSON document from ``s`` (a ``str`` beginning with\n a JSON document) and return a 2-tuple of the Python\n representation and the index in ``s`` where the document ended.\n \n This can be used to decode a JSON document from a string that may\n have extraneous data at the end.\n \n \"\"\"\n try:\n obj, end = self.scan_once(s, idx)\n except StopIteration as err:\n> raise JSONDecodeError(\"Expecting value\", s, err.value) from None\nE json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n\n/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/json/decoder.py:355: JSONDecodeError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <TestJobsValidator.test_api.TestScrapers object at 0x7f6a1c3111b0>\nscraper_class = 'Genpact'\n\n @pytest.fixture(scope=\"class\")\n def setup(self, scraper_class):\n TestScrapers.setup_tests = SetupTests()\n> peviitor_jobs_data = TestScrapers.setup_tests.get_jobs_careers(scraper_class)\n\ntests/TestJobsValidator/test_api.py:30: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/TestJobsValidator/test_api.py:17: in get_jobs_careers\n self.scraper_data = self.jobdetails.scrape_peviitor(scraper_class)\ntests/TestJobsValidator/api_utils/job_details_utils.py:91: in scrape_peviitor\n response_data = JobDetails._get_request(company_name)\ntests/TestJobsValidator/api_utils/job_details_utils.py:47: in _get_request\n updateapi.get_token()\ntests/TestJobsValidator/api_utils/peviitor_update.py:38: in get_token\n self.access_token = requests.request(\"POST\", \"https://api.laurentiumarian.ro/get_token\", headers=post_header, data=payload).json()['access']\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Response [521]>, kwargs = {}\n\n def json(self, **kwargs):\n r\"\"\"Returns the json-encoded content of a response, if any.\n \n :param \\*\\*kwargs: Optional arguments that ``json.loads`` takes.\n :raises requests.exceptions.JSONDecodeError: If the response body does not\n contain valid json.\n \"\"\"\n \n if not self.encoding and self.content and len(self.content) > 3:\n # No encoding set. JSON RFC 4627 section 3 states we should expect\n # UTF-8, -16 or -32. Detect which one to use; If the detection or\n # decoding fails, fall back to `self.text` (using charset_normalizer to make\n # a best guess).\n encoding = guess_json_utf(self.content)\n if encoding is not None:\n try:\n return complexjson.loads(self.content.decode(encoding), **kwargs)\n except UnicodeDecodeError:\n # Wrong UTF codec detected; usually because it's not UTF-8\n # but some other 8-bit codec. This is an RFC violation,\n # and the server didn't bother to tell us what codec *was*\n # used.\n pass\n except JSONDecodeError as e:\n raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)\n \n try:\n return complexjson.loads(self.text, **kwargs)\n except JSONDecodeError as e:\n # Catch JSON-related errors and raise as requests.JSONDecodeError\n # This aliases json.JSONDecodeError and simplejson.JSONDecodeError\n> raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)\nE requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n\n/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/requests/models.py:975: JSONDecodeError"}, "description": "\n Test job types match ['hybrid', 'remote', 'on-site']\n ", "parameters": [{"name": "scraper_class", "value": "'Genpact'"}], "start": 1730697168920, "stop": 1730697168920, "uuid": "d9b4a7c0-1b6a-4e96-9f5c-57b027e5902f", "historyId": "a4b3a4984ef125cbfcb2fe1ef5291540", "testCaseId": "270208025a81f784ad6c6daea20c79dc", "fullName": "tests.TestJobsValidator.test_api.TestScrapers#test_job_types", "labels": [{"name": "tag", "value": "smoke"}, {"name": "parentSuite", "value": "tests.TestJobsValidator"}, {"name": "suite", "value": "test_api"}, {"name": "subSuite", "value": "TestScrapers"}, {"name": "host", "value": "fv-az772-817"}, {"name": "thread", "value": "1987-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.TestJobsValidator.test_api"}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "test_job_countries[Genpact]", "status": "broken", "statusDetails": {"message": "requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)", "trace": "self = <Response [521]>, kwargs = {}\n\n def json(self, **kwargs):\n r\"\"\"Returns the json-encoded content of a response, if any.\n \n :param \\*\\*kwargs: Optional arguments that ``json.loads`` takes.\n :raises requests.exceptions.JSONDecodeError: If the response body does not\n contain valid json.\n \"\"\"\n \n if not self.encoding and self.content and len(self.content) > 3:\n # No encoding set. JSON RFC 4627 section 3 states we should expect\n # UTF-8, -16 or -32. Detect which one to use; If the detection or\n # decoding fails, fall back to `self.text` (using charset_normalizer to make\n # a best guess).\n encoding = guess_json_utf(self.content)\n if encoding is not None:\n try:\n return complexjson.loads(self.content.decode(encoding), **kwargs)\n except UnicodeDecodeError:\n # Wrong UTF codec detected; usually because it's not UTF-8\n # but some other 8-bit codec. This is an RFC violation,\n # and the server didn't bother to tell us what codec *was*\n # used.\n pass\n except JSONDecodeError as e:\n raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)\n \n try:\n> return complexjson.loads(self.text, **kwargs)\n\n/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/requests/models.py:971: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/json/__init__.py:346: in loads\n return _default_decoder.decode(s)\n/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/json/decoder.py:337: in decode\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <json.decoder.JSONDecoder object at 0x7f6a1ccb1390>\ns = '<!DOCTYPE html>\\n<!--[if lt IE 7]> <html class=\"no-js ie6 oldie\" lang=\"en-US\"> <![endif]-->\\n<!--[if IE 7]> <html ...istener(\"DOMContentLoaded\",d)})();</script>\\n</div><!-- /.error-footer -->\\n\\n\\n </div>\\n</div>\\n</body>\\n</html>\\n'\nidx = 0\n\n def raw_decode(self, s, idx=0):\n \"\"\"Decode a JSON document from ``s`` (a ``str`` beginning with\n a JSON document) and return a 2-tuple of the Python\n representation and the index in ``s`` where the document ended.\n \n This can be used to decode a JSON document from a string that may\n have extraneous data at the end.\n \n \"\"\"\n try:\n obj, end = self.scan_once(s, idx)\n except StopIteration as err:\n> raise JSONDecodeError(\"Expecting value\", s, err.value) from None\nE json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n\n/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/json/decoder.py:355: JSONDecodeError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <TestJobsValidator.test_api.TestScrapers object at 0x7f6a1c3111b0>\nscraper_class = 'Genpact'\n\n @pytest.fixture(scope=\"class\")\n def setup(self, scraper_class):\n TestScrapers.setup_tests = SetupTests()\n> peviitor_jobs_data = TestScrapers.setup_tests.get_jobs_careers(scraper_class)\n\ntests/TestJobsValidator/test_api.py:30: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/TestJobsValidator/test_api.py:17: in get_jobs_careers\n self.scraper_data = self.jobdetails.scrape_peviitor(scraper_class)\ntests/TestJobsValidator/api_utils/job_details_utils.py:91: in scrape_peviitor\n response_data = JobDetails._get_request(company_name)\ntests/TestJobsValidator/api_utils/job_details_utils.py:47: in _get_request\n updateapi.get_token()\ntests/TestJobsValidator/api_utils/peviitor_update.py:38: in get_token\n self.access_token = requests.request(\"POST\", \"https://api.laurentiumarian.ro/get_token\", headers=post_header, data=payload).json()['access']\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Response [521]>, kwargs = {}\n\n def json(self, **kwargs):\n r\"\"\"Returns the json-encoded content of a response, if any.\n \n :param \\*\\*kwargs: Optional arguments that ``json.loads`` takes.\n :raises requests.exceptions.JSONDecodeError: If the response body does not\n contain valid json.\n \"\"\"\n \n if not self.encoding and self.content and len(self.content) > 3:\n # No encoding set. JSON RFC 4627 section 3 states we should expect\n # UTF-8, -16 or -32. Detect which one to use; If the detection or\n # decoding fails, fall back to `self.text` (using charset_normalizer to make\n # a best guess).\n encoding = guess_json_utf(self.content)\n if encoding is not None:\n try:\n return complexjson.loads(self.content.decode(encoding), **kwargs)\n except UnicodeDecodeError:\n # Wrong UTF codec detected; usually because it's not UTF-8\n # but some other 8-bit codec. This is an RFC violation,\n # and the server didn't bother to tell us what codec *was*\n # used.\n pass\n except JSONDecodeError as e:\n raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)\n \n try:\n return complexjson.loads(self.text, **kwargs)\n except JSONDecodeError as e:\n # Catch JSON-related errors and raise as requests.JSONDecodeError\n # This aliases json.JSONDecodeError and simplejson.JSONDecodeError\n> raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)\nE requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n\n/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/requests/models.py:975: JSONDecodeError"}, "description": "\n Test job countries match Romania\n ", "parameters": [{"name": "scraper_class", "value": "'Genpact'"}], "start": 1730697168950, "stop": 1730697168950, "uuid": "a04f69f3-55f1-4093-815d-ff048861bcf0", "historyId": "19f2c318ff4e85bcd0c274ddef802651", "testCaseId": "ff71aaf0b30ebc00e265ec1bfc097f9d", "fullName": "tests.TestJobsValidator.test_api.TestScrapers#test_job_countries", "labels": [{"name": "tag", "value": "smoke"}, {"name": "parentSuite", "value": "tests.TestJobsValidator"}, {"name": "suite", "value": "test_api"}, {"name": "subSuite", "value": "TestScrapers"}, {"name": "host", "value": "fv-az772-817"}, {"name": "thread", "value": "1987-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.TestJobsValidator.test_api"}]}
Loading

0 comments on commit 363bea6

Please sign in to comment.