Skip to content

Commit 98d6f22

Browse files
Merge pull request #126 from Altran-PT-GDC/release_4.1
Release 4.1
2 parents da4653b + 7555a01 commit 98d6f22

17 files changed

+77
-90
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ env
3333
# Coverage reports
3434
.coverage
3535
htmlcov
36+
37+
# Personal test cases
38+
atest/test_with_login.robot

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Version: 4.1
22

3+
* [#113](https://github.com/Altran-PT-GDC/Robot-Framework-Mainframe-3270-Library/pull/113): #110 Get Cursor Position
4+
* [#114](https://github.com/Altran-PT-GDC/Robot-Framework-Mainframe-3270-Library/pull/114): #112 Implement find string keyword
5+
* [#115](https://github.com/Altran-PT-GDC/Robot-Framework-Mainframe-3270-Library/pull/115): #111 Read From Current Position keyword
6+
* [#118](https://github.com/Altran-PT-GDC/Robot-Framework-Mainframe-3270-Library/pull/118): #117 Create Get String Positions Only Before / After keywords
7+
* [#124](https://github.com/Altran-PT-GDC/Robot-Framework-Mainframe-3270-Library/pull/124): Release version 4.1
8+
9+
10+
# Version: 4.1
11+
312
* [#113](https://github.com/Altran-PT-GDC/Robot-Framework-Mainframe-3270-Library/pull/113): #110 Get Cursor Position
413
* [#114](https://github.com/Altran-PT-GDC/Robot-Framework-Mainframe-3270-Library/pull/114): #112 Implement find string keyword
514
* [#115](https://github.com/Altran-PT-GDC/Robot-Framework-Mainframe-3270-Library/pull/115): #111 Read From Current Position keyword

Mainframe3270/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import os
22
from datetime import timedelta
33
from typing import Any
4-
54
from robot.api import logger
65
from robot.api.deco import keyword
76
from robot.libraries.BuiltIn import BuiltIn, RobotNotRunningError
87
from robot.utils import ConnectionCache
98
from robotlibcore import DynamicCore
10-
119
from Mainframe3270.keywords import (
1210
AssertionKeywords,
1311
CommandKeywords,
@@ -129,7 +127,7 @@ def __init__(
129127
model: str = "2",
130128
) -> None:
131129
"""
132-
By default the emulator visibility is set to visible=True.
130+
By default, the emulator visibility is set to visible=True.
133131
In this case test cases are executed using wc3270 (Windows) or x3270 (Linux/MacOSX).
134132
You can change this by setting visible=False.
135133
Then test cases are run using ws3720 (Windows) or s3270 (Linux/MacOS).

Mainframe3270/keywords/assertions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import re
22
from typing import List, Optional
3-
43
from robot.api import logger
54
from robot.api.deco import keyword
65
from robot.utils import Matcher
7-
86
from Mainframe3270.librarycomponent import LibraryComponent
97

108

Mainframe3270/keywords/commands.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
import time
22
from typing import Optional, Union
3-
43
from robot.api.deco import keyword
5-
64
from Mainframe3270.librarycomponent import LibraryComponent
75
from Mainframe3270.utils import ResultMode, prepare_position_as
86

97

108
class CommandKeywords(LibraryComponent):
119
@keyword("Execute Command")
1210
def execute_command(self, cmd: str) -> None:
13-
"""Execute a [http://x3270.bgp.nu/wc3270-man.html#Actions|x3270 command].
11+
"""Execute a [https://x3270.miraheze.org/wiki/Category:Wc3270_actions|x3270 command].
1412
1513
Example:
1614
| Execute Command | Enter |
1715
| Execute Command | Home |
1816
| Execute Command | Tab |
1917
| Execute Command | PF(1) |
18+
| Execute Command | Scroll(backward) | # To send Page Up |
19+
| Execute Command | Scroll(forward) | # To send Page Down |
2020
"""
2121
self.mf.exec_command(cmd.encode("utf-8"))
2222
time.sleep(self.wait_time)

Mainframe3270/keywords/connection.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
import shlex
44
from os import name as os_name
55
from typing import List, Optional, Union
6-
76
from robot.api import logger
87
from robot.api.deco import keyword
9-
108
from Mainframe3270.librarycomponent import LibraryComponent
119
from Mainframe3270.py3270 import Emulator
1210

Mainframe3270/keywords/read_write.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import time
22
from typing import Any, Optional
3-
43
from robot.api.deco import keyword
5-
64
from Mainframe3270.librarycomponent import LibraryComponent
75
from Mainframe3270.utils import ResultMode, prepare_positions_as
86

Mainframe3270/keywords/screenshot.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import os
22
import time
3-
43
from robot.api import logger
54
from robot.api.deco import keyword
6-
75
from Mainframe3270.librarycomponent import LibraryComponent
86

97

Mainframe3270/keywords/wait_and_timeout.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import time
22
from datetime import timedelta
3-
43
from robot.api.deco import keyword
54
from robot.utils import secs_to_timestr
6-
75
from Mainframe3270.librarycomponent import LibraryComponent
86
from Mainframe3270.utils import convert_timeout
97

Mainframe3270/librarycomponent.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from robot.utils import ConnectionCache
2-
32
from Mainframe3270.py3270 import Emulator
43

54

0 commit comments

Comments
 (0)