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.
A simple web automation test framework using selenium-webdriver,watir-webdriver,page-object and rspec.
This should get you up and running magically. Much like rails this should scaffold tests and make it easy to add new specs an pages using generators and templates.
Install magicspec from rubygems
gem install magicspec
Or clone from github, build the gem and install
Open a command console and type just like below:
magicspec new your_project_name
Lazyman contains some examples that explain how to use magicspec writing your own test cases.
By default, magicspec runs examples using chrome browser, so make sure you installed google chrome and according chrome driver
Using following command to make everything running.
cd your_project_name
rspec
You can use eat console to debug your test in irb.
cd your_project_name
magicspec c
A magicspec project has a clean and simple structure.
app: holds your test code;
config: where your config file is placed. You set things such as tags and your browser here.
app->pages: puts all your pages files here;
app->pages->components: sometimes,there are some html element that could be reused more than once, define a component, place the file here and you can include your components in your pages.
app->spec: holds your testcase files;
app->spec->shared: Imaging that, you are testing a system which need to login before any actions, so you want to define a login function which can be called from your cases. Define reused cases here.
app->reports: the fold holds your test reports.
app->support->matchers: defind your owner rspec matchers here.
Copyright (c) 2013 easonhan. See LICENSE.txt for further details.
FAQs
Unknown package
We found that magicspec 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.
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.