-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split integration to smoke and e2e tests, combined all logs into sing…
…le archive
- Loading branch information
andriichumak
committed
Dec 4, 2019
1 parent
884fe64
commit f6671a5
Showing
5 changed files
with
128 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Gauge smoke tests | ||
|
||
# trigger smoke test execution on every commit to master branch | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-keys 023EDB0B | ||
echo deb https://dl.bintray.com/gauge/gauge-deb stable main | sudo tee -a /etc/apt/sources.list | ||
sudo apt-get update | ||
sudo apt-get install gauge | ||
gauge install | ||
npm ci | ||
- name: Run tests | ||
run: | | ||
npm run automated:smoke | tee reports/logs/stdout.log | ||
env: | ||
CI: true | ||
SUITEST_TEST_PACK_ID: ${{ secrets.TEST_PACK_ID }} | ||
SUITEST_TOKEN_KEY: ${{ secrets.TOKEN_KEY }} | ||
SUITEST_TOKEN_PASSWORD: ${{ secrets.TOKEN_PASSWORD }} | ||
continue-on-error: true | ||
- name: Report results to dashboard | ||
run: | | ||
curl -X POST -H "x-api-key:${{ secrets.CALLIOPE_TOKEN }}" -H "Content-Type:application/*" --data "@reports/xml-report/result.xml" "https://app.calliope.pro/api/v2/profile/765/report/import/junit" | ||
continue-on-error: true | ||
- name: Archive the reports and save them as artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: Report | ||
path: reports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Category page test | ||
Tags: e2e, category | ||
|
||
Test scenario makes sure that category page displays correct data. | ||
|
||
Illustrates how data can be fetched from server and used to build test scenarion dynamically. | ||
|
||
## Category page dynamic test | ||
|
||
First of all, we need to navigate to the page we would like to test. | ||
|
||
* Open application | ||
* Press "up" | ||
* Assert "WatchMe" navigation item is focused | ||
* Press "right" exactly "3" times | ||
* Press "enter" | ||
* Assert element "First tile" exists | ||
|
||
Load the feed we would like to test against. Step is split in two: one to load data, another one to verify items on the screen | ||
according to that data. This is done to illustrate how to work with dynamic items in Gauge. | ||
|
||
* Load "home-list-videos" page items | ||
* Assert page items are rendered |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters