Visão Geral
Este Curso Python Test Automation with Robot Framework orienta os alunos desde o básico da automação de testes até recursos mais avançados, como a construção de uma estrutura de automação de testes personalizada, configuração de dados de teste e utilização de práticas recomendadas para criar soluções eficientes, robustas e fáceis de usar. manter scripts automatizados. Ênfase extra é colocada no uso do Python para criar novas palavras-chave do robô (funções do Python) para estender as bibliotecas do robô e para criar casos de teste do robô autodocumentados que sejam fáceis de ler e valiosos para todos os membros da equipe do projeto.
Conteúdo Programatico
Robot Framework Fundamentals
- Install & Setup Robot Framework
- The Settings Section of a Robot file
- Importing Resources
- Importing Existing Python Libraries (e.g., the Selenium Library)
- Suite Setup & Suite Tear Down
- Test Setup & Test Tear Down
- Creating a Variables section in a Robot file
- Creating a Keywords section in a Robot file
- Basics of Robot Syntax
- Using Existing Robot Keywords
- Importing Python Libraries
- Creating a Test Cases section in a Robot file
- Test Cases naming convention
- Documenting Test Cases with Documentation attribute
- Tags attribute
- Writing a simple Robot Test
- Executing a Robot Test
- Using the terminal execute tests
- Analyzing Results
- Viewing the log file
- Finding Root Cause of Test Script Failures
- How to read and explain the Report File to your Project team
Locators / Finding Elements in a Web Application
- Setting up a Locator file
- How to find locators using Developer Console and XPath Helper
- Using id’s or CSS to find elements
- When and how to use XPath Axes for Locators
- Dealing with elements that have the same attributes
Page Object Model Pattern
- What is the Page Object Model?
- What are the benefits of the Page Object Model?
- How to benefit from Utilities Library when using Page Object Model
Behavior-Driven Development
- What is BDD?
- What are the benefits of BDD?
- How to create easy-to-read test cases
- How to align BDD test cases with Agile team
- Converting BDD style tests to Automation “stubs”
Designing a Test Automation Framework
- What are the components of a Test Automation Framework?
- What are the factors that make a robust Test Automation Framework?
- How to benefit from using Robot Framework extensibility when customizing your framework
- Be a “Subject Matter Expert” of the application before building your framework
Building a Test Automation Framework
- Working with Keywords from existing libraries
- Creating your project’s Utilities library
- Extending Robot with custom Keywords
- Creating Page Object files
- Creating organized Test Case files
- Generating Test Data
Enhancing Test Automation with Best Practices
- Creating Test Automation Scripts that are adaptable for many test cases
- Enhancing your project’s utilities library
- Reducing the amount of locators you have with “polymorphic” locators
- Making scripts more robust with proper waits
- Using Keyword Args for Python Functions
- When to use Exception Handling
- Generating Robot Docs to help with Documentation
API Testing Fundamentals
- What is API Test Automation?
- What are the benefits of API Test Automation?
- When should I use API Test Automation vs. UI Automation?
API Test Automation
- Setting up a simple API Test in Robot Framework
- Creating an API Test Suite
- Using API Tests to generate Test Data