Hi,
We are using Selenium+Java for our automation and we have integrated splunk sdk using maven dependencies.
we are able to get the Json response by connecting and running the job when we try to display results with the results reader it throws following error:
java.lang.Error: Unresolved compilation problems:
The import com.google cannot be resolved
The import com.google cannot be resolved
JsonReader cannot be resolved to a type
JsonToken cannot be resolved to a variable
Splunk Version : used splunk 1.5 and 1.6 -- getting same error.
<groupId>com.splunk</groupId>
<artifactId>splunk</artifactId>
<version>1.6.2.0</version>
Code :
JobResultsArgs resultsArgs = new JobResultsArgs();
resultsArgs.setOutputMode(JobResultsArgs.OutputMode.JSON);
InputStream results = automationLeadJob.getResults(resultsArgs);
ResultsReaderJson resultsReader = new ResultsReaderJson(results);
Thanks
... View more