MCPcopy Create free account

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

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

↓ 1 callersMethodis_banner_displayed
(self)
UI/pages/BasePage.py:203
↓ 1 callersMethodis_cart_counter_present
(self)
UI/pages/BasePage.py:206
↓ 1 callersMethodis_error_message_first_name_present
(self, error_message)
UI/pages/EditProfilePage.py:25
↓ 1 callersMethodis_error_message_last_name_present
(self, error_message)
UI/pages/EditProfilePage.py:45
↓ 1 callersMethodis_error_message_present
(self)
UI/pages/BasePage.py:275
↓ 1 callersMethodis_filtering_by_brand_correct
(self, brand: str)
UI/pages/BasePage.py:281
↓ 1 callersMethodis_filtering_by_rating_correct
(self, rating: Literal['4', '3', '2', '1', 'any'])
UI/pages/BasePage.py:311
↓ 1 callersMethodis_filtering_by_seller_correct
(self, seller: str)
UI/pages/BasePage.py:333
↓ 1 callersMethodis_login_page
(self)
UI/pages/LoginPage.py:18
↓ 1 callersMethodis_login_page_link_clickable
(self)
UI/pages/ProductPage.py:205
↓ 1 callersMethodis_login_page_link_present
(self)
UI/pages/ProductPage.py:202
↓ 1 callersMethodis_profile_page_link_clickable
(self)
UI/pages/ProductPage.py:228
↓ 1 callersMethodis_profile_page_link_present
(self)
UI/pages/ProductPage.py:225
↓ 1 callersMethodis_sort_dropdown_displayed
(self)
UI/pages/BasePage.py:354
↓ 1 callersMethodlog_out
(self)
UI/pages/ProfilePage.py:35
↓ 1 callersMethodlogin_existing_user
(self, email, password)
UI/pages/LoginPage.py:28
↓ 1 callersMethodrating_checkbox
(self, rating: Literal['4', '3', '2', '1', 'any'])
UI/pages/locators.py:52
↓ 1 callersMethodreset_brand_filter
(self)
UI/pages/BasePage.py:409
↓ 1 callersMethodreset_seller_filter
(self)
UI/pages/BasePage.py:414
↓ 1 callersMethodseller_checkbox
(self, seller: str)
UI/pages/locators.py:56
↓ 1 callersFunctionverify_user_review_body
Verifies the response body values match the expected value. The function first loads the response JSON. It then iterates through the response val
framework/tools/review_methods.py:472
Method__init__
(self, imap_server: str, email_address: str, mail_password: str)
framework/tools/class_email.py:8
Method__init__
Initializing the connection
framework/queries/postgres_db.py:14
Method__init__
Initialize the database connection
framework/queries/postgres_remote_db.py:8
Method__init__
(self)
framework/endpoints/product_api.py:8
Method__init__
Initializing parameters for request
framework/endpoints/authenticate_api.py:13
Method__init__
Initializing parameters for request
framework/endpoints/cart_api.py:13
Method__init__
(self)
framework/endpoints/review_api.py:12
Method__init__
Initializing parameters for request
framework/endpoints/favorite_api.py:13
Method__init__
(self)
framework/endpoints/users_api.py:14
Method__init__
Initializes a database connection tunnel via SSH. Creates an SSH tunnel to a remote server, binds to the remote PostgresSQL port,
framework/clients/db_client_ssh.py:10
Method__init__
Initializing the connection Args: dbname: name Postgres database; host: URL for connecting to the Postgres
framework/clients/db_client.py:10
Method__init__
(self, browser: WebDriver, url: str, timeout: int = 4)
UI/pages/BasePage.py:18
Methodadd_product_to_cart
(self)
UI/pages/ProductPage.py:11
Functionadd_product_to_favorite_list
Adds random products to a user's favorites list. Registers a new user, gets all products via API, selects random products, adds them to
tests/conftest.py:250
Functionadd_review_to_product
(create_authorized_user, request)
tests/conftest.py:447
Functionassert_key_and_value_in_response
Asserts that the id review in the response body Args: key: specific key in the response body response: The response object from t
framework/asserts/common.py:118
Functionassert_rating
Asserts that the product rating in the response body matches the expected product rating. Args: response: The response object from the AP
framework/asserts/common.py:79
Functionassert_review_text
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:64
Functionassert_reviews_sorted_asc
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:389
Functionassert_reviews_sorted_desc
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:415
Functionassert_size_reviews_per_page
Verify size of reviews per page. Args: response: The response object from the API call. reviews_size_per_page: The expected siz
framework/tools/review_methods.py:297
Functionassert_user_name_in_response
Asserts that the user's name in the response body matches the expected user's name. Args: response: The response object from the API call
framework/asserts/common.py:94
Functionbrowser
(request)
UI/conftest.py:14
Methodclick_minus_2_button
(self)
UI/pages/CartPage.py:18
Methodclick_minus_button
(self)
UI/pages/ProductPage.py:29
Methodclick_plus_button
(self)
UI/pages/ProductPage.py:33
Methodclose
Close the database connection
framework/queries/postgres_remote_db.py:40
Methodclose
Close the cursor, database connection, and SSH tunnel
framework/clients/db_client_ssh.py:62
Methodclose
(self)
framework/clients/db_client.py:27
Functioncreate_and_delete_user_via_api
Creating and authorizing a user via API
tests/conftest.py:163
Functioncreate_authorized_user
Creating and authorizing a user Args: postgres: connection to Postgres DataBase
tests/conftest.py:139
Functioncreate_certain_number_of_reviews
(postgres, request)
tests/review/conftest.py:71
Methodcreate_random_users
Creating random user(s) Args: quantity: number of random users
framework/queries/postgres_db.py:134
Methodcreate_random_users
Create random user(s) Args: quantity: number of random users
framework/queries/postgres_remote_db.py:146
Functioncreate_user
Creating a user (not authorized) Args: postgres: connection to Postgres DataBase
tests/conftest.py:121
Functioncreating_and_adding_product_to_shopping_cart
Fixture to create a user, add a product to their cart. Creates a user, gets their ID and token, adds a product to their shopping cart,
tests/conftest.py:191
Functiondelete
(token)
tests/conftest.py:439
Methoddelete_user
Deletes a user from the database based on user ID Args: user_id: user ID
framework/queries/postgres_db.py:144
Methoddelete_user
Delete a user from the database based on user ID Args: user_id: user ID
framework/queries/postgres_remote_db.py:155
Functionextract_items_details
Extracts item ID and product quantity from each item in the given JSON response. Args: response: The JSON response containing item detail
framework/tools/methods_to_cart.py:105
Methodfetch_all
(self, query: str, params: tuple = ())
framework/clients/db_client_ssh.py:84
Functiongenerate_numeric_password
Generate a numeric password. Parameters: - length: int, the length of the password to generate. Returns: - A string representing the
framework/tools/generators.py:165
Methodget_data_by_filter
Retrieve data from a specified table by filtering on a specified field
framework/queries/postgres_remote_db.py:48
Functionget_define_quantity_items_id
Gets item ids from a JSON response. Args: num_items_to_delete: the quantity of items for delete response: The JSON response to extra
framework/tools/methods_to_cart.py:80
Methodget_product_by_filter
Get sorted products by size and paginate Args: field: field for sorting; ascend: ascending sort order, True - ascend
framework/queries/postgres_remote_db.py:73
Methodget_product_rating
(self)
UI/pages/BasePage.py:141
Methodget_product_reviews
(self)
UI/pages/BasePage.py:154
Methodget_product_weight
(self)
UI/pages/ProductPage.py:140
Methodget_random_products
Retrieve a specified number of random active products
framework/queries/postgres_remote_db.py:62
Methodget_random_users
Getting a random user Args: quantity: number of random users
framework/queries/postgres_db.py:79
Methodget_random_users
Get random users Args: quantity: number of random users
framework/queries/postgres_remote_db.py:99
Methodget_user_avatar
Getting info about user's avatar via API Args: expected_status_code: Expected HTTP code from Response token: JWT
framework/endpoints/users_api.py:87
Methodgo_to_product_page
(self)
UI/pages/FavoritesPage.py:27
Methodis_cart_empty
(self)
UI/pages/CartPage.py:39
Methodis_change_amount
(self, amount)
UI/pages/ProductPage.py:173
Methodis_dropdown_present
(self)
UI/pages/LoginPage.py:15
Functionload_file_json
Load content from a file located in the specified directory. Args: directory (str): The directory where the file is located.
framework/tools/load_file.py:8
Methodpost_user_avatar
Posts a user's avatar image to the API Args: token: JWT token for authorization of the request image_path: Path to the
framework/endpoints/users_api.py:105
Functionpostgres
Connect to Postgres DataBase through ssh
tests/conftest.py:65
Functionpostgres_local
Connect to Postgres DataBase
tests/conftest.py:85
Functionproduct_quantity
(request)
tests/conftest.py:245
Functionpytest_addoption
(parser)
UI/conftest.py:6
Methodregister_new_user
(self, first_name, last_name, email, password)
UI/pages/RegistrationPage.py:10
Functionregister_user_and_reset_password
(request)
tests/conftest.py:343
Functionregistration_and_cleanup_user_through_api
(request)
tests/conftest.py:288
Methodselect_user_by_email
Search for a user by email in the database and return the count of users with that email. Args: email: user's email Retu
framework/queries/postgres_remote_db.py:165
Methodsetup_method
Generate data for registration and user registration
tests/registration/test_registration_negative.py:31
Methodshould_be_login_link
(self)
UI/pages/BasePage.py:436
Methodtest_1501_char_review
(self, browser)
UI/test_review_negative.py:54
Methodtest_1857_char_review
(self, browser)
UI/test_review_negative.py:67
Methodtest_add_and_delete_review_user
(self, browser)
UI/test_review_rating.py:33
Methodtest_add_dislike_to_product_review
(self, create_authorized_user)
tests/review/test_is_like_product_review.py:104
Methodtest_add_item_to_cart
(self, create_authorized_user)
tests/cart/test_add_item_to_cart_positive.py:22
Methodtest_add_like_to_product_review
(self, create_authorized_user)
tests/review/test_is_like_product_review.py:26
Methodtest_add_review
( self, create_authorized_user, text_review, expected_length, rating )
tests/review/test_add_review.py:48
Methodtest_add_review_guest
(self, browser)
UI/test_review_rating.py:19
Methodtest_add_review_parametrize
(self, browser, review_text)
UI/test_review_rating.py:67
Methodtest_add_review_with_blacklist_token
(self, create_authorized_user)
tests/review/test_add_review.py:509
Methodtest_add_review_with_empty_bearer_token
(self, create_authorized_user)
tests/review/test_add_review.py:410
← previousnext →201–300 of 458, ranked by callers