Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
appium-reporter-plugin
Advanced tools
Appium 2.0 plugin for generating html report with screenshots server side.
appium-reporter-plugin
is appium 2.0 plugin, for generating simple html report with screenshots. Consolidated Report is generated for all the test that ran in the appium session. Report can be fetched from server and be written to file (just like screenshots).
appium-reporter-plugin
would be handly, if you need to
https://user-images.githubusercontent.com/2680841/183408319-cf7a550d-2b74-4732-8a13-e80c57524467.mov
To install plugin
appium plugin install --source=npm appium-reporter-plugin
Start appium server with plugin
appium --use-plugins=appium-reporter-plugin
Sample implementation can be found @
appium-reporter-plugin
assumes every test/spec uses new driver session. For commands invoked on the driver session, screenshot and metrics are captured at server side. At the end of the test i.e., before deleting the driver session, /setTestInfo
should be called to map test information. After all the tests are completed /getReport
can be called to fetch the html report and written to file. To clear the test info stored on the server, /deleteReportData
can be used.
For mapping test information to data collected, server binding POST: /setTestInfo
is exposed. This binding accepts JSON payload with keys as mentioned below
key | Description | Type | Accepted Values |
---|---|---|---|
sessionId | driver's sessionId | Mandatory | driver's sessionId or null if session is not created (pendig test) |
testName | Name of the test | Mandatory | any string |
testStatus | Test execution status | Mandatory | PASSED, FAILED, PENDING, All other string considered as unknown |
error | Reason for test Failure | Optinal | any string |
ex:
{sessionId: 'asdas-asdasd-asdasda-asdasdasd', testName: 'Sum of 1 and 2 should be 3', testStatus: 'PASSED'}
{sessionId: 'asdas-asdasd-asdasda-asdasdasd', testName: 'Sum of 1 and 2 should be 4', testStatus: 'FAILED', error: 'Sum of 1 and 2 is 3'}
{sessionId: null, testName: 'Sum of 1 and 2 should be 3', testStatus: 'PENDING'}
After execution of all the tests, report can be downloaded from server using GET: /getReport
. getReport
returns a html report with screenshots as a string.
screenshots and test information is stored on server and this occupies space. To clear the space and delete all the test infomation on server DELETE: /deleteReportData
can be used.
-- demo.spec.js has working example and we recommamd checking the implementation.
Note:
appium-reporter-plugin
doesn't gather test results data from any unit test framework.npm run build
1. set APPIUM_HOME to a local directory and install drivers needed
export APPIUM_HOME=~/Documents/AppiumTestDistribution/appium-reporter-plugin/local_appium_home
2. npm run install-plugin
npm run reinstall-plugin
appium --use-plugins=appium-reporter-plugin
npm run test
Note : If you are overriding APPIIM_HOME make sure drivers are installed
appium driver install xcuitest
appium driver install uiautomator2
ToDo
FAQs
Appium 2.0 plugin for generating html report with screenshots server side.
The npm package appium-reporter-plugin receives a total of 722 weekly downloads. As such, appium-reporter-plugin popularity was classified as not popular.
We found that appium-reporter-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.