Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.