diff --git a/.github/workflows/Regression_Tests.yaml b/.github/workflows/Regression_Tests.yaml index aa8b454..ae7366c 100644 --- a/.github/workflows/Regression_Tests.yaml +++ b/.github/workflows/Regression_Tests.yaml @@ -24,8 +24,8 @@ jobs: - name: Install Pip Requirements run: pip install -r Regression_Tests/pip_requirements.txt - - name: Run TestDataTable - run: python3 testdatatable/TestDataTable.py -p 1080 + # - name: Run TestDataTable + # run: python3 testdatatable/TestDataTable.py -p 1080 - name: Robot Framework run: > diff --git a/Regression_Tests/__init__.robot b/Regression_Tests/__init__.robot new file mode 100644 index 0000000..bb34d0b --- /dev/null +++ b/Regression_Tests/__init__.robot @@ -0,0 +1,24 @@ +*** Settings *** +Library OperatingSystem +Library Process + +Suite Setup Run TestDataTable + +*** Variables *** +${TDT_portno} 1080 +${TDT_pyfile} ${EXECDIR}${/}testdatatable${/}TestDataTable.py +${TDT_cmd} python3 ${TDT_pyfile} +${TDT_process} None + +*** Keywords *** + +Run TestDataTable + [Arguments] ${options}=None + IF ${options} == None + ${options}= Create List + END + Append To List ${options} -p ${TDT_portno} + Log to console ${\n}\${options}: ${options} + # ${process}= Start Process python3 ${pyfile_agent} @{options} alias=Agent stdout=${OUTPUT DIR}${/}stdout_agent.txt stderr=${OUTPUT DIR}${/}stderr_agent.txt + ${process}= Start Process ${TDT_cmd} @{options} alias=TDT stdout=${OUTPUT DIR}${/}stdout_TDT.txt stderr=${OUTPUT DIR}${/}stderr_TDT.txt + Set Test Variable $TDT_process ${process}