Skip to main content

cm-qa-integration

Integração em tempo real entre o Robot Framework e a plataforma QA Manager via API REST.

Um listener Robot Framework v3 captura cada resultado de teste no momento em que ocorre e o envia automaticamente para o QA Manager — sem necessidade de alterar os arquivos .robot existentes.


Como funciona

Robot Framework
  └─ start_suite  ──► POST /integration/test-runs                  (cria o Test Run, recebe integration_token)
  └─ end_test     ──► POST /integration/test-runs/{id}/results     (envia resultado de cada teste)
  └─ end_suite    ──► POST /integration/test-runs/{id}/complete    (marca a execução como concluída)

Dois tokens são usados:

  • API Token (qm_...) — gerado no perfil do usuário no QA Manager, usado para criar o Test Run
  • Integration Token (retornado pela API) — usado para todos os envios de resultados subsequentes

Instalação

pip install cm-qa-integration

Para desenvolvimento local:

git clone <url-do-repo> cm-qa-integration
cd cm-qa-integration
pip install -e .

Quick Start

1. Configurar

cm-qa-integration setup

O comando interativo solicita:

  • URL da API do QA Manager
  • API Token (gerado em Meu Perfil → API Tokens)
  • Código do projeto

E salva em .qamanager.json.

2. Executar testes

robot --listener cm_qa_integration.listener.QAManagerListener tests/

Os resultados são enviados automaticamente para o QA Manager em tempo real.

3. Verificar configuração

cm-qa-integration check

Configuração (.qamanager.json)

{
  "api_url": "http://localhost:3001/api",
  "token": "qm_abc123...",
  "project_code": "ROQ",
  "default_type": "AUTOMATED"
}

Hierarquia de prioridade

A configuração é carregada de múltiplas fontes (a mais alta vence):

  1. Variáveis de ambiente (QA_MANAGER_*)
  2. .qamanager.json no diretório do projeto (local)
  3. ~/.qamanager.json no home (global)

Variáveis de ambiente

Variável Descrição
QA_MANAGER_TOKEN API Token (alternativa ao .qamanager.json)
QA_MANAGER_URL URL base da API (padrão: http://localhost:3001/api)
QA_MANAGER_PROJECT_CODE Código de integração do projeto

Uso do Listener

# Com .qamanager.json configurado (recomendado):
robot --listener cm_qa_integration.listener.QAManagerListener tests/

# Especificando sprint via argumento:
robot --listener cm_qa_integration.listener.QAManagerListener:SPRINT_ID tests/

# Modo legado (project + sprint como argumentos):
robot --listener cm_qa_integration.listener.QAManagerListener:PROJECT_CODE:SPRINT_ID tests/

Comandos CLI

Comando Descrição
cm-qa-integration setup Configuração interativa — gera .qamanager.json
cm-qa-integration check Valida configuração e testa conectividade

Uso programático

from cm_qa_integration import QAManagerListener, QAManagerClient, load_config

config = load_config()
client = QAManagerClient(config["api_url"], config["token"])
ok, msg = client.check_connection()

Pré-requisitos

  • Python 3.10+
  • Robot Framework 7.x
  • Acesso à API do QA Manager

Licença

MIT

Metadata

Release files for cm-qa-integration 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cm-qa-integration 1.0.1
File Size Uploaded Provenance Actions
cm_qa_integration-1.0.1.tar.gz 12.0 kB Without provenance Details for cm_qa_integration-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cm-qa-integration 1.0.1
File Interpreter ABI Platform Actions
cm_qa_integration-1.0.1-py3-none-any.whl Python 3 none any Details for cm_qa_integration-1.0.1-py3-none-any.whl

Total release size: 23.6 kB

Release files / cm_qa_integration-1.0.1.tar.gz

Download URL cm_qa_integration-1.0.1.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f18335396e74f91634155bddf7e265288480fddd6de4c6a5d262bd7f72f4e938
BLAKE2b-256 checksum
How to use checksums
3237ce23c838210ab833fd4e34eaac5d76d3d1bed8a32bea841443fe78ec37fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / cm_qa_integration-1.0.1-py3-none-any.whl

Download URL cm_qa_integration-1.0.1-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ff893d3c3152a8b84f2d2fcee7c067017d8ece12ed372b9adfa9de1f6b7625a
BLAKE2b-256 checksum
How to use checksums
5c94d214f570883be23667ce9504b88558e9acbe1f35b836752cde8bd3b924f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for cm-qa-integration 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page