Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
aft-logging-filesystem
Advanced tools
Automated Functional Testing (AFT) logging plugin package supporting logging to files
Automated Functional Testing (AFT) package providing a Filesystem Logging Plugin that generates .log files based on the LogManager.logName
and appends log lines using a customisable date format
> npm i aft-logging-filesystem
this plugin accepts configuration options in the following format:
aftconfig.json
{
...
"LogManager": {
"level": "info",
"plugins": [{
"name": "filesystem-logging-plugin",
"options": {
"level": "trace",
"enabled": true,
"outputPath": "./path/relative/to/process/cwd",
"includeResults": false,
"dateFormat": "YYYY-MM-DD HH:mm:ss.SSS"
}
}]
},
...
}
string
containing a valid LogLevel
(defaults to value set in LogManager.level
or "none"
if not set)boolean
indicating if this plugin should be used (defaults to true
)string
with either an absolute path or a relative path from the process.cwd()
where .log files will be created (defaults to ./logs
)boolean
indicating whether calls to any LogManager.logResult
function will output the TestResult
to the .log file (defaults to true
)string
that can include Date Formatting as outlined at the date-and-time npm packageall log files are written using UTF-8 encoding and by default will resemble the following:
./logs/your_value_for_LogName.log
[2022-06-29 18:18:50.773] - STEP - 1: navigate to LoginPage...
[2022-06-29 18:18:52.524] - STEP - 2: login
[2022-06-29 18:18:53.089] - INFO - sending tomsmith to the Username Input
[2022-06-29 18:18:53.345] - INFO - username entered
[2022-06-29 18:18:53.942] - INFO - sending SuperSecretPassword! to the Password Input
[2022-06-29 18:18:54.241] - INFO - password entered
[2022-06-29 18:18:54.262] - INFO - clicking Login Button...
[2022-06-29 18:18:55.495] - INFO - Login Button clicked
[2022-06-29 18:18:55.516] - STEP - 3: wait for message to appear...
[2022-06-29 18:18:56.006] - STEP - 4: get message...
[2022-06-29 18:18:57.191] - PASS - C3456
[2022-06-29 18:18:57.212] - PASS - C2345
[2022-06-29 18:18:57.232] - PASS - C1234
[2022-06-29 18:18:57.257] - PASS - {"testId":"C3456","created":1656523137189,"resultId":"b259d87b-ccb6-4ace-b3a8-9ea08a8f578d","status":"Passed","metadata":{"durationMs":13168,"buildName":"unknown","buildNumber":"unknown"}}
[2022-06-29 18:18:57.277] - PASS - {"testId":"C2345","created":1656523137253,"resultId":"3f404419-1240-44fe-b6e1-e1072f5af787","status":"Passed","metadata":{"durationMs":13231,"buildName":"unknown","buildNumber":"unknown"}}
[2022-06-29 18:18:57.298] - PASS - {"testId":"C1234","created":1656523137255,"resultId":"6be91db1-9523-434f-8349-a1a19e2ed282","status":"Passed","metadata":{"durationMs":13233,"buildName":"unknown","buildNumber":"unknown"}}
[2022-06-29 18:18:57.932] - DEBUG - closing driver instance...
[2022-06-29 18:18:58.985] - DEBUG - driver instance closed.
FAQs
Automated Functional Testing (AFT) logging plugin package supporting logging to files
The npm package aft-logging-filesystem receives a total of 1 weekly downloads. As such, aft-logging-filesystem popularity was classified as not popular.
We found that aft-logging-filesystem demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.