Skip to content
Merged

Dev #104

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
4 changes: 2 additions & 2 deletions automation_ide/automation_editor_ui/editor_main/main_ui.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import os
import sys
from os import environ
from pathlib import Path
from typing import List, Dict, Type

from os import environ
environ["LOCUST_SKIP_MONKEY_PATCH"] = "1"

from PySide6.QtCore import QTimer, QCoreApplication
Expand All @@ -21,13 +21,13 @@
from je_load_density.gui.main_widget import LoadDensityWidget
from je_auto_control.gui.main_widget import AutoControlGUIWidget


EDITOR_EXTEND_TAB: Dict[str, Type[QWidget]] = {
"LoadDensity GUI": LoadDensityWidget,
"APITestka GUI": APITestkaWidget,
"AutoControl GUI": AutoControlGUIWidget,
}


class AutomationEditor(EditorMain):

def __init__(self, debug_mode: bool = False, show_system_tray_ray: bool = False):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ def create_project() -> None:
except ImportError as error:
print(repr(error), file=sys.stderr)


def add_api_testka_gui(ui_we_want_to_set: AutomationEditor) -> None:
ui_we_want_to_set.tab_widget.addTab(
APITestkaWidget(), "APITestka GUI"
)
APITestkaWidget(), "APITestka GUI"
)
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def set_autocontrol_menu(ui_we_want_to_set: AutomationEditor):
:return: None
"""
ui_we_want_to_set.autocontrol_menu = ui_we_want_to_set.automation_menu.addMenu(
language_wrapper.language_word_dict.get("autocontrol_menu_label"))
language_wrapper.language_word_dict.get("autocontrol_menu_label"))
ui_we_want_to_set.autocontrol_run_menu = ui_we_want_to_set.autocontrol_menu.addMenu(
language_wrapper.language_word_dict.get("run_label"))
# Run AutoControl Script
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@

from PySide6.QtWidgets import QFileDialog, QMessageBox

from automation_ide.extend.process_executor.test_pioneer.test_pioneer_process_manager import init_and_start_test_pioneer_process
from automation_ide.extend.process_executor.test_pioneer.test_pioneer_process_manager import \
init_and_start_test_pioneer_process

if TYPE_CHECKING:
from automation_ide.automation_editor_ui.editor_main.main_ui import AutomationEditor

from PySide6.QtGui import QAction
from je_editor import language_wrapper
from test_pioneer import create_template_dir, execute_yaml
from test_pioneer import create_template_dir


def set_test_pioneer_menu(ui_we_want_to_set: AutomationEditor):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def print_and_clear_queue(self):
def read_program_output_from_process(self):
while self.still_run_program:
self.process: subprocess.Popen
program_output_data = self.process.stdout.readline(self.program_buffer_size)\
program_output_data = self.process.stdout.readline(self.program_buffer_size) \
.decode("utf-8", "replace")
if self.process:
self.process.stdout.flush()
Expand All @@ -169,7 +169,7 @@ def read_program_output_from_process(self):

def read_program_error_output_from_process(self):
while self.still_run_program:
program_error_output_data = self.process.stderr.readline(self.program_buffer_size)\
program_error_output_data = self.process.stderr.readline(self.program_buffer_size) \
.decode("utf-8", "replace")
if self.process:
self.process.stderr.flush()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def print_and_clear_queue(self):
def read_program_output_from_process(self):
while self._still_run_program:
self.process: subprocess.Popen
program_output_data = self._process.stdout.readline(self._program_buffer_size)\
program_output_data = self._process.stdout.readline(self._program_buffer_size) \
.decode("utf-8", "replace")
if self._process:
self._process.stdout.flush()
Expand All @@ -144,7 +144,7 @@ def read_program_output_from_process(self):

def read_program_error_output_from_process(self):
while self._still_run_program:
program_error_output_data = self._process.stderr.readline(self._program_buffer_size)\
program_error_output_data = self._process.stderr.readline(self._program_buffer_size) \
.decode("utf-8", "replace")
if self._process:
self._process.stderr.flush()
Expand Down Expand Up @@ -176,8 +176,6 @@ def start_test_pioneer_process(self):


def init_and_start_test_pioneer_process(ui_we_want_to_set: AutomationEditor, file_path: str):
test_pioneer_process_manager = TestPioneerProcess(
main_window=ui_we_want_to_set, executable_path=file_path)
test_pioneer_process_manager.start_test_pioneer_process()


test_pioneer_process_manager = TestPioneerProcess(
main_window=ui_we_want_to_set, executable_path=file_path)
test_pioneer_process_manager.start_test_pioneer_process()
2 changes: 1 addition & 1 deletion automation_ide/utils/exception/exception_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@

# XML
cant_read_xml_error: str = "can't read XML"
xml_type_error: str = "XML type error"
xml_type_error: str = "XML type error"
11 changes: 6 additions & 5 deletions stable.toml → dev.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Rename to build stable version
# This is stable version
# Rename to dev version
# This is dev version
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "automation_ide"
version = "0.0.49"
name = "automation_ide_dev"
version = "0.0.57"
authors = [
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
]
description = "AutomationEditor for multi automation"
requires-python = ">=3.10"
license-files = ["LICENSE"]
dependencies = [
"je-editor", "je_auto_control", "je_web_runner",
"je_editor_dev", "je_auto_control", "je_web_runner",
"je_load_density", "je_api_testka", "je-mail-thunder",
"automation-file", "PySide6==6.10.0", "test_pioneer"
]
Expand All @@ -35,5 +35,6 @@ Code = "https://github.com/Intergration-Automation-Testing/AutomationEditor"
file = "README.md"
content-type = "text/markdown"


[tool.setuptools.packages]
find = { namespaces = false }
11 changes: 5 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Rename to dev version
# This is dev version
# Rename to build stable version
# This is stable version
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "automation_ide_dev"
version = "0.0.56"
name = "automation_ide"
version = "0.0.50"
authors = [
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
]
description = "AutomationEditor for multi automation"
requires-python = ">=3.10"
license-files = ["LICENSE"]
dependencies = [
"je_editor_dev", "je_auto_control", "je_web_runner",
"je-editor", "je_auto_control", "je_web_runner",
"je_load_density", "je_api_testka", "je-mail-thunder",
"automation-file", "PySide6==6.10.0", "test_pioneer"
]
Expand All @@ -35,6 +35,5 @@ Code = "https://github.com/Intergration-Automation-Testing/AutomationEditor"
file = "README.md"
content-type = "text/markdown"


[tool.setuptools.packages]
find = { namespaces = false }