You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+49-11Lines changed: 49 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Introduction
4
4
5
-
Hello! So you want to learn Robot Framework? This guide is everything you need for getting started! You don’t need any previous experience in test automation to use this guide. With the guide, you will learn how to install Robot Framework on your system and get started building cool test cases.
5
+
Hello! So you want to learn Robot Framework? This guide is everything you need for getting started! You don’t need any previous experience in test automation to use this guide. You will learn how to install Robot Framework on your computer and get started building cool automation.
6
6
7
7
## Installation
8
8
@@ -11,7 +11,7 @@ Hello! So you want to learn Robot Framework? This guide is everything you need f
11
11
python --version
12
12
```
13
13
2. If Python is not installed, download and install latest version from [Python Downloads](https://www.python.org/downloads/). If installing to Windows, check "Add Python to PATH" in the Python installer.
14
-
3.Re-start your Terminal/Command Prompt after Python installation
14
+
3.Restart the Terminal/Command Prompt program after Python installation.
15
15
4. Next, install Robot Framework. Type in to Terminal/Command Prompt:
16
16
```
17
17
pip install robotframework
@@ -37,17 +37,55 @@ and for checking if installation was succesfull:
37
37
py -m robot --version
38
38
```
39
39
40
-
##Writing the first automation case
40
+
### Selecting code editor
41
41
42
+
Simple robot automation can be written using a any text editor, even Notepad. Check list of [suggested editors on Robot Framework's homepage](https://robotframework.org/#tools). If you don't have preference, very popular editor is [Visual Studio Code](https://code.visualstudio.com/), that has really good [Robot Framework extension](https://marketplace.visualstudio.com/items?itemName=TomiTurtiainen.rf-intellisense).
42
43
43
-
* Selecting editor
44
-
* Naming file
45
-
* Structure of the test/task
46
-
* Running it
47
-
* Checking the log files
44
+
## Writing a first automation case
48
45
49
-
## More information
46
+
Following example shows how to write your first robot automation case:
1. Create a new file and save it using an extension `.robot`, for example, `my_first.robot`
49
+
2. Write in file `*** Test Cases ***`. This creates [section](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#test-data-sections) for test cases.
50
+
3. Type in following (note to add the four spaces before `Log To Console`)
51
+
```
52
+
My First Robot Test
53
+
Log To Console Hello Robot World!
54
+
```
55
+
4. First test is now ready and it should look like this:
56
+
```
57
+
*** Test Cases ***
58
+
59
+
My First Robot Test
60
+
Log To Console Hello Robot World!
61
+
```
62
+
5. Open Terminal/Command Prompt. Navigate to the same folder where your `.robot` file is located and run the test by inputting command `robot my_first.robot`. For example:
Robot has created test report files in the same folder where you run the test. You can check details of the first test run by opening report.html file.
86
+
87
+
[Examples](./Examples) of this manual introduces Keyword Libraries and Variables related to Robot Framework automation.
88
+
89
+
## More information
52
90
53
-
References
91
+
Thank you for visiting the Beginners Guide! Hope you enjoyed learning Robot Framework. More about writing test cases: [How To Write Good Test Cases](https://github.com/robotframework/HowToWriteGoodTestCases/blob/master/HowToWriteGoodTestCases.rst).
0 commit comments