Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to report test items with code reference (location in code) #671

Closed
evjlobanova opened this issue Jul 25, 2019 · 2 comments
Closed
Assignees
Labels
feature request Request for new feature in ReportPortal
Milestone

Comments

@evjlobanova
Copy link
Contributor

Description

As a User I view test code reference in ReportPortal and can easily copy  from RP
So that  I can quickly find needed test case f.e. in IDF Idea. 
For that  I should go on:

  • Step view and open test editor
  • Log view and open Item Detail tab

Reporting via API

request
Test itemm controller
POST/{projectName}/item

{
  "attributes": [
    {
      "key": "string",
      "system": true,
      "value": "string"
    }
  ],
  "description": "string",
  "hasStats": true,
  "launchId": "string",
  **"codeRef": "string",**
  "name": "string",
  "parameters": [
    {
      "key": "string",
      "value": "string"
    }
  ],
  "retry": true,
  "startTime": "2019-07-25T10:00:08.120Z",
  "type": "SUITE",
  "uniqueId": "string"
}

Available for JAVA agents

image
image

@evjlobanova
Copy link
Contributor Author

Will be available in the beta release of version 5.

@evjlobanova evjlobanova self-assigned this Jul 25, 2019
@evjlobanova evjlobanova added feature request Request for new feature in ReportPortal resolution:fixed labels Jul 25, 2019
@evjlobanova evjlobanova added this to the 5.0 milestone Jul 25, 2019
@evjlobanova evjlobanova reopened this Jul 25, 2019
@nvborisenko
Copy link
Member

Would it be better to send this location info as user defined test attributes? It seems this property is a part of request model, so API will be broken if we need to add more attributes like this. For instance it would be nice to see the line number in code file where test is located. To support it API is going to be changed.
If API takes these attributes in map object, we don't require to update clients. API may reserve some attribute keys like 'codeRef' to show them on UI.

There are many attributes that I would to see: 'sourceCodeRef', 'targetFramework', 'testRunnerName', 'testRunnerVersion'... many attributes. I see that agent can provide these attributes/metadata in 'attributes' json property, I am going to use it. And question: is it possible to search test items by attributes? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request for new feature in ReportPortal
Projects
None yet
Development

No branches or pull requests

3 participants