-
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.
# [1.1.0](v1.0.1...v1.1.0) (2024-09-26) ### Features * Added testcycle improvements ([118ad6c](118ad6c))
- Loading branch information
1 parent
9a5fb12
commit 3c4c1a3
Showing
4 changed files
with
680 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
declare enum TestStepResultStatus { | ||
UNKNOWN = "UNKNOWN", | ||
PASSED = "PASSED", | ||
SKIPPED = "SKIPPED", | ||
PENDING = "PENDING", | ||
UNDEFINED = "UNDEFINED", | ||
AMBIGUOUS = "AMBIGUOUS", | ||
FAILED = "FAILED" | ||
} | ||
interface ExecutionResultProps { | ||
executionResultId: number; | ||
} | ||
interface ResponseData { | ||
total: number; | ||
data: TestCase[]; | ||
} | ||
interface Keys { | ||
key: string; | ||
id: string; | ||
testCaseExecutionId: number; | ||
} | ||
interface TestCase { | ||
id: string; | ||
key: string; | ||
testCycleTestCaseMapId: number; | ||
archived: boolean; | ||
versionNo: number; | ||
testCaseExecutionId: number; | ||
enableExecutionResult: boolean; | ||
isLatestVersion: boolean; | ||
projectId: number; | ||
} | ||
interface ExecutionResult { | ||
id: number; | ||
name: string; | ||
systemDefaultName: string; | ||
description: string; | ||
color: string; | ||
seqNo: number; | ||
isDefault: boolean; | ||
} | ||
interface ResultPair { | ||
id: number; | ||
name: string; | ||
} | ||
interface TestCaseList { | ||
id: string; | ||
key: string; | ||
archived: boolean; | ||
shareable: boolean; | ||
executionPlannedDate: null; | ||
projectId: number; | ||
version: { | ||
isLatestVersion: boolean; | ||
versionNo: number; | ||
}; | ||
} | ||
interface QmetryConfig { | ||
baseUrl: string; | ||
apiKey: string; | ||
authorization: string; | ||
projectId: number; | ||
testCycleId?: string; | ||
summary?: string; | ||
description?: string; | ||
} | ||
|
||
declare function updateQmetryStatus(name: string, status?: TestStepResultStatus): Promise<void>; | ||
declare function updateTestCaseStatus(id: string, testCaseExecutionId: number, status: TestStepResultStatus | undefined, testCycleId: string): Promise<void>; | ||
declare function getExecutionResultId(status: TestStepResultStatus | undefined): Promise<number>; | ||
declare function createTestCycle(): Promise<any>; | ||
declare function fetchTestCases(): Promise<{ | ||
id: string; | ||
versionNo: number; | ||
}[]>; | ||
declare function linkAllTestCases(testCycleId: string): Promise<void>; | ||
declare function validateTestCycleId(testCycleId: string): Promise<boolean>; | ||
|
||
export { type ExecutionResult, type ExecutionResultProps, type Keys, type QmetryConfig, type ResponseData, type ResultPair, type TestCase, type TestCaseList, TestStepResultStatus, createTestCycle, fetchTestCases, getExecutionResultId, linkAllTestCases, updateQmetryStatus, updateTestCaseStatus, validateTestCycleId }; |
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,79 @@ | ||
declare enum TestStepResultStatus { | ||
UNKNOWN = "UNKNOWN", | ||
PASSED = "PASSED", | ||
SKIPPED = "SKIPPED", | ||
PENDING = "PENDING", | ||
UNDEFINED = "UNDEFINED", | ||
AMBIGUOUS = "AMBIGUOUS", | ||
FAILED = "FAILED" | ||
} | ||
interface ExecutionResultProps { | ||
executionResultId: number; | ||
} | ||
interface ResponseData { | ||
total: number; | ||
data: TestCase[]; | ||
} | ||
interface Keys { | ||
key: string; | ||
id: string; | ||
testCaseExecutionId: number; | ||
} | ||
interface TestCase { | ||
id: string; | ||
key: string; | ||
testCycleTestCaseMapId: number; | ||
archived: boolean; | ||
versionNo: number; | ||
testCaseExecutionId: number; | ||
enableExecutionResult: boolean; | ||
isLatestVersion: boolean; | ||
projectId: number; | ||
} | ||
interface ExecutionResult { | ||
id: number; | ||
name: string; | ||
systemDefaultName: string; | ||
description: string; | ||
color: string; | ||
seqNo: number; | ||
isDefault: boolean; | ||
} | ||
interface ResultPair { | ||
id: number; | ||
name: string; | ||
} | ||
interface TestCaseList { | ||
id: string; | ||
key: string; | ||
archived: boolean; | ||
shareable: boolean; | ||
executionPlannedDate: null; | ||
projectId: number; | ||
version: { | ||
isLatestVersion: boolean; | ||
versionNo: number; | ||
}; | ||
} | ||
interface QmetryConfig { | ||
baseUrl: string; | ||
apiKey: string; | ||
authorization: string; | ||
projectId: number; | ||
testCycleId?: string; | ||
summary?: string; | ||
description?: string; | ||
} | ||
|
||
declare function updateQmetryStatus(name: string, status?: TestStepResultStatus): Promise<void>; | ||
declare function updateTestCaseStatus(id: string, testCaseExecutionId: number, status: TestStepResultStatus | undefined, testCycleId: string): Promise<void>; | ||
declare function getExecutionResultId(status: TestStepResultStatus | undefined): Promise<number>; | ||
declare function createTestCycle(): Promise<any>; | ||
declare function fetchTestCases(): Promise<{ | ||
id: string; | ||
versionNo: number; | ||
}[]>; | ||
declare function linkAllTestCases(testCycleId: string): Promise<void>; | ||
declare function validateTestCycleId(testCycleId: string): Promise<boolean>; | ||
|
||
export { type ExecutionResult, type ExecutionResultProps, type Keys, type QmetryConfig, type ResponseData, type ResultPair, type TestCase, type TestCaseList, TestStepResultStatus, createTestCycle, fetchTestCases, getExecutionResultId, linkAllTestCases, updateQmetryStatus, updateTestCaseStatus, validateTestCycleId }; |
Oops, something went wrong.