Skip to content

QA Automation test reports using MongoDB and MongoDB Charts

License

Notifications You must be signed in to change notification settings

QaReport/automationreport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java CI

automationreport

automationreport generates automation test reports in MongoDB which can be visualized with MongoDB Charts.

Maven Dependency

 <dependency>
     <groupId>com.github.QaReport</groupId>
     <artifactId>automation-report</artifactId>
     <version>1.1.1</version>
 </dependency>

Requirements

  1. MongoDB instance - Community edition of MongoDB can be downloaded here and installation guide can be found here.
  2. Mongo Charts instance - Community edition of MongoDB Charts can be downloaded here and installation guide can be found here.

Project Structure

├── qareport               
|       ├── QaReport
|       ├── QaReportException
|       ├── Status
|       ├── TestStatus
|
├── .gitignore
├── LICENSE
├── README.md
├── pom.xml      

Usage Guide

setConnection(mongoHost, mongoPort, projectName, reportName) sets the connection to the mongo instance, creates a database with project name if it doesn't exist and creates a document in the build Collection with build name set to report name.

Example : setConnection("localhost", "9000", "Your Project", "Smoke");

createTest(testName, Status) creates a test under the created build with test name set to the test name parameter and status which can be selected among Critical, Major and Minor.

Example : createTest("This is the test name", Status.CRITICAL);

log(log, TestStatus) creates a log for the test being run and the Test Status is for mentioning the type of log (currently Pass or Fail). When set to fail updates the status of the test being run to fail.

Example : log("This validation passed", TestStatus.PASS);

failTest() fails the test being run. It can be used when a log statement couldn't be reached because of unexpected errors. It can be used with @After methods.

failBuild() fails the build which is being run. It can be used when unexpected errors occur.

Database Structure

├── Database-Project Name               
   ├── Collection - builds     # Contains build documents
   ├── Collection - tests      # Contains test documents

MongoDB Charts

image info

image info

Releases

No releases published

Packages

No packages published

Languages