| ============================= test session starts ==============================
|
| platform linux -- Python 3.9.13, pytest-7.1.2, pluggy-1.0.0 -- /usr/bin/python3
|
| cachedir: .pytest_cache
|
| rootdir: /var/lib/jenkins/workspace/pps
|
| plugins: xdist-3.0.2, rerunfailures-10.2, allure-pytest-2.8.34
|
| collecting ... collected 88 items
|
|
|
| tests/ui_tests/pps_cps/pps/Other cases/test_add_prospects_to_list.py::TestPPS::test_add_all_prospects_to_list[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_add_prospects_to_list.py::TestPPS::test_create_prospects_list_error[chrome-0-List with the same name already exists.] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_add_prospects_to_list.py::TestPPS::test_create_prospects_list_error[chrome--Please, put new list name] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_clear_filters.py::TestPPS::test_clear_filters[chrome-First name-Enter name] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_clear_filters.py::TestPPS::test_clear_filters[chrome-Location-Select location] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_clear_filters.py::TestPPS::test_clear_filters[chrome-Job title-Enter one or more job titles] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_clear_filters.py::TestPPS::test_clear_filters[chrome-Last name-Enter name] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_clear_filters.py::TestPPS::test_clear_filters[chrome-Skills-Enter skills] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_clear_filters.py::TestPPS::test_clear_filters[chrome-Company name-Enter company name] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_clear_filters.py::TestPPS::test_clear_filters[chrome-Company location-Select location] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_clear_filters.py::TestPPS::test_clear_filters[chrome-Industry-Select industry] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_clear_filters.py::TestPPS::test_clear_filters[chrome-Size-Choose number of employees] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_clear_filters.py::TestPPS::test_clear_filters[chrome-Founded-Select founding date] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_clear_filters.py::TestPPS::test_clear_filters[chrome-Revenue-Select revenue range] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_clear_filters.py::TestPPS::test_clear_filters[chrome-Specialties-Select specialties] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_pagination.py::TestPPS::test_pagination[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_remove_filters.py::TestPPS::test_remove_filter[chrome-Location-ukr-Ukraine-Select location] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_remove_filters.py::TestPPS::test_remove_filter[chrome-Job title-man-Project Manager-Enter one or more job titles] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_remove_filters.py::TestPPS::test_remove_filter[chrome-Skills-man-management-Enter skills] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_remove_filters.py::TestPPS::test_remove_filter[chrome-Company name-snov-Snov.io-Enter company name] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_remove_filters.py::TestPPS::test_remove_filter[chrome-Company location-ukr-Ukraine-Select location] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_remove_filters.py::TestPPS::test_remove_filter[chrome-Industry-ani-Animation-Select industry] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_remove_filters.py::TestPPS::test_remove_filter[chrome-Specialties-man-Project Management-Select specialties] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_remove_filters.py::TestPPS::test_remove_filter_prospect_name[chrome-First name-Anna-Enter name] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_remove_filters.py::TestPPS::test_remove_filter_prospect_name[chrome-Last name-Smith-Enter name] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_reset_all_filters.py::TestPPS::test_reset_all_filters[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Other cases/test_show_all.py::TestPPS::test_save_recent_search[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Plans/test_add_to_list_not_enough_credits.py::TestPPS::test_add_prospects_to_list_not_enough_credits[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Plans/test_check_credits.py::TestPPS::test_credits_after_adding[chrome-United States] RERUN
|
| tests/ui_tests/pps_cps/pps/Plans/test_check_credits.py::TestPPS::test_credits_after_adding[chrome-United States] RERUN
|
| tests/ui_tests/pps_cps/pps/Plans/test_check_credits.py::TestPPS::test_credits_after_adding[chrome-United States] FAILED
|
| tests/ui_tests/pps_cps/pps/Plans/test_dbs_search_no_credits.py::TestPPS::test_dbs_search_no_credits[chrome-rk-10-10-2023-1@snov.io] PASSED
|
| tests/ui_tests/pps_cps/pps/Plans/test_dbs_search_no_credits.py::TestPPS::test_dbs_search_no_credits[chrome-rk-10-10-2023-4@snov.io] PASSED
|
| tests/ui_tests/pps_cps/pps/Plans/test_free_plan_limit.py::TestPPS::test_dbs_search_no_credits[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_first_search.py::TestPPS::test_interactive_tooltip[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_first_search.py::TestPPS::test_first_default_filters[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_load_search.py::TestPPS::test_load_saved_search_from_filters_panel[chrome-Job title-list_of_positions0] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_load_search.py::TestPPS::test_load_saved_search_from_details[chrome-Job title-list_of_positions0] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_mix_search.py::TestPPS::test_search_by_company_location_and_job[chrome-General Manager-United States] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_mix_search.py::TestPPS::test_search_by_company_location_and_job[chrome-CEO-Ukraine] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_mix_search.py::TestPPS::test_search_by_company_and_job[chrome-Apple-Cheng] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_open_in_new_tab.py::TestPPS::test_open_saved_search_in_new_tab[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_open_in_new_tab.py::TestPPS::test_open_saved_search_in_new_tab_open_details[chrome-0] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_open_in_new_tab.py::TestPPS::test_open_saved_search_in_new_tab_open_details[chrome-1] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_remove_search.py::TestPPS::test_delete_search[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_remove_search.py::TestPPS::test_delete_search_on_details[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_rename_search.py::TestPPS::test_rename_saved_search_from_menu[chrome] RERUN
|
| tests/ui_tests/pps_cps/pps/Search/test_rename_search.py::TestPPS::test_rename_saved_search_from_menu[chrome] RERUN
|
| tests/ui_tests/pps_cps/pps/Search/test_rename_search.py::TestPPS::test_rename_saved_search_from_menu[chrome] FAILED
|
| tests/ui_tests/pps_cps/pps/Search/test_rename_search.py::TestPPS::test_rename_saved_search_from_details[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_save_search.py::TestPPS::test_save_recent_search[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_save_search.py::TestPPS::test_save_search_filter_panel[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_save_search.py::TestPPS::test_save_search_open_details[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_save_search.py::TestPPS::test_save_search_with_already_exist_name[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_save_search.py::TestPPS::test_save_search_enter_spaces_and_cancel[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_save_search.py::TestPPS::test_save_more_10_searches[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_founded.py::TestPPS::test_search_by_founded[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_industry.py::TestPPS::test_search_by_industry[chrome-Apparel & Fashion-Apparel & Fashion] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_industry.py::TestPPS::test_search_by_industry[chrome-ban-Banking] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_location.py::TestPPS::test_search_by_company_location[chrome-New York-New York, United States] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_location.py::TestPPS::test_search_by_company_location[chrome-California-California, United States] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_location.py::TestPPS::test_search_by_company_location[chrome-Ukraine-Ukraine] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_name.py::TestPPS::test_search_by_company_name[chrome-Microsoft] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_name.py::TestPPS::test_search_by_company_name[chrome-Apple] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_revenue.py::TestPPS::test_search_by_company_revenue[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_size.py::TestPPS::test_search_by_company_size[chrome] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_specialties.py::TestPPS::test_search_by_specialties[chrome-dev-1] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_specialties.py::TestPPS::test_search_by_specialties[chrome-man-2] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_prospect_job.py::TestPPS::test_search_by_prospect_job[chrome-Job title-man-General Manager] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_prospect_job.py::TestPPS::test_search_by_prospect_job[chrome-Job title-Python Developer-Python Developer] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_prospect_job.py::TestPPS::test_search_by_prospect_job[chrome-Job title-HR -HR Manager] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_prospect_job.py::TestPPS::test_search_by_prospect_job_exclude[chrome-Job title-manager-General Manager] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_prospect_job.py::TestPPS::test_search_by_prospect_job_exclude[chrome-Job title-developer-.NET Developer] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_prospect_job.py::TestPPS::test_search_by_prospect_job_exclude[chrome-Job title-qa-QA Engineer] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_prospect_location.py::TestPPS::test_prospect_location[chrome-New York-New York, United States] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_prospect_location.py::TestPPS::test_prospect_location[chrome-California-California, United States] RERUN
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_prospect_location.py::TestPPS::test_prospect_location[chrome-California-California, United States] RERUN
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_prospect_location.py::TestPPS::test_prospect_location[chrome-California-California, United States] FAILED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_prospect_name.py::TestPPS::test_search_by_prospect_name[chrome-Last name-Jackson] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_prospect_name.py::TestPPS::test_search_by_prospect_name[chrome-First name-Anna] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_skills.py::TestPPS::test_search_by_skills[chrome-man-management] PASSED
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_skills.py::TestPPS::test_search_by_skills[chrome-bus-business development] PASSED
|
| tests/ui_tests/pps_cps/pps/Validation/test_enter_less_2_characters.py::TestPPS::test_less_3_char[chrome-Job title-Please enter 2 or more characters] PASSED
|
| tests/ui_tests/pps_cps/pps/Validation/test_enter_less_2_characters.py::TestPPS::test_less_3_char[chrome-Skills-Please enter 3 or more characters] PASSED
|
| tests/ui_tests/pps_cps/pps/Validation/test_enter_less_2_characters.py::TestPPS::test_less_3_char[chrome-Company name-Please enter 3 or more characters] PASSED
|
| tests/ui_tests/pps_cps/pps/Validation/test_enter_less_2_characters.py::TestPPS::test_less_3_char[chrome-Specialties-Please enter 3 or more characters] PASSED
|
| tests/ui_tests/pps_cps/pps/Validation/test_enter_less_2_characters.py::TestPPS::test_english_text_dropdown[chrome-Location-Please enter 3 or more characters] PASSED
|
| tests/ui_tests/pps_cps/pps/Validation/test_enter_less_2_characters.py::TestPPS::test_english_text_dropdown[chrome-Company location-Please enter 3 or more characters] PASSED
|
| tests/ui_tests/pps_cps/pps/Validation/test_limit_10_filters.py::TestPPS::test_limit_10_filter[chrome-Location] PASSED
|
| tests/ui_tests/pps_cps/pps/Validation/test_limit_10_filters.py::TestPPS::test_limit_10_filter[chrome-Job title] PASSED
|
| tests/ui_tests/pps_cps/pps/Validation/test_limit_10_filters.py::TestPPS::test_limit_10_filter[chrome-Company name] PASSED
|
| tests/ui_tests/pps_cps/pps/Validation/test_limit_10_filters.py::TestPPS::test_limit_10_filter[chrome-Company location] PASSED
|
| tests/ui_tests/pps_cps/pps/Validation/test_limit_10_filters.py::TestPPS::test_limit_10_filter[chrome-Specialties] PASSED
|
| tests/ui_tests/pps_cps/pps/Validation/test_not_found_data.py::TestPPS::test_no_data_found[chrome] PASSED
|
|
|
| =================================== FAILURES ===================================
|
| ___________ TestPPS.test_credits_after_adding[chrome-United States] ____________
|
|
|
| self = <tests.ui_tests.pps_cps.pps.Plans.test_check_credits.TestPPS object at 0x7fb0f8efaeb0>
|
| location = 'United States'
|
|
|
| @pytest.mark.parametrize('location', [
|
| (
|
| 'United States'
|
| )
|
| ])
|
| @allure.title("check credits")
|
| @allure.severity(Severity.BLOCKER)
|
| def test_credits_after_adding(self, location):
|
| self.login_page = LoginPage(self.driver)
|
| self.account_page = AccountPage(self.driver)
|
| self.login_page.login_to_snovio(TestDataPPS.USER_PPS, TestDataGeneral.PASSWORD_GENERAL)
|
| self.account_page.open_account_page()
|
| balance_before = self.account_page.get_balance()
|
| self.pps_page.open_pps_page()
|
| self.pps_page.choose_elastic_filter(TestDataPPS.C_COMPANY_LOCATION, location, location)
|
| self.pps_page.click_search_and_wait_results()
|
| > self.pps_page.click_add_to_list_any_prospect()
|
|
|
| tests/ui_tests/pps_cps/pps/Plans/test_check_credits.py:28:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| tests/scr/pages/pps_page.py:597: in click_add_to_list_any_prospect
|
| before = self.get_emails()
|
| tests/scr/pages/pps_page.py:357: in get_emails
|
| return self.get_text_from_elements(self.EMAILS)
|
| tests/scr/pages/base_page.py:140: in get_text_from_elements
|
| text.append(elements.text)
|
| /usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webelement.py:76: in text
|
| return self._execute(Command.GET_ELEMENT_TEXT)['value']
|
| /usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webelement.py:633: in _execute
|
| return self._parent.execute(command, params)
|
| /usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py:321: in execute
|
| self.error_handler.check_response(response)
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x7fb0f871d3d0>
|
| response = {'status': 404, 'value': '{"value":{"error":"stale element reference","message":"stale element reference: stale elemen...wn>\\n#19 0x563cfa00c847 \\u003Cunknown>\\n#20 0x563cfa01c243 \\u003Cunknown>\\n#21 0x7f9efcdcc6db start_thread\\n"}}'}
|
|
|
| def check_response(self, response):
|
| """
|
| Checks that a JSON response from the WebDriver does not have an error.
|
|
|
| :Args:
|
| - response - The JSON response from the WebDriver server as a dictionary
|
| object.
|
|
|
| :Raises: If the response contains an error message.
|
| """
|
| status = response.get('status', None)
|
| if status is None or status == ErrorCode.SUCCESS:
|
| return
|
| value = None
|
| message = response.get("message", "")
|
| screen = response.get("screen", "")
|
| stacktrace = None
|
| if isinstance(status, int):
|
| value_json = response.get('value', None)
|
| if value_json and isinstance(value_json, basestring):
|
| import json
|
| try:
|
| value = json.loads(value_json)
|
| if len(value.keys()) == 1:
|
| value = value['value']
|
| status = value.get('error', None)
|
| if status is None:
|
| status = value["status"]
|
| message = value["value"]
|
| if not isinstance(message, basestring):
|
| value = message
|
| message = message.get('message')
|
| else:
|
| message = value.get('message', None)
|
| except ValueError:
|
| pass
|
|
|
| exception_class = ErrorInResponseException
|
| if status in ErrorCode.NO_SUCH_ELEMENT:
|
| exception_class = NoSuchElementException
|
| elif status in ErrorCode.NO_SUCH_FRAME:
|
| exception_class = NoSuchFrameException
|
| elif status in ErrorCode.NO_SUCH_WINDOW:
|
| exception_class = NoSuchWindowException
|
| elif status in ErrorCode.STALE_ELEMENT_REFERENCE:
|
| exception_class = StaleElementReferenceException
|
| elif status in ErrorCode.ELEMENT_NOT_VISIBLE:
|
| exception_class = ElementNotVisibleException
|
| elif status in ErrorCode.INVALID_ELEMENT_STATE:
|
| exception_class = InvalidElementStateException
|
| elif status in ErrorCode.INVALID_SELECTOR \
|
| or status in ErrorCode.INVALID_XPATH_SELECTOR \
|
| or status in ErrorCode.INVALID_XPATH_SELECTOR_RETURN_TYPER:
|
| exception_class = InvalidSelectorException
|
| elif status in ErrorCode.ELEMENT_IS_NOT_SELECTABLE:
|
| exception_class = ElementNotSelectableException
|
| elif status in ErrorCode.ELEMENT_NOT_INTERACTABLE:
|
| exception_class = ElementNotInteractableException
|
| elif status in ErrorCode.INVALID_COOKIE_DOMAIN:
|
| exception_class = InvalidCookieDomainException
|
| elif status in ErrorCode.UNABLE_TO_SET_COOKIE:
|
| exception_class = UnableToSetCookieException
|
| elif status in ErrorCode.TIMEOUT:
|
| exception_class = TimeoutException
|
| elif status in ErrorCode.SCRIPT_TIMEOUT:
|
| exception_class = TimeoutException
|
| elif status in ErrorCode.UNKNOWN_ERROR:
|
| exception_class = WebDriverException
|
| elif status in ErrorCode.UNEXPECTED_ALERT_OPEN:
|
| exception_class = UnexpectedAlertPresentException
|
| elif status in ErrorCode.NO_ALERT_OPEN:
|
| exception_class = NoAlertPresentException
|
| elif status in ErrorCode.IME_NOT_AVAILABLE:
|
| exception_class = ImeNotAvailableException
|
| elif status in ErrorCode.IME_ENGINE_ACTIVATION_FAILED:
|
| exception_class = ImeActivationFailedException
|
| elif status in ErrorCode.MOVE_TARGET_OUT_OF_BOUNDS:
|
| exception_class = MoveTargetOutOfBoundsException
|
| elif status in ErrorCode.JAVASCRIPT_ERROR:
|
| exception_class = JavascriptException
|
| elif status in ErrorCode.SESSION_NOT_CREATED:
|
| exception_class = SessionNotCreatedException
|
| elif status in ErrorCode.INVALID_ARGUMENT:
|
| exception_class = InvalidArgumentException
|
| elif status in ErrorCode.NO_SUCH_COOKIE:
|
| exception_class = NoSuchCookieException
|
| elif status in ErrorCode.UNABLE_TO_CAPTURE_SCREEN:
|
| exception_class = ScreenshotException
|
| elif status in ErrorCode.ELEMENT_CLICK_INTERCEPTED:
|
| exception_class = ElementClickInterceptedException
|
| elif status in ErrorCode.INSECURE_CERTIFICATE:
|
| exception_class = InsecureCertificateException
|
| elif status in ErrorCode.INVALID_COORDINATES:
|
| exception_class = InvalidCoordinatesException
|
| elif status in ErrorCode.INVALID_SESSION_ID:
|
| exception_class = InvalidSessionIdException
|
| elif status in ErrorCode.UNKNOWN_METHOD:
|
| exception_class = UnknownMethodException
|
| else:
|
| exception_class = WebDriverException
|
| if value == '' or value is None:
|
| value = response['value']
|
| if isinstance(value, basestring):
|
| if exception_class == ErrorInResponseException:
|
| raise exception_class(response, value)
|
| raise exception_class(value)
|
| if message == "" and 'message' in value:
|
| message = value['message']
|
|
|
| screen = None
|
| if 'screen' in value:
|
| screen = value['screen']
|
|
|
| stacktrace = None
|
| if 'stackTrace' in value and value['stackTrace']:
|
| stacktrace = []
|
| try:
|
| for frame in value['stackTrace']:
|
| line = self._value_or_default(frame, 'lineNumber', '')
|
| file = self._value_or_default(frame, 'fileName', '<anonymous>')
|
| if line:
|
| file = "%s:%s" % (file, line)
|
| meth = self._value_or_default(frame, 'methodName', '<anonymous>')
|
| if 'className' in frame:
|
| meth = "%s.%s" % (frame['className'], meth)
|
| msg = " at %s (%s)"
|
| msg = msg % (meth, file)
|
| stacktrace.append(msg)
|
| except TypeError:
|
| pass
|
| if exception_class == ErrorInResponseException:
|
| raise exception_class(response, message)
|
| elif exception_class == UnexpectedAlertPresentException:
|
| alert_text = None
|
| if 'data' in value:
|
| alert_text = value['data'].get('text')
|
| elif 'alert' in value:
|
| alert_text = value['alert'].get('text')
|
| raise exception_class(message, screen, stacktrace, alert_text)
|
| > raise exception_class(message, screen, stacktrace)
|
| E selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: stale element not found
|
| E (Session info: headless chrome=114.0.5735.133)
|
|
|
| /usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/errorhandler.py:242: StaleElementReferenceException
|
| ______________ TestPPS.test_rename_saved_search_from_menu[chrome] ______________
|
|
|
| self = <tests.ui_tests.pps_cps.pps.Search.test_rename_search.TestPPS object at 0x7fb0f8ead7c0>
|
|
|
| @allure.title("Rename search")
|
| @allure.severity(Severity.CRITICAL)
|
| def test_rename_saved_search_from_menu(self):
|
| self.pps_page.login_and_open_pps_page(TestDataPPS.USER_PPS, TestDataGeneral.PASSWORD_GENERAL)
|
| > self.pps_page.rename_saved_search(TestDataPPS.DEF_INDEX)
|
|
|
| tests/ui_tests/pps_cps/pps/Search/test_rename_search.py:14:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| tests/scr/pages/pps_page.py:639: in rename_saved_search
|
| self.choose_rename_filter_from_menu(index)
|
| tests/scr/pages/pps_page.py:451: in choose_rename_filter_from_menu
|
| self.open_saved_filter_menu(counter)
|
| tests/scr/pages/pps_page.py:436: in open_saved_filter_menu
|
| self.click_one_of_elements(self.SAVED_SEARCHES_MENU, counter)
|
| tests/scr/pages/base_page.py:21: in click_one_of_elements
|
| x = WebDriverWait(self.driver, 10, 1).until(EC.presence_of_all_elements_located(by_locator))
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| self = <selenium.webdriver.support.wait.WebDriverWait (session="5d5dbb6893e64d88174251cb74470265")>
|
| method = <selenium.webdriver.support.expected_conditions.presence_of_all_elements_located object at 0x7fb0f86d7d30>
|
| message = ''
|
|
|
| def until(self, method, message=''):
|
| """Calls the method provided with the driver as an argument until the \
|
| return value is not False."""
|
| screen = None
|
| stacktrace = None
|
|
|
| end_time = time.time() + self._timeout
|
| while True:
|
| try:
|
| value = method(self._driver)
|
| if value:
|
| return value
|
| except self._ignored_exceptions as exc:
|
| screen = getattr(exc, 'screen', None)
|
| stacktrace = getattr(exc, 'stacktrace', None)
|
| time.sleep(self._poll)
|
| if time.time() > end_time:
|
| break
|
| > raise TimeoutException(message, screen, stacktrace)
|
| E selenium.common.exceptions.TimeoutException: Message:
|
|
|
| /usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
|
| _ TestPPS.test_prospect_location[chrome-California-California, United States] __
|
|
|
| self = <tests.ui_tests.pps_cps.pps.Search.test_search_by_prospect_location.TestPPS object at 0x7fb0f8ee2760>
|
| location = 'California', elastic_option = 'California, United States'
|
|
|
| @pytest.mark.parametrize('location, elastic_option', [
|
| (
|
| 'New York',
|
| 'New York, United States'
|
| ),
|
| (
|
| 'California',
|
| 'California, United States'
|
| )
|
| ])
|
| @allure.title("Search by prospect location")
|
| @allure.severity(Severity.BLOCKER)
|
| def test_prospect_location(self, location, elastic_option):
|
| self.p_page = ProspectsPage(self.driver)
|
| self.pps_page.login_and_open_pps_page(TestDataPPS.USER_PPS, TestDataGeneral.PASSWORD_GENERAL)
|
| self.pps_page.choose_elastic_filter(TestDataPPS.P_LOCATION, location, elastic_option)
|
| self.pps_page.click_search_and_wait_results()
|
| self.pps_page.open_random_prospect()
|
| time.sleep(3)
|
| > assert location.lower() in self.p_page.get_prospect_info('Location').lower()
|
| E AssertionError: assert 'california' in 'san francisco bay area'
|
| E + where 'california' = <built-in method lower of str object at 0x7fb0f8ec40b0>()
|
| E + where <built-in method lower of str object at 0x7fb0f8ec40b0> = 'California'.lower
|
| E + and 'san francisco bay area' = <built-in method lower of str object at 0x7fb0f86cb990>()
|
| E + where <built-in method lower of str object at 0x7fb0f86cb990> = 'San Francisco Bay Area'.lower
|
| E + where 'San Francisco Bay Area' = <bound method ProspectsPage.get_prospect_info of <tests.scr.pages.prospects_page.ProspectsPage object at 0x7fb0f8e64d90>>('Location')
|
| E + where <bound method ProspectsPage.get_prospect_info of <tests.scr.pages.prospects_page.ProspectsPage object at 0x7fb0f8e64d90>> = <tests.scr.pages.prospects_page.ProspectsPage object at 0x7fb0f8e64d90>.get_prospect_info
|
| E + where <tests.scr.pages.prospects_page.ProspectsPage object at 0x7fb0f8e64d90> = <tests.ui_tests.pps_cps.pps.Search.test_search_by_prospect_location.TestPPS object at 0x7fb0f8ee2760>.p_page
|
|
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_prospect_location.py:32: AssertionError
|
| =============================== warnings summary ===============================
|
| ../../../../../usr/lib/python3/dist-packages/urllib3/util/selectors.py:14
|
| /usr/lib/python3/dist-packages/urllib3/util/selectors.py:14: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
|
| from collections import namedtuple, Mapping
|
|
|
| ../../../../../usr/lib/python3/dist-packages/urllib3/_collections.py:2
|
| /usr/lib/python3/dist-packages/urllib3/_collections.py:2: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
|
| from collections import Mapping, MutableMapping
|
|
|
| tests/ui_tests/pps_cps/pps/Other cases/test_add_prospects_to_list.py: 3 warnings
|
| tests/ui_tests/pps_cps/pps/Other cases/test_clear_filters.py: 12 warnings
|
| tests/ui_tests/pps_cps/pps/Other cases/test_pagination.py: 1 warning
|
| tests/ui_tests/pps_cps/pps/Other cases/test_remove_filters.py: 9 warnings
|
| tests/ui_tests/pps_cps/pps/Other cases/test_reset_all_filters.py: 1 warning
|
| tests/ui_tests/pps_cps/pps/Other cases/test_show_all.py: 1 warning
|
| tests/ui_tests/pps_cps/pps/Plans/test_add_to_list_not_enough_credits.py: 1 warning
|
| tests/ui_tests/pps_cps/pps/Plans/test_check_credits.py: 3 warnings
|
| tests/ui_tests/pps_cps/pps/Plans/test_dbs_search_no_credits.py: 2 warnings
|
| tests/ui_tests/pps_cps/pps/Plans/test_free_plan_limit.py: 1 warning
|
| tests/ui_tests/pps_cps/pps/Search/test_first_search.py: 2 warnings
|
| tests/ui_tests/pps_cps/pps/Search/test_load_search.py: 2 warnings
|
| tests/ui_tests/pps_cps/pps/Search/test_mix_search.py: 3 warnings
|
| tests/ui_tests/pps_cps/pps/Search/test_open_in_new_tab.py: 3 warnings
|
| tests/ui_tests/pps_cps/pps/Search/test_remove_search.py: 2 warnings
|
| tests/ui_tests/pps_cps/pps/Search/test_rename_search.py: 4 warnings
|
| tests/ui_tests/pps_cps/pps/Search/test_save_search.py: 6 warnings
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_founded.py: 1 warning
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_industry.py: 2 warnings
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_location.py: 3 warnings
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_name.py: 2 warnings
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_revenue.py: 1 warning
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_size.py: 1 warning
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_company_specialties.py: 2 warnings
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_prospect_job.py: 6 warnings
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_prospect_location.py: 4 warnings
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_prospect_name.py: 2 warnings
|
| tests/ui_tests/pps_cps/pps/Search/test_search_by_skills.py: 2 warnings
|
| tests/ui_tests/pps_cps/pps/Validation/test_enter_less_2_characters.py: 6 warnings
|
| tests/ui_tests/pps_cps/pps/Validation/test_limit_10_filters.py: 5 warnings
|
| tests/ui_tests/pps_cps/pps/Validation/test_not_found_data.py: 1 warning
|
| /var/lib/jenkins/workspace/pps/tests/conftest.py:27: DeprecationWarning: use options instead of chrome_options
|
| driver = webdriver.Chrome(ChromeDriverManager().install(), chrome_options=chromeOptions)
|
|
|
| -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
| =========================== short test summary info ============================
|
| FAILED tests/ui_tests/pps_cps/pps/Plans/test_check_credits.py::TestPPS::test_credits_after_adding[chrome-United States]
|
| FAILED tests/ui_tests/pps_cps/pps/Search/test_rename_search.py::TestPPS::test_rename_saved_search_from_menu[chrome]
|
| FAILED tests/ui_tests/pps_cps/pps/Search/test_search_by_prospect_location.py::TestPPS::test_prospect_location[chrome-California-California, United States]
|
| ======= 3 failed, 85 passed, 96 warnings, 6 rerun in 1406.75s (0:23:26) ========
|