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 Oct 11, 2024
1 parent 8721a84 commit 061e6e1
Show file tree
Hide file tree
Showing 21 changed files with 186 additions and 162 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uuid": "1f0c023b-9187-4f15-8b16-d66d65021d93", "children": ["ca9498d4-99c8-44fd-bf81-877943a2bd77", "f4ff2360-b44e-4a97-83e4-dce7f9465528", "b7c1bd7b-d2c7-4484-9395-aba7722fa878", "972c37b8-8db2-4192-ada3-45b1d2c40fba", "c40bf753-02ae-499d-8a09-81bc3e23294a"], "befores": [{"name": "scraper_class", "status": "passed", "start": 1728623488805, "stop": 1728623488805}], "start": 1728623488805, "stop": 1728623704280}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "test_job_types[Genpact]", "status": "passed", "description": "\n Test job types match ['hybrid', 'remote', 'on-site']\n ", "parameters": [{"name": "scraper_class", "value": "'Genpact'"}], "start": 1728623735262, "stop": 1728623735262, "uuid": "7d43902d-ef8f-4bc8-b828-a775bcef6fd5", "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-az1458-728"}, {"name": "thread", "value": "2151-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[Genpact]", "status": "passed", "description": "\n Test job titles contain special characters\n ", "parameters": [{"name": "scraper_class", "value": "'Genpact'"}], "start": 1728623735302, "stop": 1728623735303, "uuid": "da832729-62bf-48e1-9a17-21940b8e359a", "historyId": "557ce9db46eac2e81b247540c5a9ac68", "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-az1458-728"}, {"name": "thread", "value": "2151-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": "6b894e22-f9e0-45e9-8a8c-36ad1ba6e37d", "children": ["3a7254cd-d0b9-4555-bcfe-63c412df3189", "7d43902d-ef8f-4bc8-b828-a775bcef6fd5", "54e1ad75-2bb2-4f75-9984-a009e8b507de", "d88528a8-ddfd-46e3-83cc-887e7e53ba77", "da832729-62bf-48e1-9a17-21940b8e359a"], "befores": [{"name": "setup", "status": "passed", "start": 1728623704281, "stop": 1728623707466}], "afters": [{"name": "setup::0", "status": "passed", "start": 1728623735304, "stop": 1728623735951}], "start": 1728623704281, "stop": 1728623735951}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "test_job_types[Bosch]", "status": "passed", "description": "\n Test job types match ['hybrid', 'remote', 'on-site']\n ", "parameters": [{"name": "scraper_class", "value": "'Bosch'"}], "start": 1728623614139, "stop": 1728623614139, "uuid": "f4ff2360-b44e-4a97-83e4-dce7f9465528", "historyId": "3ed6059cf75eb612fe48d94ad5691b7a", "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-az1458-728"}, {"name": "thread", "value": "2151-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": "ef02cabd-6beb-4e6d-be14-5dd2420c5253", "children": ["3a7254cd-d0b9-4555-bcfe-63c412df3189", "7d43902d-ef8f-4bc8-b828-a775bcef6fd5", "54e1ad75-2bb2-4f75-9984-a009e8b507de", "d88528a8-ddfd-46e3-83cc-887e7e53ba77", "da832729-62bf-48e1-9a17-21940b8e359a"], "befores": [{"name": "scraper_class", "status": "passed", "start": 1728623704281, "stop": 1728623704281}], "start": 1728623704281, "stop": 1728623735952}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uuid": "16b76dc6-7769-4df3-98e9-9ff00b6f58df", "children": ["ca9498d4-99c8-44fd-bf81-877943a2bd77", "f4ff2360-b44e-4a97-83e4-dce7f9465528", "b7c1bd7b-d2c7-4484-9395-aba7722fa878", "972c37b8-8db2-4192-ada3-45b1d2c40fba", "c40bf753-02ae-499d-8a09-81bc3e23294a"], "befores": [{"name": "setup", "status": "passed", "start": 1728623488813, "stop": 1728623491726}], "afters": [{"name": "setup::0", "status": "passed", "start": 1728623614253, "stop": 1728623704280}], "start": 1728623488813, "stop": 1728623704280}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "test_job_cities[Genpact]", "status": "passed", "description": "\n Test job titles contain special characters\n ", "parameters": [{"name": "scraper_class", "value": "'Genpact'"}], "start": 1728623735264, "stop": 1728623735301, "uuid": "d88528a8-ddfd-46e3-83cc-887e7e53ba77", "historyId": "ac55e4797f6a40e10c701c4d3b92d2f7", "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-az1458-728"}, {"name": "thread", "value": "2151-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[Bosch]", "status": "failed", "statusDetails": {"message": "AssertionError: Test found mismatching job counties for the following jobs: ['Department Assistant', 'Systemtechniker / Programmierer (w/m/div.) Gebäudeautomation – Gebiet Hannover']", "trace": "self = <TestJobsValidator.test_api.TestScrapers object at 0x7fc10b41b220>\nsetup = (['Accounts Payable Accountant', 'Accounts Payables with Polish', 'Air Conditioning Sales Responsible', 'CNC Machinist...nia', 'Romania', 'Romania', 'Romania', ...], [['Timis'], ['Timis'], ['Bucuresti'], ['Cluj'], ['Timis'], ['Cluj'], ...])\n\n @pytest.mark.smoke\n def test_job_counties(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_counties = peviitor_jobs_data[5]\n> TestScrapers.setup_tests.jobdetails.check_job_counties(job_counties, job_titles)\n\ntests/TestJobsValidator/test_api.py:90: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/TestJobsValidator/api_utils/job_details_utils.py:128: in check_job_counties\n self.countyutils.check_job_counties(job_counties, job_titles)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <tests.TestJobsValidator.api_utils.job_counties_utils.CountyTestUtils object at 0x7fc10b41bfa0>\nactual_counties = [['Timis'], ['Timis'], ['Bucuresti'], ['Cluj'], ['Timis'], ['Cluj'], ...]\njob_titles = ['Accounts Payable Accountant', 'Accounts Payables with Polish', 'Air Conditioning Sales Responsible', 'CNC Machinist Technician, CljP', 'Communication Manager', 'Computer Vision Engineer, Mobility Aftermarket Technology', ...]\n\n def check_job_counties(self, actual_counties, job_titles):\n # Itterate over actual counties and get_proper_county > county list or none if one was not found\n \n msg = \"Unknown error occured\"\n \n missing_counties = []\n missing_counties_job_titles = []\n \n for county_list, job_title in zip(actual_counties, job_titles):\n if not get_proper_county(county_list):\n missing_counties.append(county_list)\n missing_counties_job_titles.append(job_title)\n \n if missing_counties:\n msg = f\"Test found mismatching job counties for the following jobs: {missing_counties_job_titles}\"\n \n if not actual_counties and not job_titles:\n msg = f\"Cannot grab any job counties or job titles from the validator\"\n allure.step(msg)\n raise AssertionError(msg)\n \n allure.step(msg)\n> assert missing_counties == [], msg\nE AssertionError: Test found mismatching job counties for the following jobs: ['Department Assistant', 'Systemtechniker / Programmierer (w/m/div.) Gebäudeautomation – Gebiet Hannover']\n\ntests/TestJobsValidator/api_utils/job_counties_utils.py:30: AssertionError"}, "description": "\n Test job titles contain special characters\n ", "parameters": [{"name": "scraper_class", "value": "'Bosch'"}], "start": 1728623614246, "stop": 1728623614247, "uuid": "c40bf753-02ae-499d-8a09-81bc3e23294a", "historyId": "b8e34794de9ad783ef56212ccc5159c8", "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-az1458-728"}, {"name": "thread", "value": "2151-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.TestJobsValidator.test_api"}]}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "test_job_cities[Bosch]", "status": "failed", "statusDetails": {"message": "AssertionError: Test found mismatching job cities for the following jobs: ['CNC Machinist Technician, CljP', 'Data Analyst', 'Data Engineer - Oracle', 'Financial responsible for EU projects', 'HSE Engineer, CljP', 'Local Authorization Coordinator', 'Product Test Engineer', 'SAP Process Expert', 'Systemtechniker / Programmierer (w/m/div.) Gebäudeautomation – Gebiet Hannover', 'Working Student - Administrative Department', 'Working student - Financial field, CljP', 'Working Student - Technical Department', 'Working Student Electronics Team', 'Working Student Logistics Department, CljP', 'Working Student Manufacturing Area', 'Working Student Mechanics Team']", "trace": "self = <TestJobsValidator.test_api.TestScrapers object at 0x7fc10b419840>\nsetup = (['Accounts Payable Accountant', 'Accounts Payables with Polish', 'Air Conditioning Sales Responsible', 'CNC Machinist...nia', 'Romania', 'Romania', 'Romania', ...], [['Timis'], ['Timis'], ['Bucuresti'], ['Cluj'], ['Timis'], ['Cluj'], ...])\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 0x7fc10b964340>\nactual_cities = [['Timisoara'], ['Timisoara'], ['Bucuresti'], ['Jucu'], ['Timisoara'], ['Cluj-Napoca'], ...]\njob_titles = ['Accounts Payable Accountant', 'Accounts Payables with Polish', 'Air Conditioning Sales Responsible', 'CNC Machinist Technician, CljP', 'Communication Manager', 'Computer Vision Engineer, Mobility Aftermarket Technology', ...]\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: ['CNC Machinist Technician, CljP', 'Data Analyst', 'Data Engineer - Oracle', 'Financial responsible for EU projects', 'HSE Engineer, CljP', 'Local Authorization Coordinator', 'Product Test Engineer', 'SAP Process Expert', 'Systemtechniker / Programmierer (w/m/div.) Gebäudeautomation – Gebiet Hannover', 'Working Student - Administrative Department', 'Working student - Financial field, CljP', 'Working Student - Technical Department', 'Working Student Electronics Team', 'Working Student Logistics Department, CljP', 'Working Student Manufacturing Area', 'Working Student Mechanics Team']\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": "'Bosch'"}], "start": 1728623614143, "stop": 1728623614211, "uuid": "972c37b8-8db2-4192-ada3-45b1d2c40fba", "historyId": "ddf4e4574bfedad76fd3aa21672a0e5b", "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-az1458-728"}, {"name": "thread", "value": "2151-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": "passed", "description": "\n Test job countries match Romania\n ", "parameters": [{"name": "scraper_class", "value": "'Genpact'"}], "start": 1728623735263, "stop": 1728623735263, "uuid": "54e1ad75-2bb2-4f75-9984-a009e8b507de", "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-az1458-728"}, {"name": "thread", "value": "2151-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[Bosch]", "status": "passed", "description": "\n Test job links for the job title presence in the html response output\n ", "parameters": [{"name": "scraper_class", "value": "'Bosch'"}], "start": 1728623491727, "stop": 1728623614110, "uuid": "ca9498d4-99c8-44fd-bf81-877943a2bd77", "historyId": "d05d78155d3073feb11d4f34ff124b20", "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-az1458-728"}, {"name": "thread", "value": "2151-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.TestJobsValidator.test_api"}]}
8 changes: 4 additions & 4 deletions docs/allure-results/executor.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "GitHub Actions",
"type": "github",
"url": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11267831844",
"buildName": "347",
"buildUrl": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11267831844",
"url": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11286699651",
"buildName": "348",
"buildUrl": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11286699651",
"reportName": "Allure Report",
"reportUrl": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11267831844"
"reportUrl": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11286699651"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "test_job_countries[Bosch]", "status": "passed", "description": "\n Test job countries match Romania\n ", "parameters": [{"name": "scraper_class", "value": "'Bosch'"}], "start": 1728623614141, "stop": 1728623614141, "uuid": "b7c1bd7b-d2c7-4484-9395-aba7722fa878", "historyId": "24b2b140e3ade175b6ba4e04f3c8ad9f", "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-az1458-728"}, {"name": "thread", "value": "2151-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.TestJobsValidator.test_api"}]}
Loading

0 comments on commit 061e6e1

Please sign in to comment.