Skip to content
Merged

Dev #155

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dev_python3_12.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: AutoControl Dev Python3.9
name: AutoControl Dev Python3.12

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stable_python3_12.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: AutoControl Stable Python3.9
name: AutoControl Stable Python3.12

on:
push:
Expand Down
21 changes: 6 additions & 15 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

105 changes: 61 additions & 44 deletions je_auto_control/utils/exception/exception_tags.py
Original file line number Diff line number Diff line change
@@ -1,63 +1,80 @@
# error tags
je_auto_control_error: str = "Auto control error"
je_auto_control_critical_exit_error: str = "Auto control critical exit error"
je_auto_control_error: str = "Auto-control error"
je_auto_control_critical_exit_error: str = "Auto-control critical exit error"

# os tags
linux_import_error: str = "should be only loaded on linux"
osx_import_error: str = "should be only loaded on MacOS"
windows_import_error: str = "should be only loaded on windows"
macos_record_error: str = "macos cant use recorder"
linux_import_error: str = "Should only be loaded on Linux"
osx_import_error: str = "Should only be loaded on macOS"
windows_import_error: str = "Should only be loaded on Windows"
macos_record_error: str = "Cannot use recorder on macOS"

# keyboard tags
keyboard_error: str = "Auto control keyboard error"
keyboard_press_key: str = "keyboard press key error"
keyboard_release_key: str = "keyboard release key error"
keyboard_type_key: str = "keyboard type key error"
keyboard_write: str = "keyboard write error"
keyboard_write_cant_find: str = "keyboard write error cant find key"
keyboard_hotkey: str = "keyboard hotkey error"
keyboard_error: str = "Auto-control keyboard error"
keyboard_press_key: str = "Keyboard key press error"
keyboard_release_key: str = "Keyboard key release error"
keyboard_type_key: str = "Keyboard key type error"
keyboard_write: str = "Keyboard write error"
keyboard_write_cant_find: str = "Keyboard write error: key not found"
keyboard_hotkey: str = "Keyboard hotkey error"

# mouse tags
mouse_error: str = "Auto control mouse error"
mouse_get_position: str = "mouse get position error"
mouse_set_position: str = "mouse set position error"
mouse_press_mouse: str = "mouse press mouse error"
mouse_release_mouse: str = "mouse release key error"
mouse_click_mouse: str = "mouse click mouse error"
mouse_scroll: str = "mouse scroll error"
mouse_wrong_value: str = "mouse value error"
mouse_error: str = "Auto-control mouse error"
mouse_get_position: str = "Mouse position retrieval error"
mouse_set_position: str = "Mouse position set error"
mouse_press_mouse: str = "Mouse press error"
mouse_release_mouse: str = "Mouse release error"
mouse_click_mouse: str = "Mouse click error"
mouse_scroll: str = "Mouse scroll error"
mouse_wrong_value: str = "Mouse value error"

# screen tags
screen_error: str = "Auto control screen error"
screen_get_size: str = "screen get size error"
screen_screenshot: str = "screen screenshot error"
screen_error: str = "Auto-control screen error"
screen_get_size: str = "Screen size retrieval error"
screen_screenshot: str = "Screen screenshot error"

# table tags
table_cant_find_key: str = "cant find key error"
table_cant_find_key: str = "Cannot find key error"

# cv2_utils tags
cant_find_image: str = "cant find cv2_utils"
find_image_error_variable: str = "variable error"
cant_find_image: str = "Cannot find image"
find_image_error_variable: str = "Variable error"

# listener tags
listener_error: str = "Auto control listener error"
listener_error: str = "Auto-control listener error"

# test_record tags
record_queue_error: str = "cant get test_record queue its none are you using stop test_record before test_record"
record_queue_error: str = "Cannot get test_record queue: it is None. Are you stopping test_record before running it?"
record_not_found_action_error: str = "test_record action not found"

# json tag
cant_execute_action_error: str = "cant execute action"
cant_generate_json_report: str = "can't generate json report"
cant_find_json_error: str = "cant find json file"
cant_save_json_error: str = "cant save json file"
action_is_null_error: str = "json action is null"
cant_execute_action_error: str = "Cannot execute action"
cant_generate_json_report: str = "Cannot generate JSON report"
cant_find_json_error: str = "Cannot find JSON file"
cant_save_json_error: str = "Cannot save JSON file"
action_is_null_error: str = "JSON action is null"

# timeout tag
timeout_need_on_main_error: str = "should put timeout function on main"
timeout_need_on_main_error: str = "Timeout function must be in main"

# HTML
html_generate_no_data_tag: str = "record is None"
html_generate_no_data_tag: str = "Record is None"

# add command
add_command_exception: str = "command value type should be as method or function"
add_command_exception: str = "Command value must be a method or function"

# executor
executor_list_error: str = "executor receive wrong data list is none or wrong type"
executor_list_error: str = "Executor received invalid data: list is None or wrong type"

# argparse
argparse_get_wrong_data: str = "argparse receive wrong data"
argparse_get_wrong_data: str = "Argparse received invalid data"

# XML
cant_read_xml_error: str = "can't read xml"
xml_type_error: str = "xml type error"
cant_read_xml_error: str = "Cannot read XML"
xml_type_error: str = "XML type error"

# Callback executor
get_bad_trigger_method: str = "get bad trigger method, only accept kwargs and args"
get_bad_trigger_function: str = "get bad trigger function only accept function in event_dict"
get_bad_trigger_method: str = "Invalid trigger method: only kwargs and args accepted"
get_bad_trigger_function: str = "Invalid trigger function: only functions in event_dict accepted"

# Can't find file
can_not_find_file: str = "Can not find file"
can_not_find_file: str = "Cannot find file"
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Rename to build stable version
# This is stable version
# Rename to build dev version
# This is dev version
[build-system]
requires = ["setuptools>=61.0"]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "je_auto_control"
version = "0.0.170"
name = "je_auto_control_dev"
version = "0.0.117"
authors = [
{ name = "JE-Chen", email = "[email protected]" },
]
Expand Down
10 changes: 5 additions & 5 deletions dev.toml → stable.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Rename to build dev version
# This is dev version
# Rename to build stable version
# This is stable version
[build-system]
requires = ["setuptools"]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "je_auto_control_dev"
version = "0.0.116"
name = "je_auto_control"
version = "0.0.171"
authors = [
{ name = "JE-Chen", email = "[email protected]" },
]
Expand Down