Skip to content

Commit

Permalink
- Minor update of documentation
Browse files Browse the repository at this point in the history
- Remove actions
  • Loading branch information
huaxing-yuan committed Jan 24, 2025
1 parent c14173d commit 4341076
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 202 deletions.
95 changes: 0 additions & 95 deletions .github/workflows/build-and-publish-PROnly.yml

This file was deleted.

97 changes: 0 additions & 97 deletions .github/workflows/build-develop.yml

This file was deleted.

10 changes: 4 additions & 6 deletions src/AxaFrance.WebEngine.Doc/articles/env-impact.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ details; you just need to enable the feature and use the provided API to get the

## How to activate resource usage tracing?
### Using Gherkin approach
Using Gherkin, you need to activate Traffic Monitoring before the first action on the target application and stop monitoring after the last action.
Using Gherkin, you need to activate Traffic Monitoring BEFORE the first action on the target aWpplication and stop monitoring after the last action.

> [!NOTE]
> Web pages may take time to load HTML documents and resources (such as images and scripts) requested by HTML and XHR.
> Please wait until all user interactions are finished before stopping the traffic monitoring,
> or the monitoring report may contain missing items.
To start monitoring, youll need to run the following code
To start monitoring, you'll need to run the following code

```csharp
var usageReport = BrowserFactory.StartMonitoring(driver);
Expand All @@ -28,14 +28,12 @@ usageReport.StopMonitoring();
```

#### Attach usage monitoring result to Test Report
Assuming you have the instance of TestCaseReport named tcReport, the following code will attach it to test report.
Assuming you have an instance of TestCaseReport named `tcReport`, the following code will attach it to test report.
```csharp
tcr.Attach(usageReport, GlobalConstants.ResourceUsageReport);
tcReport.Attach(usageReport, "ResourceUsage");
```




### Using keyword driven approach
Resource usage tracing is enabled at the test case level. The flag is defined at
<xref:AxaFrance.WebEngine.Web.TestCaseWeb.MeasureResourceUsage>. When the flag is enabled before test execution, the framework
Expand Down
4 changes: 0 additions & 4 deletions src/AxaFrance.WebEngine.sln
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Files", "Files", "{8AB08366
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "cicd", "cicd", "{8943BF7F-960F-406E-B415-6527828B602A}"
ProjectSection(SolutionItems) = preProject
..\.github\workflows\build-and-publish-PROnly.yml = ..\.github\workflows\build-and-publish-PROnly.yml
..\.github\workflows\build-develop.yml = ..\.github\workflows\build-develop.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{A333A615-1BE3-4FAD-930E-2CF69D794320}"
EndProject
Expand Down

0 comments on commit 4341076

Please sign in to comment.