wdio-qase-reporter
Advanced tools
Comparing version
@@ -0,1 +1,15 @@ | ||
# qase-wdio@1.0.0-beta.2 | ||
## What's new | ||
Support group parameters for test cases. You can specify the group parameters in the test case using the following | ||
format: | ||
```ts | ||
it('test', () => { | ||
qase.groupParameters({ 'param01': 'value01', 'param02': 'value02' }); | ||
expect(true).to.equal(true); | ||
}); | ||
``` | ||
# qase-wdio@1.0.0-beta.1 | ||
@@ -2,0 +16,0 @@ |
@@ -8,2 +8,3 @@ export declare const events: { | ||
readonly addParameters: "qase:parameters"; | ||
readonly addGroupParameters: "qase:groupParameters"; | ||
readonly addAttachment: "qase:attachment"; | ||
@@ -10,0 +11,0 @@ readonly startStep: "qase:startStep"; |
@@ -11,2 +11,3 @@ "use strict"; | ||
addParameters: 'qase:parameters', | ||
addGroupParameters: 'qase:groupParameters', | ||
addAttachment: 'qase:attachment', | ||
@@ -13,0 +14,0 @@ startStep: 'qase:startStep', |
@@ -47,2 +47,3 @@ import WDIOReporter, { AfterCommandArgs, BeforeCommandArgs, RunnerStats, SuiteStats, TestStats } from '@wdio/reporter'; | ||
addParameters({ records }: AddRecordsEventArgs): void; | ||
addGroupParameters({ records }: AddRecordsEventArgs): void; | ||
addFields({ records }: AddRecordsEventArgs): void; | ||
@@ -49,0 +50,0 @@ addAttachment({ name, type, content, paths }: AddAttachmentEventArgs): void; |
@@ -230,2 +230,3 @@ "use strict"; | ||
process.on(events_1.events.addParameters, this.addParameters.bind(this)); | ||
process.on(events_1.events.addGroupParameters, this.addGroupParameters.bind(this)); | ||
process.on(events_1.events.addAttachment, this.addAttachment.bind(this)); | ||
@@ -276,2 +277,13 @@ process.on(events_1.events.addIgnore, this.ignore.bind(this)); | ||
} | ||
addGroupParameters({ records }) { | ||
const curTest = this.storage.getCurrentTest(); | ||
if (!curTest) { | ||
return; | ||
} | ||
const stringRecord = {}; | ||
for (const [key, value] of Object.entries(records)) { | ||
stringRecord[String(key)] = String(value); | ||
} | ||
curTest.group_params = stringRecord; | ||
} | ||
addFields({ records }) { | ||
@@ -278,0 +290,0 @@ const curTest = this.storage.getCurrentTest(); |
@@ -22,2 +22,8 @@ import { StepFunction } from './step'; | ||
/** | ||
* Assign group parameters to test | ||
* @name groupParameters | ||
* @param {Record<string, string>} values | ||
*/ | ||
static groupParameters(values: Record<string, string>): typeof qase; | ||
/** | ||
* Assign fields to test | ||
@@ -24,0 +30,0 @@ * @name fields |
@@ -45,2 +45,11 @@ "use strict"; | ||
/** | ||
* Assign group parameters to test | ||
* @name groupParameters | ||
* @param {Record<string, string>} values | ||
*/ | ||
static groupParameters(values) { | ||
sendEvent(events_1.events.addGroupParameters, { records: values }); | ||
return this; | ||
} | ||
/** | ||
* Assign fields to test | ||
@@ -47,0 +56,0 @@ * @name fields |
{ | ||
"name": "wdio-qase-reporter", | ||
"version": "1.0.0-beta.1", | ||
"version": "1.0.0-beta.2", | ||
"description": "Qase WebDriverIO Reporter", | ||
@@ -35,3 +35,3 @@ "homepage": "https://github.com/qase-tms/qase-javascript", | ||
"dependencies": { | ||
"qase-javascript-commons": "~2.1.2", | ||
"qase-javascript-commons": "~2.2.0", | ||
"uuid": "^9.0.1", | ||
@@ -38,0 +38,0 @@ "@types/node": "^20.1.0", |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
48577
2.96%933
3.32%0
-100%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed