Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Develop an automated ECL Watch Test Suite #18861

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
511baa0
HPCC-31857 : Added new step to run ecl watch UI tests, updated step t…
Nisha-Bagdwal Jul 8, 2024
c551066
HPCC-31857 : Added the directory framework and file TestRunner to tes…
Nisha-Bagdwal Jul 10, 2024
520e075
HPCC-31857 : Updated folder name ecl_watch_ui_tests with the older one.
Nisha-Bagdwal Jul 10, 2024
4dae588
HPCC-31857 : Updated yml to fix selenium server run
Nisha-Bagdwal Jul 10, 2024
ff2b674
HPCC-31857 : updated yml
Nisha-Bagdwal Jul 10, 2024
e73d05b
HPCC-31857 : updated yml
Nisha-Bagdwal Jul 10, 2024
d94ff4d
HPCC-31857 : Updated yml
Nisha-Bagdwal Jul 10, 2024
24afc30
HPCC-31857 : Updated yml
Nisha-Bagdwal Jul 10, 2024
fbe4f83
HPCC-31857 : Updated yml
Nisha-Bagdwal Jul 10, 2024
5b7931c
HPCC-31857 : Updated yml
Nisha-Bagdwal Jul 10, 2024
95567f0
HPCC-31857 : Updated yml
Nisha-Bagdwal Jul 10, 2024
45f0941
HPCC-31857 : Updated yml
Nisha-Bagdwal Jul 10, 2024
08356cf
HPCC-31857 : Updated yml
Nisha-Bagdwal Jul 10, 2024
1aee8b2
HPCC-31857 : Updated yml
Nisha-Bagdwal Jul 10, 2024
be12186
HPCC-31857 : Updated yml
Nisha-Bagdwal Jul 10, 2024
4987f94
HPCC-31857 : Updated yml
Nisha-Bagdwal Jul 10, 2024
e792f8c
HPCC-31857 : Updated yml
Nisha-Bagdwal Jul 11, 2024
7fd5f0e
HPCC-31857 : Updated yml
Nisha-Bagdwal Jul 11, 2024
06582c2
HPCC-31857
Nisha-Bagdwal Jul 11, 2024
941b314
HPCC-31857
Nisha-Bagdwal Jul 11, 2024
657ff6a
HPCC-31857 - Modified code to as per updated selenium jar
Nisha-Bagdwal Jul 11, 2024
fb017c2
HPCC-31857 - Changes
Nisha-Bagdwal Jul 12, 2024
9203913
HPCC-31857 - Changes
Nisha-Bagdwal Jul 12, 2024
cc62060
HPCC-31857 - Changes
Nisha-Bagdwal Jul 12, 2024
efbf3df
HPCC-31857 - Changes
Nisha-Bagdwal Jul 12, 2024
10c6572
HPCC-31857 - Changes
Nisha-Bagdwal Jul 12, 2024
7a719f1
HPCC-31857 - Changes
Nisha-Bagdwal Jul 12, 2024
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
6 changes: 3 additions & 3 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,13 @@ jobs:
${{ github.workspace }}/HPCC-Platform/.github/workflows/timeoutcmd
if-no-files-found: error

- name: Upload UI Test Files
- name: Upload ECL Watch UI Test Files
if: ${{ inputs.upload-package == true }}
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.asset-name }}-ui_test-files
name: ${{ inputs.asset-name }}-ecl_watch_ui_tests
path: |
${{ github.workspace }}/HPCC-Platform/esp/src/test-ui/**/*
${{ github.workspace }}/HPCC-Platform/esp/src/test-ui/tests/framework/**/*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here is why that test is failing. There is nothing under tests/framework in this PR. Perhaps he's adding it in at a later time and we can just ignore this for now?

if-no-files-found: error

- name: Upload Error Logs
Expand Down
29 changes: 24 additions & 5 deletions .github/workflows/test-ui-gh_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,13 @@ jobs:
sudo chown root:root /usr/bin/chromedriver
sudo chmod +x /usr/bin/chromedriver
wget https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar
wget http://www.java2s.com/Code/JarDownload/testng/testng-6.8.7.jar.zip
unzip testng-6.8.7.jar.zip
wget https://repo1.maven.org/maven2/org/testng/testng/7.7.1/testng-7.7.1.jar
wget https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.17.0/jackson-annotations-2.17.0.jar
wget https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.17.0/jackson-core-2.17.0.jar
wget https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.17.0/jackson-databind-2.17.0.jar
wget https://repo1.maven.org/maven2/com/beust/jcommander/1.82/jcommander-1.82.jar
wget https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.17.0/selenium-server-4.17.0.jar
java -jar selenium-server-4.17.0.jar standalone

- name: Run Tests
timeout-minutes: 10 # generous, current runtime is ~1min, this should be increased if new tests are added
Expand All @@ -158,12 +163,26 @@ jobs:
[[ $retCode -ne 0 ]] && exit 1
popd

- name: eclwatch-ui-test-logs-artifact
- name: Run ECL Watch UI Tests
timeout-minutes: 80 # generous, current runtime is ~38 minutes, this should be increased if new tests are added
if: steps.check.outputs.runtests
shell: "bash"
run: |
export CLASSPATH=".:${{ github.workspace }}/selenium-server-4.17.0.jar:${{ github.workspace }}/testng-7.7.1.jar:${{ github.workspace }}/jackson-annotations-2.17.0.jar:${{ github.workspace }}/jackson-core-2.17.0.jar:${{ github.workspace }}/jackson-databind-2.17.0.jar:${{ github.workspace }}/jcommander-1.82.jar"
pushd ${{ inputs.asset-name }}-ecl_watch_ui_tests
find ${{ inputs.asset-name }}-ecl_watch_ui_tests -iname '*.java' -type f -exec javac {} \;
java TestRunner detail
echo "ECL Watch UI test done"
lines=$(wc -l < error_ecl_test.log)
[[ $lines -ne 0 ]] && exit 1
popd

- name: Upload ECL Watch UI Test Logs To Artifact
if: ${{ failure() || cancelled() }}
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.asset-name }}-ui_test-logs
name: ${{ inputs.asset-name }}-ecl_watch_ui_tests
path: |
${{ inputs.asset-name }}-ui_test-files/eclWatchUiTest.log
${{ inputs.asset-name }}-ecl_watch_ui_tests/*.log
/home/runner/HPCCSystems-regression/log/*.json
if-no-files-found: error
Loading