-
Notifications
You must be signed in to change notification settings - Fork 10
Pull Request for Comments to the Syllabus #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: Review-Branch
Are you sure you want to change the base?
Changes from all commits
e5e6b3d
7c4c8e0
c79c281
a290789
4507ce2
771db10
0936c63
5fc76af
6e67648
33077aa
ef3046a
92bb081
4aea415
f2f6f3d
8a0441b
41a599f
9525975
0e91904
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
*** Settings *** | ||
Library Browser | ||
|
||
|
||
*** Test Cases *** | ||
Gen Syllabus | ||
Open Syllabus | ||
Expand Menues | ||
Generate Syllabus.pdf | ||
|
||
|
||
*** Keywords *** | ||
Open Syllabus | ||
New Browser chromium headless=False | ||
New Page https://robotframework.org/robotframework-RFCP-syllabus/docs/overview | ||
${dark} Get Element States | ||
... button[aria-label="Switch between dark and light mode (currently dark mode)"] | ||
... then | ||
... bool(value & attached) | ||
IF $dark | ||
Click button[aria-label="Switch between dark and light mode (currently dark mode)"] | ||
END | ||
|
||
Expand Menues | ||
${menus} Get Elements .menu__list-item--collapsed | ||
FOR ${menu} IN @{menus} | ||
Click ${menus}[0] | ||
END | ||
|
||
Generate Syllabus.pdf | ||
${pages} Get Elements .theme-doc-sidebar-item-link | ||
${writer} Evaluate pypdf.PdfWriter() | ||
FOR ${page} IN @{pages} | ||
Click ${page} | ||
Scroll To vertical=bottom behavior=smooth | ||
sleep 1s | ||
${title} Get Title then value.split("|")[0] | ||
${file} Save Page As Pdf | ||
... pdfs/${title.replace('/', '_').strip()}.pdf | ||
... displayHeaderFooter=True | ||
... format=A4 | ||
... outline=True | ||
... margin={'top': '20px', 'right': '20px', 'bottom': '20px', 'left': '20px'} | ||
... printBackground=True | ||
... tagged=True | ||
... scale=0.8 | ||
Log To Console ${file} | ||
Evaluate $writer.append($file) | ||
END | ||
Evaluate $writer.write("Syllabus.pdf") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 1 Introduction to Robot Framework | ||
|
||
The upcoming chapters provide a concise overview of Robot Framework, including its core structure, use cases in test automation and Robotic Process Automation (RPA), and key specification styles like keyword-driven and behavior-driven testing. You'll learn about its architecture, syntax, and how test cases and tasks are organized. Additionally, the chapters explain the open-source licensing under Apache 2.0, the role of the Robot Framework Foundation in maintaining the ecosystem, and the foundational web resources available for further exploration and contributions. |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about mentioning a few (most common) examples of what kind of systems might be tested with Robot Framework? (e..g, web and mobile applications, desktop applications, databases, APIs, even embedded systems). |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,65 @@ | ||||||
# 1.1 Purpose / Use Cases | ||||||
|
||||||
::::lo[Learning Objectives] | ||||||
|
||||||
:::K1[LO-1.1] | ||||||
|
||||||
Recall the two main use cases of Robot Framework | ||||||
|
||||||
::: | ||||||
|
||||||
:::: | ||||||
|
||||||
Robot Framework is a versatile, open-source automation framework that supports both **test automation** and **robotic process automation (RPA)**. | ||||||
Initially designed for acceptance testing, it has since evolved to cover other types of testing and various automation tasks in both IT and business environments. | ||||||
Its keyword-driven approach allows users to create reusable components, making it accessible even to those with minimal programming skills. | ||||||
Robot Framework can be extended through a vast array of third-party or custom made keyword libraries, allowing it to automate interactions with APIs, user interfaces, databases, and many more technologies. | ||||||
|
||||||
|
||||||
|
||||||
## 1.1.1 Test Automation | ||||||
|
||||||
::::lo[Learning Objectives] | ||||||
|
||||||
:::K1[LO-1.1.1] | ||||||
|
||||||
Recall the test levels Robot Framework is mostly used for | ||||||
|
||||||
::: | ||||||
|
||||||
:::: | ||||||
|
||||||
Robot Framework is widely used at various levels of testing, primarily focusing on: | ||||||
|
||||||
- **System Testing**: Involves verifying the complete system’s behavior and capabilities. It often includes both functional and non-functional aspects (e.g., accessibility, security) and may use simulated components. | ||||||
|
||||||
- **System Integration Testing**: Focuses on the interaction between the system under test and external services, as well as on the integration of multiple systems into a larger system, ensuring that all integrated components communicate and function together as expected. | ||||||
|
||||||
- **Acceptance Testing**: Aims to validate that the system meets business requirements and is ready for deployment or release. This often includes different forms of acceptance testing (e.g., user acceptance, operational acceptance, regulatory acceptance) and is frequently written or conducted by end-users or stakeholders to confirm the system’s readiness for use. Acceptance tests, often defined by business stakeholders in approaches like Acceptance Test-Driven Development (ATDD), can be automated and executed earlier in the development process. This ensures that the solution aligns with business requirements from the start and provides immediate feedback, reducing costly changes later. | ||||||
|
||||||
- **End-to-End Testing**: Verifies that a complete workflow or process within the system operates as intended, covering all interconnected subsystems, interfaces, and external components. End-to-end tests ensure the correct functioning of the application in real-world scenarios by simulating user interactions from start to finish. | ||||||
|
||||||
Robot Framework's flexibility and support for external libraries make it an excellent tool for automating these comprehensive test cases, ensuring seamless interaction between components and validating the system's behavior also in production or production-like conditions. | ||||||
|
||||||
Robot Framework is typically not used for **component testing** nor **integration testing** because its primary strength lies in higher-level testing, such as system, acceptance, and end-to-end testing, where behavior-driven and keyword-based approaches excel. Component testing requires low-level, granular tests focusing on individual units of code, often necessitating direct interaction with the codebase, mocking, or stubbing, which are better handled by unit testing frameworks like JUnit, pytest, or NUnit. Similarly, integration testing at a low level often requires precise control over service interactions, such as API stubs or protocol-level testing, which may not align with Robot Framework's abstraction-oriented design. While Robot Framework can technically handle these cases through custom libraries, its overhead and design philosophy make it less efficient compared to tools specifically tailored for low-level and tightly scoped testing tasks. | ||||||
|
||||||
|
||||||
### 1.1.1.1 Synthetic Monitoring | ||||||
|
||||||
Beyond traditional test levels, **Synthetic Monitoring**, also referred to as **Active Monitoring** or **Proactive Monitoring**, is a proactive approach that simulates user interactions with live systems at regular intervals. It detects performance issues or downtime early with the goal of to detect such failure before they affect actual users. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
|
||||||
|
||||||
## 1.1.2 Robotic Process Automation (RPA) | ||||||
|
||||||
Robotic Process Automation (RPA) uses software bots to perform tasks and interactions normally performed by humans, without requiring changes to the underlying applications. | ||||||
|
||||||
Robot Framework, with its keyword-driven approach, vast ecosystem of libraries, simplicity, and scalability, is widely adopted for RPA tasks. | ||||||
Robot Framework allows users to automate most workflows using ready-made keyword libraries that provide a wide range of functionalities. These libraries can be combined and reused in user-defined keywords, making automation simple and efficient. For custom functionalities or more complex tasks, Robot Framework also offers the flexibility to create custom keyword libraries using Python, enabling advanced use cases and seamless integration with unique systems. | ||||||
|
||||||
Common use cases of RPA with Robot Framework include: | ||||||
|
||||||
- **Data extraction and manipulation**: Automating data transfers and processing between systems. | ||||||
- **Task / Process automation**: Automating tasks such as form submissions, clicks, and file operations across web or desktop applications. | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,104 @@ | ||||||
# 1.2 Architecture of Robot Framework | ||||||
|
||||||
Robot Framework is an open-source automation framework that allows you to build automation scripts for testing and RPA (Robotic Process Automation). | ||||||
It focuses on providing a keyword-driven or behavior-driven approach, making the automation easy to understand and maintain. | ||||||
However, it is not a full-stack solution that encompasses all layers of automation. | ||||||
Instead, it provides a flexible platform where different tools, libraries, and integrations handle specific tasks to implement a flexible automation solution. | ||||||
|
||||||
|
||||||
|
||||||
## 1.2.1 Robot Framework and the gTAA (Generic Test Automation Architecture) | ||||||
|
||||||
::::lo[Learning Objectives] | ||||||
|
||||||
:::K1[LO-1.2.1] | ||||||
|
||||||
Recall the layers of the Generic Test Automation Architecture (gTAA) and their corresponding components in Robot Framework | ||||||
|
||||||
::: | ||||||
|
||||||
:::: | ||||||
|
||||||
The **Generic Test Automation Architecture (gTAA)** described in the ISTQB "Certified Tester Advanced Level Test Automation Engineering" offers a structured approach to test automation, dividing it into different layers for a clear separation of concerns: | ||||||
|
||||||
- **Definition Layer**: This layer contains the "Test Data" (test cases, tasks, resource files which include user keywords and variables). | ||||||
In Robot Framework, the test data is written using the defined syntax and contains keyword calls and argument values that make the test case or task definitions structured in suites. | ||||||
|
||||||
- **Execution Layer**: In Robot Framework, the execution layer consists of the framework itself, including its core components and APIs. | ||||||
It parses and interprets the test data syntax to build an execution model. | ||||||
The execution layer is responsible for processing this execution model to execute the library keywords with their argument values, logging results, and generating reports. | ||||||
|
||||||
- **Adaptation Layer**: This layer provides the connection between Robot Framework and the system under test (SUT). | ||||||
In Robot Framework, this is where the keyword libraries, which contain code responsible for interacting with different technologies and interfaces, | ||||||
such as those for UI, API, database interactions, or others, are located. | ||||||
These keyword libraries enable interaction with different technologies and interfaces, ensuring the automation is flexible and adaptable to various environments. | ||||||
|
||||||
Editors/IDEs that offer support for Robot Framework's syntax are tools that support or integrate in these layers. | ||||||
When writing tests|tasks or keywords, the editor supports the definition layer. | ||||||
When executing or debugging tests|tasks, the editor supports the execution layer. | ||||||
When writing keywords in i.e. Python for keyword libraries, the editor supports the adaptation layer. | ||||||
Therefore also other additional extensions of Robot Framework can be categorized into these layers. | ||||||
|
||||||
<!-- TODO: add a graphic here --> | ||||||
|
||||||
## 1.2.2 What is Robot Framework & What It Is Not | ||||||
|
||||||
::::lo[Learning Objectives] | ||||||
|
||||||
:::K1[LO-1.2.2] | ||||||
|
||||||
Recall what is part of Robot Framework and what is not | ||||||
|
||||||
::: | ||||||
|
||||||
:::: | ||||||
|
||||||
|
||||||
Robot Framework itself focuses primarily on **test|task execution**. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OR operator (
Suggested change
|
||||||
It includes: | ||||||
|
||||||
- A parser to read test|task data and build an execution model. | ||||||
- An execution engine to process model and execute the keywords. | ||||||
- A result generation mechanism to provide logs and reports. | ||||||
- A collection of generic standard libraries to process and handle data or interact with files and processes. | ||||||
- Defined APIs for extensions and customizations. | ||||||
|
||||||
However, Robot Framework **does not** include: | ||||||
|
||||||
- Keyword libraries to control systems under test/RPA. | ||||||
|
||||||
Such as: | ||||||
- Web front-end automation libraries. | ||||||
- API interaction libraries. | ||||||
- Mobile automation libraries. | ||||||
- Database interaction libraries. | ||||||
- RPA libraries. | ||||||
- etc. | ||||||
|
||||||
- Code editors or IDEs. | ||||||
- CI/CD Integration. | ||||||
|
||||||
Robot Framework defines the syntax for test|task data, but it is the role of external libraries and tools to extend its functionality for specific automation needs. | ||||||
|
||||||
|
||||||
|
||||||
## 1.2.3 Technology & Prerequisites | ||||||
|
||||||
::::lo[Learning Objectives] | ||||||
|
||||||
:::K1[LO-1.2.3] | ||||||
|
||||||
Recall the technology Robot Framework is built on and the prerequisites for running it | ||||||
|
||||||
::: | ||||||
|
||||||
:::: | ||||||
|
||||||
|
||||||
Robot Framework is built on **Python** but is adaptable to other languages and technologies through external libraries. | ||||||
To run Robot Framework, an [officially supported version](https://devguide.python.org/versions/) of the **Python interpreter** is required on the machine executing the tests|tasks. | ||||||
Typically, Robot Framework and its libraries are installed via the "package installer for Python" (`pip`) from [PyPi.org](https://pypi.org/project/robotframework/), allowing for straightforward installation and setup. | ||||||
Robot Framework itself does not have any external dependencies, but additional third party tools or keyword libraries may require additional installations. | ||||||
|
||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, somewhere in Chapter 1, also reporting should be mentioned in very general terms (details are explained in later chapters). Maybe also include an example of a log file.