I am using the ExtentX reports for automation reports. Now I had upgraded to ExtentX. The below steps describes the way to install MongoDB, Node Js ans Sails.
Step 1 – Download NodeJs and Mongod- https://nodejs.org/en/download/ | https://www.mongodb.com/download-center#production
Step 2 – To configure the Mongodb
Step 2.1 Run cmd as admin
Step 2.2 cmd – cd “C:\Program Files\MongoDB\Server\3.4\bin”
Step 2.3 cmd – mongod –dbpath C:\AutoReports // [Create the folder and give the reference – Mandatory Step]
After Step 2 there will be cmd running and waiting for connection. Next Step will create the connection from extent X
Step 3 – To configure the Extent X reports and Node Js.
Step 3.1 Run cmd as admin // Open a new cmd.
Step 3.2 cmd – cd C:\ReportEngine\extentx-community-1.0.1 // Extract the ExtentX to any location
Step 3.3 cmd – npm install
Step 3.4 cmd – npm install sails -g
if sail lift didnt work add new 'node' commands like 'npm', using batch scripting. Create a sails.cmd file in your desktop. (new text file -> rename to 'sails.cmd'). Right-click on sails.cmd and select Edit. Copy and paste this code into your sails.cmd: @ECHO OFF SET arguments=%1 %2 %3 %4 %5 %6 %7 %8 %9 node %APPDATA%\npm\node_modules\sails\bin\sails.js %arguments% Save and copy your sails.cmd into your Node.js installation directory, for example: C:\Program Files\nodejs
Now the Sails lift must have established the connection with the MongoDB
To view the report – http://cmtest02.clearmatch.local:1337
To push from Code – http://cmtest02.clearmatch.local:27017
*cmd – to run in console application
Hope it helps someone somewhere 🙂
Note : If it didn’t work. Just Install any registry cleaner software like CClearner and clear all registries
Then npm install sails -g
After that try npm install