{"id":28686057,"url":"https://github.com/totvs/tir","last_synced_at":"2025-06-14T04:04:25.111Z","repository":{"id":37480473,"uuid":"141188381","full_name":"totvs/tir","owner":"totvs","description":"This module is used to create and execute test suites and test cases for web interfaces.","archived":false,"fork":false,"pushed_at":"2025-06-13T18:44:04.000Z","size":103992,"stargazers_count":88,"open_issues_count":4,"forks_count":50,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-06-13T18:46:51.483Z","etag":null,"topics":["python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/totvs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-07-16T20:04:32.000Z","updated_at":"2025-06-09T01:12:48.000Z","dependencies_parsed_at":"2024-04-15T20:47:03.029Z","dependency_job_id":"3a5a88a3-f5ad-4169-8d9f-81509a7032ba","html_url":"https://github.com/totvs/tir","commit_stats":{"total_commits":2137,"total_committers":27,"mean_commits":79.14814814814815,"dds":0.5816565278427702,"last_synced_commit":"ba4e3c917e6b58ee1de8ceda3680b8878c2258bc"},"previous_names":[],"tags_count":128,"template":false,"template_full_name":null,"purl":"pkg:github/totvs/tir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totvs%2Ftir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totvs%2Ftir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totvs%2Ftir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totvs%2Ftir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/totvs","download_url":"https://codeload.github.com/totvs/tir/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totvs%2Ftir/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259703089,"owners_count":22898827,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python"],"created_at":"2025-06-14T04:01:05.636Z","updated_at":"2025-06-14T04:04:25.097Z","avatar_url":"https://github.com/totvs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# TIR - Test Interface Robot\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/totvs/tir)\n\nTIR is a Python module used to create test scripts for web interfaces. With it, you can easily create and execute test suites and test cases for any supported web interface systems, such as Protheus Webapp.\n\n### Current Supported Technologies\n\n- Protheus Webapp\n- APW\n\n## Table of Contents\n\n[Documentation](#documentation)\u003cbr\u003e\n[Installation](#installation)\u003cbr\u003e\n[Config](#config)\u003cbr\u003e\n[Usage](#usage)\u003cbr\u003e\n[Docker](#docker)\u003cbr\u003e\n[Samples](#samples)\u003cbr\u003e\n[Contact Us](#contact)\u003cbr\u003e\n[Contributing](#contributing)\n\n## Documentation\nOur documentation can be found here:\n\n- [TIR Documentation](https://totvs.github.io/tir-docs/)\n\n- [TIR Technical Documentation](https://totvs.github.io/tir/)\n\nThis project has a docs folder with [Sphinx](http://www.sphinx-doc.org/en/master/) files.\n\nOur **create_docs.cmd** script handles the installation of dependencies and creates the offline documentation on the doc_files/build/html folder.\n\n## Installation\n\nThe installation is pretty simple. All you need as a requirement is Python 3.12 (Mozilla Firefox) installed in your system.\n\nThere are three ways of installing TIR:\n\n### 1. Installing and Upgrade from PyPI\n\nTIR can be installed via pip from [Pypi](https://pypi.org/project/tir-framework/)\n\n```shell\npip install tir_framework --upgrade\n```\n\n### 2. via Terminal(Deprecated For The Branch Master)\n\nYou can install TIR via the terminal. Make sure your Python and Git are installed and run this command:\n\n```shell\npip install git+https://github.com/totvs/tir.git --upgrade\n```\n\nIt will install the last release of TIR in the active Python instance.\n\n## Config\n\nThe environment must be configured through a [config.json](config.json) file.\nYou can find one to be used as a base in this repository. To select your file,\nyou can either put it in your workspace or pass its path as a parameter of any of our classes' initialization.\n\n### Config options\n\nHere you can find all the supported keys: [Config.json keys](https://totvs.github.io/tir/configjson)\n\n### Custom config path\n\nJust pass the path as a parameter in your script:\n\n#### Protheus WebApp Class example:\n```python\n#To use a custom path for your config.json\ntest_helper = Webapp(\"C:\\PATH_HERE\\config.json\")\n```\n\n## Usage\n\nAfter the module is installed, you could just import it into your Test Case.\nSee the following example:\n\n[**Protheus WebApp Class**](https://totvs.github.io/tir-docs/TIR/first/)\n\n\n## Samples\n\nWe have a repository with different samples of TIR scripts:\n\n[TIR Script Samples](https://github.com/totvs/tir-script-samples)\n\n\n# Utilizando TIR com ambiente virtual \n\n## Conhecendo o conceito\nPara execução do TIR em ambiente virtual, utilizaremos a biblioteca **Virtualenv**. Essa é uma ferramenta usada em Python para criar ambientes **isolados**. Cada ambiente virtual tem seus próprios diretórios de instalação de pacotes, separados do ambiente **global** do sistema. Isso é útil para gerenciar dependências de **diferentes** projetos/versões sem conflito.\n\n## Configurando com VScode\n### Instalando a biblioteca e Criando o ambiente\n\n1. **Abra o terminal** (Prompt de Comando ou terminal do VS Code).\n2. **Instale o Virtualenv** com o seguinte comando:\n\n3.  **Crie o ambiente virtual** no diretório atual:\n```bash\n\npython -m virtualenv venv\n\n```\n\u003e  **Observação:**\n\u003e Se você tiver mais de uma versão do Python instalada, pode ser necessário especificar o caminho do executável desejado.\n\u003e Exemplo:\n\u003e\n\u003e ```bash\n\u003e  \"C:/caminho/python/pythonXY/python.exe\" -m pip install virtualenv\n\u003e  \"C:/caminho/python/pythonXY/python.exe\" -m virtualenv venv\n\u003e ```\n\u003e\n\u003e Por padrão, o Python costuma ser instalado em:\n\u003e  `C:\\Users\\[seu_usuario]\\AppData\\Local\\Programs\\Python\\Python[versão]`\n4. Após executar o comando, uma pasta chamada `venv` será criada no diretório atual.\n\nEsse é o seu ambiente virtual, pronto para uso!\n\n### Configurando o Vscode \nApós a configuração do ambiente virtual iremos definir o interpretador do VScode para utiliza-lo\n1. Com o VScode aberto na pasta do projeto, pressione `Ctrl + Shift + P` e pesquise pela opção `\u003ePython: Select Interpreter`\n\n2. Na lista de interpretadores reconhecidos no sistema, selecione o interpretador anteriormente criado, caminho padrão é:  **_./venv/Scripts/python.exe_** . Ao selecionar, o interpretador padrao utilizado se tornara esse, caso deseje utilizar outro é só seleciona-lo na lista.\n\n3. Abra um novo terminal no Vscode indo em _\"Terminal\"_ e _\"Novo terminal\"_\n\n4. Ao abrir o terminal veja se está inicializada a venv na linha de comando. ![venv](doc_files/source/img/terminal_venv.png)\n\n5. Agora rode o comando para instalação do TIR! `pip install tir_framework --no-cache-dir --force-reinstall --upgrade`\n\n7. Pronto! Agora seu tir esta pronto para executar em um ambiente isolado!.\n\n\n## Contact\n\n[Gitter](https://gitter.im/totvs-tir/General)\n\n## Contributing\n\nTo contribute be sure to follow the [Contribution](CONTRIBUTING.md) guidelines.\n\nAlso, it's important to understand the chosen [architecture](https://github.com/totvs/tir/blob/master/doc_files/ARCHITECTURE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotvs%2Ftir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftotvs%2Ftir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotvs%2Ftir/lists"}