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 10, 2024
1 parent ed861e5 commit 432616b
Show file tree
Hide file tree
Showing 21 changed files with 490 additions and 466 deletions.
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": 1731215687305, "stop": 1731215687305, "uuid": "8f453a8f-6ca7-4dea-aab2-f2cb4b25ebff", "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-az1978-123"}, {"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": "507179ed-4b5a-44ba-8592-8d195ce3e641", "children": ["4d6e6621-a630-49ad-866a-eb465c75d8fe", "0707aaa1-15b2-4be6-aafc-c4303ec8fd32", "fe2c0ea2-c318-4436-881a-0c1cf95dff2b", "7bd23ac9-f89b-4112-b5ea-9aec565fad30", "0db07ce9-6713-45e8-836d-7869b7be0c7e"], "befores": [{"name": "setup", "status": "passed", "start": 1731215442852, "stop": 1731215445609}], "afters": [{"name": "setup::0", "status": "passed", "start": 1731215536238, "stop": 1731215610319}], "start": 1731215442852, "stop": 1731215610319}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uuid": "643de9fa-fed9-446b-a944-2f77a2434464", "children": ["2b1582c8-1a61-42b9-a617-75872bc7c601", "8f453a8f-6ca7-4dea-aab2-f2cb4b25ebff", "90586101-01f6-42ec-8dcd-4567ecd13364", "b2b98dae-62e9-4b21-812b-6753118f5d33", "45844fff-4ef5-4e20-92dc-03f13d4ad77c"], "befores": [{"name": "scraper_class", "status": "passed", "start": 1731215610321, "stop": 1731215610321}], "start": 1731215610321, "stop": 1731215688008}
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": 1731215445611, "stop": 1731215536099, "uuid": "4d6e6621-a630-49ad-866a-eb465c75d8fe", "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-az1978-123"}, {"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": "f09c5edb-c1cc-47ad-8b69-9d31f42ad40e", "children": ["4d6e6621-a630-49ad-866a-eb465c75d8fe", "0707aaa1-15b2-4be6-aafc-c4303ec8fd32", "fe2c0ea2-c318-4436-881a-0c1cf95dff2b", "7bd23ac9-f89b-4112-b5ea-9aec565fad30", "0db07ce9-6713-45e8-836d-7869b7be0c7e"], "befores": [{"name": "scraper_class", "status": "passed", "start": 1731215442843, "stop": 1731215442843}], "start": 1731215442843, "stop": 1731215610320}
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": 1731215687308, "stop": 1731215687414, "uuid": "b2b98dae-62e9-4b21-812b-6753118f5d33", "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-az1978-123"}, {"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_types[Bosch]", "status": "passed", "description": "\n Test job types match ['hybrid', 'remote', 'on-site']\n ", "parameters": [{"name": "scraper_class", "value": "'Bosch'"}], "start": 1731215536121, "stop": 1731215536121, "uuid": "0707aaa1-15b2-4be6-aafc-c4303ec8fd32", "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-az1978-123"}, {"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_cities[Bosch]", "status": "failed", "statusDetails": {"message": "AssertionError: Test found mismatching job cities for the following jobs: ['CNC Machinist Technician', 'HR Payroll Specialist - 2 year determined period', 'IT Support Engineer', 'Operator roboți industriali', 'Procurement Planner in Logistics', 'SAP Process Expert', 'Working Student - Administrative Department', 'Working student - Financial field, CljP', 'Working Student - IT Support', 'Working Student - Technical Department', 'Working Student Logistics Department, CljP', 'Working Student Manufacturing Area', 'Working Student Reporting in Logistics']", "trace": "self = <TestJobsValidator.test_api.TestScrapers object at 0x7fb9e89f7040>\nsetup = (['Accounts Payable Accountant', 'Accounts Payables with Polish', 'Accounts Receivable Accountant with German', 'Air C...ia', 'Romania', 'Romania', 'Romania', ...], [['Timis'], ['Timis'], ['Timis'], ['Bucuresti'], ['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 0x7fb9e913b3d0>\nactual_cities = [['Timisoara'], ['Timisoara'], ['Timisoara'], ['Bucuresti'], ['Timisoara'], ['Jucu'], ...]\njob_titles = ['Accounts Payable Accountant', 'Accounts Payables with Polish', 'Accounts Receivable Accountant with German', 'Air Conditioning Sales Responsible', 'Buyer with German', 'CNC Machinist Technician', ...]\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', 'HR Payroll Specialist - 2 year determined period', 'IT Support Engineer', 'Operator roboți industriali', 'Procurement Planner in Logistics', 'SAP Process Expert', 'Working Student - Administrative Department', 'Working student - Financial field, CljP', 'Working Student - IT Support', 'Working Student - Technical Department', '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": 1731215536123, "stop": 1731215536167, "uuid": "7bd23ac9-f89b-4112-b5ea-9aec565fad30", "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-az1978-123"}, {"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 @@
{"uuid": "8425d749-7161-4f00-9d9f-122ceb2c8c92", "children": ["2b1582c8-1a61-42b9-a617-75872bc7c601", "8f453a8f-6ca7-4dea-aab2-f2cb4b25ebff", "90586101-01f6-42ec-8dcd-4567ecd13364", "b2b98dae-62e9-4b21-812b-6753118f5d33", "45844fff-4ef5-4e20-92dc-03f13d4ad77c"], "befores": [{"name": "setup", "status": "passed", "start": 1731215610321, "stop": 1731215617270}], "afters": [{"name": "setup::0", "status": "passed", "start": 1731215687420, "stop": 1731215688008}], "start": 1731215610321, "stop": 1731215688008}
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": 1731215536236, "stop": 1731215536237, "uuid": "0db07ce9-6713-45e8-836d-7869b7be0c7e", "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-az1978-123"}, {"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": 1731215687416, "stop": 1731215687420, "uuid": "45844fff-4ef5-4e20-92dc-03f13d4ad77c", "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-az1978-123"}, {"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": 1731215687307, "stop": 1731215687307, "uuid": "90586101-01f6-42ec-8dcd-4567ecd13364", "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-az1978-123"}, {"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[Bosch]", "status": "passed", "description": "\n Test job countries match Romania\n ", "parameters": [{"name": "scraper_class", "value": "'Bosch'"}], "start": 1731215536122, "stop": 1731215536122, "uuid": "fe2c0ea2-c318-4436-881a-0c1cf95dff2b", "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-az1978-123"}, {"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/11753557241",
"buildName": "377",
"buildUrl": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11753557241",
"url": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11762417473",
"buildName": "378",
"buildUrl": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11762417473",
"reportName": "Allure Report",
"reportUrl": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11753557241"
"reportUrl": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11762417473"
}
Loading

0 comments on commit 432616b

Please sign in to comment.