Support Center » Knowledgebase » How to run analysis using XpoLog API? JUnit, JMeter, Ant and more
 How to run analysis using XpoLog API? JUnit, JMeter, Ant and more
Solution XpoLog Center provides an HTTP-based API for creating and generating environment analyses. This API can be easily used to control XpoLog Center from external tools, such as JUnit, JMeter, Ant. The API can also be used to automate the process of generating environment analysis reports.

The example below demonstrates the usage of XpoLog's API as part of JUnit and Ant execution:
(1) Download and install XpoLog
Download XpoLog from the download section of this site and follow the installation wizard to install.
Open a browser to the machine you installed XpoLog on, connect on port 30303
(for example: http://localhost:30303/).

(2) Define an Ant target


(3) Define Test Environment properties





(4) Call the API to mark the begining of the test



GET /logeye/reports/api/prepareReportAPI.jsp?sessionKey=antTest&reportType=Testing&reportName=JunitXpologCase&location=dir=




(5) Execute JUnit tests

















(6) Call the API to generate the application logs analysis



GET /logeye/reports/api/generateReportAPI.jsp?sessionKey=antTest&reportName=JunitXpologCase




(7) Call the API to generate the JUnit logs analysis



GET /logeye/reports/api/generateReportAPI.jsp?reportType=Testing&reportName=TestingJunitCase&location=dir=C:/workspace/Xpolog/test/JUnit/antoutput& properties=type=Junit;version=;build=




(8) Close the Ant target


(9) The complete Ant target should look like the following:









GET /logeye/reports/api/prepareReportAPI.jsp?sessionKey=antTest&reportType=Testing&reportName=JunitXpologCase&location=dir=
























GET /logeye/reports/api/generateReportAPI.jsp?sessionKey=antTest&reportName=JunitXpologCase







GET /logeye/reports/api/generateReportAPI.jsp?reportType=Testing&reportName=TestingJunitCase&location=dir=C:/workspace/Xpolog/test/JUnit/antoutput& properties=type=Junit;version=;build=





The complete API reference can be downloaded from the download section > technical documentation of this site.


Article Details
Article ID: 272
Created On: 17 Jun 2009 07:27 AM

 This answer was helpful  This answer was not helpful

 Back
 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options
Home | Submit a Ticket | Knowledgebase | News | Downloads
Language: