You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test.meta({
severity: 'Trivial',
issue: 'TEST-ISSUE',
description: 'An example discription',
epic: 'Example Epic Ticket',
feature: 'Example Feature Ticket',
story: 'Example Story Ticket',
suite: 'Main Example Group',
// ... any other key: value property as custom metadata
})('Example test with metadata', async (t) => {
// Test Code
});
// Skipped test example
test.meta({
severity: 'Trivial',
issue: 'TEST-ISSUE',
description: 'An example discription',
epic: 'Example Epic Ticket',
feature: 'Example Feature Ticket',
story: 'Example Story Ticket',
suite: 'Main Example Group',
skipReason: 'Skipped: Known product bug BUG-ISSUE-1'
// ... any other key: value property as custom metadata
}).skip('Example test with metadata', async (t) => {
// Test Code
});
// Skipped test example
test.meta({
severity: 'Trivial',
issue: 'TEST-ISSUE',
description: 'An example discription',
epic: 'Example Epic Ticket',
feature: 'Example Feature Ticket',
story: 'Example Story Ticket',
suite: 'Main Example Group',
skipReason: 'Skipped: Not implemented'
// ... any other key: value property as custom metadata
}).skip('Example planned test', async (t) => {
// Test Code
});
test.meta({
severity: 'Trivial',
issue: 'TEST-ISSUE',
description: 'An example discription',
epic: 'Example Epic Ticket',
feature: 'Example Feature Ticket',
story: 'Example Story Ticket',
suite: 'Main Example Group',
tags: ['automated', 'smoke', 'e2e']
// ... any other key: value property as custom metadata
})('Example test with metadata', async (t) => {
// Test Code
});
test.meta({
severity: 'Trivial',
issue: 'TEST-ISSUE',
description: 'An example discription',
epic: 'Example Epic Ticket',
feature: 'Example Feature Ticket',
story: 'Example Story Ticket',
suite: 'Main Example Group',
tags: 'e2e'
// ... any other key: value property as custom metadata
})('Example test with metadata where tag can be a string', async (t) => {
// Test Code
});
test('Example test with steps', async (t) => {
await step('Add developer name to form', t,
t.typeText('#developer-name', 'John Smith')
);
});
Expected behavior
The test step Add developer name to form should be tracked in the report.
Screenshots
Environment (please complete the following information):
Describe the bug
Test steps are not tracked in the generated report.
The following are the dependencies:
"dependencies": {
"testcafe": "^2.6.2"
}
"devDependencies": {
"allure-commandline": "^2.24.0",
"testcafe-reporter-allure": "npm:@isaac.frontend/testcafe-reporter-allure@^2.4.1"
}
The script is,
import step from 'testcafe-reporter-allure';
fixture('TestCafé Example Fixture - Documentation').page('http://devexpress.github.io/testcafe/example')
test.meta({
severity: 'Trivial',
issue: 'TEST-ISSUE',
description: 'An example discription',
epic: 'Example Epic Ticket',
feature: 'Example Feature Ticket',
story: 'Example Story Ticket',
suite: 'Main Example Group',
// ... any other key: value property as custom metadata
})('Example test with metadata', async (t) => {
// Test Code
});
// Skipped test example
test.meta({
severity: 'Trivial',
issue: 'TEST-ISSUE',
description: 'An example discription',
epic: 'Example Epic Ticket',
feature: 'Example Feature Ticket',
story: 'Example Story Ticket',
suite: 'Main Example Group',
skipReason: 'Skipped: Known product bug BUG-ISSUE-1'
// ... any other key: value property as custom metadata
}).skip('Example test with metadata', async (t) => {
// Test Code
});
// Skipped test example
test.meta({
severity: 'Trivial',
issue: 'TEST-ISSUE',
description: 'An example discription',
epic: 'Example Epic Ticket',
feature: 'Example Feature Ticket',
story: 'Example Story Ticket',
suite: 'Main Example Group',
skipReason: 'Skipped: Not implemented'
// ... any other key: value property as custom metadata
}).skip('Example planned test', async (t) => {
// Test Code
});
test.meta({
severity: 'Trivial',
issue: 'TEST-ISSUE',
description: 'An example discription',
epic: 'Example Epic Ticket',
feature: 'Example Feature Ticket',
story: 'Example Story Ticket',
suite: 'Main Example Group',
tags: ['automated', 'smoke', 'e2e']
// ... any other key: value property as custom metadata
})('Example test with metadata', async (t) => {
// Test Code
});
test.meta({
severity: 'Trivial',
issue: 'TEST-ISSUE',
description: 'An example discription',
epic: 'Example Epic Ticket',
feature: 'Example Feature Ticket',
story: 'Example Story Ticket',
suite: 'Main Example Group',
tags: 'e2e'
// ... any other key: value property as custom metadata
})('Example test with metadata where tag can be a string', async (t) => {
// Test Code
});
test('Example test with steps', async (t) => {
await step('Add developer name to form', t,
t.typeText('#developer-name', 'John Smith')
);
});
Expected behavior
The test step Add developer name to form should be tracked in the report.
Screenshots
Environment (please complete the following information):
Let me know if I am missing any additional steps.
Thanks,
Sanoj Swaminathan
The text was updated successfully, but these errors were encountered: