Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
250 commits
Select commit Hold shift + click to select a range
ab606e4
CI with multiple series
lakooi Jun 2, 2020
103b512
trying to checkout
lakooi Jun 2, 2020
cbb6136
more tests
lakooi Jun 2, 2020
d0afb4c
Merged master to dev when releasing 0.3.0
vade5g Jun 3, 2020
cda99a2
Updated gitignore
jpsalo Jun 3, 2020
ca27ba8
Suite instability bar chart
jpsalo Jun 3, 2020
fc73a0c
Turn on trailing commas in Prettier
jpsalo Jun 4, 2020
3787988
Interactive chart PoC
jpsalo Jun 4, 2020
3adaf42
Use selected history data in dashboard
jpsalo Jun 4, 2020
dd868d2
Tests + metadata
lakooi Jun 5, 2020
c0d48e8
Fixes to code quality
lakooi Jun 5, 2020
cf3a826
Merge pull request #78 from salabs/feature/more-tests
lakooi Jun 8, 2020
5dd6c76
graphs folder with graph components
turso-otus Jun 8, 2020
f640149
added apexcharts, status count pie chart skeleton
turso-otus Jun 10, 2020
7043545
added new colors, added pie chart for suite and test status
turso-otus Jun 15, 2020
c83c17b
codacy fixes
turso-otus Jun 16, 2020
e3225c8
codacy fix
turso-otus Jun 16, 2020
b7a0af6
Merge pull request #80 from salabs/feature/suite-instability
turso Jun 24, 2020
822e6fb
version upgrade 0.3.1
Jun 29, 2020
85daec2
Merge pull request #81 from salabs/version_upgrade/0.3.1
vade5g Jun 29, 2020
624b7c0
Parent data to Dashboard
turso-otus Jun 29, 2020
51c28e4
Build data shown in history / dasboard series view
turso-otus Jun 29, 2020
cabbdab
translations
turso-otus Jun 29, 2020
9c67c76
translations
turso-otus Jun 29, 2020
2565fef
conflicts
turso-otus Jun 29, 2020
187bbcd
Merge pull request #82 from salabs/feature/parent-data-dashboard-history
vade5g Jul 1, 2020
ba8427a
Timelinechart skeleton, unmount data on History series page
turso-otus Jul 1, 2020
513427f
DashboardList Component
lakooi Jul 2, 2020
d881f7d
Removed unused Link
lakooi Jul 2, 2020
548d419
merged this to one const
lakooi Jul 2, 2020
c0480e4
made a comment for the data manipulation
lakooi Jul 2, 2020
b99cb35
Removed amountoftests and setAmountofTests as they were not used
lakooi Jul 2, 2020
4c6b946
Codacy fixes
lakooi Jul 2, 2020
aea1890
Changed the wrong reducer in last commit fixed now, also wishing to f…
lakooi Jul 2, 2020
221d9ce
Made the choosing of table little smarter, still kinda true/false
lakooi Jul 2, 2020
69dc03c
Merge branch 'develop' into feature/dashboard-list-component
lakooi Jul 2, 2020
a370a64
Merge pull request #83 from salabs/feature/dashboard-list-component
turso Jul 2, 2020
db0361f
TimeLineChart data
turso-otus Jul 2, 2020
0344a0d
changes some app state to local, area chart
turso-otus Jul 3, 2020
69dd104
conflicts
turso-otus Jul 3, 2020
e0f9ac1
moving things to right places
turso-otus Jul 3, 2020
eac8536
codacy fixes
turso-otus Jul 3, 2020
094d209
pr comment fix
turso-otus Jul 3, 2020
50f3c14
Merge pull request #84 from salabs/feature/time-series-graph
vade5g Jul 3, 2020
87a6884
Initial commit for switch from emotion to styled components, 4 files …
lakooi Jul 9, 2020
da850a8
There should be no emotion left with this commit
lakooi Aug 3, 2020
be70a59
Some cleaning
lakooi Aug 4, 2020
6c724bf
Fix for clock and added click event to display full error through alert
lakooi Aug 6, 2020
20c2d6e
TimeLineChart shows only builds that have test cases
turso-otus Aug 6, 2020
05115ab
codacy
turso-otus Aug 6, 2020
cd7211f
Removing emotion from package.json
lakooi Aug 6, 2020
35803f2
Codacy
lakooi Aug 6, 2020
49d6188
removed dispatch from useEffect, so it wouldn't launch everytime some…
turso-otus Aug 6, 2020
24201cb
This id was changed to class, reverted it
lakooi Aug 6, 2020
11a8517
Merge pull request #85 from salabs/bugfix/timeLineChart
lakooi Aug 7, 2020
3d72d4c
Revert changes on flushing, dashboard stuff
lakooi Aug 10, 2020
6bd1103
codacy fix
lakooi Aug 10, 2020
976b1cc
TimeLineChart conflict fixes
turso-otus Aug 10, 2020
7f136f8
Merge branch 'develop' into feature/styled-components
turso Aug 10, 2020
d93b3e9
Merge pull request #86 from salabs/feature/styled-components
turso Aug 10, 2020
8cadc9e
timeline chart fixes, background color to charts, container position …
turso-otus Aug 11, 2020
9ce700a
translations to dashboard, dashboard graph table height size fit
turso-otus Aug 11, 2020
8cf2c8a
Merge pull request #87 from salabs/feature/timelinechart-visuals
turso Aug 11, 2020
7210417
team card routes to dashboard
turso-otus Aug 12, 2020
c5d5331
Styling for component width, height, highlighting and amount of builds
lakooi Aug 12, 2020
bd2bb62
header component
turso-otus Aug 12, 2020
f3dc3e9
Merge pull request #88 from salabs/feature/dashboard-universalBuildAm…
turso Aug 12, 2020
37ff1ab
header fixes
turso-otus Aug 12, 2020
502596e
Merge branch 'develop' into feature/navigation-layout-fixes
turso-otus Aug 12, 2020
99e2a30
lastBuildElement initial commit
lakooi Aug 12, 2020
cfbcabb
Rebased develop to branch
lakooi Aug 12, 2020
046aacb
nav buttons removed, new slide buttons, translations, dead code away
turso-otus Aug 13, 2020
032b21b
suite header, translations, suite state flush
turso-otus Aug 13, 2020
1c10212
codacy fixes
turso-otus Aug 13, 2020
e7833d4
codacy tests
turso-otus Aug 13, 2020
a9303a6
Merge pull request #89 from salabs/feature/navigation-layout-fixes
turso Aug 13, 2020
ccfba6c
Changes to end-to-end + some IDs
lakooi Aug 13, 2020
f8a303c
Merge
lakooi Aug 13, 2020
450b8c6
dashboard to overview
turso-otus Aug 13, 2020
3946c5c
Added new identifiers to make tests more sturdy
lakooi Aug 13, 2020
5acb886
Fixes to test cases
lakooi Aug 13, 2020
37137a0
Merge pull request #91 from salabs/feature/NavigationTestFixes
turso Aug 13, 2020
6d3c29d
Rebased develop to branch
lakooi Aug 12, 2020
bf86f45
rebasing develop again
lakooi Aug 13, 2020
f109e51
hmmm
lakooi Aug 13, 2020
0f89a3b
codacy fixes
turso-otus Aug 13, 2020
3c31137
still codacy md??
turso-otus Aug 13, 2020
042ec24
Merge branch 'develop' into feature/dashboard-to-overview
turso-otus Aug 13, 2020
e9485a4
Delete get-pip.py
turso Aug 13, 2020
f284a90
removed dashboard.js
turso-otus Aug 13, 2020
4ba0b09
Merge branch 'feature/dashboard-to-overview' of https://github.com/sa…
turso-otus Aug 13, 2020
f0c2cb8
couple of file name changes missing
turso-otus Aug 13, 2020
7d94407
Merge pull request #90 from salabs/feature/dashboard-to-overview
turso Aug 14, 2020
ce54142
Pie chart basic styling
turso-otus Aug 14, 2020
c7d3aa1
Failure stats in table
lakooi Aug 14, 2020
18158e2
Rebased develop to branch
lakooi Aug 12, 2020
8b6861e
rebasing develop again
lakooi Aug 13, 2020
aac2afc
Changes to end-to-end + some IDs
lakooi Aug 13, 2020
fb4c5c2
lastBuildElement initial commit
lakooi Aug 12, 2020
af3f961
Failure stats in table
lakooi Aug 14, 2020
b32c5b1
Should be rebased now
lakooi Aug 14, 2020
f3f511e
Removed git merge line
lakooi Aug 14, 2020
569ce23
Delete dashboard.robot
lakooi Aug 14, 2020
d151d06
Fixed wrong indentation in robot-tests
lakooi Aug 14, 2020
e844df0
Merge pull request #92 from salabs/feature/LastBuildElement
turso Aug 14, 2020
a35064b
Merge remote-tracking branch 'origin/develop' into feature/piechart-l…
turso-otus Aug 14, 2020
a34ff1a
merge and slight chantes
turso-otus Aug 14, 2020
20ce5f0
Merge pull request #93 from salabs/feature/piechart-layout
lakooi Aug 14, 2020
618f9d8
Testing moving the fetching of data up in hierarchy, fixed build page…
lakooi Aug 14, 2020
4d0ed5e
Removed last build from series overview
lakooi Aug 14, 2020
b8069a9
Few Changes
lakooi Aug 14, 2020
d579fdb
Fixes for unmount error
lakooi Aug 17, 2020
7dba46c
Merge pull request #94 from salabs/feature/FixBuildBreadsAnd404
turso Aug 17, 2020
c7a2666
styled components html param fix
turso-otus Aug 17, 2020
b9a9338
parent table headers without underscore and more width in bigger screens
turso-otus Aug 17, 2020
13ad933
fixes the status_counts api for multirun builds
Muusssi Aug 17, 2020
95d4a6f
Name fixes, pie chart error data fix, remove dead code
turso-otus Aug 17, 2020
5b6ad5e
tidy up code
turso-otus Aug 17, 2020
daa0b84
Quick fix for breadcrumb
lakooi Aug 18, 2020
00436e4
Merge pull request #96 from salabs/fix/styled-component-parameters
lakooi Aug 18, 2020
9c522dd
Merge pull request #97 from salabs/feature/parentBuildStateFix
turso Aug 18, 2020
90e439a
Robot tests for testing breadcrumbs
lakooi Aug 20, 2020
61c567b
more for breadcrumbs
lakooi Aug 20, 2020
e7509ef
Robot tests for testing breadcrumbs
lakooi Aug 20, 2020
07a4f30
more for breadcrumbs
lakooi Aug 20, 2020
1f806cf
Testing suite + all breadcrumbs
lakooi Aug 21, 2020
52b6f03
For some reason merge
lakooi Aug 21, 2020
9fb1a7e
Revert "For some reason merge"
lakooi Aug 21, 2020
c4779c0
Removed comments
lakooi Aug 21, 2020
0b5a003
Removed unnecessary keywords line
lakooi Aug 21, 2020
f26c1fd
Added more waits to verify that correct breadcrumbs are loaded
lakooi Aug 21, 2020
880d489
more waits to be sure of correct breadcrumb values
lakooi Aug 21, 2020
87259c5
Trying to fix load order being buggy
lakooi Aug 21, 2020
7da3cbf
Had useless fetch data
lakooi Aug 21, 2020
d236702
Accidentally broke parentbuild with last commit, fix for that + chang…
lakooi Aug 21, 2020
b5a4f39
Codacy whitespace
lakooi Aug 21, 2020
d204f86
Merge pull request #98 from salabs/feature/DashboardTesting
turso Aug 24, 2020
5aaf4cf
log message expands onclick if the message is too long
turso-otus Aug 24, 2020
561d3c2
unused code
turso-otus Aug 24, 2020
ffe3e36
cleaned code
turso-otus Aug 24, 2020
f4889ce
Merge pull request #99 from salabs/fix/quick-demo-fixes
turso Aug 24, 2020
874bdbc
link to series timelinechart, icons to suiteinstability table
turso-otus Aug 25, 2020
aeb2ac2
remove console.log
turso-otus Aug 25, 2020
de17cff
codacy fixes
turso-otus Aug 25, 2020
8d2f71a
codacy fixes part 2
turso-otus Aug 25, 2020
f099df8
dead code
turso-otus Aug 25, 2020
a6473d2
pr comment fixes
turso-otus Aug 26, 2020
76288a6
Series overview page wait until graphs are loaded
lakooi Aug 26, 2020
ceeb1db
Merge pull request #100 from salabs/fix/timelinechart-hotfix
turso Aug 26, 2020
3e6cd84
updated color schemes, added new icons as svgs inside the project
turso-otus Aug 26, 2020
c95fe04
merge conflicts
turso-otus Aug 26, 2020
13a4063
merge conflicts vol 2
turso-otus Aug 26, 2020
8710412
suite icons placement
turso-otus Aug 26, 2020
6e6e370
robot tests2
turso-otus Aug 26, 2020
263b5fd
robot test fixes
turso-otus Aug 26, 2020
da9dc9a
console logs
turso-otus Aug 26, 2020
99d821e
header basic
turso-otus Aug 26, 2020
02be291
footer
turso-otus Aug 27, 2020
fa80569
FrontPage icons, Teams page little fixes
turso-otus Aug 27, 2020
11dab5c
locales for frontpage
turso-otus Aug 27, 2020
053339e
Merge pull request #101 from salabs/feature/layout/color-schemes-and-…
turso Aug 27, 2020
6bafd4a
robot test fixes
turso-otus Aug 27, 2020
6212b9c
robot test fixes
turso-otus Aug 27, 2020
6741349
css main min-height to position footer
turso-otus Aug 28, 2020
7b31c37
Changing testArchiver version from 0.0.4 to 0.0.3
lakooi Aug 28, 2020
70c1a6e
Added wait until element does not contain empty string + Changed seri…
lakooi Aug 28, 2020
f3fcddf
Merge pull request #102 from salabs/feature/layout-navbar
turso Aug 28, 2020
7efc7ea
better footer positioning
turso-otus Aug 29, 2020
2cc835f
breadcrumb and toggle button between history and overview
turso-otus Aug 29, 2020
f9c87b6
last build information box, header text fixes
turso-otus Aug 30, 2020
825580c
new icons, metadata table, hook to fetch metadata, ParentTable
turso-otus Aug 31, 2020
acbc737
js to jsx and moving styles to own files
turso-otus Aug 31, 2020
30c7d3c
font fixes
turso-otus Aug 31, 2020
7057c69
codacy
turso-otus Aug 31, 2020
632284a
codacy fixes
turso-otus Aug 31, 2020
fd02bee
codacy vol.3
turso-otus Aug 31, 2020
aa77d15
Fixes for test automation
lakooi Aug 31, 2020
92469d1
useMetada hook error handling and flushmetada reducer
turso-otus Sep 1, 2020
57575bd
Merge branch 'feature/layout-metadata' of https://github.com/salabs/E…
turso-otus Sep 1, 2020
affba1a
robot test fixes. Metadata page should wait for Metadata to be loaded…
turso-otus Sep 1, 2020
3ad31c1
metadata page refresh problems
turso-otus Sep 1, 2020
130d204
useMetadata filename pathing
turso-otus Sep 1, 2020
313940e
Merge pull request #103 from salabs/feature/layout-metadata
turso Sep 1, 2020
b3fc462
Testing context
lakooi Sep 2, 2020
a91ccd9
Removed tester for env added testing to pull request
lakooi Sep 2, 2020
c6ae24b
Fixed syntax error
lakooi Sep 2, 2020
11b5c0c
Test now with headrefs and series
lakooi Sep 2, 2020
4e27e0a
Fixing command syntax
lakooi Sep 2, 2020
867ef72
Merge pull request #104 from salabs/fix/CI_testarchiver_series_fix
Muusssi Sep 4, 2020
b37b354
basic table layout
turso-otus Sep 4, 2020
a2f1fb7
table border radius fixes
turso-otus Sep 4, 2020
bd315b6
layout vol3
turso-otus Sep 4, 2020
ddc99b3
build table layout finished
turso-otus Sep 7, 2020
3aca5d1
build table final touches
turso-otus Sep 7, 2020
b170b4e
Re-arrange folder structure, delete unnessery files. Build table hove…
turso-otus Sep 7, 2020
7937435
i18n translations for history build
turso-otus Sep 8, 2020
601ad3c
Use testarchiver 2.0.0 for archiving ent-to-end tests
Muusssi Sep 8, 2020
bda8a7d
Merge pull request #95 from salabs/feature/fix_status_counts_api_for_…
Muusssi Sep 8, 2020
fd6889e
Merge pull request #106 from salabs/feature/testarchiver_2_0_with_tests
Muusssi Sep 8, 2020
924752a
robot tests fixes, checkbox translations
turso-otus Sep 8, 2020
10b5e5f
robot text fix attempt
turso-otus Sep 8, 2020
b25c861
Changing testarchiver to use correct version
lakooi Sep 9, 2020
e7e01df
Artifact for ci and fixes to tests
lakooi Sep 9, 2020
6cd6e0b
testing failure response
lakooi Sep 9, 2020
eebd0f2
Hmmm Will this work
lakooi Sep 9, 2020
7408730
I do not understand why this file has a upper case intial letter
lakooi Sep 9, 2020
2b9fd06
Merge pull request #105 from salabs/feature/table-layout
turso Sep 9, 2020
e990dd8
Series table layout
turso-otus Sep 14, 2020
9771f82
codacy fixes
turso-otus Sep 14, 2020
8aceaac
codacy fixes vol2
turso-otus Sep 14, 2020
a3a12d0
Merge pull request #107 from salabs/feature/series-table-layout
lakooi Sep 15, 2020
24f3909
Initial commit with buttons
lakooi Sep 15, 2020
825aa01
color palette update
turso-otus Sep 15, 2020
ab91b32
translations, modular metadata table, suite metadata table
turso-otus Sep 15, 2020
4929776
metadata table transition fixes
turso-otus Sep 15, 2020
c92677e
buttons
lakooi Sep 15, 2020
a021655
robot test fixes
turso-otus Sep 16, 2020
f12987a
robot test fixes
turso-otus Sep 16, 2020
a5862fe
Suite slight data fixes
turso-otus Sep 16, 2020
c41a24d
Trying to fix tests
lakooi Sep 16, 2020
71c1e20
breadcrumb coloring properties
turso-otus Sep 16, 2020
646f6c9
Merge branch 'feature/suite-layout-metadata' of https://github.com/sa…
turso-otus Sep 16, 2020
a9583df
This should now work
lakooi Sep 17, 2020
0dddce2
styling vol.1 to button layout
turso-otus Sep 17, 2020
aff0de1
conflicts
turso-otus Sep 17, 2020
377fd1f
styling vol2 unfinished
turso-otus Sep 17, 2020
e8e0131
merging metadata layout
turso-otus Sep 17, 2020
0cb2af4
final styling
turso-otus Sep 17, 2020
17f8740
container width smaller
turso-otus Sep 17, 2020
2ef4097
Merge pull request #108 from salabs/feature/suite-layout-metadata
turso Sep 17, 2020
85b998c
Fixes to tests
lakooi Sep 18, 2020
02880d7
Added offset and build selector to overview page
lakooi Sep 18, 2020
36b8952
basic layout
turso-otus Sep 18, 2020
59a4e01
styling part2
turso-otus Sep 18, 2020
1837b0c
stylings vol3
turso-otus Sep 18, 2020
edc14fd
final styles
turso-otus Sep 18, 2020
b92cdc9
merge function to 1
lakooi Sep 21, 2020
863a47c
Simplify the method
lakooi Sep 21, 2020
2408e82
Changed to function to remove weird return
lakooi Sep 21, 2020
12340de
codacy
lakooi Sep 21, 2020
10fc0cb
COrrect variable name, codacyfix v2
lakooi Sep 21, 2020
8480c1b
Merge pull request #109 from salabs/feature/series-table-buttons
lakooi Sep 21, 2020
944f47c
Merge branch 'develop' into feature/suite-layout-testlist
turso-otus Sep 21, 2020
ea4a085
Merge pull request #110 from salabs/feature/suite-layout-testlist
turso Sep 21, 2020
a478a33
basic styling for log messages
turso-otus Sep 21, 2020
4b95730
remove console logs
turso-otus Sep 21, 2020
8152543
better file folder structure
turso-otus Sep 21, 2020
8425685
Merge pull request #111 from salabs/feature/suite-layout-loglist
lakooi Sep 22, 2020
eb51c6e
version 1.0.0
turso-otus Sep 22, 2020
104ed4f
version 1.0.0 update backend
turso-otus Sep 22, 2020
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
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
TEST_DATABASE: ${{ secrets.Test_Database }}
run: |
./run-docker.sh
- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: robot_logs
path: ./end_to_end_tests/logs
- name: Stop End-to-End tests
env: # Env variable from Github Secrets
TEST_DATABASE: ${{ secrets.Test_Database }}
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ test/*
.vscode/
robot_test/logs/
*.env
*.pyc
*.pyc

xeno
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Epimetheus offers a dashboard/UI to visualize data from [TestArchiver](https://g

### Requirements

1) PostgreSQL database with archived result data
2) `Python v3+`
3) `Node.js v10+`
1. PostgreSQL database with archived result data
2. `Python v3+`
3. `Node.js v10+`

### Database

Expand All @@ -19,7 +19,7 @@ Currently the only supported database engine is PostgreSQL. It can be local or c
### Backend

If you have multiple python installations on your machine, remember to use the 'python3' postfix,
also with pip you might need to use 'pip3' to make sure the requirements get installed with the right python.
also with pip you might need to use 'pip3' to make sure the requirements get installed with the right python.

```
cd backend-server
Expand Down
4 changes: 2 additions & 2 deletions backend_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
def load_config_file(file_name):
with open(file_name, 'r') as file:
return json.load(file)

VERSION_NUMBER = "1.0.0"

@register_swagger_model
class SeriesModel:
Expand Down Expand Up @@ -202,7 +202,7 @@ def __init__(self, database):
setup_swagger(handlers,
swagger_url="/data/doc",
description='Project repo at https://github.com/salabs/Epimetheus',
api_version='0.3.0',
api_version=VERSION_NUMBER,
title='Epimetheus backend API')
tornado.web.Application.__init__(self, handlers, **settings)

Expand Down
4 changes: 2 additions & 2 deletions backend_server/sql_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def status_counts(series, start_from, last, offset=0):
count(nullif(status !~ '^FAIL', true)) as suites_failed,
count(nullif(status !~ '^SKIP', true)) as suites_skipped,
count(nullif(status ~ '^((SKIP)|(PASS)|(FAIL))', true)) as suites_other,
build_start_time,
min(build_start_time) as build_start_time,
build_id,
build_number
FROM (
Expand Down Expand Up @@ -211,7 +211,7 @@ def status_counts(series, start_from, last, offset=0):
) AS status_per_test
GROUP BY suite_id, build_number, build_id
) AS status_per_suite
GROUP BY build_number, build_id, build_start_time
GROUP BY build_number, build_id
ORDER BY build_number DESC
""".format(series=int(series), # nosec
test_run_ids=test_run_ids(series, start_from=start_from, last=last, offset=offset))
Expand Down
9 changes: 9 additions & 0 deletions docker-compose-robot-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ services:
dockerfile: ./resources/Dockerfile
env_file:
- ${ENV_FILE}
environment:
CI_PIPELINE_ID: ${GITHUB_WORKFLOW}
CI_COMMIT_REF_NAME: ${GITHUB_HEAD_REF}
CI_COMMIT_SHA: ${GITHUB_SHA}
CI_REPOSITORY: ${GITHUB_REPOSITORY}
CI_RUN_NUMBER: ${GITHUB_RUN_NUMBER}
CI_RUN_ID: ${GITHUB_RUN_ID}
CI_USERNAME: ${GITHUB_ACTOR}
CI_EVENT_NAME: ${GITHUB_EVENT_NAME}
volumes:
- ./end_to_end_tests/logs:/home/robot/test/logs
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion end_to_end_tests/resources/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ADD variables.py .

RUN pip install -r requirements.txt

RUN pip install -i https://test.pypi.org/simple/ testarchiver==0.0.4
RUN pip install testarchiver==2.0.0

RUN chown -R robot:robot /home/robot
RUN mkdir /home/robot/test/logs
Expand Down
15 changes: 15 additions & 0 deletions end_to_end_tests/resources/Libraries/Helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,18 @@ def set_number(self, number):
@keyword
def get_number(self):
return self.value

@keyword
def get_build_info(self, series, build):
r = requests.get(self.host+"data/series/" + series + "/builds/" + build + "/info?")
return r.json()["series"]

@staticmethod
@keyword
def get_team_from_info(info):
return(info["team"])

@staticmethod
@keyword
def get_series_from_info(info):
return(info["name"])
77 changes: 77 additions & 0 deletions end_to_end_tests/resources/general_keywords/breadcrumbs.robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
***Settings***
Resource ../resource.robot

*** Keywords ***

Navigate to series overview page using breadcrumbs
Wait Until Element is Enabled ${series_breadcrumb}
Click Element ${series_breadcrumb}

Navigate to team page using breadcrumbs
Wait Until Element is Enabled ${team_breadcrumb}
Click Element ${team_breadcrumb}

Navigate to build overview page using breadcrumbs
Wait Until Element is Enabled ${build_breadcrumb}
Click Element ${build_breadcrumb}

Team page breadcrumb should contain correct value
[Arguments] ${team}
Wait Until Element Is Enabled ${team_breadcrumb}
Wait Until Element Does Not Contain ${team_breadcrumb} ''
Element Should Contain ${team_breadcrumb} ${team}

Series page breadcrumbs should contain correct values
[Arguments] ${series} ${team}
Wait Until Element Is Enabled ${series_breadcrumb}
Team page breadcrumb should contain correct value ${team}
Element Should Contain ${series_breadcrumb} ${series}

Build page breadcrumbs should contain correct values
[Arguments] ${build} ${series} ${team}
Wait Until Element Is Enabled ${build_breadcrumb}
Series page breadcrumbs should contain correct values ${series} ${team}
Element Should Contain ${build_breadcrumb} ${build}

Suite page breadcrumbs should contain correct values
[Arguments] ${suite} ${build} ${series} ${team}
Wait Until Element Is Enabled ${suite_breadcrumb}
Build page breadcrumbs should contain correct values ${build} ${series} ${team}
Element Should Contain ${suite_breadcrumb} ${suite}

Series overview page should be of stored series
[Arguments] ${series}
Wait Until Element Is Enabled ${timeline_locator}
Element Should Contain ${siteHeader} ${series}
Element Should Contain ${series_breadcrumb} ${series}

Build overview page should be of stored build
[Arguments] ${build}
Wait Until Element Is Enabled ${buildOverviewContainer}
Element Should Contain ${build_identifier} ${build}
Element Should Contain ${siteHeader} ${build}
Element Should contain ${build_breadcrumb} ${build}

Team page should be of stored team
[Arguments] ${team}
Location should contain ${team}

Store team and series of series history page
Wait Until Element Is Enabled ${lastRunInfo}
${temp_stored_team}= Get Text ${team_identifier}
${temp_stored_series}= Get Text ${series_identifier}

Set Suite Variable ${stored_team} ${temp_stored_team}
Set Suite Variable ${stored_series} ${temp_stored_series}

Store the team, series and build of build page
Store team and series of series history page
Wait Until Element Is Enabled ${lastRunInfo}
${temp_stored_build}= Get Text ${build_identifier}
Set Suite Variable ${stored_build} ${temp_stored_build}

Store the team, series, build and suite of a suite page
Wait Until Element Is Enabled ${suite_id_locator}
Store the team, series and build of build page
${temp_stored_suite}= Get Text ${suite_id_locator}
Set Suite Variable ${stored_suite} ${temp_stored_suite}
79 changes: 70 additions & 9 deletions end_to_end_tests/resources/general_keywords/navigation.robot
Original file line number Diff line number Diff line change
@@ -1,16 +1,77 @@
*** Keywords ***

Current Page Is
Current Page Is
[Arguments] ${url}
Go To ${url}

Page contains id
[Arguments] ${id}
Element should be Enabled ${id}

Id contains
[Arguments] ${id} ${1} ${2} ${3}
Element Should Contain ${id} ${1}
Element Should Contain ${id} ${2}
Element Should Contain ${id} ${3}
${page} = Log Location
Element should be Enabled ${id}

Open Team Page
Go To url=${team_url}


Open Index Page
Go To url=${URL}

Open Series Page of Team
[Arguments] ${team}
${url} = Catenate SEPARATOR= ${team_url} ${team}
Go To ${url}

Open a build
[Arguments] ${series} ${build}
${str}= Catenate SEPARATOR= ${url} series/ ${series} /build/ ${build} /history
Set Suite Variable ${navigated_series} ${series}
Set Suite Variable ${navigated_build} ${build}
Go To ${str}
Wait Until Element is Enabled ${lastRunInfo}


Open history page of series
[Arguments] ${series}
${str}= Catenate SEPARATOR= ${history_url} ${series} /history
Current Page Is url=${str}
${url}= Get Location
Set Suite Variable ${navigated_series} ${series}
Should be equal as Strings ${url} ${str}
Wait Until Element is Enabled ${lastRunInfo}


Open overview page of series
[Arguments] ${series}
${str}= Catenate SEPARATOR= ${history_url} ${series} /overview
Current Page Is url=${str}
${url}= Get Location
Set Suite Variable ${navigated_series} ${series}
Should be equal as Strings ${url} ${str}
Wait Until Element is Enabled ${timeline_locator}


Open overview page of build
[Arguments] ${series} ${build}
${url}= Catenate SEPARATOR= ${url} series/ ${series} /build/ ${build} /overview
Set Suite Variable ${navigated_series} ${series}
Set Suite Variable ${navigated_build} ${build}
Go To ${url}
Wait Until Element is Enabled ${buildOverviewContainer}

Open a suite
[Arguments] ${series} ${build} ${suite}
${url}= Catenate SEPARATOR= ${url} series/ ${series} /build/ ${build} /suite/ ${suite} /history
Set Suite Variable ${navigated_series} ${series}
Set Suite Variable ${navigated_build} ${build}
Set Suite Variable ${navigated_suite} ${suite}
Go To ${url}
Wait Until Element is Enabled ${lastRunInfo}


Navigate to first suite of build
[Arguments] ${series} ${build}
${url}= Catenate SEPARATOR= ${url} series/ ${series} /build/ ${build} /history
Go To ${url}
Wait Until Element is Enabled ${first_suite}
Click Element ${first_suite}
Wait Until Element is Enabled ${suite_id_locator}
Wait Until Element is Enabled ${lastRunInfo}
2 changes: 2 additions & 0 deletions end_to_end_tests/resources/page_locators/build_overview.robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
***Variables***
${buildOverviewContainer} //*[@id="buildGraphDiv"]
15 changes: 8 additions & 7 deletions end_to_end_tests/resources/page_locators/build_page.robot
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
***Variables***
${fail_checkbox_locator} //*[@id="last-run-checkbox-container"]/label[1]/input
${pass_checkbox_locator} //*[@id="last-run-checkbox-container"]/label[2]/input
${table_locator} //*[@id="last-run-table"]/tbody
${table_row_locator} //*[@id="last-run-table"]/tbody/tr
${fail_checkbox_locator} xpath://*[@id="last-run-checkbox-container"]/label[1]/span
${pass_checkbox_locator} xpath://*[@id="last-run-checkbox-container"]/label[2]/span
${table_locator} xpath://*[@id="last-run-table"]/tbody
${table_row_locator} xpath://*[@id="last-run-table"]/tbody/tr

${pass_span} xpath://*[@id="last-run-table"]/tbody/tr[*]/td[*]/span[text()='Pass']
${fail_span} xpath://*[@id="last-run-table"]/tbody/tr[*]/td[*]/span[text()='Fail']
${last_run_table} xpath://*[@id="last-run-table"]

${pass_span} //*[@id="last-run-table"]/tbody/tr[*]/td[*]/span[text()='Pass']
${fail_span} //*[@id="last-run-table"]/tbody/tr[*]/td[*]/span[text()='Fail']
${last_run_table} //*[@id="last-run-table"]
${first_suite} xpath://*[@id="last-run-table"]/tbody/tr[1]/td[1]/a
2 changes: 1 addition & 1 deletion end_to_end_tests/resources/page_locators/help_page.robot
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
***Variables***
${HELP_PAGE_WELCOME_ELEMENT} //*[@id="frontpage"]/h1
${HELP_PAGE_WELCOME_ELEMENT} xpath://*[@id="frontpage"]/h1
22 changes: 21 additions & 1 deletion end_to_end_tests/resources/page_locators/history_page.robot
Original file line number Diff line number Diff line change
@@ -1,2 +1,22 @@
***Variables***
${table_header_xpath} //*[@id="history-table-head"]/tr/th
${table_header_xpath} xpath://*[@id="history-table-head"]/tr/th
${series_history_dropdown} xpath://*[@id="build_amount_dropdown"]

${history_build_selector_5} xpath://*[@id="react-select-2-option-0"]
${history_build_selector_10} xpath://*[@id="react-select-2-option-1"]
${history_build_selector_15} xpath://*[@id="react-select-2-option-2"]
${history_build_selector_30} xpath://*[@id="react-select-2-option-3"]


${offset_latest} xpath://*[@id="latest_offset_button"]
${offset_field} xpath://*[@id="offset_field"]
${offset_left} xpath://*[@id="left_offset_button"]
${offset_right} xpath://*[@id="right_offset_button"]
${series_history_most_recent} //*[@id="history-table-head"]/tr/th[3]/a
${series_history_second_recent} //*[@id="history-table-head"]/tr/th[4]/a
${series_history_third_recent} //*[@id="history-table-head"]/tr/th[5]/a

${enabled_offset_right} xpath://*[contains(@class, 'rightfalse')]
${enabled_offset_left} xpath://*[contains(@class, 'leftfalse')]
${disabled_offset_right} xpath://*[contains(@class, 'rightrue')]
${disabled_offset_left} xpath://*[contains(@class, 'leftrue')]
10 changes: 7 additions & 3 deletions end_to_end_tests/resources/page_locators/nav_bar.robot
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
***Variables***
${NAV_HOMEPAGE} xpath://*[@id="main-nav"]/ul/li[1]/a
${NAV_HISTORY} xpath://*[@id="main-nav"]/ul/li[2]/a
${NAV_GITHUB} xpath://*[@id="main-nav"]/ul/li[3]/a
${NAV_HOMEPAGE} xpath://*[@id="main-nav"]/div/a[1]
${NAV_TEAM} xpath://*[@id="main-nav"]/div/a[2]
${NAV_GITHUB} xpath://*[@id="main-nav"]/div/a[3]


${INNER_HISTORY} xpath://*[@id="main-nav"]/ul/div/li[1]/a
${INNER_DASHBOARD} xpath://*[@id="main-nav"]/ul/div/li[2]/a
3 changes: 3 additions & 0 deletions end_to_end_tests/resources/page_locators/overview.robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
***Variables***
${timeline_locator} xpath://*[@id="timeLineContainer"]
${siteHeader} xpath://*[@id="siteHeader"]
7 changes: 5 additions & 2 deletions end_to_end_tests/resources/page_locators/series_page.robot
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
***Variable***
${series_xpath} //*[@id="selectedTeam"]/div[2]/div[1]/div[2]/div[1]/h4
***Variables***
${series_xpath} xpath://*[@id="selectedTeam"]/div[2]/div[1]/div[2]/div[1]/h4
${series_list} xpath://*[@id="selectedTeam"]/div[2]/div[*]
${team_breadcrumb} xpath://*[@id="TeamBreadCrumb"]
${series_click_elements} xpath://*[@id="selectedTeam"]/div[2]/div[*]/div[2]/div[1]
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
***Variables**
${team_breadcrumb} xpath://*[@id="TeamBreadCrumb"]
${series_breadcrumb} xpath://*[@id="SeriesBreadCrumb"]
${build_breadcrumb} xpath://*[@id="BuildBreadCrumb"]

${team_identifier} xpath://*[@id="lastRunInfo"]/p[1]/span[2]
${series_identifier} xpath://*[@id="lastRunInfo"]/p[2]/span[2]
${build_identifier} xpath://*[@id="lastRunInfo"]/p[3]/span[2]
${lastRunInfo} xpath://*[@id="lastRunInfo"]/p
3 changes: 3 additions & 0 deletions end_to_end_tests/resources/page_locators/suite_page.robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
***Variables***
${suite_breadcrumb} xpath://*[@id="SuiteBreadCrumb"]
${suite_id_locator} xpath://*[@id="datatable"]/div[2]/span[2]
4 changes: 2 additions & 2 deletions end_to_end_tests/resources/page_locators/team_page.robot
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
***Variables***
${team_xpath} //*[@id="team"]/div/div/h3
${teams_xpath} //*[@id="team"]/div/div
${team_xpath} xpath://*[@id="team"]/div/div/h3
${teams_xpath} xpath://*[@id="team"]/div/div[*]
Loading