<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I get RobotFramework tags into Splunk via Jenkins plugin? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-RobotFramework-tags-into-Splunk-via-Jenkins-plugin/m-p/526830#M88863</link>
    <description>&lt;P&gt;I managed to get it like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import hudson.plugins.robot.RobotBuildAction
import com.splunk.splunkjenkins.utils.LogEventHelper

def build=splunkins.build
def robotAction=build.getAction(RobotBuildAction)
if(robotAction) {
    def robotResults=[]
    def allTestCases = robotAction.result.suites[0].getAllCases()
    allTestCases.each { test -&amp;gt;  
            robotResults &amp;lt;&amp;lt; ["name" : test.getRelativePackageName(), "tags":test.tags, "duration":test.duration,
             "passed": test.passed, "description":test.description]
       }
    def metadata = LogEventHelper.getBuildVariables(build)
    def robotData = ["metadata":metadata, "build_url":build.url, "robot_results":robotResults, "build_number": build.number]
    splunkins.send(robotData)
}&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 28 Oct 2020 11:10:49 GMT</pubDate>
    <dc:creator>JykkeDaMan</dc:creator>
    <dc:date>2020-10-28T11:10:49Z</dc:date>
    <item>
      <title>How do I get RobotFramework tags into Splunk via Jenkins plugin?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-RobotFramework-tags-into-Splunk-via-Jenkins-plugin/m-p/526524#M88814</link>
      <description>&lt;P&gt;I have the Splunk Jenkins plugin in use, but I cannot find the RobotFramework test tags from the raw data.&lt;/P&gt;&lt;P&gt;Should I do some custom configurations into Jenkins side so that it would add the test level RobotFramework tags into the testcase data?&lt;/P&gt;&lt;P&gt;Below in an example from the Robot results.&lt;/P&gt;&lt;P&gt;Is the plugin sending only the "Test results", but not "Robot Results" to the Splunk?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-10-26 at 20.59.40.jpg" style="width: 843px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11504i955AF3CDAC713B0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-10-26 at 20.59.40.jpg" alt="Screenshot 2020-10-26 at 20.59.40.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Currently I can find only the following test level results from the Splunk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{ [-]
         classname: Testsuites.Assistant tests.Configurations
         duration: 307
         errordetails: *HTML* ...
         errorstacktrace:
         failedsince: 329
         groupname: Testsuites
         skipped: false
         status: FAILURE
         testname: Assistant For External Callers
         uniquename: Testsuites.Assistant tests.Configurations.Assistant For External Callers
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 19:36:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-RobotFramework-tags-into-Splunk-via-Jenkins-plugin/m-p/526524#M88814</guid>
      <dc:creator>JykkeDaMan</dc:creator>
      <dc:date>2020-10-26T19:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get RobotFramework tags into Splunk via Jenkins plugin?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-RobotFramework-tags-into-Splunk-via-Jenkins-plugin/m-p/526623#M88821</link>
      <description>&lt;P&gt;Do we need a new RobotFramework adapter?&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/jenkinsci/splunk-devops-plugin/tree/master/splunk-devops/src/main/java/com/splunk/splunkjenkins/model" target="_blank" rel="noopener"&gt;https://github.com/jenkinsci/splunk-devops-plugin/tree/master/splunk-devops/src/main/java/com/splunk/splunkjenkins/model&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 10:46:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-RobotFramework-tags-into-Splunk-via-Jenkins-plugin/m-p/526623#M88821</guid>
      <dc:creator>JykkeDaMan</dc:creator>
      <dc:date>2020-10-27T10:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get RobotFramework tags into Splunk via Jenkins plugin?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-RobotFramework-tags-into-Splunk-via-Jenkins-plugin/m-p/526676#M88827</link>
      <description>&lt;LI-CODE lang="markup"&gt;import hudson.plugins.robot.RobotBuildAction
import com.splunk.splunkjenkins.utils.LogEventHelper

def build=splunkins.build
def robotAction=build.getAction(RobotBuildAction)
if(robotAction) {
    def robotResults=[]
    robotAction.result.suites.each { suite -&amp;gt;
       suite.caseResults.each { result -&amp;gt;  
            robotResults &amp;lt;&amp;lt; ["name" : result.name, "tags":result.tags, "duration":result.duration,
             "passed": result.passed, "description":result.description]
       }
    }
    def metadata = LogEventHelper.getBuildVariables(build)
    def robotData=["metadata":metadata, "build_url", build.url, "robot_results":robotResults]
    splunkins.send(robotData)
}&lt;/LI-CODE&gt;&lt;P&gt;you can insert the code sample snippet into the plugin config -&amp;gt; Advance -&amp;gt;Customize Event Processing Command&amp;nbsp;&lt;/P&gt;&lt;P&gt;it will send an extra event into jenkins index&lt;/P&gt;&lt;P&gt;P.S. the tag is not a standard field, the Jenkins app will not show it, you need build your own dashboard&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 16:19:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-RobotFramework-tags-into-Splunk-via-Jenkins-plugin/m-p/526676#M88827</guid>
      <dc:creator>Ted</dc:creator>
      <dc:date>2020-10-27T16:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get RobotFramework tags into Splunk via Jenkins plugin?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-RobotFramework-tags-into-Splunk-via-Jenkins-plugin/m-p/526756#M88847</link>
      <description>&lt;P&gt;Thanks, I was hopping something like this.&lt;/P&gt;&lt;P&gt;I fixed a minor typo in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"build_url", build.url -&amp;gt; "build_url":build.url&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried it, but I got empty results like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{ [-]
   build_url: job/658/
   metadata: { [-]
     scm: git
   }
   robot_results: [ [-]
   ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 06:58:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-RobotFramework-tags-into-Splunk-via-Jenkins-plugin/m-p/526756#M88847</guid>
      <dc:creator>JykkeDaMan</dc:creator>
      <dc:date>2020-10-28T06:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get RobotFramework tags into Splunk via Jenkins plugin?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-RobotFramework-tags-into-Splunk-via-Jenkins-plugin/m-p/526830#M88863</link>
      <description>&lt;P&gt;I managed to get it like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import hudson.plugins.robot.RobotBuildAction
import com.splunk.splunkjenkins.utils.LogEventHelper

def build=splunkins.build
def robotAction=build.getAction(RobotBuildAction)
if(robotAction) {
    def robotResults=[]
    def allTestCases = robotAction.result.suites[0].getAllCases()
    allTestCases.each { test -&amp;gt;  
            robotResults &amp;lt;&amp;lt; ["name" : test.getRelativePackageName(), "tags":test.tags, "duration":test.duration,
             "passed": test.passed, "description":test.description]
       }
    def metadata = LogEventHelper.getBuildVariables(build)
    def robotData = ["metadata":metadata, "build_url":build.url, "robot_results":robotResults, "build_number": build.number]
    splunkins.send(robotData)
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 28 Oct 2020 11:10:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-RobotFramework-tags-into-Splunk-via-Jenkins-plugin/m-p/526830#M88863</guid>
      <dc:creator>JykkeDaMan</dc:creator>
      <dc:date>2020-10-28T11:10:49Z</dc:date>
    </item>
  </channel>
</rss>

