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 26, 2024
1 parent 3c98192 commit 2c2a801
Show file tree
Hide file tree
Showing 21 changed files with 336 additions and 312 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uuid": "34cda5b7-de46-422c-affa-077746f9684a", "children": ["c81dd991-da6e-4d53-97f9-ec7459623d57", "04231212-4da2-4dab-aab4-f2d755ce641a", "0fedb080-25f9-4da3-ad44-d52f6ca96ddf", "301f955d-34a5-4867-839a-17918011b801", "a0bf91a3-f4c3-4cc3-a1ed-c82c8f6dc025"], "befores": [{"name": "scraper_class", "status": "passed", "start": 1729919453123, "stop": 1729919453123}], "start": 1729919453123, "stop": 1729919609604}
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', 'Financial responsible for EU projects', 'HR Payroll Specialist - 2 year determined period', 'HSE Engineer', 'IT Support Engineer', 'Local Authorization Coordinator', 'NC Technician', 'Product Data Coordinator', 'Product Test Engineer', 'SAP Process Expert', 'Working Student - Administrative Department', 'Working student - Financial field, CljP', 'Working Student - Technical Department', 'Working Student – Waste Management', 'Working Student Logistics Department, CljP', 'Working Student Manufacturing Area', 'Working Student Reporting in Logistics']", "trace": "self = <TestJobsValidator.test_api.TestScrapers object at 0x7fa8c89b9960>\nsetup = (['Accounts Payable Accountant', 'Accounts Payables with Polish', 'Air Conditioning Sales Responsible', 'Business Cont...nia', 'Romania', 'Romania', 'Romania', ...], [['Timis'], ['Timis'], ['Bucuresti'], ['Cluj'], ['Cluj'], ['Timis'], ...])\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 0x7fa8c8e9f3d0>\nactual_cities = [['Timisoara'], ['Timisoara'], ['Bucuresti'], ['Cluj-Napoca'], ['Jucu'], ['Timisoara'], ...]\njob_titles = ['Accounts Payable Accountant', 'Accounts Payables with Polish', 'Air Conditioning Sales Responsible', 'Business Continuity Management Coordinator', 'CNC Machinist Technician, CljP', 'Communication Manager', ...]\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', 'Financial responsible for EU projects', 'HR Payroll Specialist - 2 year determined period', 'HSE Engineer', 'IT Support Engineer', 'Local Authorization Coordinator', 'NC Technician', 'Product Data Coordinator', 'Product Test Engineer', 'SAP Process Expert', 'Working Student - Administrative Department', 'Working student - Financial field, CljP', 'Working Student - Technical Department', 'Working Student – Waste Management', 'Working Student Logistics Department, CljP', 'Working Student Manufacturing Area', 'Working Student Reporting in Logistics']\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": 1729919530013, "stop": 1729919530064, "uuid": "301f955d-34a5-4867-839a-17918011b801", "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-az848-273"}, {"name": "thread", "value": "2078-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[Genpact]", "status": "passed", "description": "\n Test job titles contain special characters\n ", "parameters": [{"name": "scraper_class", "value": "'Genpact'"}], "start": 1729919671943, "stop": 1729919671979, "uuid": "30f69185-6bd2-4ef9-93dd-2d73a05617c3", "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-az848-273"}, {"name": "thread", "value": "2078-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_types[Genpact]", "status": "passed", "description": "\n Test job types match ['hybrid', 'remote', 'on-site']\n ", "parameters": [{"name": "scraper_class", "value": "'Genpact'"}], "start": 1729919671940, "stop": 1729919671940, "uuid": "60c68855-18a0-42c0-b4a1-f226364ef3ad", "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-az848-273"}, {"name": "thread", "value": "2078-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_types[Bosch]", "status": "passed", "description": "\n Test job types match ['hybrid', 'remote', 'on-site']\n ", "parameters": [{"name": "scraper_class", "value": "'Bosch'"}], "start": 1729919530010, "stop": 1729919530011, "uuid": "04231212-4da2-4dab-aab4-f2d755ce641a", "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-az848-273"}, {"name": "thread", "value": "2078-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": 1729919671980, "stop": 1729919671982, "uuid": "c555ecf1-7afe-418b-bc46-ab7ba34cbe63", "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-az848-273"}, {"name": "thread", "value": "2078-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": 1729919671941, "stop": 1729919671942, "uuid": "903d4c47-2401-441f-b7e8-99d3e5ffc663", "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-az848-273"}, {"name": "thread", "value": "2078-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": "1f213b24-91db-4a86-bbdb-5b787ece7d73", "children": ["c81dd991-da6e-4d53-97f9-ec7459623d57", "04231212-4da2-4dab-aab4-f2d755ce641a", "0fedb080-25f9-4da3-ad44-d52f6ca96ddf", "301f955d-34a5-4867-839a-17918011b801", "a0bf91a3-f4c3-4cc3-a1ed-c82c8f6dc025"], "befores": [{"name": "setup", "status": "passed", "start": 1729919453130, "stop": 1729919455341}], "afters": [{"name": "setup::0", "status": "passed", "start": 1729919530100, "stop": 1729919609604}], "start": 1729919453130, "stop": 1729919609604}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uuid": "b4e4f220-c298-4398-a3be-bb005074b459", "children": ["291dc61d-2f3a-48ca-bd8d-251affcda7e0", "60c68855-18a0-42c0-b4a1-f226364ef3ad", "903d4c47-2401-441f-b7e8-99d3e5ffc663", "30f69185-6bd2-4ef9-93dd-2d73a05617c3", "c555ecf1-7afe-418b-bc46-ab7ba34cbe63"], "befores": [{"name": "scraper_class", "status": "passed", "start": 1729919609605, "stop": 1729919609605}], "start": 1729919609605, "stop": 1729919672389}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "test_job_counties[Bosch]", "status": "passed", "description": "\n Test job titles contain special characters\n ", "parameters": [{"name": "scraper_class", "value": "'Bosch'"}], "start": 1729919530098, "stop": 1729919530099, "uuid": "a0bf91a3-f4c3-4cc3-a1ed-c82c8f6dc025", "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-az848-273"}, {"name": "thread", "value": "2078-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": "d38242cd-96b6-47cc-935f-47d1bff1bfb5", "children": ["291dc61d-2f3a-48ca-bd8d-251affcda7e0", "60c68855-18a0-42c0-b4a1-f226364ef3ad", "903d4c47-2401-441f-b7e8-99d3e5ffc663", "30f69185-6bd2-4ef9-93dd-2d73a05617c3", "c555ecf1-7afe-418b-bc46-ab7ba34cbe63"], "befores": [{"name": "setup", "status": "passed", "start": 1729919609605, "stop": 1729919611938}], "afters": [{"name": "setup::0", "status": "passed", "start": 1729919671982, "stop": 1729919672388}], "start": 1729919609605, "stop": 1729919672388}
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": 1729919530012, "stop": 1729919530012, "uuid": "0fedb080-25f9-4da3-ad44-d52f6ca96ddf", "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-az848-273"}, {"name": "thread", "value": "2078-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/11512265985",
"buildName": "362",
"buildUrl": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11512265985",
"url": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11529154223",
"buildName": "363",
"buildUrl": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11529154223",
"reportName": "Allure Report",
"reportUrl": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11512265985"
"reportUrl": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11529154223"
}
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": 1729919455342, "stop": 1729919530001, "uuid": "c81dd991-da6e-4d53-97f9-ec7459623d57", "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-az848-273"}, {"name": "thread", "value": "2078-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.TestJobsValidator.test_api"}]}
Loading

0 comments on commit 2c2a801

Please sign in to comment.