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 23, 2024
1 parent e37b789 commit fec3134
Show file tree
Hide file tree
Showing 21 changed files with 310 additions and 286 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uuid": "fd4e92c7-ac56-45c6-af06-64d4fe3cfcaf", "children": ["57c461fb-e319-488c-b943-21fad4cd7e9f", "a28ada88-8fd8-4818-83e1-1c10707fab93", "cb083ac1-ba85-42cb-b4f8-00d0669867b8", "67996773-80ba-4c7a-b50b-b9f66621849f", "fa1ed648-c03c-45a8-97e4-34765d6c7e45"], "befores": [{"name": "scraper_class", "status": "passed", "start": 1729660505590, "stop": 1729660505591}], "start": 1729660505590, "stop": 1729660564587}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uuid": "a271d323-0d83-4255-ae5f-c314ced5a461", "children": ["57c461fb-e319-488c-b943-21fad4cd7e9f", "a28ada88-8fd8-4818-83e1-1c10707fab93", "cb083ac1-ba85-42cb-b4f8-00d0669867b8", "67996773-80ba-4c7a-b50b-b9f66621849f", "fa1ed648-c03c-45a8-97e4-34765d6c7e45"], "befores": [{"name": "setup", "status": "passed", "start": 1729660505591, "stop": 1729660508250}], "afters": [{"name": "setup::0", "status": "passed", "start": 1729660564161, "stop": 1729660564586}], "start": 1729660505591, "stop": 1729660564586}
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": 1729660564119, "stop": 1729660564120, "uuid": "cb083ac1-ba85-42cb-b4f8-00d0669867b8", "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-az1431-226"}, {"name": "thread", "value": "2295-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": 1729660425614, "stop": 1729660425614, "uuid": "fb8142a6-94c4-4c96-a727-72e81e033d2e", "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-az1431-226"}, {"name": "thread", "value": "2295-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": "passed", "description": "\n Test job titles contain special characters\n ", "parameters": [{"name": "scraper_class", "value": "'Bosch'"}], "start": 1729660425703, "stop": 1729660425704, "uuid": "ff82a754-9e9c-4912-8b32-81b4d5432520", "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-az1431-226"}, {"name": "thread", "value": "2295-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": 1729660425613, "stop": 1729660425613, "uuid": "b31c69ea-b940-48bf-b857-d6fd2d822ee6", "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-az1431-226"}, {"name": "thread", "value": "2295-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_counties[Genpact]", "status": "passed", "description": "\n Test job titles contain special characters\n ", "parameters": [{"name": "scraper_class", "value": "'Genpact'"}], "start": 1729660564159, "stop": 1729660564161, "uuid": "fa1ed648-c03c-45a8-97e4-34765d6c7e45", "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-az1431-226"}, {"name": "thread", "value": "2295-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": "failed", "statusDetails": {"message": "AssertionError: One of the job format types is not within the expected job type formats", "trace": "self = <TestJobsValidator.test_api.TestScrapers object at 0x7fbadfb39690>\nsetup = (['Account Receivable Collections and Deductions – Senior Process Associate – English - Hybrid Bucharest', 'Accounts P...ia', 'Romania', 'Romania', ...], [['Bucuresti'], ['Cluj'], ['Bucuresti'], ['Bucuresti'], ['Bucuresti'], ['Cluj'], ...])\n\n @pytest.mark.smoke\n def test_job_types(self, setup):\n \"\"\"\n Test job types match ['hybrid', 'remote', 'on-site']\n \"\"\"\n peviitor_jobs_data = setup\n job_types = peviitor_jobs_data[3]\n> TestScrapers.setup_tests.jobdetails.check_job_format_types(job_types)\n\ntests/TestJobsValidator/test_api.py:61: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/TestJobsValidator/api_utils/job_details_utils.py:136: in check_job_format_types\n self.typeutils.check_job_format_types(job_types_validator)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <tests.TestJobsValidator.api_utils.job_types_utils.TypeTestUtils object at 0x7fbadfb38fd0>\njob_types_scraper = ['hybrid', 'hybrid', 'hybrid', 'remote', 'remote', 'hybrid', ...]\n\n def check_job_format_types(self, job_types_scraper):\n msg = \"An unknown error occured\"\n expected_job_type_formats = [\"hybrid\", \"remote\", \"on-site\"]\n \n for job_type in job_types_scraper:\n if job_type not in expected_job_type_formats:\n msg = f\"One of the job format types is not within the expected job type formats\"\n> raise AssertionError(msg)\nE AssertionError: One of the job format types is not within the expected job type formats\n\ntests/TestJobsValidator/api_utils/job_types_utils.py:13: AssertionError"}, "description": "\n Test job types match ['hybrid', 'remote', 'on-site']\n ", "parameters": [{"name": "scraper_class", "value": "'Genpact'"}], "start": 1729660564113, "stop": 1729660564113, "uuid": "a28ada88-8fd8-4818-83e1-1c10707fab93", "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-az1431-226"}, {"name": "thread", "value": "2295-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": "28a19f01-33c9-40c9-ad69-0cb9fc9177aa", "children": ["8756875d-9be9-41ef-9093-75f6af01881f", "b31c69ea-b940-48bf-b857-d6fd2d822ee6", "fb8142a6-94c4-4c96-a727-72e81e033d2e", "7585ed25-e408-483a-a15b-4fb035012fb0", "ff82a754-9e9c-4912-8b32-81b4d5432520"], "befores": [{"name": "scraper_class", "status": "passed", "start": 1729660344984, "stop": 1729660344984}], "start": 1729660344984, "stop": 1729660505590}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uuid": "1cdb92b3-aae6-42e4-a77c-230ede1cd4ad", "children": ["8756875d-9be9-41ef-9093-75f6af01881f", "b31c69ea-b940-48bf-b857-d6fd2d822ee6", "fb8142a6-94c4-4c96-a727-72e81e033d2e", "7585ed25-e408-483a-a15b-4fb035012fb0", "ff82a754-9e9c-4912-8b32-81b4d5432520"], "befores": [{"name": "setup", "status": "passed", "start": 1729660344993, "stop": 1729660347230}], "afters": [{"name": "setup::0", "status": "passed", "start": 1729660425705, "stop": 1729660505590}], "start": 1729660344992, "stop": 1729660505590}
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": 1729660564121, "stop": 1729660564158, "uuid": "67996773-80ba-4c7a-b50b-b9f66621849f", "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-az1431-226"}, {"name": "thread", "value": "2295-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/11453660791",
"buildName": "359",
"buildUrl": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11453660791",
"url": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11473468280",
"buildName": "360",
"buildUrl": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11473468280",
"reportName": "Allure Report",
"reportUrl": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11453660791"
"reportUrl": "https://github.com/peviitor-ro/RaresTestHub/actions/runs/11473468280"
}
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', 'HR Payroll Specialist - 2 year determined period', 'HSE Engineer, CljP', 'IT Support Engineer', 'Local Authorization Coordinator', 'Product Data Coordinator', 'Product Test Engineer', 'SAP Process Expert', 'Working Student - Administrative Department', 'Working student - Financial field, CljP', 'Working Student - Technical Department', 'Working Student Logistics Department, CljP', 'Working Student Manufacturing Area']", "trace": "self = <TestJobsValidator.test_api.TestScrapers object at 0x7fbadfb3ac20>\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 0x7fbae02ac310>\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', 'HR Payroll Specialist - 2 year determined period', 'HSE Engineer, CljP', 'IT Support Engineer', 'Local Authorization Coordinator', 'Product Data Coordinator', 'Product Test Engineer', 'SAP Process Expert', 'Working Student - Administrative Department', 'Working student - Financial field, CljP', 'Working Student - Technical Department', 'Working Student Logistics Department, CljP', 'Working Student Manufacturing Area']\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": 1729660425616, "stop": 1729660425670, "uuid": "7585ed25-e408-483a-a15b-4fb035012fb0", "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-az1431-226"}, {"name": "thread", "value": "2295-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": 1729660347230, "stop": 1729660425587, "uuid": "8756875d-9be9-41ef-9093-75f6af01881f", "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-az1431-226"}, {"name": "thread", "value": "2295-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.TestJobsValidator.test_api"}]}
Loading

0 comments on commit fec3134

Please sign in to comment.