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 15, 2024
1 parent 0aea7dc commit c9f9ef0
Show file tree
Hide file tree
Showing 192 changed files with 1,016 additions and 665 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "test_job_types[britishcouncil]", "status": "passed", "description": "\n Test job types match ['hybrid', 'remote', 'on-site']\n ", "parameters": [{"name": "scraper_class", "value": "'britishcouncil'"}], "start": 1731648050465, "stop": 1731648050465, "uuid": "3fb84108-a31b-4e67-9cd9-01d25284719b", "historyId": "a0c8a4ba563e64361a9f99afc012bcf5", "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-az1250-470"}, {"name": "thread", "value": "2148-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 @@
{"uuid": "46390480-74c0-4980-8eca-05b67af66219", "children": ["c4efdf3b-8bf5-4ebe-891b-38f1b6d70d7d", "378fe2db-f862-4ad1-944d-719cdb8eb39a", "a8c2c240-3290-43b5-8429-963dd01c694c", "94bd26be-5228-412d-a931-547ddb25d6b5", "0708fa52-9730-4e1a-82b3-8b10a0bd93d4"], "befores": [{"name": "setup", "status": "passed", "start": 1731648027152, "stop": 1731648028319}], "afters": [{"name": "setup::0", "status": "passed", "start": 1731648032935, "stop": 1731648039807}], "start": 1731648027152, "stop": 1731648039807}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uuid": "247add2e-15bc-4ed2-b63a-2f3722054c94", "children": ["4a47e413-a60d-4525-98e2-7e176974ee79", "ee8346a0-e577-4cd3-bd62-54e79a7f3f2b", "2c7eceb1-0896-47d6-afec-6cbc8931a7a2", "95471e96-d390-4131-b04d-85fcfcc60571", "d27bcac5-49bb-424f-925a-a76f3ec436c6"], "befores": [{"name": "scraper_class", "status": "passed", "start": 1731647920518, "stop": 1731647920518}], "start": 1731647920518, "stop": 1731647950088}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "test_job_countries[avaelgo]", "status": "passed", "description": "\n Test job countries match Romania\n ", "parameters": [{"name": "scraper_class", "value": "'avaelgo'"}], "start": 1731647920218, "stop": 1731647920219, "uuid": "dc3aa89f-8200-4cbe-9511-190bef71cf56", "historyId": "f48f17db80114d40d0eea8dbaa0ced7a", "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-az1250-470"}, {"name": "thread", "value": "2148-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_cities[autonet]", "status": "failed", "statusDetails": {"message": "AssertionError: Test found mismatching job cities for the following jobs: ['Reprezentant vanzari flote', 'Reprezentant vânzări piese camioane', 'Șef de tură']", "trace": "self = <TestJobsValidator.test_api.TestScrapers object at 0x7fe95ce52860>\nsetup = (['Lucrător depozit', 'Reprezentant vanzari flote', 'Reprezentant vânzări piese camioane', 'Șef de tură', 'Stivuitoris...mania'], [['Timis', 'Prahova', 'Cluj', 'Constanta', 'Brasov', 'Bucuresti'], [], ['Alba'], ['Alba'], ['Cluj', 'Ilfov']])\n\n @pytest.mark.smoke\n def test_job_cities(self, setup):\n \"\"\"\n Test job titles contain special characters\n \"\"\"\n peviitor_jobs_data = setup\n job_titles = peviitor_jobs_data[0]\n job_cities = peviitor_jobs_data[1]\n> TestScrapers.setup_tests.jobdetails.check_job_cities(job_cities, job_titles)\n\ntests/TestJobsValidator/test_api.py:80: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/TestJobsValidator/api_utils/job_details_utils.py:124: in check_job_cities\n self.cityutils.check_job_cities(job_cities, job_titles)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <tests.TestJobsValidator.api_utils.job_cities_utils.CitiesTestUtils object at 0x7fe95d4c33d0>\nactual_cities = [['Timisoara', 'Ploiesti', 'Moldovenesti', 'Constanta', 'Floresti', 'Brasov', ...], ['Iasi/Bacau/ Piatra Neamt'], [], [], ['Moldovenesti', 'Popesti Leordeni']]\njob_titles = ['Lucrător depozit', 'Reprezentant vanzari flote', 'Reprezentant vânzări piese camioane', 'Șef de tură', 'Stivuitorist']\n\n def check_job_cities(self, actual_cities, job_titles):\n # Itterate over actual cities and get_proper_city > city list or none if one was not found\n \n msg = \"Unknown error occured\"\n \n missing_cities = []\n missing_cities_job_titles = []\n \n for city_list, job_title in zip(actual_cities, job_titles):\n if not get_proper_city(city_list):\n missing_cities.append(city_list)\n missing_cities_job_titles.append(job_title)\n \n if missing_cities:\n msg = f\"Test found mismatching job cities for the following jobs: {missing_cities_job_titles}\"\n \n if not actual_cities and not job_titles:\n msg = f\"Cannot grab any job cities or job titles from the validator\"\n allure.step(msg)\n raise AssertionError(msg)\n \n allure.step(msg)\n> assert missing_cities == [], msg\nE AssertionError: Test found mismatching job cities for the following jobs: ['Reprezentant vanzari flote', 'Reprezentant vânzări piese camioane', 'Șef de tură']\n\ntests/TestJobsValidator/api_utils/job_cities_utils.py:30: AssertionError"}, "description": "\n Test job titles contain special characters\n ", "parameters": [{"name": "scraper_class", "value": "'autonet'"}], "start": 1731647906368, "stop": 1731647906374, "uuid": "12743c45-4106-41b5-8d81-36cabbc1ab3d", "historyId": "6e1915f4ab40c10c310cac58c8f21022", "testCaseId": "1204388ca11ed5cbe72e4cae6999b749", "fullName": "tests.TestJobsValidator.test_api.TestScrapers#test_job_cities", "labels": [{"name": "tag", "value": "smoke"}, {"name": "parentSuite", "value": "tests.TestJobsValidator"}, {"name": "suite", "value": "test_api"}, {"name": "subSuite", "value": "TestScrapers"}, {"name": "host", "value": "fv-az1250-470"}, {"name": "thread", "value": "2148-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 @@
{"uuid": "33c9f5f9-abbb-4973-a42c-4903b3f5ab78", "children": ["96fd1268-1b73-4942-9967-eb21b128fdac", "07b86e55-5588-40a7-a9c7-6a7a0ec6f3e8", "ea424a4b-4f8c-4531-afff-3b5681efb557", "12743c45-4106-41b5-8d81-36cabbc1ab3d", "c6ca9fe4-bf8f-4450-b7d5-06b8bc6330ce"], "befores": [{"name": "scraper_class", "status": "passed", "start": 1731647900826, "stop": 1731647900826}], "start": 1731647900826, "stop": 1731647906705}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "test_job_types[alumil]", "status": "passed", "description": "\n Test job types match ['hybrid', 'remote', 'on-site']\n ", "parameters": [{"name": "scraper_class", "value": "'alumil'"}], "start": 1731647746379, "stop": 1731647746379, "uuid": "01e44f5c-bdbd-4fc6-a339-3fb21e09b7c8", "historyId": "7fb5dcc7037a2a4c2440748a6aaf5a73", "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-az1250-470"}, {"name": "thread", "value": "2148-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 @@
{"uuid": "888bc2bd-6fa2-4db1-bdd2-125bf8e77611", "children": ["c8a0e702-2b6d-4398-af89-5a019d082c85", "3fb84108-a31b-4e67-9cd9-01d25284719b", "6ac9fbb1-0fa8-49f1-b102-37c2e78c9bc1", "96ed3b3f-e5e9-4a80-8bbc-6939338adaa7", "ad101250-c015-4e2f-8277-099fbc6defe7"], "befores": [{"name": "scraper_class", "status": "passed", "start": 1731648046548, "stop": 1731648046548}], "start": 1731648046548, "stop": 1731648053301}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "test_job_cities[artvertising0]", "status": "passed", "description": "\n Test job titles contain special characters\n ", "parameters": [{"name": "scraper_class", "value": "'artvertising'"}], "start": 1731647716075, "stop": 1731647716077, "uuid": "8464262a-ab9c-4342-86f2-3f6c5d28a977", "historyId": "4c5a4406e927168b17e24c565c31c2fe", "testCaseId": "1204388ca11ed5cbe72e4cae6999b749", "fullName": "tests.TestJobsValidator.test_api.TestScrapers#test_job_cities", "labels": [{"name": "tag", "value": "smoke"}, {"name": "parentSuite", "value": "tests.TestJobsValidator"}, {"name": "suite", "value": "test_api"}, {"name": "subSuite", "value": "TestScrapers"}, {"name": "host", "value": "fv-az1250-470"}, {"name": "thread", "value": "2148-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_link_content[artvertising1]", "status": "failed", "statusDetails": {"message": "AssertionError: The following job links ['https://www.artvertising.com.ro/cariere/digital-marketing-performance-specialist', 'https://www.artvertising.com.ro/cariere/content-writer-limba-romana', 'https://www.artvertising.com.ro/cariere/specialist-pr-publicitate', 'https://www.artvertising.com.ro/cariere/content-marketing', 'https://www.artvertising.com.ro/cariere/senior-graphic-designer-iasi', 'https://www.artvertising.com.ro/cariere/content-marketing-specialist'] do not contain the expected job title: ['Digital Marketing Specialist & PPC', 'Job Copywriter', 'Job Specialist Comunicare', 'Job Specialist Marketing Content', 'Senior Graphic Designer Iasi', 'Social Media Specialist']", "trace": "self = <TestJobsValidator.test_api.TestScrapers object at 0x7fe95cdac2b0>\nsetup = (['Digital Marketing Specialist & PPC', 'Job Copywriter', 'Job Specialist Comunicare', 'Job Specialist Marketing Conte..., 'Romania', 'Romania', 'Romania', 'Romania', 'Romania'], [['Iasi'], ['Iasi'], ['Iasi'], ['Iasi'], ['Iasi'], ['Iasi']])\n\n @pytest.mark.smoke\n def test_job_link_content(self, setup):\n \"\"\"\n Test job links for the job title presence in the html response output\n \"\"\"\n \n peviitor_jobs_data = setup\n job_links = peviitor_jobs_data[2]\n job_titles = peviitor_jobs_data[0]\n> TestScrapers.setup_tests.jobdetails.check_job_link_content(job_links, job_titles)\n\ntests/TestJobsValidator/test_api.py:52: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/TestJobsValidator/api_utils/job_details_utils.py:132: in check_job_link_content\n self.linkutils.check_job_link_content(self, links, job_titles)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <tests.TestJobsValidator.api_utils.job_links_utils.LinksTestUtils object at 0x7fe95cdad360>\nmainobj = <tests.TestJobsValidator.api_utils.job_details_utils.JobDetails object at 0x7fe95de3e0b0>\nlinks = ['https://www.artvertising.com.ro/cariere/digital-marketing-performance-specialist', 'https://www.artvertising.com.ro/...g.com.ro/cariere/senior-graphic-designer-iasi', 'https://www.artvertising.com.ro/cariere/content-marketing-specialist']\njob_titles = ['Digital Marketing Specialist & PPC', 'Job Copywriter', 'Job Specialist Comunicare', 'Job Specialist Marketing Content', 'Senior Graphic Designer Iasi', 'Social Media Specialist']\n\n def check_job_link_content(self, mainobj, links, job_titles):\n missing_job_links = []\n missing_job_titles = []\n for link, job_title in zip(links, job_titles):\n job_content = LinksTestUtils().get_html_content(link)\n \n # Section where the content is not loaded after the request\n if job_content is None:\n missing_job_links.append(link)\n missing_job_titles.append(job_title)\n print(\"Job Page content has not been loaded\")\n for job_link_index, job_link in enumerate(mainobj.filtered_job_links):\n if job_link == link:\n mainobj.filtered_job_links[job_link_index] = 'REMOVED_JOB'\n continue\n \n # Section that run in case the job page content is loaded\n soup = BeautifulSoup(job_content, 'html.parser')\n job_content = soup.get_text()\n if job_title not in job_content:\n missing_job_links.append(link)\n missing_job_titles.append(job_title)\n for job_link_index, job_link in enumerate(mainobj.filtered_job_links):\n if job_link == link:\n mainobj.filtered_job_links[job_link_index] = 'REMOVED_JOB'\n \n> assert missing_job_links == [], f\"The following job links {missing_job_links} do not contain the expected job title: {missing_job_titles}\"\nE AssertionError: The following job links ['https://www.artvertising.com.ro/cariere/digital-marketing-performance-specialist', 'https://www.artvertising.com.ro/cariere/content-writer-limba-romana', 'https://www.artvertising.com.ro/cariere/specialist-pr-publicitate', 'https://www.artvertising.com.ro/cariere/content-marketing', 'https://www.artvertising.com.ro/cariere/senior-graphic-designer-iasi', 'https://www.artvertising.com.ro/cariere/content-marketing-specialist'] do not contain the expected job title: ['Digital Marketing Specialist & PPC', 'Job Copywriter', 'Job Specialist Comunicare', 'Job Specialist Marketing Content', 'Senior Graphic Designer Iasi', 'Social Media Specialist']\n\ntests/TestJobsValidator/api_utils/job_links_utils.py:59: AssertionError"}, "description": "\n Test job links for the job title presence in the html response output\n ", "parameters": [{"name": "scraper_class", "value": "'artvertising'"}], "start": 1731647850946, "stop": 1731647854574, "uuid": "d3786d24-9e97-4525-b83f-1f8860cf45e4", "historyId": "ff831ea9db716cbcfd9e809155065103", "testCaseId": "3a863062a3835cf6b2ad4e16e5390871", "fullName": "tests.TestJobsValidator.test_api.TestScrapers#test_job_link_content", "labels": [{"name": "tag", "value": "smoke"}, {"name": "parentSuite", "value": "tests.TestJobsValidator"}, {"name": "suite", "value": "test_api"}, {"name": "subSuite", "value": "TestScrapers"}, {"name": "host", "value": "fv-az1250-470"}, {"name": "thread", "value": "2148-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 @@
{"uuid": "a3eeac6d-70ac-4d5e-9b54-f3b9868ad933", "children": ["96fd1268-1b73-4942-9967-eb21b128fdac", "07b86e55-5588-40a7-a9c7-6a7a0ec6f3e8", "ea424a4b-4f8c-4531-afff-3b5681efb557", "12743c45-4106-41b5-8d81-36cabbc1ab3d", "c6ca9fe4-bf8f-4450-b7d5-06b8bc6330ce"], "befores": [{"name": "setup", "status": "passed", "start": 1731647900826, "stop": 1731647901951}], "afters": [{"name": "setup::0", "status": "passed", "start": 1731647906386, "stop": 1731647906704}], "start": 1731647900826, "stop": 1731647906704}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "test_job_countries[apavital]", "status": "passed", "description": "\n Test job countries match Romania\n ", "parameters": [{"name": "scraper_class", "value": "'apavital'"}], "start": 1731647807909, "stop": 1731647807910, "uuid": "dab6f5ce-f438-4268-a0f1-edcbc94869de", "historyId": "61f61abcbeb648bd2429331e0bffbfaf", "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-az1250-470"}, {"name": "thread", "value": "2148-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_counties[artvertising1]", "status": "passed", "description": "\n Test job titles contain special characters\n ", "parameters": [{"name": "scraper_class", "value": "'artvertising'"}], "start": 1731647854587, "stop": 1731647854587, "uuid": "3a6f75c6-7e86-4f1b-8cf1-5dcaa33d0f21", "historyId": "265cde5fea28f546af9626d809de65f4", "testCaseId": "6cac5ec7a123f1739f4d7b5abe903327", "fullName": "tests.TestJobsValidator.test_api.TestScrapers#test_job_counties", "labels": [{"name": "tag", "value": "smoke"}, {"name": "parentSuite", "value": "tests.TestJobsValidator"}, {"name": "suite", "value": "test_api"}, {"name": "subSuite", "value": "TestScrapers"}, {"name": "host", "value": "fv-az1250-470"}, {"name": "thread", "value": "2148-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 @@
{"uuid": "76432c44-82c3-4b5d-a9e6-f3d970d20c64", "children": ["97abd419-919d-4501-96c7-8e78f65202af", "94c351ae-e43f-4938-9cb2-333024fb3b42", "37276c01-1893-4b96-97e6-584a0965684f", "8f6317bb-2924-4a43-bdbb-23a5a0b63ffd", "6fc112b8-b10f-4c90-ba5f-8c53e3919dc9"], "befores": [{"name": "scraper_class", "status": "passed", "start": 1731647701534, "stop": 1731647701534}], "start": 1731647701534, "stop": 1731647702460}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "test_job_countries[anahr]", "status": "passed", "description": "\n Test job countries match Romania\n ", "parameters": [{"name": "scraper_class", "value": "'anahr'"}], "start": 1731647767747, "stop": 1731647767747, "uuid": "35d28c61-016f-4812-af9f-baf29c3a945b", "historyId": "98831c025261e3e7f426e0410425c82a", "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-az1250-470"}, {"name": "thread", "value": "2148-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[arcadiamedical]", "status": "passed", "description": "\n Test job countries match Romania\n ", "parameters": [{"name": "scraper_class", "value": "'arcadiamedical'"}], "start": 1731647826639, "stop": 1731647826639, "uuid": "2b7f26da-a92a-4649-b4f3-6a6e6efb31ec", "historyId": "f5c2b1eab53e61343ddd3df1bc561381", "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-az1250-470"}, {"name": "thread", "value": "2148-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.TestJobsValidator.test_api"}]}
Loading

0 comments on commit c9f9ef0

Please sign in to comment.