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
User Comments
Add a Comment
Sharing is good. So if you have a comment about this entry please feel free to share. The Comments might be reviewed by our Staff and might require approval before being posted. Questions posted will not be answered, please submit a ticket for support requests.
Image verification required
Please enter the characters that appear to the right in the space provided. This is just to verify that you are a human.
Fullname:
Email: (Optional)
Comments:
Back
Login
[Lost Password]
Email:
Password:
Remember Me:
Search
-- Entire Support Site --
Knowledgebase
Downloads
Article Options
Add Comment
Print Article
PDF Version
Email Article
Add to Favorites
Home
|
Submit a Ticket
|
Knowledgebase
|
News
|
Downloads
Language:
English (U.S.)