allure-framework / allure-framework/allure-csharp

AllureIssue and AllureTMS annotations will not build up the full URL by getting allureConfig.json

Open
#452 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
125
Forks
76
Avg merge
1d 2h
Merged PRs (30d)
18

Description

[//]: # (
. Note: for support questions, please use Stackoverflow or Gitter**.
. This repository's issues are reserved for feature requests and bug reports.
.
. In case of any problems with Allure Jenkins plugin** please use the following repository
. to create an issue: https://github.com/jenkinsci/allure-plugin/issues
.
. Make sure you have a clear name for your issue. The name should start with a capital
. letter and no dot is required in the end of the sentence. An example of good issue names:
.
. - The report is broken in IE11
. - Add an ability to disable default plugins
. - Support emoji in test descriptions
)

#### I'm submitting a ...
- [x] bug report
- [ ] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.

#### What is the current behavior?

The linkage to the issue tracker/TMS is not properly established, even though the full URL with parameterization has been set up in the Allure configuration JSON. It takes local host URL instead and throws 404 error

![image](https://github.com/allure-framework/allure-csharp/assets/22859482/45f2fb86-5279-4a70-8e2b-3e0e45fdf28f)

![image](https://github.com/allure-framework/allure-csharp/assets/22859482/0647f23e-4dac-4f6f-b920-5e6d019cafde)

#### If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

1. Add the following details in allureConfig.json file

{
"allure": {
"directory": "allure-results",
"links": [
"https://github.com/nunit/docs/issues?utf8=✓&q={issue}",
"https://example.org/{tms}",
"{link}"

],
"brokenTestData": [
"System.Exception"
]
}
}

2. Add following annotation under test case level

```
[AllureIssue("ISSUE-123")]
[AllureTms("TMS-123")]

```

3. After executing the test case, please validate by clicking or inspecting the hyperlink generated during the build.

#### What is the expected behavior?
Users should be able to navigate to the link generated from the allureConfig.json file by clicking upon the link through the report it self

#### What is the motivation / use case for changing the behavior?
Since this feature previously worked and has encountered issues in the interim, I would like to revert it back to its previous working state.

#### Please tell us about your environment:

- Allure version: 2.11.0
- Test framework: selenium c#
- Allure adaptor: Allure.NUnit (2.11.0)
- Generate report using: .net 6

#### Other information

[//]: # (
Other NuGet Packages using in the framework

```




















```

)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with Allure.NUnit 2.11.0 on .NET 6 using the provided allureConfig.json links and the AllureIssue and AllureTms annotations. Inspect how configured link templates are loaded and applied, then verify that the generated report hyperlinks use the configured full URLs rather than localhost and no longer return 404.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.