Skip to content

Commit fd75769

Browse files
Merge pull request #83 from aquality-automation/Bug51-export-creation
Bug51 export creation
2 parents 08ee4f7 + f59a712 commit fd75769

File tree

23 files changed

+212
-46
lines changed

23 files changed

+212
-46
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44

55
Features:
66
- Test Run List: Add posibility to filter by Inactive Milestone -> [View Issue](https://github.com/aquality-automation/aquality-tracking/issues/73)
7+
- Mark import af failed when import is failed -> [View Issue](https://github.com/aquality-automation/aquality-tracking/issues/79)
78

89
Bugfixes:
910
- Test Runs: Fix Filter for No Resolution Column -> [View Issue](https://github.com/aquality-automation/aquality-tracking/issues/22)
11+
- Test Run View: Chart is not updated when user updating results in a bulk -> [View Issue](https://github.com/aquality-automation/aquality-tracking/issues/78)
1012

1113
## 0.3.7 (2020-03-02)
1214

@@ -19,6 +21,9 @@ Features:
1921
- Milestone: Add possibility to Close Milestone. -> [View Issue](https://github.com/aquality-automation/aquality-tracking/issues/62)
2022
- Test Runs List: Add possibility to Add milestone from Test Runs List. -> [View Issue](https://github.com/aquality-automation/aquality-tracking/issues/59)
2123

24+
Bugfixes:
25+
- Fixed for downloading audits results from Audits Dashboard -> [View Issue](https://github.com/aquality-automation/aquality-tracking/issues/51)
26+
2227
## 0.3.6 (2020-02-24)
2328

2429
Features:

api/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ services:
1616
- db
1717
image: tomcat:9.0-jre8-alpine
1818
restart: always
19+
command: bash -c "apk add --update ttf-dejavu && rm -rf /var/cache/apk/* && catalina.sh run"
1920
volumes:
2021
- ./apps:/usr/local/tomcat/webapps/
2122
links:

e2e/data/import/cucumber.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"result": {
2828
"status": "passed",
29-
"duration": 7033
29+
"duration": 1684328900
3030
}
3131
},
3232
{
@@ -39,7 +39,7 @@
3939
},
4040
"result": {
4141
"status": "passed",
42-
"duration": 86
42+
"duration": 1684328900
4343
}
4444
}
4545
]
@@ -61,7 +61,7 @@
6161
},
6262
"result": {
6363
"status": "passed",
64-
"duration": 7033
64+
"duration": 2667613100
6565
}
6666
},
6767
{
@@ -74,7 +74,7 @@
7474
},
7575
"result": {
7676
"status": "failed",
77-
"duration": 86,
77+
"duration": 2667613100,
7878
"error_message": "step was failed"
7979
}
8080
}
@@ -97,7 +97,7 @@
9797
},
9898
"result": {
9999
"status": "passed",
100-
"duration": 7033
100+
"duration": 2667613100
101101
}
102102
},
103103
{
@@ -110,7 +110,7 @@
110110
},
111111
"result": {
112112
"status": "skipped",
113-
"duration": 86,
113+
"duration": 1684328900,
114114
"error_message": "step was skipped"
115115
}
116116
}

e2e/data/import/cucumberSpecialSymbols.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"result": {
2828
"status": "passed",
29-
"duration": 7033
29+
"duration": 1684328900
3030
}
3131
},
3232
{
@@ -39,7 +39,7 @@
3939
},
4040
"result": {
4141
"status": "passed",
42-
"duration": 86
42+
"duration": 1684328900
4343
}
4444
}
4545
]
@@ -61,7 +61,7 @@
6161
},
6262
"result": {
6363
"status": "passed",
64-
"duration": 7033
64+
"duration": 1684328900
6565
}
6666
},
6767
{
@@ -74,7 +74,7 @@
7474
},
7575
"result": {
7676
"status": "failed",
77-
"duration": 86,
77+
"duration": 1684328900,
7878
"error_message": "step was failed !”#$%&’()*+,-./:;<=>?@[\\]^_`{|}~"
7979
}
8080
}
@@ -97,7 +97,7 @@
9797
},
9898
"result": {
9999
"status": "passed",
100-
"duration": 7033
100+
"duration": 1684328900
101101
}
102102
},
103103
{
@@ -110,7 +110,7 @@
110110
},
111111
"result": {
112112
"status": "skipped",
113-
"duration": 86,
113+
"duration": 1684328900,
114114
"error_message": "step was skipped"
115115
}
116116
}

