semvec/pypi-packages huggingface dataset:
cafex-ui 1.0.0
UI Library
Requires Python: >=3.12
Keywords: ui, appium, selenium, pytest, automation

# CAFE-UI

CAFE-UI is a Python package that provides tools and utilities for web UI and mobile app testing. It is part of the CAFE (Core Automation Framework Enhancements) monorepo.

### Features

CAFE-UI offers the following features:

- **Driver management:** Supports various web browsers (Chrome, Firefox, Edge, etc.) and mobile platforms (iOS, Android).
- **Element interaction:** Provides methods to interact with web elements and mobile app elements, such as clicking, typing, and retrieving text.
- **Assertions:** Includes assertion methods specifically designed for UI testing, allowing for efficient validation of UI elements and behaviors.
- **Data-driven testing:** Supports data-driven testing approaches to execute tests with different data sets.
- **Reporting:** Integrates with CAFE's reporting capabilities to generate comprehensive test reports with screenshots and detailed logs.

### Getting Started

#### **Prerequisites**

- Python 3.12 or later
- pip 24 or later (Python package manager)

#### **Installation**

1. Install CAFE-UI using pip:

   ```
   pip install cafex-ui
   ```

### Usage

CAFE-UI provides a set of intuitive methods and classes to facilitate UI testing. Here's a basic example for web UI testing:

```python
from cafex_ui import web_client_actions

# Create a web client actions object
web_actions = web_client_actions.WebClientActions()

# Navigate to a website
web_actions.navigate("https://www.example.com")

# Find an element and click on it
element = web_actions.get_web_element("xpath=//button[text()='Submit']")
web_actions.click(element)

# Validate the page title
assert web_actions.get_title() == "Success Page"
cafex-desktop 1.0.0
UI Library
Requires Python: >=3.12
Keywords: gui, pytest, automation, pywinauto

# CAFE-DESKTOP

CAFE-DESKTOP is a Python package that provides tools and utilities for desktop application testing. It is part of the CAFE (Core Automation Framework Enhancements) monorepo.

### Features

CAFE-DESKTOP offers the following features:

- **Window management:** Supports interaction with desktop application windows, including opening, closing, and switching between windows.
- **Element interaction:** Provides methods to interact with desktop application elements, such as clicking, typing, and retrieving text.
- **Assertions:** Includes assertion methods specifically designed for desktop application testing, allowing for efficient validation of UI elements and behaviors.
- **Data-driven testing:** Supports data-driven testing approaches to execute tests with different data sets.
- **Reporting:** Integrates with CAFE's reporting capabilities to generate comprehensive test reports with screenshots and detailed logs.

### Getting Started

#### **Prerequisites**

- Python 3.12 or later
- pip 24 or later (Python package manager)

#### **Installation**

1. Install CAFE-DESKTOP using pip:

   ```
   pip install cafex-desktop
   ```

### Usage

CAFE-DESKTOP provides a set of intuitive methods and classes to facilitate desktop application testing. Here's a basic example for desktop application testing:

```python
from cafex_desktop import desktop_client_actions

# Create a desktop client actions object
desktop_actions = desktop_client_actions.DesktopClientActions()

# Launch a desktop application
desktop_actions.launch_application("C:\\Program Files\\ExampleApp\\ExampleApp.exe")

# Find an element and click on it
element = desktop_actions.get_desktop_element("name=SubmitButton")
desktop_actions.click(element)

# Validate the window title
assert desktop_actions.get_window_title() == "Success Window"
cafex-db 1.0.0
DB Library
Requires Python: >=3.12
Keywords: db, db testing, pytest, automation

# CAFE-DB

CAFE-DB is a Python package that provides tools and utilities for database testing. It is part of the CAFE (Core Automation Framework Enhancements) monorepo.

### Features

CAFE-DB offers the following features:

