Sample Client

class tests.auto_client.MyClientClass(deployment: str = 'remote', base_path: str = None)[source]

your client class level doc-string goes here

delete_order_r(orderId, headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Delete purchase order by ID

delete_pet_r(petId, headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Deletes a pet

delete_user_r(username, headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Delete user

get_find_pets_by_status_r(headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Finds Pets by status

get_find_pets_by_tags_r(headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Finds Pets by tags

get_inventory_r(headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Returns pet inventories by status

get_login_user_r(headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Logs user into the system

get_logout_user_r(headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Logs out current logged in user session

get_order_by_id_r(orderId, headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Find purchase order by ID

get_pet_by_id_r(petId, headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Find pet by ID

get_user_by_name_r(username, headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Get user by user name

login_with_api(*, body, headers: Dict[str, Any] = None, **kwargs)[source]

login with the target API and save the JWT token within the class

Parameters
  • data – login data externally supplied

  • body – data to be sent in body (typically credentials)

  • headers – option to supply custom headers if needed

post_add_pet_r(headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Add a new pet to the store

post_create_user_r(headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Create user

post_create_users_with_array_input_r(headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Creates list of users with given input array

post_create_users_with_list_input_r(headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Creates list of users with given input array

post_place_order_r(headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Place an order for a pet

post_update_pet_with_form_r(petId, headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Updates a pet in the store with form data

post_upload_file_r(petId, headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

uploads an image

put_update_pet_r(headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Update an existing pet

put_update_user_r(username, headers: Dict[str, str] = None, body: Union[List[Any], Dict[str, Any]] = None, fields_data: Dict[str, str] = None, **kwargs)[source]

Updated user