MCPcopy Create free account

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

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

↓ 3 callersMethodget_actual_rating
(self)
UI/pages/ProductPage.py:67
↓ 3 callersMethodget_brand_list_length
(self)
UI/pages/BasePage.py:112
↓ 3 callersMethodget_dislike_own_counter
(self)
UI/pages/ProductPage.py:105
↓ 3 callersMethodget_dislike_someone_counter
(self)
UI/pages/ProductPage.py:109
↓ 3 callersFunctionget_product_info
Extracts product info (ID and quantity) from a response. Args: response: The JSON response.
framework/tools/methods_to_cart.py:8
↓ 3 callersFunctionget_quantity_specific_cart_item
Extracts the quantity of a specific item from json response based on the provided specific ID. Args: response: The JSON response from requ
framework/tools/methods_to_cart.py:149
↓ 3 callersMethodget_seller_list_length
(self)
UI/pages/BasePage.py:161
↓ 3 callersMethodis_correct_page_presented
(self, url: str)
UI/pages/BasePage.py:233
↓ 3 callersMethodis_element_displayed
(self, how, what)
UI/pages/BasePage.py:251
↓ 3 callersMethodlike_own_review
(self)
UI/pages/ProductPage.py:235
↓ 3 callersMethodremove_favorites_products
(self)
UI/pages/FavoritesPage.py:42
↓ 3 callersMethodremove_filter_badge
(self, products_filter: str)
UI/pages/locators.py:41
↓ 2 callersMethodadd_product_2_to_cart
(self)
UI/pages/BasePage.py:29
↓ 2 callersMethodadd_product_to_favorites
(self)
UI/pages/ProductPage.py:15
↓ 2 callersFunctionassert_added_product_not_in_api_response
Asserts that none of the products specified in added_products are present in the API response. Args: added_products: A list of dicti
framework/asserts/assert_cart.py:24
↓ 2 callersFunctionassert_deleted_item_ids_in_response
Checking deleted items in the request API Args: response: The API response object, expected to contain a JSON body with product inform
framework/asserts/assert_cart.py:5
↓ 2 callersFunctionassert_partial_match
Asserts that the specified fields in the actual object match those in the expected object. Args: expected: The object with expected
framework/asserts/user_asserts.py:36
↓ 2 callersFunctionassert_update_user_data_matches
Asserts that all relevant user data in the response matches the expected user data. Args: response_data: The user data from the API respo
framework/asserts/user_asserts.py:20
↓ 2 callersMethodchange_email
(self, new_email)
UI/pages/EditProfilePage.py:6
↓ 2 callersMethodchange_first_name
(self, new_first_name)
UI/pages/EditProfilePage.py:11
↓ 2 callersMethodchange_last_name
(self, new_last_name)
UI/pages/EditProfilePage.py:16
↓ 2 callersMethodclick_continue_shopping_button
(self)
UI/pages/CartPage.py:10
↓ 2 callersMethodclick_continue_shopping_button
(self)
UI/pages/FavoritesPage.py:12
↓ 2 callersMethodclick_minus_button
(self)
UI/pages/BasePage.py:44
↓ 2 callersMethodclick_plus_2_button
(self)
UI/pages/CartPage.py:26
↓ 2 callersMethodclose
Closing the connection
framework/queries/postgres_db.py:25
↓ 2 callersMethoddelete_item_from_cart
Deleting item from shopping cart Args: cart_item_id: data for deleting items from shopping cart with required fields
framework/endpoints/cart_api.py:83
↓ 2 callersMethoddislike_own_review
(self)
UI/pages/ProductPage.py:45
↓ 2 callersFunctionextract_product_info_from_list_of_products
Extract random product info from the API response. Extracts product info from the response based on the given product ID. Returns a list of t
framework/tools/review_methods.py:249
↓ 2 callersFunctionextract_random_product_info
Extract random product info from list of products. Selects a random sample of products from the response based on the given quantity. Returns
framework/tools/review_methods.py:221
↓ 2 callersFunctiongenerate_and_insert_user
Generating and inserting a user into the database Args: postgres: connection to Postgres DataBase
tests/conftest.py:96
↓ 2 callersFunctiongenerate_and_insert_user_with_custom_gmail
Generating and inserting a user into the database Args: postgres: connection to Postgres DataBase user: A dictionary representing
tests/conftest.py:416
↓ 2 callersFunctionget_amount_of_reviews_with_particular_rating
Verify the amount of reviews with particular rating. Args: response: The response object from the API call. rating: The rating
framework/tools/review_methods.py:454
↓ 2 callersMethodget_by_id
Getting product info by id Args: token: JWT token for authorization of request; _id: product ID.
framework/endpoints/product_api.py:12
↓ 2 callersMethodget_data_by_filter
Getting data from table by filter field and its value Args: table: table in database; field: field of table;
framework/queries/postgres_db.py:29
↓ 2 callersMethodget_product_price
(self)
UI/pages/BasePage.py:128
↓ 2 callersMethodget_product_review_statistics
Getting product review statistics Args: product_id: ID of product
framework/endpoints/review_api.py:143
↓ 2 callersMethodget_products_price_list
(self)
UI/pages/BasePage.py:132
↓ 2 callersMethodget_products_rating_list
(self)
UI/pages/BasePage.py:145
↓ 2 callersMethodget_random_products
Getting a random product Args: quantity: number of random products
framework/queries/postgres_db.py:41
↓ 2 callersMethodget_review_author
(self)
UI/pages/ProductPage.py:146
↓ 2 callersMethodget_reviews_amount
(self)
UI/pages/ProductPage.py:153
↓ 2 callersMethodgo_to_login_page
(self)
UI/pages/BasePage.py:175
↓ 2 callersMethodis_badge_displayed
(self, product_filter: str)
UI/pages/BasePage.py:199
↓ 2 callersMethodis_badge_present
(self, product_filter: str)
UI/pages/BasePage.py:195
↓ 2 callersMethodis_cart_page_link_clickable
(self)
UI/pages/ProductPage.py:169
↓ 2 callersMethodis_cart_page_link_present
(self)
UI/pages/ProductPage.py:166
↓ 2 callersMethodis_change_product_counter
(self, amount: str)
UI/pages/BasePage.py:226
↓ 2 callersMethodis_dropdown_present
(self)
UI/pages/RegistrationPage.py:7
↓ 2 callersMethodis_favorites_empty
(self)
UI/pages/FavoritesPage.py:31
↓ 2 callersMethodis_favorites_page_link_clickable
(self)
UI/pages/ProductPage.py:183
↓ 2 callersMethodis_favorites_page_link_present
(self)
UI/pages/ProductPage.py:180
↓ 2 callersMethodis_heart_on_product_red
(self)
UI/pages/BasePage.py:345
↓ 2 callersMethodis_heart_on_product_transparent
(self)
UI/pages/BasePage.py:348
↓ 2 callersMethodis_heart_red
(self)
UI/pages/ProductPage.py:186
↓ 2 callersMethodis_heart_transparent
(self)
UI/pages/ProductPage.py:194
↓ 2 callersMethodis_main_page_link_clickable
(self)
UI/pages/ProductPage.py:211
↓ 2 callersMethodis_main_page_link_present
(self)
UI/pages/ProductPage.py:208
↓ 2 callersMethodis_new_email_present
(self, new_email)
UI/pages/ProfilePage.py:12
↓ 2 callersMethodis_new_first_name_present
(self, new_first_name)
UI/pages/ProfilePage.py:21
↓ 2 callersMethodis_new_last_name_present
(self, new_last_name)
UI/pages/ProfilePage.py:28
↓ 2 callersMethodis_no_result_message_present
(self)
UI/pages/BasePage.py:351
↓ 2 callersMethodis_valid_identifier
Check if the identifier is a valid SQL identifier to prevent SQL injection
framework/queries/postgres_remote_db.py:57
↓ 2 callersMethodlike_dislike_product_review
Getting info about user via API Args: is_like: like or dislike(True or False) product_review_id: ID of product review
framework/endpoints/review_api.py:115
↓ 2 callersMethodremove_filter
(self, products_filter: str)
UI/pages/BasePage.py:397
↓ 2 callersMethodremove_product_from_favorites
(self)
UI/pages/ProductPage.py:251
↓ 2 callersMethodremove_product_from_favorites
(self)
UI/pages/BasePage.py:404
↓ 2 callersMethodscroll_down
(self)
UI/pages/BasePage.py:419
↓ 2 callersMethodselect_user_by_email
Search user by email in BD Args: email: user's email
framework/queries/postgres_db.py:153
↓ 2 callersMethodshow_more_less_brand
(self)
UI/pages/BasePage.py:440
↓ 2 callersMethodshow_more_less_seller
(self)
UI/pages/BasePage.py:447
↓ 2 callersFunctionverify_user_review
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:126
↓ 1 callersFunctionassert_id_key_and_its_value_is_not_empty_in_response
Asserts product IDs exist and are not empty in response. Checks that the JSON response contains an "id" key for each product and that the id
framework/asserts/assert_favorite.py:37
↓ 1 callersFunctionassert_page_number_in_reviews_body
Verify if the page number in the response body is equal to the expected page number. Args: response: The response object from the API ca
framework/tools/review_methods.py:277
↓ 1 callersFunctionassert_reviews_sorted_by_createdAt_in_ascending_order
Verify if the reviews are sorted by createdAt in ascending order. Args: response: The response object from the API call.
framework/tools/review_methods.py:366
↓ 1 callersFunctionassert_user_data_matches
Asserts that all relevant user data in the response matches the expected user data. Args: response_data: The user data from the API respo
framework/asserts/user_asserts.py:4
↓ 1 callersMethodbrand_checkbox
(self, brand: str)
UI/pages/locators.py:13
↓ 1 callersMethodby_default
(self)
UI/pages/BasePage.py:39
↓ 1 callersFunctioncheck_mapping_api_to_db
Checking the mapping of data from the request API to the database Args: api_request: reference data, data from an API request;
framework/asserts/registration_asserts.py:5
↓ 1 callersMethodcheckbox
(self, rating)
UI/pages/locators.py:136
↓ 1 callersMethodclick_log_in_button
(self)
UI/pages/FavoritesPage.py:20
↓ 1 callersMethodclick_plus_button
(self)
UI/pages/BasePage.py:50
↓ 1 callersMethodclick_scroll_button
(self)
UI/pages/BasePage.py:56
↓ 1 callersMethodclick_show_more_button
(self)
UI/pages/BasePage.py:62
↓ 1 callersMethodconnect_mailbox
Method to establish a connection to the mailbox. Args: email_box: The email folder to connect to. Returns: M
framework/tools/class_email.py:13
↓ 1 callersFunctioncreate_and_authorize_user
Creating and authorizing a user within the test. Args: postgres: connection to Postgres DataBase
tests/review/conftest.py:42
↓ 1 callersMethodcreate_user
Insert a user into the database Args: user: user data: - id: user id; - first_name: first name o
framework/queries/postgres_remote_db.py:114
↓ 1 callersMethoddata_for_sent
Registration data to be sent via the REST API Args: email: electronic mail; first_name: name of the user;
framework/steps/registration_steps.py:3
↓ 1 callersMethoddelete_favorites
Add product to favorites Args: id_product: product to delete from favorite list expected_status_code: expected http s
framework/endpoints/favorite_api.py:56
↓ 1 callersMethoddelete_product_review
Deleting user Args: review_id: id of review product_id: id of product expected_status_code: Expected HTTP
framework/endpoints/review_api.py:44
↓ 1 callersFunctiondelete_user
Deleting a user from the database. Args: token (): Authentication token of the user to delete
tests/review/conftest.py:60
↓ 1 callersMethodexecute
(self, query: str, params: tuple = ())
framework/clients/db_client_ssh.py:89
↓ 1 callersMethodfilter_products_by_rating
(self, rating: Literal['4', '3', '2', '1', 'any'])
UI/pages/BasePage.py:96
↓ 1 callersFunctiongenerate_and_insert_user
Generating and inserting a user into the database Args: postgres: connection to Postgres DataBase
tests/review/conftest.py:19
↓ 1 callersFunctiongenerate_fake_review
()
framework/tools/review_methods.py:21
↓ 1 callersFunctionget_item_id
Gets item id from a JSON response. Args: response: The JSON response to extract ids from. Raises: ValueError: If JSON decodin
framework/tools/methods_to_cart.py:57
↓ 1 callersMethodget_product_by_filter
Getting sorted products by size and page by page Args: field: field for sorted; ascend: ascending sorted, True - asc
framework/queries/postgres_db.py:55
↓ 1 callersMethodgo_to_edit_page
(self)
UI/pages/ProfilePage.py:8
↓ 1 callersMethodgo_to_registration_page
(self)
UI/pages/LoginPage.py:10
↓ 1 callersMethodis_add_to_cart_button_present
(self)
UI/pages/BasePage.py:192
← previousnext →101–200 of 458, ranked by callers