-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
301fb5c
commit f53db49
Showing
4 changed files
with
102 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
# robot-web-testing | ||
web test project using the robot framework tool | ||
# ROBOT-WEB-TESTING | ||
Web test project using the robot framework tool | ||
|
||
## Explicação da estrutura de pastas: | ||
## INSTALLATION | ||
|
||
- config: Contém arquivos de configuração do projeto, como variáveis de ambiente, configurações gerais e de execução. | ||
- pages: Contém arquivos que definem as classes de Page Object, que representam as páginas da aplicação web. | ||
- resources: Contém arquivos de recursos, como bibliotecas externas e arquivos de palavras-chave (keywords) personalizados. | ||
- tests: Contém arquivos de teste, organizados por tipo de teste e por página. Dentro de cada arquivo de teste, são utilizadas as classes de Page Object e as palavras-chave definidas nos arquivos de recursos. | ||
- output: Contém os arquivos de resultados dos testes executados. | ||
- requirements.txt: Arquivo que contém as dependências do projeto e suas versões. Instalação: pip install -r requirements.txt | ||
```bash | ||
pip install -r .\requirements.txt | ||
``` | ||
## USAGE | ||
|
||
## Autores | ||
- resources: Contains resource files, such as external libraries and custom keyword files. | ||
- config: Contains project configuration files, such as environment variables, general settings, and execution settings. | ||
- docs: Contains project documentation files | ||
- pages: Contains files that define Page Object classes, which represent web application pages. | ||
- results: Contains the result files of executed tests. | ||
- main.robot: File responsible for implementing the import of libraries in one place. | ||
|
||
- tests: Contains test files organized by test type and by page. Within each test file, Page Object classes and keywords defined in resource files are used. | ||
|
||
- requirements.txt: File that contains project dependencies and their versions. Installation: pip install -r requirements.txt | ||
|
||
## AUTHORS | ||
|
||
- [@ronymesquita](https://www.github.com/ronymesquita) | ||
- [@JulianaSilvaRossi](https://www.github.com/JulianaSilvaRossi) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Markmap</title> | ||
<style> | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
#mindmap { | ||
display: block; | ||
width: 100vw; | ||
height: 100vh; | ||
} | ||
</style> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@highlightjs/[email protected]/styles/default.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/style.css"> | ||
</head> | ||
<body> | ||
<svg id="mindmap"></svg> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/d3.min.js"></script><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/browser/index.js"></script><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.js"></script><script>(r => { | ||
setTimeout(r); | ||
})(() => { | ||
const { | ||
markmap, | ||
mm | ||
} = window; | ||
const { | ||
el | ||
} = markmap.Toolbar.create(mm); | ||
el.setAttribute('style', 'position:absolute;bottom:20px;right:20px'); | ||
document.body.append(el); | ||
})</script><script>((getMarkmap, getOptions, root, jsonOptions) => { | ||
const markmap = getMarkmap(); | ||
window.mm = markmap.Markmap.create('svg#mindmap', (getOptions || markmap.deriveOptions)(jsonOptions), root); | ||
})(() => window.markmap,null,{"type":"heading","depth":0,"payload":{"lines":[0,1]},"content":"ROBOT-WEB-TESTING","children":[{"type":"heading","depth":1,"payload":{"lines":[3,4]},"content":"INSTALLATION","children":[{"type":"fence","depth":2,"content":"<pre><code class=\"language-bash\"> pip install -r .\\requirements.txt\n</code></pre>\n","children":[],"payload":{"lines":[5,8]}}]},{"type":"heading","depth":1,"payload":{"lines":[8,9]},"content":"USAGE","children":[{"type":"list_item","depth":2,"payload":{"lines":[10,11]},"content":"resources: Contains resource files, such as external libraries and custom keyword files.","children":[{"type":"list_item","depth":3,"payload":{"lines":[11,12]},"content":"config: Contains project configuration files, such as environment variables, general settings, and execution settings.","children":[]},{"type":"list_item","depth":3,"payload":{"lines":[12,13]},"content":"docs: Contains project documentation files","children":[]},{"type":"list_item","depth":3,"payload":{"lines":[13,14]},"content":"pages: Contains files that define Page Object classes, which represent web application pages.","children":[]},{"type":"list_item","depth":3,"payload":{"lines":[14,15]},"content":"results: Contains the result files of executed tests.","children":[]},{"type":"list_item","depth":3,"payload":{"lines":[15,16]},"content":"main.robot: File responsible for implementing the import of libraries in one place.","children":[]}]},{"type":"list_item","depth":2,"payload":{"lines":[17,18]},"content":"tests: Contains test files organized by test type and by page. Within each test file, Page Object classes and keywords defined in resource files are used.","children":[]},{"type":"list_item","depth":2,"payload":{"lines":[19,20]},"content":"requirements.txt: File that contains project dependencies and their versions. Installation: pip install -r requirements.txt","children":[]}]},{"type":"heading","depth":1,"payload":{"lines":[21,22]},"content":"AUTHORS","children":[{"type":"list_item","depth":2,"payload":{"lines":[23,24]},"content":"<a href=\"https://www.github.com/ronymesquita\">@ronymesquita</a>","children":[]},{"type":"list_item","depth":2,"payload":{"lines":[24,25]},"content":"<a href=\"https://www.github.com/JulianaSilvaRossi\">@JulianaSilvaRossi</a>","children":[]}]}]},{})</script> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
# TEMPLATE - WEB AUTOMATION TEST | ||
|
||
- Template web automation test project to write BDD tests, parallel test execution, accessibility testing engine and allows you to perform accessibility tests on web pages, and to more incredible is it automatically downloads and sets up the required web driver for different browsers. | ||
|
||
## LIBRARIES | ||
- *Robot Framework*: The core of this web automation framework is Robot Framework, an open-source and highly extensible test automation framework. It is known for its simplicity, readability, and versatility in creating test cases for various applications. With Robot Framework, you can define test cases in a natural, human-readable format, making it accessible to both technical and non-technical team members. | ||
|
||
- *Robot Framework SeleniumLibrary*: To automate web applications, the framework leverages Robot Framework's integration with the SeleniumLibrary. SeleniumLibrary provides a set of keywords and functionalities that enable you to interact with web elements and perform actions like clicking buttons, filling out forms, and validating web page content. It is a powerful tool for testing web applications with various browsers. | ||
|
||
- *Robot Framework Pabot*: Pabot is an extension library for Robot Framework that allows parallel test execution. With Pabot, you can run multiple test cases or suites simultaneously, significantly reducing the time required for test execution. This is particularly useful for large test suites and improving test suite performance. | ||
|
||
- *Robot Framework AxeLibrary*: AxeLibrary is an accessibility testing library for Robot Framework. It integrates the Axe-Core accessibility testing engine and allows you to perform accessibility tests on web pages. This is crucial for ensuring that web applications are accessible to users with disabilities and comply with accessibility standards. | ||
|
||
- *Webdriver-Manager*: Webdriver-Manager is a tool that simplifies the management of web driver executables used by Selenium. It automatically downloads and sets up the required web driver for different browsers, making it easier to configure your test environment and ensuring that your tests can run on various browsers seamlessly. | ||
|
||
**HOW THE FRAMEWORK WORKS**: | ||
- This web automation framework uses Robot Framework as the foundation for creating and organizing test cases in a human-readable format. Test cases are designed to interact with web applications using SeleniumLibrary keywords. Pabot allows for efficient parallel test execution, reducing overall test execution time. AxeLibrary ensures that accessibility testing is an integral part of the testing process, helping identify and fix accessibility issues. Webdriver-Manager simplifies the setup and management of web drivers for cross-browser testing. | ||
|
||
**BENEFITS**: | ||
- **Readable Test Cases**: Robot Framework's human-readable syntax allows for clear and understandable test cases. | ||
- **Cross-Browser Compatibility**: SeleniumLibrary combined with Webdriver-Manager ensures cross-browser compatibility. | ||
- **Parallel Execution**: Pabot enables faster test execution for large test suites. | ||
- **Accessibility Testing**: AxeLibrary ensures that your web applications are accessible and meet accessibility standards. | ||
|
||
**USAGE**: | ||
- Teams can use this web automation framework to automate the testing of web applications, ensuring that they function correctly, perform efficiently, and are accessible to all users. It's particularly valuable in the context of continuous integration and continuous delivery (CI/CD) pipelines, where automated testing is a critical part of the development process. | ||
|
||
## FEATURES | ||
|
||
## REQUIREMENTS | ||
|
||
## QUICK START | ||
|
||
## TEST EXAMPLES | ||
|
||
## ADDING TESTS | ||
|
||
## CONFIGURATIONS | ||
|
||
## DEBUGGING TESTS | ||
|
||
## DOCUMENTATION |