Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22546

Add REST API to robot framework plugin

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: robot-plugin
    • Labels:
    • Environment:
      Robot Framework plugin v1.4.2
    • Similar Issues:

      Description

      It would be usefull if we could obtain some values from REST api like the "Age" of tests detected as failing.

        Attachments

          Activity

          Hide
          jpiironen jpiironen added a comment -

          I think this could be really useful feature in for many users!

          What would be the most important data for you that you would like to obtain from the API?

          Show
          jpiironen jpiironen added a comment - I think this could be really useful feature in for many users! What would be the most important data for you that you would like to obtain from the API?
          Hide
          josesa Jose Sa added a comment -

          Primarily we are interested in the “failed test cases” table content as shown in robot reports page, the “all test suites” may also be useful but that is secondary.

          Show
          josesa Jose Sa added a comment - Primarily we are interested in the “failed test cases” table content as shown in robot reports page, the “all test suites” may also be useful but that is secondary.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Janne Piironen
          Path:
          src/main/java/hudson/plugins/robot/model/RobotResult.java
          http://jenkins-ci.org/commit/robot-plugin/388c437acf6bc478187facda97ac18d04259b513
          Log:
          JENKINS-22546: Added initial api functions to robot result

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Janne Piironen Path: src/main/java/hudson/plugins/robot/model/RobotResult.java http://jenkins-ci.org/commit/robot-plugin/388c437acf6bc478187facda97ac18d04259b513 Log: JENKINS-22546 : Added initial api functions to robot result
          Hide
          josesa Jose Sa added a comment -

          I've tested this plugin with version 1.5.0 and while the robot general information about the specific build is available (total number of tests, tests passed/failed, pecentage of tests passed), the information about the individual failed test cases is missing.

          Sample output using xml rest api:

          <robotResult>
          <allFailedCase/>
          <allFailedCase/>
          <allFailedCase/>
          <criticalFailed>3</criticalFailed>
          <criticalPassed>27</criticalPassed>
          <criticalTotal>30</criticalTotal>
          <overallFailed>3</overallFailed>
          <overallPassed>27</overallPassed>
          <overallTotal>30</overallTotal>
          <passPercentage>90.0</passPercentage>
          <suite/>
          <timeStamp>20140523 15:24:06.067</timeStamp>
          </robotResult>
          

          I tried adding "?depth=2" or "?depth=3" to see if more information would be displayed on sub-levels but it returned the same output.

          Show
          josesa Jose Sa added a comment - I've tested this plugin with version 1.5.0 and while the robot general information about the specific build is available (total number of tests, tests passed/failed, pecentage of tests passed), the information about the individual failed test cases is missing. Sample output using xml rest api: <robotResult> <allFailedCase/> <allFailedCase/> <allFailedCase/> <criticalFailed>3</criticalFailed> <criticalPassed>27</criticalPassed> <criticalTotal>30</criticalTotal> <overallFailed>3</overallFailed> <overallPassed>27</overallPassed> <overallTotal>30</overallTotal> <passPercentage>90.0</passPercentage> <suite/> <timeStamp>20140523 15:24:06.067</timeStamp> </robotResult> I tried adding "?depth=2" or "?depth=3" to see if more information would be displayed on sub-levels but it returned the same output.
          Hide
          aaltat Tatu Aalto added a comment -

          I also have the same problem, when I query result, the json looks like this: 

          allFailedCases': [\{}, \{}, \{}, \{}, \{}, \{}]

           

          Would it be possible to get this fixed? 

          Show
          aaltat Tatu Aalto added a comment - I also have the same problem, when I query result, the json looks like this:  allFailedCases': [\{}, \{}, \{}, \{}, \{}, \{}]   Would it be possible to get this fixed? 
          Hide
          blhammond Benjamin Hammond added a comment -

          I'm guessing this plugin is dead, but I figured I would chime in to let anybody working on it know that the allFailedCases feature would be super helpful.

          Show
          blhammond Benjamin Hammond added a comment - I'm guessing this plugin is dead, but I figured I would chime in to let anybody working on it know that the allFailedCases feature would be super helpful.
          Hide
          espguitarist33 Ryan Pisano added a comment -

          We would like that as well.

          Show
          espguitarist33 Ryan Pisano added a comment - We would like that as well.

            People

            • Assignee:
              jpiironen jpiironen
              Reporter:
              josesa Jose Sa
            • Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated: