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

Add passed and skipped cases to REST API response #48

Merged
merged 3 commits into from
May 27, 2022
Merged

Conversation

asimell
Copy link
Contributor

@asimell asimell commented May 18, 2022

No description provided.

Copy link
Member

@Tattoo Tattoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💖

@asimell asimell merged commit b2f43bf into master May 27, 2022
@asimell asimell deleted the rest_api branch May 27, 2022 11:30
@laurenyello
Copy link

laurenyello commented Jun 14, 2022

Thank you so much for this! So when I try hitting the API at /lastBuild/robot/api/json?&pretty=true I see failedCases: [...] and I see that there is 1 skipped case so I would expect to see skippedCases: [...] but I still don't see this? Also, if I have 0 passedCases, I thought I'd expect to see an empty passedCases: [ ]

Am I looking for the skipped and pass cases using the incorrect param? Thank you

@asimell
Copy link
Contributor Author

asimell commented Jun 16, 2022

Hi,

Just to be on the absolute safe side, which plugin version, Jenkins version, and RF version are you using? I get the correct output, which does show an empty list when there are no passed or skipped cases.

{
...
  "executedSuites" : [
    "A"
  ],
  "failedCases" : [
    "A.T4"
  ],
...
  "passedCases" : [
    "A.T1",
    "A.T2",
    "A.T3"
  ],
  "skippedCases" : [
    
  ],
...
}

@laurenyello
Copy link

@asimell thank you for responding
Jenkins 2.249.1
robotframework==4.1.2

I may not have the permissions to view the plugins - do you know how I could find this plugin's version in the results or console?

@asimell
Copy link
Contributor Author

asimell commented Jun 23, 2022

Currently there is no way to see that from the console output or results page. You need admin access to see the plugin page or ask a person with admin access to check it for you.

Your Jenkins version is lower than is stated in the plugin pom.xml file as the requirement (2.277.4). I'd suggest to update your Jenkins to the current LTS version and see if that fixes the issue. I have Jenkins 2.349 locally and at least that works as expected.

@laurenyello
Copy link

Thank you, Ill talk to the person with admin access about upgrading the Jenkins version. Thank you so much for your help and this plugin update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants