Skip to content

Commit 8ba745d

Browse files
committed
Add rpa open test
Add rpa open test
1 parent 1993d15 commit 8ba745d

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

.idea/workspace.xml

Lines changed: 7 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/unit_test/screen/screenshot_test.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
import subprocess
2-
import time
3-
41
from je_auto_control import screenshot
52

63
# choose screenshot screen_region
74
image = screenshot(screen_region=[300, 400, 500, 600])
85
assert (image is not None)
96
print(image)
107

11-
subprocess.Popen("notepad.exe", stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, shell=True)
12-
13-
time.sleep(10)
14-
158
# screenshot and save
169
image = screenshot("test.png")
1710
assert (image is not None)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import subprocess
2+
import time
3+
4+
from je_auto_control import screenshot
5+
6+
subprocess.Popen("notepad.exe", stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, shell=True)
7+
8+
time.sleep(10)
9+
10+
# screenshot and save
11+
image = screenshot("test.png")
12+
assert (image is not None)
13+
print(image)

0 commit comments

Comments
 (0)