A simple portal for tracking testing reports, bugs found and then mapping all this way back to features and releases. However JIRA and other such project management tools provide the features that are mentioned in this document but still this solution can come in handy for those who don't want an outside tool rather a quick dirty solution.
Note this is for a general solution overview and focusses more on data modelling. Any installation and setup related findings is homework for reader :)
- Testing Report
- Bugs
- Releases
- Features
- Test cases
- Environment
- Timeline of all testing that has happened till date
- Individual testing report
- Test cases, which cases map to which feature(s)
- Testing cycles for a specific release
- Bugs introduced in a release, mapped to which feature(s)
- Mongodb
- Mongodb Compass - mongodb dashboard tool
- Elasticsearch
- Kibana - elastic search dashboard tool
We use mongodb as database/storage for all the testing related metadata we have i.e. bugs, test cases, release versions, testing cycles. Exact modelling of data will come in later section. To manage mongodb as well as to have an interface to enter metadata/information in mongodb, we can use Mongodb Compass (a solution by mongodb itself).
Kibana has excellent dashboard functionality, it provides various chart types for every possible reporting type that one may need. So to facilitate Kibana we integrate ElasticSearch with Mongodb. Check out this post https://www.linkedin.com/pulse/5-way-sync-data-from-mongodb-es-kai-hao for integration. For me I used the river option (option 3) in the linked post, but as you may see that is now deprecated for 2.0x version. Once this integration is done, you can create custom dashboard in Kibana based on the data you have and voila!
Here I am hoping you have some basic knowledge of Mongodb or atleast understand how JSON works.
A testing report is basically number of testcases that passed and failed on a particular release deployed on a specific environment. This can be modelled as :
{
"id": "<uuid>",
"environment": "<string>",
"release": "<releaseId>",
"bugs": ["<bugId>", "<bugId>", "<bugId>", "<bugId>", "<bugId>"],
"result": {
"passed": ["<testCaseId>", "<testCaseId>", "<testCaseId>", "<testCaseId>"],
"failed": ["<testCaseId>", "<testCaseId>", "<testCaseId>", "<testCaseId>"]
},
"timestamp": "<date>"
}
Test case is just the description of the scenario that will be tested, expected outcome and feature to which it maps.
{
"id": "<uuid>",
"description": "<string>",
"expected": "<string>",
"features": ["<featureId>", "<featureId>", "<featureId>"],
"timestamp": "<date>"
}
Release is basically the latest stable working tag of software which has some new features and follows an increment style i.e. build upon last release.
{
"id": "<uuid>",
"tagVersion": "<string>",
"incrementedOn": "<releaseId>",
"features": [{
"id": "<uuid>",
"description": "<string>"
}, {
"id": "<uuid>",
"description": "<string>"
}, {
"id": "<uuid>",
"description": "<string>"
}],
"timestamp": "<date>"
}
Bug is an anamoly found in functionality of software during testing cycle. It maps to a feature and may or may not present in multiple releases.
{
"id": "<uuid>",
"introducedIn":"<releaseId>",
"presentIn": ["<releaseId>", "<releaseId>", "<releaseId>"],
"features": ["<featureId>", "<featureId>", "<featureId>"],
"timestamp": "<date>"
}
With the above explained data models and tools one can have a minimal testing portal up and running in just a day, all is left to prepare the metadata and feed it to mongodb.