Skip to content

Commit 66b8cad

Browse files
authored
Merge pull request LambdaTest#1356 from amanchopra1905/stage
CUSTOM SPECFLOW REPORT
2 parents 66fe21f + ea2a3bb commit 66b8cad

File tree

5 files changed

+97
-5
lines changed

5 files changed

+97
-5
lines changed
32.8 KB
Loading

docs/azure-scim.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ For example we can set Constant association “Guest” for `urn:ietf:params:sci
100100

101101
Or, can create association using the Expression like this ,
102102

103-
`IIF(SingleAppRoleAssignment([appRoleAssignments])="Admin", "Admin"`,
104-
`IIF(SingleAppRoleAssignment([appRoleAssignments])="Guest", "Guest"`,
105-
`IIF(SingleAppRoleAssignment([appRoleAssignments])="User", "User", "User")))`
103+
```javascript
104+
IIF(SingleAppRoleAssignment([appRoleAssignments])="Admin", "Admin",
105+
IIF(SingleAppRoleAssignment([appRoleAssignments])="Guest", "Guest",
106+
IIF(SingleAppRoleAssignment([appRoleAssignments])="User", "User", "User")))
107+
```
106108

107109
In the above example we are using the appRoleAssignments attribute of microsoft user to set string value.
108110

@@ -118,7 +120,6 @@ This operation starts the initial synchronization cycle of all users in Scope in
118120
<img loading="lazy" src={require('../assets/images/lambdatest-scim/azure-ad/save.png').default} alt="Image" width="404" height="206" className="doc_img img_center"/><br/>
119121

120122

121-
122123
> That's all you need to know about LambdaTest SCIM Auto User Provisioning with Azure AD.In case you have any questions please feel free to reach out to us via the <span className="doc__lt" onClick={() => window.openLTChatWidget()}>**24/7 chat support**</span> or email us over [[email protected]](mailto:[email protected]).
123124
124125

docs/custom-speclow-report.md

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
id: custom-speclow-report
3+
title: Custom Specflow Report
4+
sidebar_label: Custom Specflow
5+
description: Custom specflow report
6+
keywords:
7+
- LambdaTest Hyperexecute
8+
- LambdaTest Hyperexecute help
9+
- LambdaTest Hyperexecute documentation
10+
url: https://www.lambdatest.com/support/docs/custom-speclow-report/
11+
site_name: LambdaTest
12+
slug: custom-speclow-report/
13+
---
14+
15+
<script type="application/ld+json"
16+
dangerouslySetInnerHTML={{ __html: JSON.stringify({
17+
"@context": "https://schema.org",
18+
"@type": "BreadcrumbList",
19+
"itemListElement": [{
20+
"@type": "ListItem",
21+
"position": 1,
22+
"name": "Home",
23+
"item": "https://www.lambdatest.com"
24+
},{
25+
"@type": "ListItem",
26+
"position": 2,
27+
"name": "Support",
28+
"item": "https://www.lambdatest.com/support/docs/"
29+
},{
30+
"@type": "ListItem",
31+
"position": 3,
32+
"name": "HyperExecute Custom Specflow Report",
33+
"item": "https://www.lambdatest.com/support/docs/custom-speclow-report/"
34+
}]
35+
})
36+
}}
37+
></script>
38+
This guide provides step-by-step instructions on how to generate a custom SpecFlow report in LambdaTest HyperExecute. By following the specified changes in the YAML file and modifying the test script, users can receive detailed test reports via email.
39+
40+
## Prerequisites
41+
- A valid LambdaTest account.
42+
- A configured HyperExecute environment.
43+
- A SpecFlow-based test suite.
44+
45+
## Configuration Changes
46+
To enable custom SpecFlow reporting, make the following changes to your YAML configuration file and test script.
47+
48+
### Step 1: Modify the YAML Configuration File
49+
Add the following settings in your YAML file to enable reporting and configure partial reports:
50+
51+
```yaml
52+
report: true
53+
partialReports:
54+
location: YOUR_REPORTS_LOCATION
55+
type: xml
56+
frameworkName: specflow-custom
57+
email:
58+
to: [YOUR_EMAIL_ID]
59+
metaInfo: [ "project-name:YOUR_CUSTOM_PROJECT_NAME", "project-env: YOUR_CUSTOM_PROJECT_ENV" ]
60+
```
61+
62+
Explanation:
63+
- `report: true` → Enables the reporting feature.
64+
- `partialReports.location` → Specifies the directory where the partial reports will be stored.
65+
- `partialReports.type: xml` → Configures the report format as XML.
66+
- `partialReports.frameworkName: specflow-custom` → Sets the framework name.
67+
- `email.to` → Defines the recipient email address where the reports will be sent.
68+
- `email.metaInfo` → Adds metadata, including project name and environment details, to the report.
69+
70+
### Step 2: Modify the Test Script
71+
Add the following capability in your test script to ensure the correct execution status is recorded:
72+
73+
`((IJavaScriptExecutor)driver).ExecuteScript($"lambda-info=suitename:YOUR_SUITE_NAME:passed");`
74+
75+
Explanation:
76+
- This script sends test execution information (suite name and status) to LambdaTest.
77+
- Replace `YOUR_SUITE_NAME` with the appropriate suite name.
78+
- The passed status can be dynamically changed based on the test result.
79+
80+
### Step 3: Report Generation and Email Notification
81+
Once the tests are executed, the custom SpecFlow report will be generated and sent to the configured email address. The report will include:
82+
83+
- Tag-based test summaries and details.
84+
- Suite-based test summaries and details.
85+
- Number of tests passed, failed, skipped, or with other statuses.
86+
- Meta information such as project name and environment.
87+
88+
<img loading="lazy" src={require('../assets/images/hyperexecute/knowledge-base/reports/custom-specflow.png').default} alt="Image" className="doc_img"/>

docs/specflow-report.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ slug: specflow-report/
3838
SpecFlow is a free tool for automating tests using BDD. It's often used to create automation scripts for .NET projects.
3939
This technical document provides a guide on generating SpecFlow reports after executing tests on HyperExecute.
4040

41-
## Steps to Generate Cucumber Reports on HyperExecute
41+
> We also offer [Custom Specflow report](https://www.lambdatest.com/support/docs/custom-speclow-report/).
42+
43+
## Steps to Generate Specflow Reports on HyperExecute
4244

4345
**Step 1:** Configure all the necessary dependencies and configurations to your project.
4446

sidebars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,7 @@ module.exports = {
751751
"cucumber-report",
752752
"playwright-html-report",
753753
"specflow-report",
754+
"custom-speclow-report",
754755
"cypress-mochaawesome-report",
755756
"error-categorization-report",
756757
"junit-xml-report",

0 commit comments

Comments
 (0)