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.
Application Concurrence Test in Ruby.
通过Rake本地安装gem包:
$ rake install
或者通过rubygems远程安装
$ sudo gem install actir
如果是Mac OS X 10.11版本以上的系统,要么关闭rootless机制,或者:
$ sudo gem install actir -n /usr/local/bin
components
:公用页面元素方法, 包装成Module
;pages
:页面元素封装的方法,可以继承自Actir::BasicPage
,已经封装了部分公用方法;items
:根据业务抽象出的类;user
:根据系统业务抽象出的角色及其Action;test
开头, 执行之前需要初始化Actir::Initializer.new(project_path)
,project_path
为测试工程根目录;Browser.new(type, *args)
Browser重新封装了Watir以及Selenium的初始化浏览器的方法
:browser
:浏览器类型,可以支持 :chrome/:phantomjs/:firefox, 默认为chrome:agent
:user agent类型,可以支持 :iphone/:andriod_phone, 默认为iphone:mode
:启动模式,支持 :local/:remote, 默认为local:url
: 配合mode为remote的模式,指定远程机器的url,需要 IP+端口号Actir::Initializer.new(project_path)
LoginPage
,则会自动定义出login_page
方法供Browser
对象调用browser = Browser.new(:wap)
browser.login_page.login("xxx")
# 调用Watir::Browser对象的方法
browser.refresh
$ actir [switches] [--] [files & folders]
$ actir testcode/test_refund/test_full_refund.rb
$ actir testcode
指定执行某个用例文件中的某个方法:
$ actir testcode/test_pay/test_pay.rb -n test_ecard
指定用例失败重试次数:
$ actir testcode/test_pay/test_pay.rb -r 2
输出html格式的测试报告:
$ actir testcode/test_pay/test_pay.rb -r 2 --report
可使用
actir -h
了解更多的运行参数
FAQs
Unknown package
We found that actir 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.