Skip to content

Commit

Permalink
Run TestDataTable in init.robot
Browse files Browse the repository at this point in the history
  • Loading branch information
damies13 committed Mar 22, 2024
1 parent ccb1cd4 commit 885fa6b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Regression_Tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >
Expand Down
24 changes: 24 additions & 0 deletions Regression_Tests/__init__.robot
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit 885fa6b

Please sign in to comment.