e2e/data/import/oneTestCucumber.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"result": {
2828
"status": "passed",
29-
"duration": 7033
29+
"duration": 1684328900
3030
}
3131
},
3232
{
@@ -39,7 +39,7 @@
3939
},
4040
"result": {
4141
"status": "passed",
42-
"duration": 86
42+
"duration": 1684328900
4343
}
4444
}
4545
]

e2e/data/users.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,19 @@
8787
"unit_coordinator": 0,
8888
"account_manager": 0
8989
},
90+
"unitCoordinator":{
91+
"user_name": "auto.unitcoordinator",
92+
"password": "123456",
93+
"first_name": "auto",
94+
"second_name": "coordinator",
95+
"email": "[email protected]",
96+
"admin":0,
97+
"manager":0,
98+
"auditor":0,
99+
"audit_admin":0,
100+
"unit_coordinator":1,
101+
"account_manager":0
102+
},
90103
"viewer": {
91104
"user_name": "auto.viewer",
92105
"password": "123456",
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { by, element } from 'protractor';
2+
import { SmartTable } from '../../../elements/smartTable.element';
3+
4+
export const elements = {
5+
uniqueElement: element(by.id('audits-dashboard-page')),
6+
exportToExcel: element(by.id('export')),
7+
allSubmittedAudits: element(by.xpath('//a[@class="dropdown-item"][text()="All submitted audits"]')),
8+
lastSubmittedAudits: element(by.xpath('//a[@class="dropdown-item"][text()="Last submitted audits"]')),
9+
auditsSmartTable: new SmartTable(by.id('datatable'))
10+
};
11+
12+
export const names = {
13+
pageName: 'Audits Dashboard'
14+
};
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { elements, names } from './constants';
2+
import { BasePage } from '../../base.po';
3+
4+
class AuditsDashboard extends BasePage {
5+
constructor() {
6+
super(elements.uniqueElement, names.pageName);
7+
}
8+
9+
async exportAllSubmittedAudits(): Promise<void> {
10+
await elements.exportToExcel.click();
11+
return elements.allSubmittedAudits.click();
12+
}
13+
14+
async exportLastSubmittedAudits(): Promise<void> {
15+
await elements.exportToExcel.click();
16+
return elements.lastSubmittedAudits.click();
17+
}
18+
}
19+
20+
export const auditsDashboardPage = new AuditsDashboard();

e2e/pages/base.po.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ export class BasePage {
4444
return browser.navigate().back();
4545
}
4646

47+
async getConsoleLogs() {
48+
const browserLog = await browser.manage().logs().get('browser');
49+
return require('util').inspect(browserLog);
50+
}
51+
4752
async getCurrentProjectId(): Promise<number> {
4853
const url = `${await browser.getCurrentUrl()}/`;
4954
const regexp = /.*\/project\/(\d+)\/.*/;

e2e/pages/login.po/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ class LogIn extends BasePage {
2929
logger.info('Going to log out, before logging in with another user account.');
3030
await this.menuBar.clickLogOut();
3131
}
32-
await expect(await this.isOpened()).toBe(true, 'Was not logged out!');
32+
if (!(await this.isOpened())) {
33+
const logs = await this.getConsoleLogs();
34+
expect(true).toBe(false, `Was not logged out!\nLogs:\n${logs}`);
35+
}
3336
await this.setUserName(userName);
3437
await this.setPassword(password);
3538
await this.clickLogIn();

0 commit comments

Comments
 (0)