Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions src/extras/release-cd.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ module.exports = async function (name, { runtimeInformation, test_cases: testCas
assertions: Object.fromEntries(testCases.map(
testCase => testCase?.requests?.map(
request => request?.request?.tests?.assertions
.filter(assertion => assertion?.assertionId ?? assertion.id)
.filter(assertion => assertion?.id)
.map(
assertion => [`${testCase.testCaseId ?? testCase.name}.${request.request.requestId ?? request.request.id}.${assertion?.assertionId ?? assertion.id}`, assertion?.resultStatus?.status]
assertion => [`${testCase.id}.${request.request.id}.${assertion?.id}`, assertion?.resultStatus?.status]
)
).filter(Boolean)
).filter(Boolean).flat(2))
Expand Down
2 changes: 1 addition & 1 deletion src/modes/outbound.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const handleIncomingProgress = async (progress) => {
passed = logger.outbound(progress.totalResult)
const resultReport = await report.outbound(progress.totalResult)
// SaveReport status
if (progress.totalResult.saveReport) {
if (progress.totalResult?.saveReport) {
if (progress.saveReportStatus?.isSaved) {
const ttkReportUrl = `${config.saveReportBaseUrl || config.baseURL}/api/history/test-reports/${progress.totalResult.runtimeInformation.testReportId}?format=html`
console.log(fStr.green(`Report saved on TTK backend server successfully and is available at ${ttkReportUrl}`))
Expand Down
3 changes: 2 additions & 1 deletion test/unit/extras/release-cd.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ describe('Release CD', () => {
const result = {
test_cases: [
{
name: 'test-case',
id: 'test-case',
name: 'Test Case',
requests: [
{
request: {
Expand Down