MCPcopy Create free account

hub / github.com/Sunagatov/Iced-Latte-QA / functions

Functions458 in github.com/Sunagatov/Iced-Latte-QA

↓ 43 callersMethodopen
(self)
UI/pages/BasePage.py:393
↓ 40 callersFunctionassert_status_code
Asserts that the actual status code matches the expected status code. Args: response: The response object from the API call. expe
framework/asserts/common.py:5
↓ 38 callersFunctionassert_content_type
Asserts that the Content-Type of the response matches the expected Content-Type. Args: response: The response object from the API call.
framework/asserts/common.py:19
↓ 38 callersFunctionassert_response_message
Asserts that the message in the response body matches the expected message. Args: response: The response object from the API call.
framework/asserts/common.py:34
↓ 28 callersMethodget_all_product_reviews
Getting info about user via API Args: timeout: timeout for request product_id: id of product expected_sta
framework/endpoints/review_api.py:16
↓ 27 callersMethodauthentication
Endpoint for authentication of user Args: expected_status_code: expected http status code from response email: use
framework/endpoints/authenticate_api.py:18
↓ 26 callersFunctionlog_request
Logging request and response data to Allure report
framework/tools/logging_allure.py:9
↓ 25 callersMethodis_element_present
(self, how, what)
UI/pages/BasePage.py:268
↓ 24 callersMethodget_user
Getting info about user via API Args: expected_status_code: Expected HTTP code from Response token: JWT token fo
framework/endpoints/users_api.py:18
↓ 22 callersFunctionlogin_user
(browser: WebDriver, link: str)
UI/set_of_steps.py:26
↓ 19 callersMethodis_change_cart_counter
(self, amount: str)
UI/pages/BasePage.py:211
↓ 17 callersFunctiongenerate_user
Generate a user with customizable attributes. Args: email: specific email for user. first_name_length: Optional[int] - Lengt
framework/tools/generators.py:31
↓ 17 callersMethodget_all
Getting info about all products Args: token: JWT token for authorization of request; params: URL-parameters request.
framework/endpoints/product_api.py:26
↓ 16 callersFunctiongenerate_jwt_token
Generating a JWT token Args: email: user email expired: flag for expired token (True - expired, False - not expired)
framework/tools/generators.py:84
↓ 14 callersMethodget_user_cart
Getting info about user's shopping cart Args: expected_status_code: expected http status code from response token: JW
framework/endpoints/cart_api.py:18
↓ 14 callersMethodgo_to_product_page
(self)
UI/pages/BasePage.py:184
↓ 13 callersFunctionassert_message_in_response
Asserts that the message in the response body matches the expected message. Args: response: The response object from the API call.
framework/asserts/common.py:49
↓ 13 callersFunctionextract_random_product_ids
Extract random product IDs from the API response to add to favorites. Selects a random sample of products from the response based on the given qu
framework/tools/favorite_methods.py:6
↓ 12 callersMethodchange_password
Change user password Args: old_password: old password new_password: new password expected_status_code: Ex
framework/endpoints/users_api.py:62
↓ 12 callersMethodget_products_list_length
(self)
UI/pages/BasePage.py:117
↓ 12 callersMethodrating_checkbox
(self, rating)
UI/pages/ProductPage.py:19
↓ 11 callersMethodclick_add_review
(self)
UI/pages/ProductPage.py:25
↓ 11 callersMethoddelete_user
Deleting user Args: expected_status_code: Expected HTTP code from Response token: JWT token for authorization of requ
framework/endpoints/users_api.py:33
↓ 10 callersMethodadd_product_review
Deleting user Args: rating: rate of product text_review: text for product review product_id: product id f
framework/endpoints/review_api.py:68
↓ 10 callersMethodfetch_all
Executing a query to the Postgres database with returning data in the form of list Args: query: query to the Postgres database
framework/clients/db_client.py:46
↓ 10 callersMethodfill_review
(self, review_text)
UI/pages/ProductPage.py:63
↓ 10 callersFunctiongenerate_password
Function generates and returns random generated password. Args: length: length of password
framework/tools/generators.py:109
↓ 10 callersMethodget_user_product_review
Getting info about user via API Args: token: JWT token for authorization of request product_id: ID of product
framework/endpoints/review_api.py:95
↓ 10 callersMethodgo_to_favorites_page
(self)
UI/pages/BasePage.py:171
↓ 10 callersMethodset_rating
(self)
UI/pages/ProductPage.py:255
↓ 10 callersFunctionverify_user_review_by_user_name_in_all_product_reviews
Checks if a given user has posted a specific text review in the response body. The function first ensures the response body is valid JSON an
framework/tools/review_methods.py:30
↓ 9 callersFunctiondelete_old_review
(browser: WebDriver, link: str)
UI/set_of_steps.py:15
↓ 9 callersMethodgo_to_cart_page
(self)
UI/pages/BasePage.py:166
↓ 9 callersMethodis_filtering_by_price_correct
(self, price_from: str, price_to: str)
UI/pages/BasePage.py:293
↓ 9 callersMethodrefresh_token
Endpoint for authentication of user Args: expected_status_code: expected http status code from response token: bearer
framework/endpoints/authenticate_api.py:88
↓ 8 callersMethodfilter_products_by_price
(self, price_from: str, price_to: str)
UI/pages/BasePage.py:74
↓ 8 callersMethodis_change_amount
(self, amount)
UI/pages/CartPage.py:43
↓ 8 callersMethodupdate_user
Updating user info Args: token: JWT token for authorization of request user_data: data for updating user info
framework/endpoints/users_api.py:48
↓ 7 callersMethodadd_product_to_cart
(self)
UI/pages/BasePage.py:25
↓ 7 callersMethodextract_confirmation_code_from_email
Method for extraction confirmation code for registration from user's email. Args: email_box: email's folder, where search is perf
framework/tools/class_email.py:26
↓ 7 callersMethodlogout
User logout Args: token: JWT token for authorization of request
framework/endpoints/authenticate_api.py:39
↓ 7 callersMethodsort_by
(self, criterion: Literal['price', 'rating'], direction: Literal['high', 'low'])
UI/pages/BasePage.py:454
↓ 6 callersMethodclick_plus_button
(self)
UI/pages/CartPage.py:22
↓ 6 callersMethodfilter_products_by_brand
(self, brand: str)
UI/pages/BasePage.py:67
↓ 6 callersMethodfilter_products_by_seller
(self, seller: str)
UI/pages/BasePage.py:103
↓ 6 callersMethodforgot_password
Endpoint for authentication of user Args: expected_status_code: expected http status code from response email: email
framework/endpoints/authenticate_api.py:105
↓ 6 callersFunctiongenerate_string
Generating a string of the specified length with the possibility of adding special characters Args: length: length of the
framework/tools/generators.py:17
↓ 6 callersMethodget_favorites
Getting info about user's shopping cart Args: expected_status_code: expected http status code from response token: JW
framework/endpoints/favorite_api.py:39
↓ 6 callersMethodget_product_cost
(self)
UI/pages/CartPage.py:30
↓ 6 callersMethodget_product_name
(self)
UI/pages/ProductPage.py:121
↓ 6 callersMethodget_product_name
(self)
UI/pages/BasePage.py:125
↓ 6 callersFunctiongo_to_edit_profile_page
(browser: WebDriver, link: str)
UI/set_of_steps.py:38
↓ 6 callersMethodgo_to_main_page
(self)
UI/pages/BasePage.py:180
↓ 6 callersMethodis_only_filtered_ratings
(self, ratings)
UI/pages/ProductPage.py:214
↓ 6 callersMethodregistration
Endpoint for registration of user Args: expected_status_code: expected http status code from response body: registr
framework/endpoints/authenticate_api.py:53
↓ 6 callersFunctionremove_products_from_cart_and_favorites
(browser: WebDriver, link: str)
UI/set_of_steps.py:50
↓ 6 callersMethodsave_change
(self)
UI/pages/EditProfilePage.py:21
↓ 5 callersFunctionappend_random_to_local_part_email
Generates a random email address based on the existing prefix and domain email. Args: length_random_part: Length of the random part of th
framework/tools/generators.py:178
↓ 5 callersFunctionassert_total_elements_reviews
Verify total number of reviews. Args: expected_total_elements: The expected total number of reviews. response: The response obj
framework/tools/review_methods.py:319
↓ 5 callersMethodconfirmation_email
Endpoint for authentication of user Args: expected_status_code: expected http status code from response code: confirm
framework/endpoints/authenticate_api.py:71
↓ 5 callersMethoddelete_review
(self)
UI/pages/ProductPage.py:37
↓ 5 callersMethodexecute
Executing a query to the Postgres database without returning data Args: query: query to the Postgres database
framework/clients/db_client.py:37
↓ 5 callersMethodget_like_own_counter
(self)
UI/pages/ProductPage.py:113
↓ 5 callersMethodget_like_someone_counter
(self)
UI/pages/ProductPage.py:117
↓ 5 callersMethodgo_to_profile_page
(self)
UI/pages/BasePage.py:188
↓ 5 callersMethodis_element_clickable
(self, how, what)
UI/pages/BasePage.py:242
↓ 5 callersMethodlike_someone_review
(self)
UI/pages/ProductPage.py:243
↓ 5 callersMethodremove_products
(self)
UI/pages/CartPage.py:58
↓ 5 callersFunctionverify_user_review_in_all_reviews
Checks if a given user has posted a specific text review and product rating in the response body. The function first ensures the response bo
framework/tools/review_methods.py:62
↓ 4 callersMethodadd_product_to_favorites
(self)
UI/pages/BasePage.py:34
↓ 4 callersFunctionassert_reviews_sorted_by_createdAt_in_descending_order
Verify if the reviews are sorted by createdAt in descending order. Args: response: The response object from the API call.
framework/tools/review_methods.py:340
↓ 4 callersFunctioncalculate_total_pages
Calculate the total number of pages needed Args: total_items: Total number of items items_per_page: Number of items per page
framework/tools/review_methods.py:441
↓ 4 callersMethodchange_password_through_reset
Endpoint for authentication of user Args: code_for_reset_password: code for reset password, which was sent to user's email
framework/endpoints/authenticate_api.py:120
↓ 4 callersMethodclick_minus_button
(self)
UI/pages/CartPage.py:14
↓ 4 callersMethodcreate_user
Inserting user into database Args: user: user data: - id - user of id; - first_name - first name
framework/queries/postgres_db.py:89
↓ 4 callersMethoddislike_someone_review
(self)
UI/pages/ProductPage.py:54
↓ 4 callersFunctionextract_data_from_random_review
Extracts item review ID, likes count and dislike count of a randomly selected item from the JSON response. Args: response: The JSON respo
framework/tools/review_methods.py:190
↓ 4 callersMethodfilter_products_by_price_copy_paste
(self, price_from: str, price_to: str)
UI/pages/BasePage.py:82
↓ 4 callersMethodget_product_2_cost
(self)
UI/pages/CartPage.py:33
↓ 4 callersMethodget_product_price
(self)
UI/pages/ProductPage.py:124
↓ 4 callersMethodget_product_rating
(self)
UI/pages/ProductPage.py:130
↓ 4 callersMethodget_product_reviews
(self)
UI/pages/ProductPage.py:134
↓ 4 callersMethodget_review_symbols_counter
(self)
UI/pages/ProductPage.py:162
↓ 4 callersMethodget_subtotal
(self)
UI/pages/CartPage.py:36
↓ 4 callersMethodis_change_favorites_counter
(self, amount: str)
UI/pages/BasePage.py:219
↓ 4 callersMethodis_favorites_page_icon_has_not_counter
(self)
UI/pages/BasePage.py:278
↓ 4 callersMethodis_product_in_cart
(self, product_name)
UI/pages/CartPage.py:51
↓ 4 callersMethodis_product_in_favorites
(self, product_name: str)
UI/pages/FavoritesPage.py:34
↓ 4 callersMethodis_sorting_correct
(self, criterion: Literal['price', 'rating'], direction: Literal['high', 'low'])
UI/pages/BasePage.py:357
↓ 4 callersMethodis_submit_button_not_active
(self)
UI/pages/ProductPage.py:231
↓ 4 callersFunctionis_timestamp_valid
Function check if a given timestamp string matches a specified regular expression pattern. Args: timestamp: The timestamp string to
framework/tools/matcher.py:4
↓ 4 callersMethodsubmit_review
(self)
UI/pages/ProductPage.py:260
↓ 4 callersMethodupdate_quantity_product
Updating product's quantity Args: item_quantity: quantity to update item_id: item to update expected_stat
framework/endpoints/cart_api.py:34
↓ 3 callersMethodadd_favorites
Add product to favorites Args: favorite_product: list product/products to add to favorites expected_status_code: expe
framework/endpoints/favorite_api.py:18
↓ 3 callersMethodadd_item_to_cart
Adding multiple products to cart and verifying if they are in the response Args: items: A list of items where each item is a dict
framework/endpoints/cart_api.py:58
↓ 3 callersFunctionassert_added_product_in_favorites
Asserts that the given products were added to user favorites. Args: response: The response from API request. product_add_to_favorit
framework/asserts/assert_favorite.py:8
↓ 3 callersFunctionassert_product_to_add_matches_response
Assertion that product were added to the shopping cart Args: add_product: list of products to add to the user's shopping cart exp
framework/tools/methods_to_cart.py:28
↓ 3 callersFunctioncheck_mapping_db_to_api
Checking the mapping of data from database in the request API Args: reference: reference data, usually data from a database; com
framework/asserts/product_asserts.py:4
↓ 3 callersFunctionextract_random_item_detail
Extracts item ID and product quantity of a randomly selected item from the JSON response. Args: response: The JSON response containing it
framework/tools/methods_to_cart.py:126
↓ 3 callersFunctiongenerate_user_data
Function for generation random user data Args: email: email to register password_length: length generated password first_
framework/tools/generators.py:137
next →1–100 of 458, ranked by callers