- **Database connection:** Supports connections to various databases, including MSSQL, MySQL, Oracle, Hive, Postgres, and Cassandra.
- **Query execution:** Provides methods to execute SQL queries and retrieve data.
- **Result set comparison:** Offers methods to compare result sets, allowing for efficient validation of database data.
- **Data-driven testing:** Supports data-driven testing approaches to execute tests with different data sets.
- **Reporting:** Integrates with CAFE's reporting capabilities to generate comprehensive test reports.

### Getting Started

#### **Prerequisites**

- Python 3.12 or later
- pip 24 or later (Python package manager)

#### **Installation**

1. Install CAFE-DB using pip:

   ```
   pip install cafex-db
   ```

### Usage

CAFE-DB provides a set of intuitive methods and classes to facilitate database testing. Here's a basic example:

```python
from cafex_db import database_handler

# Create a database connection
db_handler = database_handler.DatabaseHandler()
connection = db_handler.create_connection(db_type="mssql", server="dbserver", database="testdb")

# Execute a query
result_set = db_handler.execute_query(connection, "SELECT * FROM users")

# Convert the result set to a list
result_list = db_handler.resultset_to_list(result_set)

# Validate the data
assert result_list[0][1] == "John Doe"
cafex-core 1.0.0
Core Package
Requires Python: >=3.12

# CAFEX-CORE

CAFEX-CORE is a Python-based automation framework designed to simplify and streamline various testing tasks. It provides a comprehensive set of tools and utilities for web UI, mobile app, thick client, API, and database testing.

## Objectives


### The main objectives of CAFEX-CORE are:
- **Reduce code duplication:** By providing reusable components and utilities, CAFEX-CORE minimizes the need for repetitive code across test scripts.
- **Improve maintainability:** The modular design and clear structure of CAFEX-CORE make test scripts easier to understand and maintain.
- **Enhance efficiency:** CAFEX-CORE offers various features and functionalities that accelerate test development and execution.
- **Promote collaboration:** The framework facilitates collaboration among team members by providing a standardized approach to automation.

## Getting Started


### Prerequisites
* Python 3.12 or later
* pip 24 or later (Python package manager)

### Installation
* Install the required dependencies using pip: ```pip install cafex-core```

### Optional Dependencies

* For UI testing: ```pip install cafex-core[ui]```
* For DB testing: ```pip install cafex-core[db]```
* For API testing: ```pip install cafex-core[api]```
* For all optional dependencies: ```pip install cafex-core[all]```
cafex-api 1.0.0
API Library
Requires Python: >=3.12
Keywords: api, api testing, pytest, automation

# CAFE-API

CAFEX-API is a Python package that provides tools and utilities for API testing. It is part of the CAFE (Core Automation Framework Enhancements) monorepo.

### Features

CAFEX-API offers the following features:

- **Request building:** Simplifies the creation of API requests with various methods and parameters.
- **Response parsing:** Provides methods to parse JSON and XML responses and extract relevant data.
- **Assertions:** Includes assertion methods specifically designed for API testing, allowing for efficient validation of response data.
- **Data-driven testing:** Supports data-driven testing approaches to execute tests with different data sets.
- **Reporting:** Integrates with CAFE's reporting capabilities to generate comprehensive test reports.

### Getting Started

#### **Prerequisites**

- Python 3.12 or later
- pip (Python package manager)

#### **Installation**

1. Install CAFEX-API using pip:

   ```
   pip install cafex-api
   ```

### Usage

CAFE-API provides a set of intuitive methods and classes to facilitate API testing. Here's a basic example:

```python
from cafex_api import request_builder
from cafex_api import response_parser_json

# Build an API request
request = request_builder.RequestBuilder().get(url="https://api.example.com/users")

# Send the request and get the response
response = request.send()

# Parse the JSON response
parsed_response = response_parser_json.ParseJsonData().get_dict(response.text)

# Validate the response data
assert parsed_response["status"] == "success"